Skip to content
Home

Codex CLI

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.

ItemStatus
OdiRouter compatible proxySupported
Base URLhttps://www.odirouter.ai/v1
API keyOdiRouter API key

In Codex CLI or a similar CLI model provider configuration, use:

FieldValue
ProviderOpenAI Compatible
Base URLhttps://www.odirouter.ai/v1
API KeyYOUR_API_KEY
ModelAn OdiRouter LLM model ID
Окно терминала
curl -sS "https://www.odirouter.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{
"role": "user",
"content": "Reply with: OdiRouter OpenAI-compatible API works"
}
]
}'
SymptomFix
CLI still calls the old providerCheck the active model provider and Base URL
CLI ignores Base URLRestart the CLI or confirm the config file path
401 from OdiRouterUse an OdiRouter API key, not an OpenAI API key
Model not foundQuery /models and use the exact OdiRouter model ID