Claude Code
Published Google Cloud and Microsoft routes
Comparison
Prefer Claude Code for a Claude toolchain or provider requirement; prefer Codex for a ChatGPT workspace and individual cloud review. Otherwise trial the access you already have.
Updated October 9, 2026
Claude Code
Published Google Cloud and Microsoft routes
Codex
Paid subscription entry
Decision guide
Compare the strongest case for each tool and focus on the requirements that matter most to your workflow.
Starting point
Choose between the tools by weighing workflow fit, pricing, and the tradeoff that matters most.
When to switch
Choose Claude Code or Codex when it better matches the workflow requirements that matter most.
Comparison coverage
Open the full table when you need row-level reasons behind each workflow tradeoff.
Reader fit
Match the recommendation to your workflow first. Each card gives the better fit, then names the condition that should make you reconsider.
Claude Code
You need managed PR review on an individual subscription or under a zero-data-retention organization; Claude's managed review does not cover those cases.
Claude Code
You need managed PR review on an individual subscription or under a zero-data-retention organization; Claude's managed review does not cover those cases.
Codex
Your access policy permits only an OpenAI API key, but the required workflow depends on Codex cloud or its GitHub review integration.
Codex
Your access policy permits only an OpenAI API key, but the required workflow depends on Codex cloud or its GitHub review integration.
Decision evidence
Compare the factors that favor each tool; the full table includes every criterion and row-level verdict.
Key tradeoffs
The core capabilities that most directly shape what each product can do.
Model selection
How work actually gets done day to day once you are inside the product.
Browser and native-app verification
Long-session continuity
Plan structure, entry cost, and where the economics start to change.
API login and billing
Paid subscription entry
How well each tool fits into the rest of your stack and connected apps.
IDE integration
Shared work, team workflows, handoffs, and multi-user coordination.
Local diff review
Managed PR review for an individual
Admin control, compliance posture, permissions, and policy management.
Command permissions
Team purchase and governance
Model reach, device support, deployment flexibility, and platform coverage.
Cloud versus remote control
Published Google Cloud and Microsoft routes
The full table lists every criterion, both tool summaries, and the row-level verdict.
| Dimension | Claude Code | Codex | Winner |
|---|---|---|---|
Core product1 row(s) The core capabilities that most directly shape what each product can do. | |||
Model selectionPrimary | Claude Code maps the opus alias to Claude Opus 5.5 and, on the Anthropic API, the sonnet alias to Claude Sonnet 5.5; Fable 5.1 is also selectable. Account tier and provider govern access. | Codex offers GPT-6.1 Sol as its workhorse engine ($2/$10 API rate, rolling out from 2026-09-29) alongside GPT-6 Sol and GPT-6 Astra for frontier reasoning. Legacy options remain during rollout. | Tie |
Workflow5 row(s) How work actually gets done day to day once you are inside the product. | |||
Browser and native-app verificationPrimary | Browser integrations support web testing; native computer use has separate preview, plan, OS, and permission limits. | Desktop Computer Use supports GUI checks through a plugin in supported regions; OS and app permissions still apply. | Tie |
Long-session continuityPrimary | Auto memory is on by default and saves learning across sessions; model context access has separate limits. | Experimental notes and earlier-window search preserve same-task context; opt-in and eligible sign-in are required. | Tie |
Parallel worktree isolationPrimary | Desktop sessions can use automatic Git worktrees; the CLI also supports worktree isolation. | Managed Git worktrees support parallel chats and handoff to or from the Local checkout. | Tie |
Repository and terminal workPrimary | Reads and edits repositories, runs shell commands, and supports scripting through its CLI. | Works on local repositories, runs installed tools, and supports repeatable codex exec workflows. | Tie |
Automation and parallel agents | Subagents, scriptable CLI work, CI integrations, and local or cloud schedules serve different automation needs. | Scriptable CLI work, subagents, and desktop scheduled tasks are available; local schedules need the host running. | Tie |
Pricing3 row(s) Plan structure, entry cost, and where the economics start to change. | |||
API login and billingPrimary | An ANTHROPIC_API_KEY overrides subscription authentication and bills the API account ($4/$20 for Opus 5.5). | OpenAI API-key login bills the Platform account ($2/$10 for GPT-6 Sol); it does not fund Codex cloud or use ChatGPT plan credits. | Tie |
Paid subscription entryPrimary | Pro: $20 monthly, or $200 billed annually and displayed as $17/month; Claude Code is included. | Go: $8 monthly; Plus: $20 monthly. Limited free Codex access also exists; entitlements differ. | Codex |
Premium models and shared allowancesPrimary | Claude Code defaults to Opus 5.5 on Pro, Max, Team and Enterprise, with limits shared across Claude and rolling every five hours; Pro pays for Fable with usage credits, while Max can spend up to half its weekly limits on Fable. | Codex shares usage with ChatGPT Work; GPT-6.1 Sol costs a fifth of GPT-6 Astra's Codex credit rate (50 vs 250 credits per million input tokens), so routine work stretches the allowance further. | Tie |
Integrations1 row(s) How well each tool fits into the rest of your stack and connected apps. | |||
IDE integration | VS Code offers inline diffs and context; JetBrains connects a CLI session with editor context. | IDE extension supports local work, model selection, and review alongside the CLI and desktop app. | Tie |
Collaboration2 row(s) Shared work, team workflows, handoffs, and multi-user coordination. | |||
Local diff review | Desktop diff review and a local code-review command support inspection before accepting changes. | A review pane and review command support scoped findings plus staging, unstaging, or reverting changes. | Tie |
Managed PR review for an individual | Managed Code Review requires Team or Enterprise, remains a research preview, and excludes ZDR organizations. | Plus includes cloud integrations such as GitHub code review; API-key-only access does not include them. | Codex |
Governance2 row(s) Admin control, compliance posture, permissions, and policy management. | |||
Command permissionsPrimary | Allow, ask, and deny rules control tool actions; managed settings can constrain the workflow. | Sandbox controls and beta permission profiles constrain local commands; network enforcement needs the appropriate configuration. | Tie |
Team purchase and governance | Team Standard: $20/seat/month annually or $25 monthly; Enterprise combines a seat charge with API-rate usage. | Business: $20/user/month annually or $25 monthly, with a two-user minimum; Enterprise terms and controls are separate. | Tie |
Platform2 row(s) Model reach, device support, deployment flexibility, and platform coverage. | |||
Cloud versus remote controlPrimary | Web and cloud sessions can continue after disconnecting; Remote Control drives work on your machine. | Local and Worktree run on the selected computer; Cloud uses a configured remote environment. | Tie |
Published Google Cloud and Microsoft routesSituational | Documents Claude Code integrations with Google Cloud's Agent Platform and Microsoft Foundry, subject to surface and model availability. | Documents OpenAI and Amazon Bedrock routes plus configurable providers; another route needs its own compatibility assessment. | Claude Code |
Editorial analysis
See where each tool fits better and how pricing or workflow needs can change the choice.
Analysis note
Focus on the exceptions, pricing differences, and workflow constraints that could change the recommendation.
Claude Code and Codex are the two coding agents most developers compare first. Both read a repository, edit files, run commands and tests, and hand back a reviewable diff. Both run in a terminal, inside common editors, in a desktop app and in the cloud. The differences that decide a purchase are the models behind each agent, which subscription pays for the work, and how each product handles review, permissions and team administration.
Choose Claude Code when you want Anthropic's models, led by Claude Opus 5.5 and Sonnet 5.5, driving a shell-first workflow, or when your company already buys Claude plans or routes models through Amazon Bedrock, Google Cloud or Microsoft Foundry. Choose Codex when your team already pays for ChatGPT, wants OpenAI's GPT-6.1 Sol and GPT-6 Astra models, or wants cloud tasks and GitHub pull-request review included from the $20 Plus plan.
Prices and plan details in this guide were checked on the official Anthropic and OpenAI pricing pages and product documentation on September 30, 2026. Both vendors ship model and plan changes often, so confirm the current rollout for your account before you commit. Claude pricing, Codex pricing.
Claude Code is a command-line agent with extensions for VS Code and JetBrains, a desktop app and cloud sessions at claude.ai/code. In Claude Code, the opus alias resolves to Claude Opus 5.5 and the sonnet alias to Claude Sonnet 5.5 on the Anthropic API, and Fable 5.1 is available for the longest tasks. Effort levels run from low to max, with medium as the default for Opus 5.5 and Sonnet 5.5. Permissions use allow, ask and deny rules, and auto memory carries useful notes between sessions. Claude Code model configuration, Claude Code permissions.
Codex is one agent that runs in the ChatGPT desktop app, the Codex CLI, an IDE extension, on the web and on iOS, with Codex Cloud for delegated tasks. GPT-6.1 Sol, released on September 29, 2026, is the workhorse model on Plus and Pro, GPT-6 Sol remains available, GPT-6 Astra handles the hardest reasoning, and GPT-6 Luna covers light tasks. Codex uses sandboxing and permission controls, and repository guidance lives in AGENTS.md files. Codex models, Codex permissions.
Both agents support parallel work in Git worktrees, subagents, MCP servers, skills and plugins. Worktrees isolate checkouts but not shared services such as databases, so parallel agents still need clean test environments.
Capability | Claude Code | Codex |
|---|---|---|
Main surfaces | CLI, VS Code and JetBrains extensions, desktop app, cloud sessions | ChatGPT desktop app, CLI, IDE extension, web, iOS, Codex Cloud |
Flagship models | Opus 5.5, Sonnet 5.5, Fable 5.1 | GPT-6.1 Sol (rolling out), GPT-6 Astra, GPT-6 Sol, GPT-6 Luna |
Cheapest plan that includes the agent | Claude Pro, $20/month or $17/month billed annually | ChatGPT Free or Go ($8) with GPT-6 Luna in the desktop app; Plus ($20) for the full product |
Pull-request review | Managed Code Review is a Team and Enterprise research preview | GitHub PR review included from Plus |
Speed option | Fast mode on Opus 5.5 at $8/$40 per 1M tokens, paid from usage credits | Fast mode at 2.5x included usage; Ultrafast for GPT-6 Astra and GPT-6.1 Sol on Pro 500 |
Cloud providers | Anthropic API, Amazon Bedrock, Google Cloud, Microsoft Foundry | OpenAI API, ChatGPT sign-in, Amazon Bedrock |
Team plans | Team Standard $25 ($20 annual), Premium $125 ($100 annual) | Business from $25 ($20 annual) per seat |
Anthropic's models in a shell-first agent. Claude Code is built around the Claude models, and its model aliases, effort control and 1M-token context windows are tuned for them. Opus 5.5 costs $4 input and $20 output per million tokens on the API, with cache hits at $0.20, and Sonnet 5.5 costs $2/$10. For teams that prefer Claude's style on long refactors, that is the most direct route. Claude API pricing.
Cloud procurement flexibility. Claude Code documents routes through Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, so a company can keep inference inside an existing cloud contract. Model aliases can resolve differently on those providers, so confirm the exact model before rollout. Codex also supports OpenAI models through Amazon Bedrock, so AWS alone does not settle the choice. Claude Code platforms, Codex on Amazon Bedrock.
Seat types for heavy users. Claude Team lets an organization mix Standard seats with Premium seats that carry five times the usage. That suits a team where a few engineers run agents all day and most use them occasionally.
Cloud tasks and review from the $20 plan. ChatGPT Plus includes Codex on the web, in the CLI, in the IDE extension and on iOS, plus cloud integrations such as automatic GitHub code review and Slack. Claude's managed Code Review is limited to Team and Enterprise as a research preview, although local diff review works on every Claude plan. Claude Code Review.
Lower entry points. Codex has limited access on the Free plan and on Go at $8 a month, both using GPT-6 Luna in the desktop app. Claude Code starts at Claude Pro, and the free Claude plan does not include it.
A cheap workhorse model. GPT-6.1 Sol costs $2/$10 per million tokens with cached input at $0.10, and Codex credits bill it at 50 input, 2.5 cached and 250 output credits per million tokens. OpenAI's usage estimates give Plus about 15 to 160 local GPT-6.1 Sol messages per five hours, against 5 to 45 on GPT-6 Astra, so choosing Sol for routine work stretches the same allowance much further. OpenAI API pricing.
Both subscriptions share one usage pool across chat and coding. Claude's plans reset limits on a rolling five-hour window with weekly limits on top, and Claude Code draws from the same pool as Claude chat. ChatGPT Work and Codex share usage in the same way, and Pro plans currently have no five-hour limit. When you reach a limit, Claude lets paid users turn on usage credits billed at standard API rates, and ChatGPT Plus and Pro users can buy credits.
Monthly budget | Claude route | OpenAI route |
|---|---|---|
$0 | No Claude Code | ChatGPT Free: limited Codex with GPT-6 Luna |
$8 | — | ChatGPT Go: light Codex use with GPT-6 Luna |
$17–$20 | Claude Pro: Claude Code with Opus and Sonnet | ChatGPT Plus: full Codex with GPT-6 Sol and Luna, cloud review |
$100 | Claude Max 5x | ChatGPT Pro 100 |
$200 | Claude Max 20x | ChatGPT Pro 200 |
$500 | — | ChatGPT Pro 500 (highest Pro allowance, Ultrafast) |
Pay per token | Anthropic API: Opus 5.5 $4/$20, Sonnet 5.5 $2/$10 | OpenAI API: GPT-6.1 Sol $2/$10, GPT-6 Astra $10/$50 |
Claude Max comes in 5x and 20x versions of Pro usage, from $100 a month. Fable 5.1 on Claude plans works differently: Pro pays for it with usage credits, while Max can spend up to half of its weekly limits on Fable models. Fable plan access.
Authentication decides who pays. In Claude Code, an ANTHROPIC_API_KEY in the environment takes precedence over a subscription login and bills the API. Codex with an OpenAI API key bills at API prices and loses cloud features such as GitHub review. Run /status in either CLI before a long unattended job. Claude subscription authentication, Codex authentication.
Speed costs extra on both. Claude Code's Fast mode runs Opus 5.5 up to 2.5 times faster at $8/$40 per million tokens, is paid only from usage credits on subscription plans, and charges the whole existing context at the Fast input rate the first time you turn it on in a conversation. Codex's Fast mode uses included subscription usage at 2.5 times the Standard rate. Claude Code Fast mode.
Memory works differently. Claude Code's auto memory is on by default and saves useful notes across sessions. Codex offers memories as well, and GPT-6 Astra adds an experimental context-management mode in Codex that keeps notes across context windows within a task. Neither guarantees perfect recall, so durable project rules still belong in CLAUDE.md or AGENTS.md files that you review like code. Claude Code memory.
Desktop control is also bounded. Claude's computer use in the desktop app is an opt-in research preview for Pro and Max on macOS and Windows. Codex's Computer Use, browser control and Record & Replay are limited to specific regions. If your tests depend on driving a browser or native app, confirm that the feature works in your region and plan before building a workflow around it.
Review is where both products still need a human. Each agent can review its own diff or a pull request, but approving a permission prompt only allows an action; it does not show that the change is correct. Keep required tests and human approval on the merge step, whichever agent you choose.
If your main requirement is… | Start with | Why |
|---|---|---|
Claude models for long refactors | Claude Code | Opus 5.5 and Sonnet 5.5 with effort control and 1M-token context |
An existing ChatGPT subscription | Codex | Plus already includes the CLI, IDE extension and cloud tasks |
GitHub PR review on a personal plan | Codex | Included from Plus; Claude's managed review needs Team or Enterprise |
Inference inside Bedrock, Google Cloud or Foundry | Claude Code | Documented routes on all three providers |
Lowest cost for routine tasks | Codex | GPT-6.1 Sol at $2/$10 with $0.10 cached input |
A few heavy users in a larger team | Claude Code | Mix Standard and Premium Team seats |
Trying an agent for free | Codex | Limited access on ChatGPT Free and Go |
Test both agents on the same repository revision with three tasks: a bounded bug fix, a multi-file change and a longer refactor. Record the model, effort level and speed mode, the time to an acceptable diff, the number of retries, the tests that pass, and the usage or charges shown in each dashboard. Judge the result by cost per accepted change, not by cost per message.
Check permissions at every boundary: files, shell commands, network access, connected services and desktop control. Approving an action lets the agent act; it does not prove the change is correct, so inspect the diff and the test evidence before merging.
If both agents meet your bar, keep the one your organization already pays for. Switch only when the other one repeatedly saves enough review and rework time to justify a second subscription.
Evidence boundary
Editorial guidance grounded in official product sources.
FAQ
Claude Code defaults to Opus 5.5 on Pro, Max, Team, Enterprise, Anthropic API, and supported AWS/Google routes, while Foundry uses Sonnet 4.5. Organization policy and saved selections can override these defaults. Codex recommends the account's default Power setting rather than one universal model; its cloud documentation lists GPT-5.6 Sol. Check the active session, especially during Astra rollout.
No. The Codex model guide calls it experimental and off by default. Supported clients with ChatGPT Plus or Pro sign-in can opt in; Business, Enterprise, and API-key sign-in are excluded at launch. It preserves notes and searches earlier context within the same task, rather than creating an unlimited context window. The separate Codex Memories feature is also off by default.
No. On Claude Code 2.1.255 or later, fable resolves to Fable 5.1 unless overridden. Select it with /model fable or claude --model fable, then check the active model. A saved selection may affect later sessions, but Fable is not any plan's account-type default. Provider support, organization restrictions, and billing eligibility still apply.
No. Subscription access and API billing are separate. Claude Code uses a configured ANTHROPIC_API_KEY ahead of subscription credentials. Codex's OpenAI API-key sign-in bills the Platform account rather than ChatGPT plan usage or credits. Extra product usage credits also should not be treated as a general API balance.
No. A browser or phone can control a session whose repository and commands remain on a connected computer. Both products also offer cloud execution. Check the run location, required setup and secrets, model availability, and what happens when the host disconnects. Local execution alone does not guarantee offline model inference.
Start from the same revision and give each agent the same bounded task and acceptance checks. Try a bug fix, a multi-file change, and a UI regression if those reflect your work. Compare correctness, missed requirements, command behavior, review effort, elapsed time, and actual cost. This article reports official product evidence, not a hands-on head-to-head test.
Continue the decision
Use the product pages if you want to confirm current pricing, positioning, and product details before you commit.
Claude Code

AI Coding Assistants
Anthropic’s coding agent for terminal, IDE, web, desktop, and SDK workflows, powered by Claude Opus 5.5
Last verified October 12, 2026
Codex

AI Coding Assistants
OpenAI’s software engineering agent with GPT-6 Astra, GPT-6.1 Sol workhorse integration, and terminal workflows.
Last verified October 12, 2026
Share
Pass this page along
Copy the link or send it to the channel where your team compares tools, pricing, and tradeoffs.
Internal links
Open Claude Code's profile, pricing, and support pages alongside this comparison.
Open Codex's profile, pricing, and support pages alongside this comparison.