Codex App 配置

让 Codex App 读取 GetToken 的本机配置,并在需要时修复模型列表。

配置目录

Codex App 与 Codex CLI 共用配置:

  • macOS / Linux:~/.codex
  • Windows:%USERPROFILE%\.codex

如果你已经用 CLI 完成配置,重启 Codex App 后通常可以直接使用。

手动配置

在 config.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

在 auth.json 中写入:

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

模型列表缺少 GPT-5.6

运行对应系统的修复脚本,然后完全退出并重新打开 Codex App。

macOS / Linux:

GETTOKEN_CODEX_MODEL='gpt-5.6-sol' GETTOKEN_CODEX_SET_DEFAULT_MODEL='1' bash -c "$(curl -fsSL 'https://yinziai-public-1257376750.youidian.com/scripts/codex-fix-gpt55-catalog.sh')"

Windows PowerShell:

$env:GETTOKEN_CODEX_MODEL='gpt-5.6-sol'; $env:GETTOKEN_CODEX_SET_DEFAULT_MODEL='1'; irm 'https://yinziai-public-1257376750.youidian.com/scripts/codex-fix-gpt55-catalog.ps1' | iex

下一步

本页内容