config.toml 配置自定义供应商。
1
安装
2
配置供应商
3
启动
Codex CLI 要求使用 Responses 协议。请选择支持
/v1/responses 的模型和路由。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过自定义模型供应商在 Codex CLI 中使用 MaxAPI。
config.toml 配置自定义供应商。
安装
npm install -g @openai/codex
export MAXAPI_API_KEY="YOUR_API_KEY"
mkdir -p ~/.codex
配置供应商
model = "YOUR_MODEL_ID"
model_provider = "maxapi"
disable_response_storage = true
[model_providers.maxapi]
name = "MaxAPI"
base_url = "https://api.maxapi.ai/v1"
env_key = "MAXAPI_API_KEY"
wire_api = "responses"
启动
codex
/v1/responses 的模型和路由。