Codex CLI
通过 Responses API 让 Codex 使用 Webway。
1. 安装
npm install -g @openai/codex
2. 添加你的密钥
export WEBWAY_API_KEY="sk-ww-…"
3. 配置 Codex
将以下内容添加到 ~/.codex/config.toml:
model = "openai/gpt-5.6-terra"
model_provider = "webway"
[model_providers.webway]
name = "Webway"
base_url = "https://api.webway.sh/v1"
env_key = "WEBWAY_API_KEY"
wire_api = "responses"
requires_openai_auth = false
4. 运行
codex
Codex 会从 WEBWAY_API_KEY 读取密钥,并将请求发送到
POST /v1/responses。把 model 改成模型表中
任意兼容的、带提供方前缀的 ID。