Codex Pricing 2026: Free, $8 Go, $20 Plus, $100 Pro, Business Plans, Credits, Usage Limits

Codex plans: Free $0, Go $8, Plus $20, Pro $100 (5x) or $200 (20x), Business $20/user/mo annual. Codex credits cost 4 cents each. GPT-5.6 Luna API pricing was cut to $0.20/$1.20 per 1M tokens on July 30, 2026.

July 13, 2026 · 13 min read
Codex Pricing 2026: Free, $8 Go, $20 Plus, $100 Pro, Business Plans, Credits, Usage Limits

TL;DR

Codex is included in every ChatGPT plan: Free $0, Go $8/mo, Plus $20/mo, Pro from $100/mo with 5x or 20x limits, Business $20/user/mo on annual billing ($25 monthly), and Enterprise or Edu at custom pricing. There is no standalone Codex subscription. Usage is metered in credits. One credit costs 4 cents. On Plus, the published allowance is 10-100 GPT-5.6 Sol local messages per 5-hour window, 25-200 on Terra, and 250-2,000 on Luna.

An API key skips the windows and bills per token. GPT-5.6 Luna is $0.20/M input and $1.20/M output after the July 30, 2026 price cut. Terra is $2.00/$12.00. Sol is $5.00/$30.00. A multi-file refactor costs $2.40 on Sol and 10 cents on Luna.

$0-$200
Plan range, Free to Pro 20x
$100/mo
Pro 5x starting price
$0.04
Cost of one Codex credit
10-100
GPT-5.6 Sol msgs / 5h on Plus
What changed in the last month

OpenAI cut GPT-5.6 API prices on July 30, 2026. Luna dropped 80% to $0.20 input and $1.20 output per million tokens. Terra dropped 20% to $2.00 and $12.00. Sol held at $5.00 and $30.00. On July 12, 2026, OpenAI temporarily removed the 5-hour usage restriction for Plus, Business, and Pro plans, with no published end date. The weekly limits were not lifted. On July 31, 2026, OpenAI announced that GPT-5.4 and GPT-5.4 mini leave Codex for ChatGPT sign-in users on August 31, 2026, replaced by GPT-5.6 Terra and Luna. Plan and credit figures on this page come from OpenAI's pricing documentation at learn.chatgpt.com/docs/pricing.

Codex Plans and Prices

Codex ships inside ChatGPT Free, Go, Plus, Pro, Business, and Enterprise. Six tiers, plus an API key that needs no plan at all:

PlanPriceCodex AccessKey Additions
Free$0/moWeb, CLIQuick coding tasks. Lowest allowance, no credit top-ups
Go$8/moWeb, CLILightweight coding tasks. Cheapest paid tier
ChatGPT Plus$20/moWeb, CLI, IDE, iOS10-100 Sol msgs / 5h window. First tier that can buy credits
ChatGPT ProFrom $100/moEverything in Plus5x ($100) or 20x ($200) the Plus allowance
Business$20/user/mo annualEverything in Pro$25/user/mo monthly. Integrations, admin controls, workspace credits
Enterprise / EduCustomEverything in BusinessCustom contracts and pricing
API keyPer tokenCLI and direct model accessNo window limits, no weekly cap, no cloud features

Business, Edu, and Enterprise workspaces on flexible pricing can purchase workspace credits. Plus and Pro users buy credits individually. Free and Go cannot buy credits at all, which makes Plus the real floor for anyone who hits a limit mid-task.

Codex Plus: What $20 Per Month Buys

There is no product called Codex Plus. The tier is ChatGPT Plus at $20/month, and Codex is included in it. That $20 covers Codex on web, CLI, IDE, and iOS at one shared allowance.

  • Local messages: 10-100 per 5-hour window on GPT-5.6 Sol, 25-200 on Terra, 250-2,000 on Luna.
  • Cloud chats and code reviews: separate published allowances against the same five-hour window.
  • Credit top-ups: available. Plus and Pro users who reach a limit can buy credits instead of upgrading the plan.
  • Weekly limits: apply on top. OpenAI states that additional weekly limits may apply and publishes no numbers for them.

The ranges are wide because the limits are credit-based underneath. A one-line fix sits near the bottom. An agentic run that reads thirty files and writes ten sits near the top. Cheaper models get more messages because they burn fewer credits per token.

Codex Pro: The $100 and $200 Tiers

Pro no longer means $200. It starts at $100/month, and you pick a multiplier at checkout. The multiplier applies to the Plus allowance exactly, with no rounding:

  • Pro 5x, $100/mo: 50-500 GPT-5.6 Sol local messages per window, 125-1,000 on Terra, 1,250-10,000 on Luna.
  • Pro 20x, $200/mo: 200-2,000 on Sol, 500-4,000 on Terra, 5,000-40,000 on Luna.

$100 buys 5 Plus-units of allowance. $200 buys 20. Twice the price for four times the capacity. If you hit Pro 5x limits even occasionally, 20x is the cheaper marginal capacity.

Codex Usage Limits

OpenAI publishes per-model allowances in three columns: local messages per 5 hours, cloud chats per 5 hours, and code reviews per 5 hours. Local messages and cloud chats share one five-hour window. The published local-message allowances on the GPT-5.6 lineup:

PlanSol local msgs / 5hTerra local msgs / 5hLuna local msgs / 5h
Plus ($20)10-10025-200250-2,000
Pro 5x ($100)50-500125-1,0001,250-10,000
Pro 20x ($200)200-2,000500-4,0005,000-40,000
Business ($20/user)10-10025-200250-2,000
API keyUsage-basedUsage-basedUsage-based

Legacy models are still listed with their own allowances on Plus: 15-80 local messages on GPT-5.5, 20-100 on GPT-5.4, and 60-350 on GPT-5.4 mini. GPT-5.4 and GPT-5.4 mini leave Codex for ChatGPT sign-in users on August 31, 2026. Both stay available through the API and in Codex sessions authenticated with an API key.

The weekly limit is real and unpublished

OpenAI's pricing tables carry one footnote under every plan: additional weekly limits may apply. No numbers accompany it. That is the honest state of the documentation, and it is why community estimates of the weekly cap vary so widely. Treat the five-hour allowances as the only figures OpenAI stands behind.

The 5-hour window was temporarily removed in July

On July 12, 2026, Thomas Sottiaux, who leads Codex at OpenAI, announced on X that the company was temporarily removing the 5-hour usage limit restriction for all Plus, Business, and Pro plans. No end date was published, and OpenAI's pricing documentation still lists the five-hour tables as policy. The weekly limits stayed in place throughout.

The removal followed sustained complaints that the five-hour framing did not survive contact with a real repository. On the OpenAI developer forum, one Plus user documented the gap:

The product shows a '5 hours' usage limit/window, but in real work on a serious repository this allowance can be exhausted in about one hour, or after only a few tasks. Codex appears to consume usage even while reading project/system context at the start of a session.
Serdjio, OpenAI Developer Community forum (community.openai.com)

The mechanism behind the complaint is arithmetic. Limits are enforced in credits, and context-loading at the start of a session burns credits before the first edit. A 300k-token repo read costs 37.5 credits on Sol, or $1.50, against an allowance that a light user stretches across a whole afternoon. Plan for the window to return.

Codex Credits: Burn Rates Per Model

Credits are the unit Codex meters usage in. OpenAI publishes the exact burn rate per million tokens for every model:

ModelCredits / 1M inputCredits / 1M cached inputCredits / 1M output
GPT-5.6 Sol12512.5750
GPT-5.6 Terra505300
GPT-5.6 Luna50.530
GPT-5.5 (legacy)12512.5750
GPT-5.4 (legacy)62.56.25375
GPT-5.4 mini (legacy)18.751.875113

One credit costs 4 cents. Cross-reference any row against the API price list and the conversion falls out. Sol costs $5.00 per million input tokens at the API and 125 credits in Codex. Terra costs $2.00 and 50 credits. Luna costs $0.20 and 5 credits. Every row holds at exactly 4 cents. Credits are API token pricing in different units.

Three consequences follow from the table:

  • Luna burns a twenty-fifth of Sol on input and output alike. That is why Luna gets 250-2,000 Plus messages per window against Sol's 10-100.
  • Output burns 6x the input rate on every model. Test generation and scaffolding drain a window far faster than debugging and code review.
  • Cached input burns a tenth of fresh input. Long sessions in one repo benefit. Jumping between repos resets the advantage. Cache writes on 5.6-generation models bill at 1.25x the uncached input rate.

What a Codex Session Costs

The credit arithmetic is exact, so per-task costs are derivable from token volume. Input tokens times 125 plus output tokens times 750, per million, at 4 cents per credit, gives the Sol figure:

TaskApprox. tokens (in / out)Sol creditsCost on SolCost on Luna
Small bug fix50k / 5k10$0.40$0.02
Feature in 3-5 files150k / 15k30$1.20$0.05
Multi-file refactor300k / 30k60$2.40$0.10
Test generation pass100k / 40k42.5$1.70$0.07

Token volumes are estimates. The arithmetic is not. Running the same work on Luna costs a twenty-fifth as much, which is the single largest lever on a Codex bill and the one most people never pull. Test generation costs disproportionately more than its input size suggests because output burns 750 credits per million on Sol against 125 for input.

This also explains why two developers on the same plan report completely different experiences. One running small fixes gets 80 messages per window. One running 300k-token agentic refactors gets 10.

Codex API Pricing

Running Codex with an API key, or calling the models directly, bills per token with no subscription. Rates after the July 30, 2026 cut:

ModelInput / 1MCached input / 1MOutput / 1M
gpt-5.6-sol (flagship)$5.00$0.50$30.00
gpt-5.6-terra$2.00$0.20$12.00
gpt-5.6-luna$0.20$0.02$1.20
gpt-5.4-mini (legacy)$0.75$0.075$4.50

GPT-5.6 reached general availability on July 9, 2026 at $5/$30 for Sol, $2.50/$15 for Terra, and $1/$6 for Luna. Three weeks later, OpenAI cut Terra 20% and Luna 80% while holding Sol flat. Luna input is now 25x cheaper than Sol input. Cached-input reads keep the 90% discount on every model, and cache writes on 5.6-generation models bill at 1.25x the uncached input rate.

Codex CLI Pricing

Codex CLI is free software. You pay through one of two channels:

  • ChatGPT sign-in: included on every plan, Free and Go included. CLI usage draws from the same local-message allowance as Codex on web and IDE, so a heavy CLI session and a heavy web session compete for one budget.
  • API key: per-token billing at the rates above. No window limits, no weekly cap, no cloud features. Cost scales linearly with usage.

The CLI also supports custom model providers through config.toml (base_url, env_key, wire_api), so it can point at any Responses-compatible endpoint. Setup is in our Codex provider configuration guide.

Business and Enterprise

Business is $20/user/month on annual billing, or $25/user/month monthly. Its per-seat Codex allowance matches Plus exactly: 10-100 Sol local messages per window, 25-200 on Terra, 250-2,000 on Luna.

What Business and Enterprise add over individual plans is cloud features, GitHub, Slack, and Linear integrations, and admin controls. Business, Edu, and Enterprise workspaces on flexible pricing can also purchase workspace credits rather than per-seat top-ups. Earlier in 2026 Business offered pay-as-you-go Codex seats that billed for actual token usage. As of June 24, 2026, new pay-as-you-go seats are no longer available. Existing seats are unaffected.

Is Codex Free?

Yes. Codex is included in ChatGPT Free at $0/month, and Codex CLI works on Free with ChatGPT sign-in. OpenAI describes the Free tier as enough to explore Codex on quick coding tasks, which is an accurate description of its ceiling.

Two caveats. Free carries the lowest allowance of any plan. Free also cannot buy credits, so hitting a limit means waiting for the reset rather than paying to continue. Go at $8/month is the cheapest paid step up and is described as suitable for lightweight coding tasks. Plus at $20/month is the first tier that can buy credits mid-task.

There is no separate student price for Codex. Students use the same Free, Go, or Plus plans. Edu pricing covers institutions, not individuals.

Codex vs Claude Code Pricing

The subscription ladders mirror each other almost exactly. API pricing is where they diverged in July:

TierCodexClaude Code
EntryPlus $20/moPro $20/mo
5x limitsPro 5x $100/moMax 5x $100/mo
20x limitsPro 20x $200/moMax 20x $200/mo
TeamsBusiness $20/user/mo annualTeam per-seat pricing
Flagship API (in / out per 1M)Sol $5.00 / $30.00Opus tier $5.00 / $25.00
Mid-tier API (in / out per 1M)Terra $2.00 / $12.00Sonnet 5 $2.00 / $10.00

At matching sticker prices the subscription decision comes down to capability per dollar. On the API side the July 30 cut moved Terra below Anthropic's Sonnet tier on both input and output, and Luna at $0.20/$1.20 is the cheapest option on either side by a wide margin. Sol remains the most expensive flagship of the two on output. Full breakdowns are in Claude Code pricing, Codex vs Claude Code, and Claude vs ChatGPT.

Codex Subscription vs API Key

A Codex subscription buys a flat monthly bill and a hard ceiling. An API key buys no ceiling and a variable bill. The crossover depends entirely on which model you run.

  • On Sol: sessions cost $0.40 to $2.40, so Plus ($20/mo) breaks even at roughly 10 to 50 sessions a month and Pro 5x ($100/mo) at roughly 40 to 250.
  • On Luna: sessions cost 2 to 10 cents. Plus does not break even until several hundred sessions a month.

The API route fits developers who batch work into occasional deep sessions, teams building products on the models, and anyone who wants gpt-5.6-luna at $0.20/$1.20 for high-volume simple work. What you give up is cloud features, GitHub, Slack, and Linear integrations, and the predictable flat bill. What you gain is no five-hour window and no weekly cap.

Which Codex Plan to Pick

Free or Go ($0-$8/mo)

You want to evaluate Codex CLI or use it a few times a week. Free works for evaluation. Go at $8/month is the cheapest plan with usable headroom. Neither can buy credits when a limit lands.

Plus ($20/mo)

You code regularly but not in all-day agentic sprints. 10-100 Sol local messages per window covers most individual workflows, and 250 to 2,000 on Luna covers almost any of them. Credit top-ups handle the occasional overage without a plan change.

Pro 5x ($100/mo)

You hit Plus limits weekly. 50-500 Sol local messages per window, or 1,250-10,000 on Luna. This is the tier for daily multi-file agentic work.

Pro 20x ($200/mo)

You run parallel agents or sustained refactors. 200-2,000 Sol messages per window. Twice the price of Pro 5x for four times the capacity, so heavy users get better unit economics here.

Business or Enterprise

Your team needs integrations and admin controls. Business is $20/user/month annual, $25 monthly, at the Plus allowance per seat. Enterprise adds custom contracts.

API key

You run under 10 to 50 Sol sessions a month, you want Luna at $0.20/$1.20, or you need programmatic access with no window limits. For uncapped open-weight coding models, DeepSeek V4 Flash on Morph is $0.139/$0.278 per million tokens.

Pricing History

DateEvent
April 2025Codex CLI launched as a free, open-source tool
May 2025Codex agent launched, Pro and Enterprise only
June 2025Expanded to ChatGPT Plus users
September 2025API key access added for all OpenAI API customers
April 2, 2026Codex moved from per-message billing to token-based credits on Plus, Pro, and Business
April 2026Pro restructured to start at $100/mo, with 5x and 20x rate-limit options
June 24, 2026New Codex pay-as-you-go seats retired for Business plans; existing seats unaffected
July 9, 2026GPT-5.6 (Sol, Terra, Luna) reached general availability across ChatGPT, Codex, and the API
July 12, 2026OpenAI temporarily removed the 5-hour usage restriction for Plus, Business, and Pro; weekly limits unchanged
July 30, 2026GPT-5.6 price cut: Terra $2.50/$15 to $2.00/$12.00, Luna $1/$6 to $0.20/$1.20, Sol unchanged at $5/$30
August 31, 2026GPT-5.4 and GPT-5.4 mini leave Codex for ChatGPT sign-in users; both remain on the API

Skip the Usage Cap: Pay-Per-Token Open Models

If the recurring pain is the cap and not the price, the fix is a per-token API with no five-hour window and no weekly cap. Morph serves open-weight coding models on custom kernels through an OpenAI-compatible endpoint at https://api.morphllm.com/v1. You pay for the tokens you use, and nothing throttles a long refactor mid-session.

ModelInput / 1MOutput / 1MContext
GLM-5.2 (morph-glm52-744b)$1.10$4.101M
Qwen 3.5 397B (morph-qwen35-397b)$0.50$3.50256k
DeepSeek V4 Flash (morph-dsv4flash)$0.139$0.2781M

DeepSeek V4 Flash at $0.139/$0.278 costs 30% less than Luna on input and 4.3x less on output, with a 1M context window. It swaps into an existing Codex CLI or any OpenAI-SDK client by pointing base_url at the endpoint above and sending a Morph API key (setup in our Codex provider configuration guide). The tradeoff is honest. You give up OpenAI's cloud features, managed integrations, and the specific GPT-5.6 weights. You keep uncapped throughput and per-token billing. See the model lineup, full pricing, and the best open-source LLMs for coding.

Run coding models with no weekly cap

Open-weight models on custom kernels, OpenAI-compatible API, pay per token. GLM-5.2, Qwen 3.5, DeepSeek V4 Flash at api.morphllm.com/v1.

Frequently Asked Questions

Is Codex free?

Yes. Codex is included in the ChatGPT Free plan at $0/month, and OpenAI describes that tier as enough to explore Codex on quick coding tasks. Codex CLI works on Free with ChatGPT sign-in. Free carries the lowest allowance of any plan and cannot buy credit top-ups. Go at $8/month is the cheapest paid step up. Plus at $20/month is the first tier that can purchase additional credits when a limit is reached.

How much does Codex cost?

Codex is included in every ChatGPT plan: Free $0/month, Go $8/month, Plus $20/month, Pro from $100/month with a choice of 5x or 20x limits, Business $20/user/month on annual billing ($25 monthly), and Enterprise or Edu at custom pricing. There is no separate Codex subscription. An API key skips subscriptions entirely and bills per token: GPT-5.6 Luna is $0.20 per million input tokens and $1.20 per million output tokens.

What are the Codex plans?

Six tiers. Free ($0), Go ($8/month), Plus ($20/month), Pro (from $100/month, with 5x or 20x limit options), Business ($20/user/month annual, $25 monthly), and Enterprise/Edu (custom). An API key is a seventh path that bills per token with no plan. Plus covers Codex on web, CLI, IDE, and iOS. Pro multiplies the Plus allowance. Business and Enterprise add workspace credits, integrations, and admin controls.

How do Codex credits work?

Credits are the unit Codex meters usage in, and one credit costs 4 cents. Each model burns a published number of credits per million tokens: GPT-5.6 Sol is 125 input / 12.5 cached input / 750 output, Terra is 50 / 5 / 300, and Luna is 5 / 0.5 / 30. Output burns 6x the input rate on every model. Cached input burns a tenth of fresh input. Credit rates track API token prices exactly: Sol costs $5.00 per million input tokens at the API and 125 credits in Codex.

What does Codex Plus include?

Codex Plus is ChatGPT Plus at $20/month. It covers Codex on web, CLI, IDE, and iOS. OpenAI's published allowance is 10-100 local messages per 5-hour window on GPT-5.6 Sol, 25-200 on Terra, and 250-2,000 on Luna, with separate allowances for cloud chats and code reviews. Additional weekly limits apply, and OpenAI does not publish their numbers. Plus is the cheapest tier that can buy additional credits after reaching a limit.

What are the Codex usage limits?

OpenAI publishes per-model allowances against a shared five-hour window for local messages and cloud chats, plus unpublished weekly limits. On Plus and Business the window allows 10-100 local messages on GPT-5.6 Sol, 25-200 on Terra, and 250-2,000 on Luna. Pro 5x multiplies those by 5 and Pro 20x by 20. On July 12, 2026 OpenAI temporarily removed the 5-hour restriction for Plus, Business, and Pro, with no published end date. The weekly limits were not lifted.

What is the difference between Codex Pro 5x and Pro 20x?

Pro starts at $100/month for 5x and $200/month for 20x. The multiplier applies to the Plus allowance exactly. Plus allows 10-100 GPT-5.6 Sol local messages per window, so Pro 5x allows 50-500 and Pro 20x allows 200-2,000. On Luna, Plus is 250-2,000, Pro 5x is 1,250-10,000, and Pro 20x is 5,000-40,000. Twice the price buys four times the capacity, so 20x is the cheaper marginal capacity.

How much does a Codex session cost?

On GPT-5.6 Sol, a small bug fix (50k input, 5k output) burns 10 credits, or 40 cents. A multi-file refactor (300k input, 30k output) burns 60 credits, or $2.40. The same refactor on Luna costs 10 cents, because Luna burns 5 credits per million input tokens against Sol's 125. Output burns 6x the input rate, so test generation and scaffolding cost disproportionately more than debugging and code review.

How much does Codex CLI cost?

Codex CLI is free software and is included with ChatGPT sign-in on every plan, including Free ($0/month) and Go ($8/month). CLI usage draws from the same local-message allowance as Codex on web and IDE. The alternative is running the CLI with an OpenAI API key and paying per token: GPT-5.6 Terra costs $2.00/M input and $12.00/M output, with no window limits and no weekly cap.

How does the Codex Business plan work?

Business is $20/user/month on annual billing, or $25/user/month monthly. Its per-seat Codex allowance matches Plus. Business, Edu, and Enterprise workspaces on flexible pricing can purchase workspace credits. What Business adds over individual plans is cloud features, GitHub, Slack, and Linear integrations, and admin controls. As of June 24, 2026, OpenAI no longer offers new Codex pay-as-you-go seats on Business. Existing seats are unaffected.

Is the Codex API cheaper than a subscription?

Below roughly 10 to 50 sessions a month on Sol, yes. Sessions run 40 cents to $2.40 at Sol API rates, so the $20/month Plus breakeven sits in that range depending on session size. On Luna the API is cheaper far longer, because a session costs under 10 cents. Daily heavy users still come out ahead on a subscription. The API route removes the window and weekly limits entirely.

How does Codex pricing compare to Claude Code?

The subscription ladders mirror each other: a $20/month entry plan, a $100/month 5x tier, and a $200/month 20x tier on both sides. API pricing diverges after the July 30, 2026 cut. GPT-5.6 Sol output costs $30/M against $25/M for Claude's Opus tier. GPT-5.6 Terra at $2.00/$12.00 and Claude Sonnet 5 at $2.00/$10.00 are now nearly matched, with Sonnet cheaper on output. Luna at $0.20/$1.20 is the cheapest option on either side.