← Back to Blog
Comparisons

Codex vs Claude Code: which coding agent to use

AB
Neotask Team
November 29, 2026
7 min read

Codex and Claude Code are both strong coding agents, and the choice mostly comes down to models, price and safety defaults. Pick Claude Code if you want Anthropic's Claude models, with Opus 5.5 as the default, or you already pay for Claude. Pick Codex if you already pay for ChatGPT, want an open-source command-line tool you can read and fork, or want a sandbox that limits what the agent can touch by default. Both cost $20 a month at the entry level, both run in the terminal, your editor, a desktop app and the cloud, and both are within a few points of each other on current coding benchmarks.

At a glance

Claude CodeCodex
MakerAnthropicOpenAI
ModelsClaude: Opus 5.5 by default, Sonnet 5.5, Haiku 5.5, Fable 5.2GPT: GPT-6.2 Astra and Sol recommended, GPT-6.1 Terra, Luna
Entry planClaude Pro, $20 a month ($17 billed yearly)ChatGPT Plus, $20 a month
Free planNot includedLimited access in the desktop app
Where it runsTerminal, VS Code, JetBrains, desktop app, web, phoneTerminal, IDE extension, desktop app, web, phone
Pay by API keyYesYes, for the CLI, SDK and IDE extension
Project instructions fileCLAUDE.md, and it can read AGENTS.mdAGENTS.md
Default safety modelAuto mode with a classifier reviewing actionsSandbox limited to the workspace with no network, asking when it needs more

Sources: Claude Code docs, claude.com/pricing, Codex docs, Codex pricing and openai/codex on GitHub, all read November 2026.

Models and benchmark results

Each tool is built around its own vendor's models. Claude Code's default on Pro, Max, Ultra, Team and Enterprise is Claude Opus 5.5. OpenAI recommends GPT-6.2 Sol for everyday coding in Codex and GPT-6.2 Astra for demanding work.

On the independent Terminal-Bench 4.1 leaderboard, which scores each model inside an agent, Opus 5.5 in Claude Code scores 65.8% and GPT-6.2 Astra in Codex 62.1%, with margins of about three points each (tbench.ai, read November 2026). The cost of the runs differed far more than the scores: Opus 5.5 used about 8 billion tokens and $4,700, while GPT-6.2 Sol scored 61.5% on 1.1 billion tokens and about $300. If you pay by the token, that gap matters more than three points.

Pricing and limits

Claude Code is included in Claude Pro at $20 a month, or $17 a month billed yearly, Max at $100 and Ultra at $200; the Free plan doesn't include it. It shares one usage pool with Claude chat: "your work in the terminal and your chats draw from one pool." Pro and Max have a five-hour session limit and a weekly limit, and verified Ultra accounts have only the weekly limit. Our post on Claude Code usage limits covers them plan by plan.

Codex is included in ChatGPT plans. Plus at $20 a month adds "Codex on the web, in the CLI, in the IDE extension, and on iOS." Pro starts at $100, and Business is $20 a user per month billed yearly. Free and Go get limited access in the desktop app only. With an API key instead of a ChatGPT sign-in, the CLI, SDK and IDE extension work at API prices, but "no cloud-based features" such as GitHub code review.

Safety and approvals

Claude Code starts interactive sessions in auto mode, from version 2.1.283: "A separate classifier model reviews actions before they run and blocks the ones it judges risky." Other modes include manual approval, accept-edits, plan-only and a bypass mode Anthropic recommends for "isolated containers and VMs only." Deny rules in your settings "block in every mode."

Codex splits control into two layers: the sandbox decides "what Codex can do technically," and the approval policy decides "when Codex must ask you." In a git repository the default is workspace-write with on-request approvals, which in the CLI means "no network access and write permissions limited to the active workspace." Folders like .git and .codex stay read-only even inside the workspace. The --yolo flag removes both layers, and OpenAI calls it "not recommended."

Extending each tool

The two now offer much the same set of extension points.

Claude CodeCodex
Standing instructionsCLAUDE.md, or AGENTS.md in its placeAGENTS.md, global and per project, 32 KiB by default
HooksYes, configured in settings filesYes, on by default; each must be trusted before it runs
SubagentsYes, each with its own context, tools and permissionsYes, for splitting up a larger investigation
Skills and pluginsYesYes
Non-interactive runsclaude -p and the Agent SDKcodex exec and the Codex SDK

The differences are in the details. Claude Code's hooks reference lists 34 events and Codex's lists 14, though both cover the common ones, such as before and after a tool call and when the agent stops; our Claude Code hooks guide covers Claude's. Codex asks you to trust each hook's exact definition before it runs, and records that trust against the hook's hash, so a changed hook needs trusting again.

Open source

The Codex CLI is open source under the Apache 2.0 license, with over 136,000 stars on GitHub as of November 29, 2026, though OpenAI says the repository "doesn't accept external code contributions or pull requests." The IDE extension and Codex cloud are closed.

Which should you pick?

  • Claude Code if you want Anthropic's models, an auto mode that reviews each action for you, or you already pay for Claude.
  • Codex if you already pay for ChatGPT, want an open-source CLI, prefer a strict sandbox by default, or care about cost per task on GPT-6.2 Sol.
  • Both if the budget allows. At $20 each, keeping both lets you hand a stuck task to the other agent and compare the results.

Our Codex alternatives and Claude Code alternatives pages compare each against the wider field.

Running Codex and Claude Code side by side in Neotask

If you'd rather not choose, Neotask's Code page runs both on the same projects, along with Cursor, Gemini CLI and Neotask's own agent. Neotask is a separate desktop app, not made by Anthropic or OpenAI. You install and sign in to Claude Code and Codex yourself, with your own subscription, and Neotask doesn't charge for those turns, though it tracks the usage so you can see it. Each project picks its agent, so you can give one task to Claude Code and the next to Codex without changing tools.

By default each agent keeps its own approval modes. You can switch a project to Neotask's modes instead: Ask, Auto, or Full access, which "asks only before destructive commands." Changes from either agent land on the same Diff page, where you can comment on any line, and the PR review page commits only the files you tick. Personal coding projects work on every Neotask plan, Free included.

Frequently asked questions

Is Codex better than Claude Code? Neither wins outright. On Terminal-Bench 4.1, Opus 5.5 in Claude Code scores 65.8% and GPT-6.2 Astra in Codex 62.1%, with overlapping margins, and GPT-6.2 Sol costs far less per task.

Is Codex free? ChatGPT Free and Go include limited Codex access in the desktop app. The CLI, IDE extension and cloud start with Plus at $20 a month, or pay as you go with an API key.

Can Claude Code use GPT models, or Codex use Claude? Not as standard. Each is built around its own vendor's models, although tools such as Ollama can connect open models to both. Cursor, GitHub Copilot and Neotask let you use both vendors in one place.

Do Claude Code and Codex read the same instructions file? Codex reads AGENTS.md. Claude Code reads CLAUDE.md and can read AGENTS.md in its place.

Deploy AI Agents in Minutes.

Neotask gives you the orchestration layer to build, deploy, and manage AI agents at scale. Voice-controlled, multi-agent, production-ready.

Launch Your First Agent

Start automating in minutes.