config.toml.
1
Install
2
Configure the provider
3
Start
Codex CLI requires the Responses protocol. Select a model and route that support
/v1/responses.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use MaxAPI in Codex CLI through a custom model provider.
config.toml.
Install
npm install -g @openai/codex
export MAXAPI_API_KEY="YOUR_API_KEY"
mkdir -p ~/.codex
Configure the provider
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"
Start
codex
/v1/responses.