~/.codex/config.toml, so you can route requests to AI Stats without changing your local workflow.
If you also want Codex to read the live AI Stats documentation while it works, add the Docs MCP server as well.
Need reusable agent setup help as well as provider wiring? Install the public AI Stats skills from
AI-Stats/skills: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.