Skip to main content
Poolside provides an OpenAI-compatible Chat API for Poolside models. Poolside-hosted inference enables thinking by default. For self-managed inference, thinking behavior depends on the deployed model and serving configuration.

Watch the setup video

Prerequisites

  • You have OpenCode installed. For installation options, see Install OpenCode.
  • 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

  1. In Poolside Platform, open API Keys.
  2. Click New key.
  3. Copy the API key.
  4. In OpenCode, run the /connect command.
  5. Scroll to Other.
  6. Enter poolside as the provider ID.
  7. Enter your Poolside Platform API key.
  8. Add an example Poolside provider to your opencode.json file. The models block below is an example. Use a Poolside model available to your API key. To find model IDs for your access method, see List available models.
    opencode.json
  9. Run the /models command.
  10. Select a Poolside model.
  11. Start a new chat and send a codebase question to confirm OpenCode responds with the selected Poolside model.