Claude Code vs Codex pricing starts at the same number. Claude Pro is $20/mo and includes Claude Code. ChatGPT Plus is $20/mo and includes Codex. The limits are what differ. Claude Code gives you a 5-hour session allowance and a weekly allowance, shared with claude.ai, and Anthropic does not publish either as a message count. Codex publishes a local message range per 5-hour window for each model, and says weekly limits may also apply.
The top of both price lists moved this fall. Claude's $200 plan is now Ultra. It has no 5-hour limit for verified accounts and allows 10x Pro usage per week. ChatGPT Pro reopened its $200 tier after the September 10 pause and added a $500 tier with Ultrafast mode. OpenAI says Pro plans currently have no five-hour limit. On Plus, GPT-6.1 Sol replaced GPT-6 Sol as the main Codex model at 15-160 messages per window, and GPT-5.5 left Codex on October 14.
This page is the plan decision guide: 5-hour windows, weekly caps, credit rates, and which subscription fits your usage. For the capability side (benchmarks, subagent architecture, failure modes), see the Codex vs Claude Code comparison.
Which Plan Should You Buy?
Both tools start at $20/mo. The right plan depends on how much you use it, which model you run, and whether your work is long interactive sessions or fanned-out cloud tasks.
| Your usage | Best plan | Cost | Why |
|---|---|---|---|
| Light, a few hours/week | Claude Pro or ChatGPT Plus | $20/mo | Both entry tiers cover light daily coding |
| Long continuous coding sessions | Claude Code on Pro/Max | $20-$200/mo | Budget depends on work done, not message count |
| Many parallel cloud tasks + GitHub reviews | Codex on Plus/Pro | $20-$100/mo | Pick a cheaper model (Sol, Luna) to stretch the window |
| Heavy daily use, one tool | Claude Max or ChatGPT Pro $100 | $100/mo | 5x Pro on Claude; no 5-hour limit on Codex |
| No 5-hour window | Claude Ultra or ChatGPT Pro | $100-$500/mo | Codex Pro drops the window at $100; Claude needs Ultra at $200 |
| Pay only for what you run | API key on either | Per-token | No cloud features in Codex API-key mode |
Codex Plus vs Claude Pro, Codex Pro vs Claude Max: Plan Matchups
Most searches compare one plan against its price twin. Here are the three price points side by side.
| Price | Claude plan | ChatGPT plan (Codex) |
|---|---|---|
| $20/mo | Pro: 5-hour session limit plus weekly limit, Claude Code included | Plus: 15-160 GPT-6.1 Sol messages per 5 hours, weekly limits may apply |
| $100/mo | Max: 5x Pro per 5 hours and per week, $100/mo API credits | Pro $100: no 5-hour limit |
| $200/mo | Ultra: no 5-hour limit, 10x Pro per week, $200/mo API credits | Pro $200: no 5-hour limit |
| $500/mo | No Claude plan at this price | Pro $500: adds Ultrafast mode |
Claude Pro vs Codex Plus is the closest match. Both cap you every 5 hours. At $100 the plans split: Codex Pro has no 5-hour limit, while Claude Max keeps one at 5x Pro. Claude only drops the 5-hour limit at $200 with Ultra. For a team, Claude Team standard seats and ChatGPT Business seats both cost $20 per seat per month on annual billing.
What Changed in October and November 2026: Claude Code vs Codex Plans and Limits
Checked against claude.com/pricing and OpenAI's Codex pricing page on November 8, 2026.
| Change | Tool | Effect on your plan |
|---|---|---|
| GPT-5.5 retired (Oct 14, 2026) | Codex | Gone from Codex with ChatGPT sign-in. API-key sessions keep it. |
| GPT-6.1 Sol and Terra | Codex | Plus allows 15-160 GPT-6.1 Sol or 35-285 GPT-6.1 Terra messages per 5 hours. Subscription Sol usage has no long-context surcharge. |
| Pro at $100, $200, $500 | Codex | The $200 tier is open again. $500 adds Ultrafast mode. Pro plans currently have no five-hour limit. |
| Claude Ultra at $200 | Claude Code | No 5-hour limit for verified accounts. 10x Pro usage per week. $200/mo in API credits. |
| Claude Max at $100 | Claude Code | 5x Pro usage per 5 hours and per week. Fable included up to half the weekly limit. $100/mo in API credits. |
| Fast and Ultrafast modes | Codex | Fast burns included usage at 2.5x Standard. Ultrafast on GPT-6 Astra and GPT-6.1 Sol burns it at 8x. |
The practical result: a 5-hour wall now only applies on the entry tiers. Codex removes it at $100. Claude removes it at $200. Weekly limits remain on every consumer tier of both tools.
What Changed in September 2026: Claude Code vs Codex Limits
Most Claude Code vs Codex limits pages were written before these dates. Each one changes the math.
| Date | Tool | Change |
|---|---|---|
| May 13 - Sep 13, 2026 | Claude Code | Temporary 50% boost to weekly limits on Pro, Max, Team, seat-based Enterprise. 5-hour limits untouched. |
| Aug 31, 2026 | Codex | GPT-5.4 and GPT-5.4 mini removed from Codex for ChatGPT sign-in. API keys still work. |
| Sep 3, 2026 | Codex | GPT-6 Astra launches in ChatGPT and Codex |
| Sep 10, 2026 | Codex | New sign-ups and upgrades to ChatGPT Pro $200 (20x) paused. Pro $100, Plus, Go, API unaffected. |
| Sep 14, 2026 | Claude Code | Weekly limits permanently 25% above pre-promotion baseline. Net 17% below the promotion. |
| Sep 14, 2026 | Codex | GPT-5.5 retirement announced: it leaves ChatGPT and Codex on Oct 14, 2026. GPT-5.3-Codex-Spark removed. |
| Sep 22, 2026 | Codex | GPT-6 Sol and Luna added to Codex for Plus, Pro, Business, Enterprise, Edu. Codex CLI 0.156.0 turns /usage into an analytics dashboard and turns voice on by default. |
| Sep 22, 2026 | Claude Code | Claude Opus 5.5 launches ($4/$20 per MTok on the API). Anthropic raises 5-hour limits on Pro, Max, Team, seat-based Enterprise and grants a saveable limit reset. |
| Sep 22, 2026 | Claude Code | v2.1.280: Opus 5.5 is the default Opus. Pro and Team Standard switch from Sonnet to Opus by default, so every subscription plan now starts on Opus 5.5. |
The Claude math: if the original weekly cap was 100 units, summer users had 150 and now have 125. The Codex math: GPT-6 Astra allows 5-45 messages per window on Plus, under a third of GPT-6 Sol's 15-150. Switching the Codex model changes your effective plan size more than switching plans does.
How Each Tool Meters Usage
The unit of metering is the most important difference for picking a plan. They do not compare one to one.
| Dimension | Claude Code | OpenAI Codex |
|---|---|---|
| Short-term window | Session limit, resets every 5 hours | 5-hour window, local message range per model |
| What counts | Model, conversation length, tool use, effort level | Messages, converted to credits by model and token count |
| Long-term cap | Weekly limit across all models | "Weekly limits may also apply"; none on Enterprise/Edu flexible pricing |
| Shared across surfaces | Claude and Claude Code share one limit | Local messages and cloud chats share one allowance |
| Over the limit | Wait, spend a saved limit reset, buy usage credits, move up a tier, or use an API key | Buy extra credits on Plus/Pro, redeem a banked reset, move up a tier, or use an API key |
| Check usage in the CLI | /cost shows session spend on API billing; plan limits and resets live in Settings > Usage | /status, or /usage (analytics dashboard since CLI 0.156.0) |
The 5-Hour Window, Explained
Both tools reset a short-term allowance every 5 hours. What fills it is where they diverge.
Claude Code: a session budget, not a message count
Anthropic describes the Max plan as a session-based usage limit that resets every five hours, with Max at five times Pro's allowance. Ultra, the $200 tier, has no 5-hour limit for verified accounts and a weekly allowance of 10x Pro. It does not convert that to prompts. Anthropic says usage varies with conversation length, model choice, tool use, and effort level. An Opus 5.5 session with high effort and many tool calls drains the window faster than a short Sonnet session. That matters more now: since v2.1.280 (September 22, 2026) Claude Code starts Pro and Team Standard users on Opus instead of Sonnet. The 5-hour limits were not part of the weekly promotion that ended September 13, so they did not drop. On September 22 Anthropic raised them on Pro, Max, Team, and seat-based Enterprise with the Opus 5.5 launch. It did not publish the size of the increase.
Codex: messages per model, cloud included
Codex publishes a range per model. OpenAI's estimate for ChatGPT Plus is 5-45 GPT-6 Astra local messages per 5 hours, then GPT-6.1 Sol 15-160, GPT-6.1 Terra 35-285, GPT-6 Sol 15-150, GPT-6 Luna 350-3,000. Cloud chats share the same allowance, so a heavy cloud run eats into your local budget. Pro plans currently have no five-hour limit. GPT-5.4 and GPT-5.4 mini left Codex for ChatGPT sign-in on August 31, 2026, and GPT-5.5 followed on October 14.
Limit resets on both sides
Both vendors now hand out banked resets. With Opus 5.5, Anthropic gave subscribers a limit reset they can save. One reset refills the 5-hour or the weekly limit. You redeem it with "Reset for free" in Settings > Usage on the web or Claude Desktop, not from the Claude Code terminal, and it can expire. Claude Code v2.1.234 also added "Continue automatically at usage limit", which resumes work when the limit resets. Codex has banked rate-limit resets for Plus and Pro since June 2026, and its CLI rate-limit banner links to them.
Codex on ChatGPT Plus: Messages per 5-Hour Window by Model
Upper end of OpenAI's published range. Higher is more headroom before the cap.
GPT-6 Luna: 350-3,000. Pro plans currently have no five-hour limit. Source: OpenAI Codex pricing, November 2026.
Claude Code Weekly Caps by Plan
Claude Code adds a weekly limit on top of the 5-hour session limit. Anthropic publishes multipliers, not hours. Treat any page that quotes a fixed number of Sonnet or Opus hours per week as a third-party estimate.
| Plan | Price | Usage vs Pro | Weekly cap |
|---|---|---|---|
| Pro | $20/mo ($17/mo annual) | 1x | Yes, all models |
| Max | $100/mo | 5x per 5 hours and per week | Yes, all models |
| Ultra | $200/mo | 10x per week, no 5-hour limit | Yes, all models |
| Team premium seat | $100/seat/mo annual ($125 monthly) | 5x a standard seat | Yes |
Since September 14, 2026, weekly caps on Pro, Max, Team, and seat-based Enterprise are 25% above their pre-May baseline.
Codex Messages, Cloud Tasks, and Credit Rates
Codex meters messages per 5-hour window, then converts model usage into credits. Plus and Pro users who hit the limit can buy additional credits instead of upgrading.
| Model | Plus $20 | Standard Business |
|---|---|---|
| GPT-6 Astra | 5-45 | 5-45 |
| GPT-6.1 Sol | 15-160 | 15-160 |
| GPT-6.1 Terra | 35-285 | 35-285 |
| GPT-6 Sol | 15-150 | 15-150 |
| GPT-6 Luna | 350-3,000 | 350-3,000 |
Pro plans ($100, $200, $500) currently have no five-hour limit, so OpenAI prints no per-window range for them. Weekly limits may also apply. Enterprise and Edu on flexible pricing have no fixed rate limits. API-key users pay per token and get no cloud features.
Codex credit rates per 1M tokens
| Model | Input | Cached | Output |
|---|---|---|---|
| GPT-6 Astra | 250 | 25 | 1,250 |
| GPT-6.1 Sol | 50 | 2.5 | 250 |
| GPT-6.1 Terra | 25 | 1.25 | 125 |
| GPT-6 Sol | 50 | 5 | 250 |
| GPT-6 Luna | 2.5 | 0.25 | 12.5 |
| GPT-5.6 Sol | 100 | 10 | 500 |
| GPT-5.6 Terra | 50 | 5 | 300 |
| GPT-5.6 Luna | 5 | 0.5 | 30 |
A typical GPT-5.6 Sol task uses 2-15 credits. Fast mode uses included usage at 2.5x the Standard rate and purchased credits at 2x; Ultrafast uses 8x and 6x. GPT-6 Astra output costs 5x GPT-6 Sol per token, which is why its message range is under a third of Sol's. Credit rates are 25x the API dollar price, with no cache-write charge. Source: OpenAI Codex pricing.
Plan-by-Plan Pricing
| Tier | Claude Code (via Claude) | Codex (via ChatGPT) |
|---|---|---|
| Free | Not included on free Claude.ai | ChatGPT Free $0 (quick tasks) |
| Entry paid | Pro $20/mo ($17/mo annual) | Plus $20/mo (Go $8/mo for lightweight tasks) |
| Heavy | Max $100/mo (5x Pro) | Pro $100/mo (no 5-hour limit) |
| Maximum | Ultra $200/mo (no 5-hour limit, 10x Pro weekly) | Pro $200/mo or $500/mo (Ultrafast mode) |
| Team | Team $20/seat annual ($25 monthly); premium $100/$125 | Business $20/user annual ($25 monthly) |
| Pay-per-token | Console (API) account; Opus 5.5 $4/$20 per MTok | OpenAI API key (no cloud features) |
The ChatGPT Pro $100 tier launched April 9, 2026. OpenAI paused new $200 sign-ups on September 10 and now sells Pro at $100, $200, and $500. Claude Max and Ultra also include monthly API credits ($100 and $200) for the Claude Platform. See Morph pricing if you want to run open-source models per token instead of paying for a subscription window.
Install and Sign In
Claude Code
Native install (recommended). macOS, Linux, and WSL:
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell:
irm https://claude.ai/install.ps1 | iexAlso available via brew install --cask claude-code (stable channel) or claude-code@latest, winget install Anthropic.ClaudeCode, signed apt/dnf/apk repos, and npm install -g @anthropic-ai/claude-code. The npm package needs Node.js 22 or later as of v2.1.198. Native installs auto-update; set "autoUpdatesChannel": "stable" to stay about a week behind latest. Requirements: macOS 13.0+, Windows 10 1809+, Ubuntu 20.04+, Debian 10+, Alpine 3.19+, 4 GB+ RAM. The current release is v2.1.319 (November 6, 2026). Since v2.1.280 (September 22, 2026), Claude Code defaults to Claude Opus 5.5 on every subscription plan.
OpenAI Codex
Mac and Linux:
curl -fsSL https://chatgpt.com/codex/install.sh | shWindows:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"Also npm install -g @openai/codex or brew install --cask codex. Run codex and choose "Sign in with ChatGPT." Surfaces: the CLI, IDE extensions for VS Code, Cursor, and Windsurf, a desktop app (codex app; since July 9, 2026 Codex lives inside the ChatGPT desktop app), and Codex Web at chatgpt.com/codex. Codex CLI 0.156.0 (September 22, 2026) turns /usage into an analytics dashboard with account usage, token totals, and plugin and skill activity. It also adds an optional fullscreen /tui, turns voice conversations on by default (F8 toggles), and enables worktree support by default. The current stable release is 0.167.0 (November 6, 2026).
MCP support
Both support Model Context Protocol servers. Claude Code v2.1.280 added CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH, which caps each MCP tool description (default 2,048 characters). Lowering it trims the tool schema sent on every turn, which saves context and, on a subscription, some of your window.
If You Run Models Yourself Instead
Subscription caps exist because frontier models are expensive to serve. If your workflow is API-driven, or you want open-source models with no 5-hour window or weekly cap, the numbers that matter are per-token cost and output fidelity.
Morph serves DeepSeek with 16-bit (bf16) activations and no fp8/int8 activation quantization. Many serverless providers quantize activations to fp8 to cut cost, which shifts outputs away from the reference weights. Morph also runs codegen-specific speculative decoding and custom inference kernels tuned for coding agents.
| Option | Input / 1M | Output / 1M | Notes |
|---|---|---|---|
| morph-dsv4flash (DeepSeek V4 Flash) | $0.141953125 | $0.399625 | 16-bit activations, codegen-tuned |
| Codex GPT-6 Astra (credit-based) | 250 credits | 1,250 credits | Draws from the 5-hour window |
| Claude Opus 5.5 (API) | $4.00 | $20.00 | Default Opus in Claude Code v2.1.280 |
See Morph models and pricing for the full list.
Decision Framework
| Your situation | Buy this | Reason |
|---|---|---|
| Solo dev, a few hours a day | Claude Pro $20 or ChatGPT Plus $20 | Entry tier covers light daily coding either way |
| Long continuous pairing sessions | Claude Code (Pro, then Max or Ultra) | Max is 5x Pro; Ultra drops the 5-hour limit |
| Background cloud tasks + GitHub review | Codex (Plus, then Pro $100) | Cloud and local share one allowance; pick Sol or Luna to stretch it |
| Need the cheapest paid Codex tier | ChatGPT Go $8/mo | Lowest Codex entry price, lightweight tasks |
| Want no 5-hour window | ChatGPT Pro $100 or Claude Ultra $200 | Both drop the 5-hour limit; weekly limits still apply |
| Hit the cap mid-task often | Move up a tier or buy credits | Max / Pro $100, or extra Codex credits on Plus/Pro |
| No usage window at all | API key, or run open models on Morph | Per-token billing, no 5-hour or weekly cap |
Frequently Asked Questions
What is the 5-hour limit in Claude Code and Codex?
Both tools reset a usage allowance every 5 hours. Claude Code's session limit is shared with claude.ai and is not published as a message count; it depends on model, conversation length, tools, and effort level, and a weekly limit across all models sits on top. Codex publishes local message ranges per 5-hour window for each model. On ChatGPT Plus that is 15-160 GPT-6.1 Sol messages or 5-45 GPT-6 Astra messages, and cloud chats draw from the same allowance. The top tiers drop the window. Claude Ultra ($200/mo) has no 5-hour limit for verified accounts, and OpenAI says ChatGPT Pro plans ($100, $200, $500) currently have no five-hour limit. Weekly limits still apply on both.
Which plan should I buy for Claude Code vs Codex?
For light use, both start at $20/mo: Claude Pro includes Claude Code, ChatGPT Plus includes Codex. For heavy use, Claude Max is $100/mo with 5x Pro usage per 5 hours and per week, and ChatGPT Pro starts at $100/mo with no 5-hour limit. At $200, Claude Ultra removes the 5-hour limit and gives 10x Pro usage per week plus $200/mo in API credits. ChatGPT Pro also sells $200 and $500 tiers; the $500 tier adds Ultrafast mode.
Is Codex cheaper than Claude Code?
At list price they match at $20, $100, and $200. Codex adds Go at $8/mo below and Pro $500 above. What differs is work per dollar. Codex on Plus allows 15-160 GPT-6.1 Sol messages per 5 hours but only 5-45 on GPT-6 Astra, so model choice changes your effective price by about 3x. One Hacker News user on September 22, 2026 estimated about $200 of API-equivalent usage per week on Codex Pro $100 versus about $5,000 on Claude Max $200.
Does Codex have usage limits like Claude Code?
Yes. Codex has a 5-hour window with per-model local message ranges, and OpenAI's pricing page says weekly limits may also apply. Only Enterprise and Edu on flexible pricing have no fixed rate limits. Plus and Pro users who hit the limit can buy extra credits instead of upgrading. Claude Code has a 5-hour session limit plus a weekly limit across all models on Pro, Max, Team, and seat-based Enterprise. Past the limit, Claude users can buy usage credits (formerly extra usage) or spend a saved limit reset.
Did Claude Code weekly limits change in 2026?
Yes. Anthropic ran a 50% weekly-limit boost from May 13 through September 13, 2026. From September 14, weekly limits are permanently 25% higher than before the promotion on Pro, Max, Team, and seat-based Enterprise. Anthropic's own framing: compared to the promotion, that is a 17% reduction. 5-hour session limits were not part of the promotion. Anthropic then raised 5-hour limits on the same plans on September 22, 2026, with the Claude Opus 5.5 launch, and gave subscribers a limit reset they can save and use later. The current pricing page lists Max at 5x Pro usage every 5 hours and every week, and Ultra at 10x Pro usage every week with no 5-hour limit.
Does the free Claude.ai plan include Claude Code?
No. Claude Code requires a Pro, Max, Team, Enterprise, or Console (API) account. Claude Pro is $17/mo billed annually ($200 up front) or $20/mo monthly and includes Claude Code. Codex is different: OpenAI lists Codex on ChatGPT Free ($0) and Go ($8/mo) for quick and lightweight tasks, with fuller use on Plus, Pro, Business, Edu, and Enterprise.
How many messages do you get with Codex per 5-hour window?
It depends on the model. On ChatGPT Plus and Standard Business seats, OpenAI estimates 5-45 GPT-6 Astra messages, 15-160 GPT-6.1 Sol, 35-285 GPT-6.1 Terra, 15-150 GPT-6 Sol, and 350-3,000 GPT-6 Luna per 5 hours. Pro plans currently have no five-hour limit, so OpenAI no longer prints per-window counts for them. GPT-5.5 left Codex for ChatGPT sign-in on October 14, 2026. A typical GPT-5.6 Sol task uses 2-15 credits, and Plus or Pro users who hit limits can buy more.
What does Claude Code cost per month compared to Codex?
Entry tier is $20/mo for both. Claude Max is $100 (5x Pro) and Claude Ultra is $200 (no 5-hour limit, 10x Pro per week). ChatGPT Pro is $100, $200, or $500, all without a 5-hour limit. Team plans: Claude Team standard seats are $20/seat/mo annual ($25 monthly), and ChatGPT Business is $20/user/mo annual ($25 monthly). Both also support API-key billing per token; Codex has no cloud features in API-key mode.
Is Codex better than Claude Code?
On price and limits it depends on the model you run. GPT-6 Astra burns Codex's allowance 3x faster than GPT-6 Sol on the same plan. On capability, this page does not rank them; the Codex vs Claude Code comparison covers benchmarks, subagents, and failure modes. Since v2.1.280 (September 22, 2026), Claude Code defaults to Claude Opus 5.5 on every subscription plan, including Pro and Team Standard. The current releases are Claude Code v2.1.319 and Codex CLI 0.167.0, both from November 6, 2026. Codex on Plus runs GPT-6.1 Sol and GPT-6 Luna.
What is the Claude Ultra plan?
Ultra is Claude's $200/mo tier. It includes everything in Max, no 5-hour limit for verified accounts, 10x Pro usage every week, and $200 a month in API credits for the Claude Platform. Max is $100/mo with 5x Pro usage every 5 hours and every week, Fable included up to half the weekly limit, and $100 a month in API credits. Both include Claude Code.
Source for the Hacker News figure: joshstrange on HN, September 22, 2026. For benchmarks and architecture, read the Codex vs Claude Code comparison.
Run DeepSeek and Open Models Without a Usage Window
Morph serves DeepSeek with full 16-bit activations and codegen-tuned speculative decoding. morph-dsv4flash is $0.141953125/1M input and $0.399625/1M output, billed per token with no 5-hour or weekly cap. WarpGrep, the agentic code search model, gives any coding agent better context for fewer tokens.
Sources
- OpenAI Codex pricing and limits (checked Nov 8, 2026)
- Codex CLI releases (0.167.0)
- OpenAI Codex: install and surfaces
- TechCrunch: OpenAI puts Pro subscriptions on hold (Sept 10, 2026)
- TechCrunch: GPT-6 Sol and Luna (Sept 22, 2026)
- Claude pricing: Pro, Max, Ultra (checked Nov 8, 2026)
- Claude Team and Enterprise pricing
- Anthropic: What is the Max plan?
- Anthropic: Claude Code weekly limits promotion and Sept 14 change
- BleepingComputer: Claude Code weekly limits cut 17% vs promotion
- Claude Code releases (v2.1.319)
- Anthropic: Claude Opus 5.5 (Sept 22, 2026, 5-hour limit increase)
- Anthropic: What is a limit reset?
- OpenAI Codex models (GPT-6 Sol, Luna; GPT-5.5 retirement)
- Claude Code: setup and requirements
