On this pageStart with the account you already have

Codex CLI vs Claude Code: Workflow, Permissions and Costs

GauravXtrusio10 min read

Short answer

Codex CLI and Claude Code can read a repository, edit files and run commands. Choose by the account and model you can use. Check the limits your team needs for tool access. Then review the changes and tests. A fair trial uses the same small task in each tool.

Professional reviewing code at a laptop while comparing Codex CLI and Claude Code
Photo: Kampus Production / Pexels. Stock model, not an OpenAI or Anthropic employee.
  1. 1Start with the account you already pay for: a ChatGPT plan with Codex, or a Claude plan with Claude Code.
  2. 2Check the access route: ChatGPT sign-in or API key for Codex; subscription or Console API account for Claude Code.
  3. 3Run the same small task, on the same commit, in both, with write access kept narrow.
  4. 4Review the diff and run the tests yourself, then compare time, usage and manual repairs.

You will learn: how each tool is paid for, how permission prompts differ from a sandbox, where the work can start and continue, and how to compare them without moving secrets or inventing a performance winner.

This is a documentation-based comparison: prices were checked on 27 November 2026 and product-behavior pages on 21 October 2026. It contains no controlled head-to-head coding benchmark or measured performance winner.

Decision pointCodex CLIClaude Code
Starting placeTerminal in a project directory; other Codex surfaces existTerminal, IDE, desktop and browser surfaces
Paid personal routeChatGPT Plus $20 monthly; Go $8; Pro from $100 (tiers at $100, $200 and $500)Claude Pro $20 monthly; Max from $100
API routeAPI-key use at API rates, with some cloud features unavailableAnthropic Console route, billed separately from a personal subscription
ControlsApproval modes and filesystem or network sandbox settingsPermission rules, modes and sandboxing settings
First decisionCheck sign-in route, active model and review settingsCheck sign-in route, active model and review settings

Start with the account you already have

If you have a ChatGPT plan with Codex access, OpenAI's Codex CLI guide says you can sign in with ChatGPT from a project directory. OpenAI's pricing page lists Codex in the CLI with Plus at $20 a month, and describes Pro plans starting at $100 a month. The same page shows an API-key route for CLI, SDK or IDE extension use, billed at API rates and without cloud-based features available through a ChatGPT sign-in. Usage depends on model, task size and plan; a monthly subscription is not a promise of a fixed number of code changes.

If you have Claude Pro or Max, Anthropic's pricing page lists Claude Code with Pro at $20 when billed monthly and Max starting at $100. Free does not include Claude Code on that page. Anthropic's Claude Code overview also describes an Anthropic Console route. Keep the subscription and API routes separate when you compare costs.

ChatGPT Plus ($20) and Claude Pro ($20) do not buy the same model, usage allowance or cloud workflow. OpenAI lists Codex on its Free ($0) and Go ($8 a month) plans too, with lower limits. Check the CLI access on your own plan. Ask which account and model your organization permits. If you use an API key, track its bill apart from the subscription. Check both price pages again before buying because access and limits can change.

Both work in a terminal, but neither is confined to one

Use Claude Code when you want an interactive walk through an unfamiliar refactor. Use Codex CLI when you want a repeatable terminal review or CI step. Either can handle an everyday fix in a local checkout and run the repository’s existing tests.

For a refactor, start at the project root. Ask Claude Code to identify the relevant files, trace a caller through the code and explain what behavior the tests cover. Then approve a focused edit and rerun the tests. Anthropic’s common workflows and the Codex CLI guide, both cited in Termdock’s 27 October 2026 comparison, describe this local loop. The Xtrusio QA walkthrough shows where a human still needs to inspect the test file and runner setup.

Local editing, scripted review and cloud handoff
JobWhat to runWhat to inspect
Interactive Codex CLI reviewThree controls documented in OpenAI’s CLI guide on 29 November 2026 are /status, /permissions and /review.Confirm the session configuration and permissions, then inspect the change and review findings.
Scripted reviewTermdock’s 27 October 2026 comparison gives two entry points, codex exec and claude -p. Anthropic documents JSON output for print mode.Give the script a specific diff and ask it to identify missing tests. Confirm that the runner uses an approved account route.
Codex Cloud handoffTermdock’s 27 October 2026 comparison names two commands, codex cloud for cloud work and codex apply to bring the resulting diff back.Prepare the cloud environment separately. Local files, credentials and running processes do not transfer automatically.

Claude Code also offers IDE, desktop and browser access. For a change that depends on what you see in the editor, open the actual integration and check how it presents the diff. For a shared runner, check noninteractive authentication before wiring up a job. The Xtrusio installation guide covers setup and the first local command.

Sources include the OpenAI CLI guide, OpenAI noninteractive mode guide, Anthropic common workflows, Anthropic CLI reference, Anthropic platform overview, Anthropic VS Code guide and Termdock’s workflow comparison.

Check: Open a local test diff and run codex exec "Review the working-tree diff for missing tests. Do not edit files." from the project root. Pass if the output refers to the intended diff and the files stay unchanged. Red flag: The script reviews a different checkout or expects an interactive login.

Permission prompts and sandboxes solve different problems

Choose Codex CLI if your team needs an OS-enforced workspace boundary in native PowerShell. Choose Claude Code if your team relies on centrally managed rules for individual tools and can run its shell sandbox on supported systems. A permission rule decides whether an action can proceed. A sandbox limits what the process can reach after it starts.

Local permissions and sandbox behavior
What to checkCodex CLIClaude Code
Starting behaviorTraycer’s 24 October 2026 comparison describes two Codex settings, workspace-write for writes inside the workspace and on-request for actions outside the boundary. Network access is off in the standard workspace sandbox. Use /permissions to inspect the active profile or select read-only for planning.Starting with v2.1.283, interactive terminal and VS Code sessions begin in auto mode where available. A separate model reviews actions before they run. Tool rules have three outcomes, allow, ask and deny. An organization’s settings or the selected model can change the starting mode.
Operating-system boundaryOpenAI’s sandbox guide describes native sandboxing in PowerShell and the Linux implementation under WSL2. The active profile and local setup determine what a command can do.Anthropic’s sandbox guide describes three supported environments, macOS with Seatbelt and Linux or WSL2 with bubblewrap. The sandbox is off by default and can be enabled with /sandbox. It covers shell commands and their child processes. File tools, hooks and MCP servers run outside it, and native Windows has no built-in shell sandbox.
Managed team policyChatGPT workspace controls govern access to workspace features. Managed requirements.toml can separately constrain local approval policies and allowed sandbox modes.Administrators can deploy tool-level permission rules through managed settings and limit which rules developers can add. Review both the managed and project settings on the actual workstation.

The benchmark scores are close enough that your team’s controls can decide the shortlist. In its 6 August 2026 comparison, Unblocked cited Terminal-Bench 2.1 accuracy of 83.8% for the Claude Code entry and 83.1% for the Codex entry. The 0.7 percentage-point gap fell within both entries’ reported error bars. Those scores describe the entries at that time.

Start on a clean branch with a known expected result. Ask for the plan first, keep write access narrow and keep deployment credentials and production resources out of the trial. Inspect the diff and rerun the tests yourself.

Sources include Traycer’s 24 October 2026 comparison, OpenAI sandboxing, OpenAI managed configuration, Anthropic permission modes, Anthropic tool rules, Anthropic sandboxing, Anthropic managed settings, Anthropic security guidance and Unblocked’s dated benchmark comparison.

Check: On a clean demo checkout, inspect /permissions in Codex and /status and /sandbox in Claude Code on the workstation your team will use. Pass if the displayed approval mode, managed settings and shell isolation match your team’s policy. Red flag: Auto mode is active and the team assumes the shell sandbox is active too.

Context and instructions

Both agents depend on the repository you let them see and the instructions you give them. The Codex CLI guide recommends Git checkpoints before and after a task. OpenAI's configuration documentation explains the settings that control local behavior. Anthropic's Claude Code overview and permissions guide describe the agent's available surfaces and tool controls.

Treat project instructions as source material that needs review, not as magic that transfers perfectly between products. If one repository has an agent instruction file, read the actual text before moving it into another agent's format. The Claude Code SEO skill check illustrates why a shared instruction file needs to be inspected before use. Remove irrelevant paths and commands. Do not paste an API key into a repository instruction file to make a migration “work.” Authentication belongs in the account or secret-management route approved by your organization.

This page has no test results, so it does not say which tool writes better code. Results depend on the model, task, files, permissions and tests. A comparison that omits those details gives you a dated story, not a repeatable benchmark.

What the published prices do and do not tell you

ChatGPT Plus and Claude Pro each cost $20 a month on monthly billing. Start with Plus if you need Codex CLI and GitHub review on an individual plan. Start with Claude Pro if you want Claude Code for local work. Anthropic’s managed GitHub Code Review requires Team or Enterprise.

US plan prices and access before applicable tax
RouteOpenAIAnthropic
Free and low-cost accessChatGPT Free costs $0 and Go costs $8 a month. Traycer’s 24 October 2026 comparison lists desktop access for both, subject to rollout. Confirm CLI eligibility on your account before buying Go for terminal work.Claude Free costs $0. Claude Code starts on a paid plan.
Personal subscriptionChatGPT Plus is $20 monthly with CLI access. ChatGPT Pro has $100, $200 and $500 monthly tiers.Claude Pro is $20 monthly or $200 up front for a year, shown as about $17 a month. Claude Max starts at $100 monthly.
Team subscriptionChatGPT Business starts at two users. It costs $20 per user per month on annual billing or $25 on monthly billing and includes SAML SSO.Claude Team standard seats are $20 per month on annual billing or $25 on monthly billing. Premium seats are $100 or $125 on those billing schedules.
API billingAn API key bills at OpenAI API rates for CLI, SDK or IDE use. Codex Cloud and GitHub review require ChatGPT sign-in with eligible access.Anthropic Console bills at API rates. A set ANTHROPIC_API_KEY takes precedence over subscription authentication and can incur API charges even when you already pay for a plan.

Personal prices and sign-in terms were checked on 27 November 2026 against OpenAI’s pricing and authentication pages and Anthropic’s pricing and support pages. The team seat figures also appear in Traycer’s 24 October 2026 comparison. Using those seat prices, two ChatGPT Business users or two standard Claude Team seats cost 2 × $25 = $50 per month on monthly billing. Annual billing for either pair works out to 2 × $20 × 12 = $480 per year before tax and any separately billed usage.

For occasional local edits, compare the models and usage allowances on the two $20 plans. Limits depend on the task and model. For a shared CI runner, compare the approved API routes and read the admin controls and commercial terms if company data rules apply. Record the plan or API route, model, starting and ending usage, and whether you needed a rerun. Use that record to estimate the cost of your own workflow.

Sources include OpenAI pricing, OpenAI authentication, Anthropic pricing, Anthropic subscription and API-key guidance, Anthropic GitHub Code Review and Traycer’s dated plan comparison.

Check: Price two seats on each provider’s checkout page and confirm the sign-in route on the intended workstation or CI runner. Pass if you can reproduce the seat subtotal and identify which account will pay for a run. Red flag: A shell API key changes the bill or the quoted plan leaves out the required GitHub review feature.

A fair first-task comparison

Yes, you can use both tools on one change. First give each tool the same small task in its own checkout so you can compare the results. For shared work after the trial, let one tool edit and give the other a read-only review of the exact diff.

Pick a known failing local test or a narrow accessibility defect with an observable result. Use a branch away from production. Traycer’s 24 October 2026 comparison recommends one Git worktree per agent. For this trial, that means two worktrees at the same starting commit. OpenAI’s CLI guide, read on 29 November 2026, recommends two Git checkpoints, one before the task and one after it. Termdock’s 27 October 2026 walkthrough shows a two-terminal handoff with one implementer and one reviewer.

  1. 1 Give both tools the same issue, files, logs and acceptance test. Record the starting commit, CLI version, model, sign-in route and permissions for each.
  2. 2 Read each plan before allowing a focused edit. Keep the worktrees separate and use the same test command in each.
  3. 3 Run the tests yourself and inspect both complete diffs. Record elapsed time, provider-reported usage, unrelated edits and manual repairs. Keep usage in the units each provider displays.
  4. 4 For a handoff, give the reviewer the issue and agreed plan, exact diff or commit, and test command with results. Keep the reviewer read-only and have a human decide what to fix before merging.

For the handoff, Claude Code can implement the change and Codex CLI can review it with codex exec from the implementer’s checkout after editing stops. You can also reverse the roles. Put any decision made during implementation into the handoff so the reviewer has the context it needs. The five-step Python output check gives an example of what a human can inspect.

The trial measures what happened on your repository and task. This comparison has no paired trial results. If you choose Codex CLI, use the installation and first-task guide. For Claude Code, use Anthropic’s quickstart. Keep a human review before merging or deploying.

Sources include Traycer’s worktree guidance, Termdock’s two-terminal workflow, OpenAI’s Git checkpoint guidance and OpenAI’s scripted review guidance.

Check: Run the same existing test in both worktrees and ask the read-only reviewer to identify the diff it inspected. Pass if both runs start from the same commit and the reviewer cites the intended diff and test result. Red flag: Both agents edit the same checkout or the reviewer sees a different patch.

Questions people ask

Is Codex CLI included with ChatGPT Plus?

OpenAI's pricing page, checked 27 November 2026, lists Codex CLI access with Plus at $20 monthly, subject to usage limits.

Is Claude Code included with Claude Free?

Anthropic's pricing page lists Claude Code with Pro and Max, not Free.

Does an API key give Codex the same features as ChatGPT sign-in?

No. OpenAI says the API-key route lacks some cloud-based features and is billed at API rates.

Which tool is safer for my repository?

Check each tool's active permissions, sandbox and account policy against your repository and organization requirements.

Can I carry my instructions across?

Carry useful human instructions after reviewing paths, commands and permission assumptions for the destination tool.

Method

Plan prices and sign-in differences were read on OpenAI's pricing and authentication pages and on Anthropic's pricing and Claude Code pages on 27 November 2026. OpenAI states that an API key works in the CLI, SDK or IDE extension without cloud features such as GitHub review, and that Codex cloud needs ChatGPT sign-in. Anthropic states that a set ANTHROPIC_API_KEY makes Claude Code bill the key instead of the subscription. This page has no head-to-head performance results.

Sources checked on 27 November 2026

Each page below was read on 27 November 2026.

  1. OpenAI, Codex pricing: https://developers.openai.com/codex/pricing (read 27 November 2026)
  2. OpenAI, Codex authentication: https://developers.openai.com/codex/auth (read 27 November 2026)
  3. Anthropic, Claude pricing: https://claude.com/pricing (read 27 November 2026)
  4. Anthropic support, using Claude Code with your Pro or Max plan: https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan (read 27 November 2026)

Sources and limits of this comparison

Official product sources, checked 27 November 2026: OpenAI's Codex CLI guide, sandbox guide, pricing and configuration guide; Anthropic's Claude Code overview, VS Code guide, permissions guide, security guide, quickstart and pricing. This article has no paired performance results. Recheck plan and model terms before buying or changing a team's deployment policy.

Frequently asked questions

Is Codex CLI included with ChatGPT Plus?

OpenAI's pricing page, checked 21 October 2026, lists Codex CLI access with Plus at $20 monthly, subject to usage limits.

Is Claude Code included with Claude Free?

Anthropic's pricing page lists Claude Code with Pro and Max, not Free.

Does an API key give Codex the same features as ChatGPT sign-in?

No. OpenAI says the API-key route lacks some cloud-based features and is billed at API rates.

Which tool is safer for my repository?

Check each tool's active permissions, sandbox and account policy against your repository and organization requirements.

Can I carry my instructions across?

Carry useful human instructions after reviewing paths, commands and permission assumptions for the destination tool.

Topics

  • Codex CLI vs Claude Code

Gaurav

AI visibility research at Xtrusio, Xtrusio

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)