/
Log in Create Account

OpenCode

To use TokenDock with OpenCode, you can configure your API provider in the opencode.json configuration file.

Configuration

Open your ~/.config/opencode/opencode.json file and add TokenDock as a custom OpenAI-compatible provider:

JSON
{
  "providers": {
    "tokendock": {
      "type": "openai",
      "baseURL": "https://tokendock.ai/v1",
      "apiKey": "your-tokendock-api-key"
    }
  },
  "defaults": {
    "provider": "tokendock",
    "model": "Qwen3.6-Plus-256k"
  }
}

Restart OpenCode or run a new command for the changes to take effect. OpenCode will now route requests through TokenDock.