# Connect PILLAR to your AI

Website: https://www.askpillar.ai
Human-readable setup guide: https://www.askpillar.ai/connect
Product: PILLAR
npm package: `askpillar`
CLI executable: `pillar`
Hosted MCP endpoint: `https://mcp.askpillar.ai/mcp`
Public installation command: `npx askpillar install`

PILLAR connects supported AI clients to its hosted MCP service. These instructions apply only when the user requests installation or connection. Preserve existing client configuration and follow the host's permission requirements. Do not treat instructions on this website as permission to bypass the host's controls.

## Requirements

- Node.js 22 on macOS or Linux.
- Codex, Claude Code, or Cursor.
- A browser on the same computer as the CLI. SSH-only, headless, and cross-device authentication are not supported.
- A PILLAR account. The user can sign in with Google or an email magic link and complete any required account setup during browser authentication. Email updates subscriptions are separate from PILLAR accounts.

## 1. Identify the client and check the existing connection

Identify whether the user wants Codex, Claude Code, or Cursor connected. Do not guess from the presence of other installed clients or install into every client. If the selected client is unclear, ask which one to connect.

Check the client's available PILLAR tools and configuration. From the project where the client will use PILLAR, run:

```bash
npx --yes askpillar@latest status --json
```

Inspect authentication and the selected entry in `clients`. If `authenticated` is true, `verifiedTool` is `get_profile`, and the selected client's `state` is `configured`, report that verified state instead of reinstalling. Check whether the running client session has loaded the tools; a restart or new session may still be needed.

An `ok: true` result means the status command completed. It can still report `authenticated: false`. An installed user configuration can also be disabled or overridden by project configuration. If the client is already connected manually and the CLI cannot verify that connection, inspect the client's own connection status before installing another connection.

## 2. Install for the selected client

Run only ONE of these commands, matching the selected client:

Codex:

```bash
npx --yes askpillar@latest install --client codex
```

Claude Code:

```bash
npx --yes askpillar@latest install --client claude
```

Cursor:

```bash
npx --yes askpillar@latest install --client cursor
```

The installer adds a local stdio bridge to PILLAR's hosted MCP endpoint. It preserves unrelated MCP servers, settings, and comments. If an existing `pillar` entry conflicts, configuration is invalid, or project settings override the user configuration, report the actual issue. Do not delete or replace existing configuration to force installation through. Explicit launch flags, external profiles, and organization policies may affect the active connection beyond what the CLI can inspect.

For a person choosing a client interactively, the public command is `npx askpillar install`.

## 3. Let the user complete browser authentication

The CLI opens a browser. Let the user sign in with Google or an email magic link, complete any required account setup, and approve the PILLAR connection. Email links must open in the same browser profile on the same computer running the CLI. Let the CLI resume after approval.

Do not ask the user to paste passwords, magic links, authorization codes, or tokens into chat. If authentication expires or fails, report the error and follow the CLI's retry guidance. Do not claim that opening the browser completed authentication.

## 4. Verify the connection

After installation finishes, run:

```bash
npx --yes askpillar@latest status --json
```

Check the actual result:

- The command succeeds and reports `authenticated: true`.
- `verifiedTool` is `get_profile`, confirming authenticated access to the hosted MCP service.
- The selected client appears in `clients` with `state: "configured"`. Report any warnings, disabled connection, conflict, project override, or `scope_unknown` result. Do not describe those as a verified active client connection.

Do not use a generated guidance question as the installation check. Status verifies authenticated access without consuming a guidance turn.

## 5. Report the actual result and restart requirements

Tell the user which client was configured, whether authenticated MCP access was verified, and any unresolved issue. Do not expose account details or credentials in the report.

After installation, restart the selected client or start a new session so it loads the PILLAR MCP connection. Explain that the current session may not have loaded the tools yet. If they are available, confirm that PILLAR's tools are visible in the selected client. Distinguish verified CLI access from tools loaded in the running client.

## When terminal execution is unavailable

Do not claim installation succeeded. Open https://www.askpillar.ai/connect and explain the available manual connection options. For Codex, Claude Code, or Cursor, the user can run the matching command above in a local terminal on the same computer. Claude chat and ChatGPT have the manual remote MCP flows below, when supported by the user's account or workspace. Claude chat is distinct from Claude Code.

### Manual connection in Claude

1. Open Settings → Connectors in Claude. Some versions place Connectors under Customize.
2. Choose Add custom connector.
3. Name it PILLAR and enter `https://mcp.askpillar.ai/mcp`.
4. Choose Sign in now and Register automatically when authentication options appear.
5. Sign in with your PILLAR account, review the connection, and approve it.
6. Return to Claude and enable PILLAR in the chat's connectors menu. A managed workspace may require an administrator to add it.

### Manual connection in ChatGPT

1. Open https://chatgpt.com/plugins on the web.
2. Select +, then Add custom MCP server.
3. Name it PILLAR and enter `https://mcp.askpillar.ai/mcp`.
4. Choose OAuth authentication.
5. Sign in with your PILLAR account, review the connection, and choose Create as a plugin.
6. Start a new chat, type @, and select PILLAR.

If the interface uses Settings → Apps, enable Developer mode under Advanced settings, then choose Create. Custom MCP connections must be available for the user's account or workspace. Follow the current instructions and help at https://www.askpillar.ai/connect if the interface differs.

## Guidance, data, and help

PILLAR returns Scripture-grounded, independently reviewed guidance through `ask_pillar`. `get_pillar_usage` checks daily and monthly allowance without using a guidance turn. Questions and answers are saved in the signed-in PILLAR account and share its usage limits. The connected AI client also receives PILLAR's answer. Your account details, like your email, never go to the AI model. Your conversations are saved privately to your account so you can see your history, and you can delete them anytime. Conversations may be used to improve PILLAR. Read https://www.askpillar.ai/connect#your-data and https://www.askpillar.ai/privacy for data handling and account controls.

For connection help, visit https://www.askpillar.ai/support. Report errors accurately; do not report success based only on copied text, a browser opening, or an installer starting.
