On this page
- Codex vs Claude Code: the short answer
- What Codex and Claude Code are in late 2026
- OpenAI Codex
- Claude Code
- Plans and pricing: ChatGPT vs Claude
- How do the usage limits compare?
- Codex
- Claude Code
- Which gives more usage per dollar?
- Models: GPT-6.2 vs Claude Opus 5.5
- Feature by feature
- How do Codex and Claude Code differ in daily use?
- The safety model
- Hooks and customization
- Cloud work and Git hosts
- Where you start
- Which is cheaper for your workload?
- Pick Codex if
- Pick Claude Code if
- Use both if
- Frequently asked questions
- Related reading
Codex vs Claude Code comes down to what you already pay for and how you work. Pick Claude Code if you want the more configurable harness and Claude Opus 5.5 under a flat fee. Pick OpenAI Codex if you already pay for ChatGPT, work on native Windows, or want a top tier with no five-hour limit.
On paper they look a lot alike. Both start at $20 a month, both run in a terminal, an IDE, a desktop app and the cloud, and both support MCP, hooks, subagents and the same AGENTS.md instructions file.
This comparison covers Codex as it stands after OpenAI launched GPT-6.2 on 17 November and folded the Codex app into the new ChatGPT desktop app, and Claude Code after Anthropic renamed its Max plans on 30 October.
Codex vs Claude Code: the short answer
- Price. Both start at $20 a month. Codex also has an $8 Go plan (GPT-6 Luna in the desktop app only) and a $500 Pro tier. Among individual plans, only Claude Pro has an annual price: $200 a year.
- Models. Codex runs OpenAI models only, with GPT-6.2 Sol as the default. Claude Code runs Claude models only, with Opus 5.5 as the default.
- Limits. Both $20 plans have a five-hour window plus weekly limits. Every Codex Pro tier currently has no five-hour limit; on Claude, only Ultra ($200) drops it, and only once your account is verified.
- Safety defaults. Codex's documented default for local work is a sandboxed mode enforced by the operating system on macOS, Linux and native Windows. Claude Code leans on permission modes, with a classifier model reviewing actions in its default auto mode, and its sandbox is optional and not available on native Windows.
- Extensibility. Both have MCP, subagents, skills and plugins. Claude Code's hooks cover more events and handler types.
What Codex and Claude Code are in late 2026
OpenAI Codex
Codex is OpenAI's coding agent, included in ChatGPT plans. The old Codex desktop app has become part of a new ChatGPT desktop app for macOS and Windows: Codex is its own view there, with its own history, next to Chat and Work, OpenAI's agent for longer, multi-step jobs that end in a finished deliverable. OpenAI's help center says existing Codex chats and projects carry over and Codex workflows haven't changed.
The other surfaces:
- Codex CLI, open source under Apache-2.0. Version 0.172.0 shipped on 24 November.
- The IDE extension for VS Code and compatible editors, including Cursor and Windsurf (now Devin Desktop). JetBrains IDEs integrate Codex through AI Chat, and Xcode lets you pick Codex as its agent.
- Codex Cloud, which runs tasks on OpenAI-managed machines so they continue while your computer sleeps. You start and follow them from the desktop app, the web or the ChatGPT mobile app.
- Integrations with GitHub, GitLab (beta), Slack and Linear, according to OpenAI's docs.
Claude Code
Claude Code is Anthropic's coding agent, included in every paid Claude plan. One engine powers the terminal CLI, the VS Code extension (which also installs in Cursor), a JetBrains plugin, the Code tab of the Claude desktop app (macOS and Windows, Linux in beta), and cloud sessions at claude.ai/code and in the Claude mobile app. Your CLAUDE.md, settings and MCP servers work across all of them.
You can move work between surfaces: claude --cloud starts a cloud session from the terminal, claude --teleport pulls one back down, /desktop hands a terminal session to the desktop app, and Remote Control lets you steer a local session from your phone.
Plans and pricing: ChatGPT vs Claude
| Price point | ChatGPT (Codex) | Claude (Claude Code) |
|---|---|---|
| $0 | Free: limited Codex with GPT-6 Luna in the desktop app, subject to rollout | Free: no Claude Code |
| $8 | Go: same Luna access as Free, with more general ChatGPT usage | No equivalent |
| $20 | Plus: Codex on web, CLI, IDE and iOS; five-hour and weekly limits; credits to extend | Pro: $20 monthly or $200 a year; Claude Code everywhere; five-hour and weekly limits |
| $100 | Pro 100: no five-hour limit currently; no Ultrafast; $100 a month in API credits | Max: 5x Pro per five hours and per week; Fable up to 50% of weekly limits; $100 a month in API credits |
| $200 | Pro 200: more usage than Pro 100; Ultrafast for GPT-6.2 Sol in Codex; $200 a month in API credits | Ultra: 10x Pro per week; no five-hour limit once verified; $200 a month in API credits |
| $500 | Pro 500: the most usage; Ultrafast on GPT-6.2 Astra and Sol; $500 a month in API credits | No equivalent |
| Teams | Business: $20 per user billed annually, $25 monthly, two or more users | Team: standard seats $25 ($20 annually), premium seats $125 ($100 annually), 2 to 150 seats |
| Enterprise | Contact sales; credit-based flexible pricing | $20 a seat billed annually, 20-seat minimum, plus usage at API rates |
A few details that change the math:
- Annual billing. OpenAI sells Plus and Pro monthly only (its help center says Pro has no annual option), and Business is the only plan with a listed annual price. On Claude, Pro has an annual option ($200, which Anthropic presents as $17 a month), while Max and Ultra are monthly only.
- API credits. Both companies now throw API credits into their bigger plans, and neither lets you spend them on the coding agent. Claude Max and Ultra include $100 and $200 a month for building on the Claude Platform, which Anthropic says can't pay for interactive Claude Code or extra usage in the Claude apps. ChatGPT Pro 100, 200 and 500 include $100, $200 and $500 a month for one linked API organization. OpenAI says that grant doesn't raise ChatGPT or Codex allowances, doesn't cover Codex run with an API key, and doesn't roll over.
- Cloud machines. Codex Cloud gives Plus tasks 2 vCPUs, 8 GiB of memory and 8 GiB of disk, and Pro, Business and Enterprise tasks 4 vCPUs, 16 GiB and 32 GiB. Claude's cloud sessions cost nothing beyond your plan's usage.
How do the usage limits compare?
Codex
On Plus and standard Business seats, OpenAI estimates local messages per five-hour window by model:
| Model | Local messages per five hours |
|---|---|
| GPT-6.2 Astra | 6 to 50 |
| GPT-6.2 Sol | 17 to 180 |
| GPT-6.1 Sol | 15 to 160 |
| GPT-6.1 Terra | 35 to 285 |
| GPT-6 Luna | 350 to 3,000 |
Weekly limits may apply on top, and OpenAI calls all of these figures estimates. Cloud tasks share the same allowance and can use more of it than local messages. Reviews you trigger on GitHub count as Code Review usage, while reviews run locally come out of your general limits.
Pro tiers currently have no five-hour limit, though weekly limits may still apply. OpenAI doesn't express Pro allowances as multiples of Plus. Its help center says Pro 500 has the highest included usage, that Pro 100 and Pro 500 now get twice their previous Work and Codex allowance, and that all Pro 200 subscribers share one allowance after a planned reduction was canceled.
Faster speeds cost more allowance. Fast mode uses included usage at 2x to 2.5x the standard rate, and Ultrafast at 6x to 8x. When you run out, Plus and Pro subscribers can buy credits, or run local sessions with an API key at standard API rates.
Claude Code
Claude Code shares your plan's limits with Claude on the web, desktop and mobile.
- Pro: a five-hour session limit and a weekly limit.
- Max: 5x Pro per five hours and per week, plus a separate weekly limit for Fable models.
- Ultra: 10x Pro per week and a separate Fable limit. Verified accounts have no five-hour limit; new accounts get a temporary one until Anthropic verifies them from account and payment history.
If Claude Code hits the five-hour limit mid-response, a small wrap-up allowance can let it finish the current step. After that you can wait, upgrade, turn on usage credits billed at API rates, or sign in with a Claude Console account and pay API rates directly. /status shows what's left.
Which gives more usage per dollar?
Nobody can answer that with numbers, because neither company publishes its allowances in tokens. The structural differences are clearer:
- At $100, Codex Pro 100 has no five-hour window, while Claude Max does.
- At $200, both drop the five-hour window, Claude only after verification.
- Above $200, only OpenAI sells a bigger plan. On Claude, extra usage means usage credits at API rates.
Models: GPT-6.2 vs Claude Opus 5.5
| Codex | Claude Code | |
|---|---|---|
| Default model | GPT-6.2 Sol (default since CLI 0.171.0) | Opus 5.5, at medium effort |
| Strongest model | GPT-6.2 Astra | Fable 5.2 (usage credits on Pro; up to half the weekly limit on Max and Ultra) |
| Cheaper options | GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna | Sonnet 5.5, Haiku 5.5 |
| Context window | 500,000 tokens by default on Sol, 272,000 on Astra, configurable up to 1M | 1M tokens by default on current models |
| Effort levels | Light (Low in the CLI), Medium, High, Extra High, Max, and Ultra (which uses subagents) | low, medium, high, xhigh, max |
| API list price per million tokens | GPT-6.2 Sol: $2 input, $0.10 cached, $10 output. GPT-6.2 Astra: $8, $0.40, $40 | Sonnet 5.5: $2 input, $0.10 cache read, $10 output. Opus 5.5: $4, $0.20, $20. Fable 5.2: $8, $0.20, $40 |
OpenAI positions Astra for the hardest work and Sol for everyday tasks. Reporting on the launch, 9to5Mac relayed OpenAI's claim that Sol at maximum effort came within half a point of Astra on Cognition's FrontierCode 2.0 benchmark at about a fifth of the cost. That's a vendor figure, not an independent test.
On list price, Sonnet 5.5 and GPT-6.2 Sol match, and Opus 5.5 costs half as much as GPT-6.2 Astra per token. Two caveats: the companies use different tokenizers, so a million tokens isn't the same amount of code on each, and Anthropic charges extra to write to its prompt cache, while OpenAI's API price list has no cache-write line at all.
Feature by feature
| Feature | Codex | Claude Code |
|---|---|---|
| Surfaces | ChatGPT desktop app, CLI, IDE extension, JetBrains and Xcode integrations, Codex Cloud on web and mobile | CLI, VS Code and forks, JetBrains plugin, Claude desktop app, web, mobile |
| Instructions file | AGENTS.md, global and per directory, with AGENTS.override.md and a 32 KiB default cap |
CLAUDE.md, or an existing AGENTS.md, plus auto memory |
| Local sandbox | Sandboxed workspace-write is the documented default: Seatbelt on macOS, bubblewrap (installed separately) on Linux and WSL2, a Windows sandbox on native Windows |
Off by default; /sandbox turns it on. Seatbelt on macOS, bubblewrap on Linux and WSL2; not on native Windows |
| Approvals | on-request or never, with an optional reviewer agent (auto_review) |
Six permission modes; auto mode (classifier review) is the default for interactive sessions |
| Cloud tasks | Codex Cloud VMs; GitHub and GitLab.com repositories | Cloud sessions on Anthropic VMs; GitHub for cloning and pull requests |
| MCP | STDIO and Streamable HTTP servers, with OAuth; one config shared by the app, CLI and IDE | Supported, with servers shared across surfaces |
| Hooks | 14 events; command and MCP-tool handlers; new hooks must be reviewed and trusted | More than 30 events; command, HTTP, MCP-tool, prompt and experimental agent handlers |
| Subagents | Built-in default, worker and explorer; custom agents as TOML files in .codex/agents/ |
Built-in Explore, Plan and general-purpose; custom agents as Markdown files in .claude/agents/; up to 20 at once by default |
| Skills and plugins | Skills, and plugins that can bundle skills, MCP servers and hooks | Skills and plugins |
| Code review | @codex review and automatic reviews on GitHub; GitLab in preview; /review locally |
/code-review on any plan, Ultrareview in the cloud; automatic GitHub Code Review on Team and Enterprise |
| Scripting | codex exec |
claude -p, plus GitHub Actions and GitLab CI/CD integrations |
| Other ways to pay | An OpenAI API key at standard rates, without cloud features | A Console API key, Amazon Bedrock, Google Cloud or Microsoft Foundry |
How do Codex and Claude Code differ in daily use?
The safety model
The two start from opposite ends. Codex draws a boundary first: its docs describe workspace-write with on-request approvals as the lower-risk local preset, which lets the agent edit and run routine commands inside your project and asks before it reaches beyond it. Codex can also route approval requests to a reviewer agent instead of you.
Claude Code decides per action. In auto mode, a separate classifier model reviews each action and blocks risky ones such as piping a download into a shell, force pushes, production deploys or mass deletion in cloud storage, and your allow, ask and deny rules take precedence. The sandbox is an optional second layer around shell commands. Anthropic's docs warn that auto mode cuts prompts but doesn't guarantee safety.
If you work on native Windows, this difference is concrete: Codex sandboxes commands there, and Claude Code doesn't.
Hooks and customization
Both can block a tool call before it runs. Claude Code's hooks are broader: more than 30 events, from session start to worktree creation and model switches, and handlers that can call an HTTP endpoint, ask a model for a one-off decision or spin up a checking agent. Codex supports command and MCP-tool handlers, and parses prompt and agent handlers without running them yet. Codex also makes you review and trust each non-managed hook before it runs, and asks again if the hook changes.
Subagents work similarly in both: a main agent spawns helpers with their own context and model, and gets a summary back. Codex's docs recommend them for read-heavy work and warn that parallel edits can conflict. Claude Code runs custom subagents in the background by default and lets each one carry its own tools, permission mode, hooks and MCP servers.
Cloud work and Git hosts
Codex Cloud works with GitHub and GitLab.com repositories but not self-hosted GitHub Enterprise Server, and keeps a task's VM state recoverable for up to seven days. OpenAI's docs say the legacy Codex Cloud experience, which still carries Code Review and the GitHub and Linear integrations, will be deprecated, with no date given.
Claude's hosted cloud sessions need GitHub to clone and open pull requests, with GitHub Enterprise Server supported on Team and Enterprise plans. You can upload a repository from another host as a bundle, but the session can't push back to it. In exchange you get auto-fix, which watches a pull request and responds to CI failures and review comments, and projects, which coordinate several cloud sessions on one body of work.
Where you start
Codex's home is now the ChatGPT desktop app. OpenAI's help center says the Codex view can't be selected in ChatGPT on the web or mobile, though Codex Cloud tasks can be started and followed there, and desktop Codex chats are reachable from the mobile app's Remote tab. Claude Code's home is wherever you open it, and the terminal CLI is the most complete surface.
Which is cheaper for your workload?
- Occasional use. At $20 the two are level. Claude Pro is cheaper if you pay yearly ($200), and ChatGPT Go at $8 covers light work if GPT-6 Luna in the desktop app is enough.
- One agent all day. At $100, Codex Pro 100 has no five-hour window, so long sessions aren't interrupted mid-afternoon. Claude Max has five-hour windows at 5x Pro's size, and lets Fable 5.2 use up to half the weekly limit.
- Several agents in parallel. At $200, both drop the five-hour window (Claude after verification). Claude Ultra gives 10x Pro per week, and Pro 200 adds Ultrafast for GPT-6.2 Sol.
- More than a $200 plan. Only Codex has a bigger tier, Pro 500. On Claude, you continue on usage credits at API rates.
- Pay per token. With an API key, Sonnet 5.5 and GPT-6.2 Sol share a list price, and Opus 5.5 is half the price of GPT-6.2 Astra per token.
Pick Codex if
- You already pay for ChatGPT and want coding included.
- You develop on native Windows and want sandboxed commands without WSL2.
- You run agents most of the day and want a $100 plan with no five-hour window, or a $500 plan.
- Your repositories are on GitLab.com and you want hosted cloud tasks.
- You prefer an open-source CLI.
Pick Claude Code if
- You want Claude Opus 5.5 and access to Fable 5.2 under a subscription.
- You want the most control over the agent: six permission modes, a classifier-based auto mode, and hooks for nearly every lifecycle event.
- You want a dedicated JetBrains plugin, or you switch between editors and the terminal.
- You want a yearly price on the entry plan.
Use both if
You don't have to choose for good. Both read AGENTS.md, so one instructions file can serve both. GitHub offers Claude Code and Codex as third-party agents on paid Copilot plans (in public preview), and Zed and Devin Desktop can host both through the Agent Client Protocol. For the wider field, see the best AI coding agents in 2026.
Frequently asked questions
Is Codex or Claude Code better?
Neither wins outright. Claude Code has the more configurable harness and includes Claude Opus 5.5, while Codex sandboxes commands by default, including on native Windows, and offers Pro plans without a five-hour limit.
Is Codex included in ChatGPT Plus?
Yes. Plus ($20 a month) includes Codex on the web, CLI, IDE extension and iOS, with five-hour and weekly limits, and even Free and Go get limited GPT-6 Luna access in the desktop app, subject to rollout.
Does Claude Code work on the free Claude plan?
No. Claude Code needs a paid plan: Pro ($20, or $200 a year), Max ($100), Ultra ($200), Team or Enterprise, or a Claude Console account billed at API rates.
Which has higher usage limits, Codex or Claude Code?
Neither company publishes allowances in tokens, so they can't be compared directly. Structurally, Codex Pro has no five-hour limit from $100, Claude Ultra drops it at $200 for verified accounts, and only OpenAI sells a $500 tier.
Can Codex and Claude Code share the same instructions file?
Yes. Codex reads AGENTS.md natively, and Claude Code can read an existing AGENTS.md in place of a CLAUDE.md.
Related reading
- The best AI coding agents in 2026: nine agents ranked, with prices and a pick-this-if guide.
- Claude vs Cursor: Harness & Plans showdown: Claude Code against Cursor feature by feature.
- Claude Pro vs Cursor Pro: the $20 tier, including what replaced Cursor Pro.
- Claude Max vs Cursor Pro+: Max and Ultra against Cursor's power-user plans.
Sources
- Codex pricing, OpenAI
- Codex models, OpenAI
- Codex changelog, OpenAI
- Codex overview, OpenAI
- Sandboxing, Codex docs, OpenAI
- Hooks, Codex docs, OpenAI
- Subagents, Codex docs, OpenAI
- AGENTS.md, Codex docs, OpenAI
- MCP, Codex docs, OpenAI
- Cloud environments, Codex docs, OpenAI
- Code review, Codex docs, OpenAI
- Codex IDE extension, OpenAI
- Codex, OpenAI
- ChatGPT pricing, OpenAI
- About ChatGPT Pro tiers, OpenAI Help Center
- ChatGPT Work and Codex, OpenAI Help Center
- Moving to the new ChatGPT desktop app, OpenAI Help Center
- openai/codex, GitHub
- OpenAI upgrades ChatGPT and Codex with new GPT-6.2 Astra and Sol models, 9to5Mac
- OpenAI rolls out GPT-6.2 Astra and GPT-6.2 Sol, SiliconANGLE
- API credits benefit for eligible ChatGPT subscriptions, OpenAI Help Center
- API pricing, OpenAI
- Plugins, Codex docs, OpenAI
- Non-interactive mode, Codex docs, OpenAI
- Plans & pricing, Anthropic
- Monthly API credits for Max, Ultra, and Team plans, Claude Help Center
- What is the Ultra plan?, Claude Help Center
- Use Claude Code with your Pro, Max, or Ultra plan, Claude Help Center
- Anthropic renames Claude Max plans and drops Ultra's five-hour limit, The Next Web
- Claude Code overview, Claude Code Docs
- Model configuration, Claude Code Docs
- Permission modes, Claude Code Docs
- Sandboxing, Claude Code Docs
- Hooks reference, Claude Code Docs
- Create custom subagents, Claude Code Docs
- Use Claude Code in the cloud, Claude Code Docs
- Code Review, Claude Code Docs
- Pricing, Claude Platform Docs
- Copilot plans, GitHub
- External agents, Zed Docs
- Windsurf is now Devin Desktop, Devin Blog
Was this helpful?
Thanks, noted. It helps decide what gets updated first.


