Codex CLI supports custom model providers throughDocumentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
~/.codex/config.toml, so you can route requests to AI Stats without changing your local workflow.
Prerequisites
- An AI Stats API key.
- Codex CLI installed locally.
1) Set your API key
2) Configure Codex to use AI Stats
Create or update~/.codex/config.toml:
3) Start Codex
Verification
- Confirm your model id exists in Models before launching.
- Use Responses for the default Codex-style flow.
- If needed for compatibility, switch
wire_apitochatand use Chat Completions.
Troubleshooting
401 Unauthorized: check thatAI_STATS_API_KEYis set in the same shell runningcodex.model_not_found: fetch a current id from Models and updatemodel.- Provider-specific issues: follow Routing and fallbacks for failover behavior.