> ## Documentation Index
> Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pi

> Run Pi on RedPill through Private AI Proxy, or configure it by hand.

Pi speaks Chat Completions. Private AI Proxy configures it automatically.

## With Private AI Proxy

1. Install [Private AI Proxy](/get-started/private-ai-proxy), sign in, and turn on **Protected**.
2. On the **Agents** screen, connect **Pi**.
3. Start `pi`.

The app writes the provider into Pi's settings with an agent-scoped token for its local API, and
restores the previous settings when you disconnect or stop Protected.

From the CLI, the same connection is:

```bash theme={null}
pap agents connect pi
```

## Without the Proxy

Install the RedPill provider package, then sign in and pick a model inside Pi:

```bash theme={null}
pi install npm:pi-provider-redpill
pi
```

```text theme={null}
/login redpill
# paste your RedPill API key
/model
# search for redpill/, choose a model, press Ctrl+S to save it as the default
```

Pi stores the key in `~/.pi/agent/auth.json`, the live catalog in `~/.pi/agent/models-store.json`,
and the saved default in `~/.pi/agent/settings.json`. `REDPILL_AI_API_KEY` supplies the key for one
process; Pi does not copy it into its store.

This package verifies ACI inside Pi: attestation and every response receipt are checked
automatically, and `/redpill-attestation`, `/redpill-receipts`, `/redpill-receipt`, and
`/redpill-session` show the evidence. Its default endpoint is `https://tee.redpill.ai/v1`.

## Check the connection

Run `/model` in Pi and confirm a `redpill/` model is selected. With the provider package, wait for
the footer to show `aci-verified` before sending work.

## Troubleshooting

| Symptom                           | Check                                                                         |
| --------------------------------- | ----------------------------------------------------------------------------- |
| Pi ignores the Proxy              | Confirm **Connected** in the app and that Protected is on, then restart `pi`. |
| No `redpill/` models in `/model`  | Run `/login redpill` again; the catalog loads after login.                    |
| Footer never shows `aci-verified` | Run `/redpill-attestation` and read the failing check.                        |

## References

* [pi-provider-redpill on npm](https://www.npmjs.com/package/pi-provider-redpill)
* [RedPill model catalog](/api-reference/models)
