OpenRouter Blog ยท 2026-06-17

How to Use OpenAI Codex CLI with OpenRouter

Codex CLI supports custom OpenAI-compatible providers, so a small config.toml block routes it through OpenRouter. You get provider failover, usage tracking, and one key across every model, with no change to Codex itself.

Open original