TokenPool Docs

Configure TokenPool by topic

Short, focused guides for API Keys, base_url values, Codex App, Codex CLI, OpenCode, and CC Switch.

View my API Key

Sign in, reveal your current TokenPool API Key, then copy it into Codex or OpenCode.

Tool Setup

Configure OpenCode

OpenCode can use TokenPool through an OpenAI-compatible provider configuration.

Last updated 2026-05-12 | Maintained by TokenPool documentation team

OpenCode can connect to TokenPool through an OpenAI-compatible provider.

Config file

macOS / Linux:

text
~/.config/opencode/opencode.json

Windows:

text
%APPDATA%\opencode\opencode.json

Example

json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenAI",
      "options": {
        "baseURL": "https://api.clawto.link",
        "apiKey": "<your TokenPool API Key>"
      },
      "models": {
        "gpt-5.5": {
          "name": "GPT-5.5",
          "limit": {
            "context": 1000000,
            "output": 128000
          },
          "options": {
            "store": false
          }
        }
      }
    }
  }
}

Common mistakes

  • The field is baseURL, not base_url.
  • Do not add extra spaces to the API Key.
  • JSON files cannot contain comments.

Screenshot placeholder: OpenCode configuration file.