OdiRouter’s compatible proxy can be used directly for Codex CLI workflows. Set the Base URL to the unified proxy and use an OdiRouter API key.
| Item | Status |
|---|
| OdiRouter compatible proxy | Supported |
| Base URL | https://www.odirouter.ai/v1 |
| API key | OdiRouter API key |
In Codex CLI or a similar CLI model provider configuration, use:
| Field | Value |
|---|
| Provider | OpenAI Compatible |
| Base URL | https://www.odirouter.ai/v1 |
| API Key | YOUR_API_KEY |
| Model | An OdiRouter LLM model ID |
curl -sS "https://www.odirouter.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
"content": "Reply with: OdiRouter OpenAI-compatible API works"
| Symptom | Fix |
|---|
| CLI still calls the old provider | Check the active model provider and Base URL |
| CLI ignores Base URL | Restart the CLI or confirm the config file path |
401 from OdiRouter | Use an OdiRouter API key, not an OpenAI API key |
| Model not found | Query /models and use the exact OdiRouter model ID |