Skip to main content

Watch the setup video

Prerequisites

  • You have Pi installed. Run pi --version to confirm the installation. For other installation options, including npm and 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

Pi finds custom providers in ~/.pi/agent/models.json.
  1. Make your Poolside Platform API key available as an environment variable. Add it to your shell profile.
  2. Create or open ~/.pi/agent/models.json and add Poolside as a provider. To find model IDs for your access method, see List available models.
    ~/.pi/agent/models.json
    Replace <supports-reasoning>, <context-window>, and <max-tokens> with the values for the model you selected. See Supported models and Custom Models.
  3. In your terminal, run pi.
  4. Run /model.
  5. Select the Poolside model you added.
  6. Send a codebase question to confirm Pi responds with the selected Poolside model.