GetToken 文档

按主题配置 GetToken

把 API Key、base_url、Codex App、Codex CLI、OpenCode 和 CC Switch 拆成独立文档,按需阅读。

查看我的 API Key

登录后可直接查看当前账号的 GetToken API Key,再复制到 Codex 或 OpenCode 配置里。

工具配置

Codex App 配置

Codex App 本质上读取本机 .codex 配置,和 Codex CLI 使用同一套文件。

Codex App 和 Codex CLI 使用同一套本地配置目录。只要你把 ~/.codex/config.toml~/.codex/auth.json 配好,Codex App 通常也会读取到同一套配置。

配置目录

macOS / Linux:

text
~/.codex

Windows:

text
%USERPROFILE%\.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

auth.json

json
{
  "OPENAI_API_KEY": "<你的 GetToken API Key>"
}

如果 Codex App 看不到 GPT-5.5

运行模型列表修复脚本。

macOS / Linux:

bash
GETTOKEN_CODEX_MODEL='gpt-5.5' GETTOKEN_CODEX_SET_DEFAULT_MODEL='1' bash -c "$(curl -fsSL 'https://cdn.gettoken.dev/scripts/codex-fix-gpt55-catalog.sh')"

Windows PowerShell:

powershell
$env:GETTOKEN_CODEX_MODEL='gpt-5.5'; $env:GETTOKEN_CODEX_SET_DEFAULT_MODEL='1'; irm 'https://cdn.gettoken.dev/scripts/codex-fix-gpt55-catalog.ps1' | iex

截图占位:这里后续补充「Codex App 模型选择」截图。