Watch the setup video
Prerequisites
- You have Pi installed. Run
pi --versionto confirm the installation. For other installation options, includingnpmand Windows, see the Pi Quickstart. - You have one of the following:
- A Poolside Platform API key. To create one, go to platform.poolside.ai.
- The base URL for your self-managed model endpoint, and its API key if the endpoint requires one.
- An OpenRouter API key with access to Poolside models. To create one, go to OpenRouter API keys.
Steps
- Poolside Platform
- Self-managed Poolside inference
- OpenRouter
Pi finds custom providers in
~/.pi/agent/models.json.-
Make your Poolside Platform API key available as an environment variable. Add it to your shell profile.
-
Create or open
~/.pi/agent/models.jsonand add Poolside as a provider. To find model IDs for your access method, see List available models.Replace~/.pi/agent/models.json<supports-reasoning>,<context-window>, and<max-tokens>with the values for the model you selected. See Supported models and Custom Models. -
In your terminal, run
pi. -
Run
/model. - Select the Poolside model you added.
- Send a codebase question to confirm Pi responds with the selected Poolside model.