截至 2026-04-24,部分 Codex 版本在自定义 API 模式下可能无法直接选择Documentation Index
Fetch the complete documentation index at: https://docs.bettertoken.ai/llms.txt
Use this file to discover all available pages before exploring further.
gpt-5.5。这是 Codex 本地模型目录尚未包含该模型导致的显示和选择限制,不代表 BetterToken 的 https://www.bettertoken.ai/v1 端点不可用。
你可以先添加一个本地 custom-models.json,让 Codex 识别 gpt-5.5,再在 ~/.codex/config.toml 中引用它。官方后续版本若已经内置支持 gpt-5.5,优先使用 Codex 的内置方案。
请使用页面提供的完整
custom-models.json。如果你要手动调整文件,请保留里面已有的模型条目和字段,只修改需要调整的模型配置。配置步骤
准备自定义模型配置文件
自定义模型配置文件路径为
~/.codex/custom-models.json。- 下载 JSON 文件
- 手动修改 JSON 文件
下载完整模型目录文件:下载 custom-models.json下载后,将文件放到 Codex 配置目录,并命名为
下载得到的是完整模型目录文件,后续步骤会在 Codex 配置里引用它。
custom-models.json。| 系统 | 目标路径 |
|---|---|
| macOS / Linux | ~/.codex/custom-models.json |
| Windows | C:\Users\YOUR_USER\.codex\custom-models.json |
在 Codex 配置中引用 JSON 文件
打开 Codex 主配置文件 Windows 示例:
~/.codex/config.toml,添加或合并以下配置。macOS / Linux 示例:model_catalog_json 使用本机绝对路径。Windows 路径写在 TOML 双引号字符串里时,建议把 \ 写成 \\。排查建议
如果仍然无法使用gpt-5.5,按顺序检查:
model_catalog_json是否是本机绝对路径custom-models.json是否保留了完整模型目录base_url是否为https://www.bettertoken.ai/v1wire_api是否为responsesBETTERTOKEN_API_KEY是否已在启动 Codex 的同一个终端会话中生效
gpt-5.5,可以删除 model_catalog_json,改回常规 Codex 接入文档 中的配置方式。