How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How to Use OpenAI Codex CLI with OpenRouter

calendar_today June 17, 2026 person OpenRouter domain openrouter

Explains how to configure Codex CLI to route through OpenRouter instead of directly to OpenAI by editing config.toml to set base_url = “https://openrouter.ai/api/v1” and wire_api = “responses”. Lists three Codex model options with pricing: gpt-5.3-codex ($1.75/$14 per M tokens), gpt-5.1-codex ($1.25/$10), and gpt-5.1-codex-mini ($0.25/$2), and notes model slugs need the openai/ provider prefix plus the 5.5% credit fee with no provider markup.

open_in_new Read original post