GetToken Docs

Configure GetToken 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 GetToken API Key, then copy it into Codex or OpenCode.

Tool Setup

Configure Codex CLI

Install Codex CLI, run the setup script, or write config.toml and auth.json manually.

Codex CLI is OpenAI's command-line coding tool. GetToken currently recommends gpt-5.5 with the Responses API wire format.

Install Codex CLI

bash
npm install -g @openai/codex

Verify:

bash
codex --version

Automatic setup

macOS / Linux:

bash
GETTOKEN_API_KEY="<your GetToken API Key>" \
GETTOKEN_BASE_URL="https://api.clawto.link" \
bash -c "$(curl -fsSL 'https://cdn.gettoken.dev/scripts/codex-install-config.sh')"

Windows PowerShell:

powershell
$env:GETTOKEN_API_KEY='<your GetToken API Key>'; $env:GETTOKEN_BASE_URL='https://api.clawto.link'; irm 'https://cdn.gettoken.dev/scripts/codex-install-config.ps1' | iex

Manual setup

Create ~/.codex/config.toml:

toml
model_provider = "OpenAI"
model = "gpt-5.5"
review_model = "gpt-5.5"
model_reasoning_effort = "xhigh"
disable_response_storage = true
network_access = "enabled"
windows_wsl_setup_acknowledged = true
model_context_window = 1000000
model_auto_compact_token_limit = 900000

[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.clawto.link"
wire_api = "responses"
requires_openai_auth = true

Create ~/.codex/auth.json:

json
{
  "OPENAI_API_KEY": "<your GetToken API Key>"
}

Verify

bash
codex "Reply with one sentence if this configuration works"