← All models

Best Model for Codex CLI

With ChatGPT sign-in, OpenAI recommends GPT-6.1 Sol for complex coding and agentic work and GPT-6 Luna for focused, repeatable tasks. GPT-5.5 retires from Codex on October 14, 2026 (it stays on the API), and GPT-5.4, GPT-5.4 Mini and GPT-5.3-Codex are already gone for ChatGPT sign-in. The GPT-5.6 tiers below remain selectable during the GPT-6 rollout.

Read the full Codex review → · updated 2026-10-17

Run any of these models in your agent

Or let the router send each step to the cheapest model that can do it, on providers we vet for price, uptime and speed. Plans from $19 a month.

OpenAI Codex CLI setup →See plans
#1GPT-6.1 SolOpenAI · $4.40/1M · 1.1M ctx

OpenAI's recommended Codex model for complex coding: ties GPT-6 Astra at 58.2% on Terminal-Bench 4.0 at a fifth of the API price.

Overall 92/100 · Value 58Full breakdown →
#2GPT-6 AstraOpenAI · $22/1M · 1.1M ctx

OpenAI's most capable model, for the hardest work. It spends a ChatGPT plan's Codex allowance much faster than Sol or Luna.

Overall 92/100 · Value 41Full breakdown →
#3GPT-6 LunaOpenAI · $0.22/1M · 1.1M ctx

The efficient option for focused, repeatable tasks, and OpenAI's suggestion on the Free and Go plans.

Overall 73/100 · Value 89Full breakdown →
#4GPT-5.6 SolOpenAI · $4.40/1M · 1.1M ctx

The strongest GPT-5.6 tier, for hard coding and research when GPT-6.1 Sol isn't available to your account yet.

Overall 84/100 · Value 54 · 53% community winFull breakdown →
#5GPT-5.6 TerraOpenAI · $5.00/1M · 1.1M ctx

OpenAI's balance of speed, capability and cost for everyday work such as routine code changes.

Overall 82/100 · Value 52 · 51% community winFull breakdown →
#6GPT-5.6 LunaOpenAI · $0.50/1M · 1.1M ctx

A fast, economical option for focused or repetitive steps: extraction, categorizing and short edits.

Overall 71/100 · Value 76 · 70% community winFull breakdown →

What 100 Codex requests cost on each pick

A typical request sends 99,534 input tokens, 87% of them read from cache, and a median session runs 16 requests. Measured on pooled coding-agent requests through our gateway (79,301 requests from 75 users; Codex alone has fewer than 50 users, so its traffic is pooled), Sep 13 to Oct 12, 2026, priced at each vendor's list rates.

Model100 requestsMedian sessionMonth of regular use
GPT-6.1 Sol$6.74$0.74$90.04
GPT-6 Astra$41.25$4.49$583
GPT-6 Luna$0.41$0.045$5.83
GPT-5.6 Sol$16.50$1.80$233
GPT-5.6 Terra$8.40$0.92$118
GPT-5.6 Luna$0.84$0.092$11.83

Month of regular use = the median user active on 5 or more days (1,478 requests in 30 days). Methodology · All models ranked by cost per request

Best model for Codex under $19, $49 or $99 a month

The highest-rated model whose list-price cost for a month of regular use (1,478 requests) stays under each budget. Heavier months cost proportionally more.

Monthly budgetBest model that fitsEst. month
Under $19GPT-6 Luna$5.83
Under $49GPT-6 Luna$5.83
Under $99GPT-6.1 Sol$90.04

"Highest-rated" uses our editorial quality and agentic scores; candidates are current models that Codex runs with a checked vendor price.

FAQ

Which model does Codex CLI use by default?
It depends on your Codex version and config. With ChatGPT sign-in, OpenAI recommends GPT-6.1 Sol for complex work and GPT-6 Luna for focused tasks; set model in ~/.codex/config.toml to choose.
Can I still use GPT-5.5 in Codex?
Not with ChatGPT sign-in after October 14, 2026. OpenAI suggests GPT-6 Sol on Plus, Pro, Business, Enterprise and Edu, and GPT-6 Luna on Free and Go. Codex on your own API key can still use GPT-5.5.
Can Codex CLI run non-OpenAI models?
Yes, through a custom provider in ~/.codex/config.toml that serves the Responses API, though Codex is tuned for OpenAI's models. For a fully model-agnostic terminal agent, Aider, Cline, or OpenCode run Claude, Gemini, or open-weight models.
How much do 100 Codex requests cost?
At vendor list prices, 100 average coding-agent requests cost: GPT-6.1 Sol $6.74, GPT-6 Astra $41.25, GPT-6 Luna $0.41, GPT-5.6 Sol $16.50, GPT-5.6 Terra $8.40, GPT-5.6 Luna $0.84. Measured on real coding-agent traffic through the Standard Compute gateway (Sep 13 to Oct 12, 2026), priced with each request's own token counts and cache reads.
What is the best model for Codex on a $19, $49 or $99 monthly budget?
For a month of regular use (1,478 requests, the median in our data), the highest-rated model that fits under $19: GPT-6 Luna (about $5.83); under $49: GPT-6 Luna (about $5.83); under $99: GPT-6.1 Sol (about $90.04). Heavier months cost proportionally more.

The agent matters as much as the model. Compare AI agents →

Every model on this page runs on Standard Compute

Standard Compute

Current frontier models Claude Fable 5.1 · GPT-6 Astra

More intelligence
per dollar.

Each step goes to the cheapest model that can do it, on providers we vet for price, uptime and speed, with automatic fallback when one fails.

Compliance
Opt-in rules keep a company, team or key on European or US providers
Privacy
We don’t train on your prompts or store them

Fixed monthly plans from $19 · cancel anytime

7-day fair refund Free trial, no card Billing by Stripe4,100+ agent users