GetToken Docs

GetToken Documentation

Learn Codex step by step, from core concepts and installation to GetToken API access, tool configuration, and troubleshooting.

View my API Key

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

Tool Configuration

Configure OpenCode

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

Updated
Last verified
Maintained by
GetToken Documentation Team

OpenCode can connect to GetToken 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 GetToken API Key>"
      },
      "models": {
        "gpt-5.6-sol": {
          "name": "GPT-5.6 Sol",
          "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.