Skip to main content
Pi speaks Chat Completions. Private AI Proxy configures it automatically.

With Private AI Proxy

  1. Install 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:

Without the Proxy

Export your RedPill API key, then add a custom provider to ~/.pi/agent/models.json:
~/.pi/agent/models.json
Start pi, run /model, and select the model under redpill. Opening /model reloads the file; press Ctrl+S on the model to save it as the default. The key is read from the process environment. This path does not verify ACI locally. For confidential-only routing, use an is_tee: true model with "baseUrl": "https://tee.redpill.ai/v1". See Verify a response.

Check the connection

Run /model in Pi, confirm the provider and model, then send a short prompt. With the Proxy, the provider points at http://127.0.0.1:4180/v1; without it, at https://api.redpill.ai/v1.

Troubleshooting