Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
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