Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click the OpenAI Codex tile
Click Connect and complete the OAuth flow in your browser
Test the connection — kRouter auto-refreshes tokens from here on
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
cx/gpt-5.5How OpenAI Codex billing works with kRouter
OpenAI Codex connects with your existing subscription — kRouter signs in with OAuth and reuses the plan you already pay for, so there is no per-token bill. kRouter authenticates it via oauth. 21 models are routable as cx/<model>.
Through kRouter, OpenAI Codex serves chat and code completion and image generation, exposed on /v1/images/generations. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from OpenAI Codex is a one-line model change in your client rather than a rewrite.
OpenAI Codex models & pricing
Prices are USD per 1M tokens, cheapest first. You are not billed per token on this provider — the figures show what the same model costs elsewhere, which is what routing here saves you.
| Model | Route as | Input /1M | Output /1M |
|---|---|---|---|
| GPT 5.5 | cx/gpt-5.5 | $3.00 | $12.00 |
| GPT 5.5 Review | cx/gpt-5.5-review | $3.00 | $12.00 |
| GPT 5.4 | cx/gpt-5.4 | $3.00 | $12.00 |
| GPT 5.4 Review | cx/gpt-5.4-review | $3.00 | $12.00 |
| GPT 5.4 Mini | cx/gpt-5.4-mini | $3.00 | $12.00 |
| GPT 5.4 Mini Review | cx/gpt-5.4-mini-review | $3.00 | $12.00 |
| GPT 5.3 Codex (None) | cx/gpt-5.3-codex-none | $3.00 | $12.00 |
| GPT 5.3 Codex Spark | cx/gpt-5.3-codex-spark | $3.00 | $12.00 |
| GPT 5.5 Image | cx/gpt-5.5-image | $3.00 | $12.00 |
| GPT 5.4 Image | cx/gpt-5.4-image | $3.00 | $12.00 |
| GPT 5.3 Codex (Low) | cx/gpt-5.3-codex-low | $4.00 | $16.00 |
| GPT 5.3 Codex | cx/gpt-5.3-codex | $6.00 | $24.00 |
| GPT 5.3 Codex Review | cx/gpt-5.3-codex-review | $6.00 | $24.00 |
| GPT 5.3 Codex (xHigh) Review | cx/gpt-5.3-codex-xhigh-review | $6.00 | $24.00 |
| GPT 5.3 Codex (High) Review | cx/gpt-5.3-codex-high-review | $6.00 | $24.00 |
| GPT 5.3 Codex (Low) Review | cx/gpt-5.3-codex-low-review | $6.00 | $24.00 |
| GPT 5.3 Codex (None) Review | cx/gpt-5.3-codex-none-review | $6.00 | $24.00 |
| GPT 5.3 Codex Spark Review | cx/gpt-5.3-codex-spark-review | $6.00 | $24.00 |
| GPT 5.3 Image | cx/gpt-5.3-image | $6.00 | $24.00 |
| GPT 5.3 Codex (High) | cx/gpt-5.3-codex-high | $8.00 | $32.00 |
| GPT 5.3 Codex (xHigh) | cx/gpt-5.3-codex-xhigh | $10.00 | $40.00 |
OpenAI Codex links
OpenAI Codex FAQ
Is OpenAI Codex free through kRouter?
OpenAI Codex does not bill per token here — kRouter uses your existing subscription via OAuth, so the only cost is whatever you already pay OpenAI Codex directly. kRouter itself is MIT-licensed and free.
How do I use OpenAI Codex with Claude Code or Cursor?
Connect OpenAI Codex in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as cx/<model>.
Which OpenAI Codex models can kRouter route to?
21 models, including GPT 5.5, GPT 5.5 Review, GPT 5.4. Every one is addressed as cx/<model> from any client.
What happens when OpenAI Codex is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.