工具配置
Codex App 配置
Codex App 本質上讀取本機 .codex 配置,和 Codex CLI 使用同一套文件。
Last updated 2026-05-12 | Maintained by TokenPool documentation team
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": "<你的 TokenPool API Key>"
}
如果 Codex App 看不到 GPT-5.5
運行模型列表修復腳本。
macOS / Linux:
bash
TOKENPOOL_CODEX_MODEL='gpt-5.5' TOKENPOOL_CODEX_SET_DEFAULT_MODEL='1' bash -c "$(curl -fsSL 'https://cdn.tokenpool.dev/scripts/codex-fix-gpt55-catalog.sh')"
Windows PowerShell:
powershell
$env:TOKENPOOL_CODEX_MODEL='gpt-5.5'; $env:TOKENPOOL_CODEX_SET_DEFAULT_MODEL='1'; irm 'https://cdn.tokenpool.dev/scripts/codex-fix-gpt55-catalog.ps1' | iex
截圖佔位:這裡後續補充「Codex App 模型選擇」截圖。