With Private AI Proxy
- Install Private AI Proxy, choose a Phala profile, sign in, and turn on Protected.
- On the Agents screen, connect Pi.
- Start
pi.
Without the Proxy
Create a key under Private AI → API Keys in the Phala dashboard. Export your Phala API key, then add a custom provider to~/.pi/agent/models.json:
~/.pi/agent/models.json
pi, run /model, and select the model under phala. 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 attestation locally; use Private AI Proxy or the TypeScript ACI Verifier. Every model on this endpoint runs in a TEE.
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://inference.phala.com/v1.

