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 Codex CLI

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

Updated
Last verified
Maintained by
GetToken Documentation Team

Codex CLI is OpenAI's command-line coding tool. GetToken currently recommends gpt-5.6-sol 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.6-sol"
review_model = "gpt-5.6-sol"
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"