| 工具 | 下载地址 | 说明 |
|---|---|---|
| Git | https://git-scm.com/downloads/win | macOS 通常自带或 brew install git |
| Node.js | https://nodejs.org/zh-cn/download | 建议默认路径安装 |
💡 如果 Windows 提示找不到命令,可尝试 npx @openai/codex临时启动,或检查 npm 环境变量。
sk-... 密钥备用.codex 隐藏文件夹:| 系统 | 路径 |
|---|---|
| Windows | %USERPROFILE%\.codex(如 C:\Users\你的用户名\.codex) |
| macOS/Linux | ~/.codex |
.codex 文件夹内新建以下两个文件:config.tomldisable_response_storage = true
model_provider = "ToTokenAPI"
model = "gpt-5.2"
model_reasoning_effort = "xhigh"
model_verbosity = "high"
[features]
web_search_request = true
[model_providers.ToTokenAPI]
name = "ToTokenAPI"
base_url = "https://www.pickgo-tools.cn/v1"
wire_api = "responses"
requires_openai_auth = trueauth.json{
"OPENAI_API_KEY": "sk-请在此处粘贴您从 ToToken API 获取的真实密钥"
}⚠️ 注意:确保密钥格式正确,不要遗漏双引号; base_url必须精确到/v1路径后缀。
| 参数 | 值 | 说明 |
|---|---|---|
model_provider | ToTokenAPI | 模型提供商名称 |
model | gpt-5.2 | 使用的模型 |
model_reasoning_effort | xhigh | 推理强度(最高) |
model_verbosity | high | 输出详细程度 |
web_search_request | true | 开启联网搜索 |
wire_api | responses | API 格式 |
base_url | https://www.pickgo-tools.cn/v1 | ToToken API 地址 |