配置
在~/.codex/config.toml:
模型
推荐使用gpt-5.5,或 支持模型 中任何 OpenAI 兼容模型。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
把 Codex CLI 配置为使用 XMAI 的 OpenAI 兼容 Responses 入口。
~/.codex/config.toml:
model = "gpt-5.5"
model_provider = "XMAI"
[model_providers.XMAI]
name = "XMAI"
wire_api = "responses"
env_key = "XMAI_API_KEY"
base_url = "https://xmapi.site/v1"
export XMAI_API_KEY="your-XMAI-api-key"
codex
gpt-5.5,或 支持模型 中任何 OpenAI 兼容模型。