COMPARE · CLAUDE CODE VS CODEX

Claude Code vs Codex for engineering teams.

QUICK ANSWER

Pick Claude Code for Anthropic's Claude models in a terminal-first agent, and Codex if your team pays for ChatGPT or wants OpenAI's GPT models and cloud tasks. Both can read AGENTS.md, load SKILL.md skills and connect to MCP servers, so one repo can serve both.

Our team runs both. Of the 866 agent-written pull requests we merged from August 12 to October 4, 2026, Claude Code opened 822 and Codex 31, and both merged a median 37 minutes after opening.

Sources (25)

Free for 3 seats · No credit card

AT A GLANCE

Claude Code vs Codex, side by side

What each tool documents, row by row.

Claude Code vs Codex, side by side
Claude CodeCodex
Team seats for 5 engineers$100/mo — Claude Team Standard at $20 a seat, billed annually ($25 monthly).[7]$100/mo — ChatGPT Business at $20 a seat, billed annually ($25 monthly).[3]
Where it runsTerminal CLI, VS Code and JetBrains extensions, a desktop app, the web and mobile, plus Slack and GitHub Actions.[1]Codex CLI, an IDE extension (VS Code, Cursor, Windsurf), the ChatGPT desktop app, Codex Cloud and @codex review on GitHub.[8]
ModelsClaude models only (Fable, Opus, Sonnet, Haiku); Anthropic doesn't support routing Claude Code to other models.[9]OpenAI GPT models; local clients can point at a custom Responses-API provider such as Ollama.[4][10]
Project instructionsCLAUDE.md and .claude/rules/; AGENTS.md only when there is no CLAUDE.md, or through an @import.[2]AGENTS.md (global ~/.codex, then repo root down to the working directory) and AGENTS.override.md.[5]
Skills, subagents and hooksSkills (SKILL.md, invoked as /skill-name), custom subagents in .claude/agents, and lifecycle hooks.[11]Skills in .agents/skills (the Agent Skills standard), custom agents and subagents, and hooks.[6]
MCP serversLocal stdio or remote HTTP MCP servers, added with claude mcp add.[12]STDIO and Streamable HTTP MCP servers in config.toml, from the app, CLI and IDE extension.[13]
Team analytics, built inTeam and Enterprise dashboard: daily users, sessions, lines accepted, accept rate and PRs with Claude Code; API on Enterprise.[14]Workspace analytics of messages, credits and active users; a Codex dashboard and Analytics API on Enterprise.[15][16]
Checking your own usage/usage (also /cost and /stats) shows plan usage, session cost and a 24h/7d breakdown by skill, subagent and MCP server.[17]A usage dashboard with limits and reset times; /status and /usage daily, weekly or cumulative in the CLI.[3][18]

Each tool's column is read from its vendor's own docs and pricing page, dated in the sources below.

ON YOUR OWN TEAM

Measure both with Zest

  • Claude Code and Codex sessions side by side, per engineer
  • The model, skills and MCP tools behind each session
  • Which tool's sessions end in merged pull requests
  • A daily standup written from both
Winding / Teams Last 30 days

Zest

3 Members 1 Agent
Team overview
67%
AI Adoption▲ 34 pts
240
PRs Merged▲ 101
96.1h
Median AI Time▲ 9.5h
57.2h
Build Hours▲ 20.3h
This week
Member AI PRs/wk AI Task Plan Impl Last Standup AI Stack
22.8/wk28 min ago
15.8/wk12 min ago
4/wkAug 14
—2 hours ago
Current AI models & harnesses As of Sep 8
Claude CodeFable 5.1 (max) (with fallback)70.4 · Coding Agent Index
CodexGPT-6 Astra (max)67.0 · Coding Agent Index
Muse CodeMuse Spark 1.3 (xhigh)64.2 · Coding Agent Index
Grok BuildGrok 4.5 (high)64.1 · Coding Agent Index
Kimi Code CLIKimi K362.6 · Coding Agent Index
OpencodeGemini 3.8 Flash (high)61.2 · Coding Agent Index
Cursor CLIComposer 2.5 Fast38.3 · Coding Agent Index

Demo setups use current model families. The pairings above are the combinations benchmarked by Artificial Analysis; rankings measure performance, not popularity.

Intelligence Index

Illustrative daily trends · Other totals: last 30 days. Build Hours: this week, model-estimated activity including overlap; not engineer hours.

USED BY ENGINEERING TEAMS AT

FlypsCharmWildfiresGeoforgeMisaLabs

Claude Code or Codex: which one fits your team

Pick Claude Code if you want Claude: it comes with every paid Claude plan and runs only Anthropic's models (Opus, Sonnet, Fable, Haiku). It works in the terminal, VS Code, JetBrains, a desktop app and the web, and answers @claude on pull requests through GitHub Actions.

Pick Codex if your team already pays for ChatGPT: Plus, Pro and Business include it. It runs OpenAI's GPT models in the CLI, an IDE extension, the ChatGPT desktop app and Codex Cloud, and reviews a pull request when you tag @codex.

For the heaviest users, limits decide it: both meter usage per five hours with weekly limits on top, but Codex's Pro plan has no five-hour limit for now.

Claude Code vs Codex: config files and commands

Claude Code and Codex are built from the same parts, kept in different places. In Claude Code, /import codex copies a Codex setup over: instruction files, MCP servers, subagents and skills.

From Claude Code's and Codex's docs, read October 5, 2026.
Claude CodeCodex
InstructionsCLAUDE.md and .claude/rules/; AGENTS.md only when there is no CLAUDE.mdAGENTS.md from ~/.codex down to the working folder; AGENTS.override.md wins
Skills.claude/skills/<name>/SKILL.md, run as /name.agents/skills/<name>/SKILL.md, run with $name or /skills
SubagentsMarkdown files in .claude/agents/TOML files in .codex/agents/
Hookshooks in .claude/settings.json.codex/hooks.json, or [hooks] in config.toml
MCP serversclaude mcp add; shared servers in .mcp.jsoncodex mcp add; [mcp_servers.<name>] in ~/.codex/config.toml
From a scriptclaude -p "…"codex exec "…"
Pull request review@claude through GitHub Actions; Code Review on Team and EnterpriseTag @codex on a pull request, or turn on automatic reviews

MCP servers: .mcp.json vs config.toml

Each agent needs its own MCP entry: claude mcp add with --scope project writes JSON to .mcp.json for the whole team, and codex mcp add writes TOML to ~/.codex/config.toml, which the Codex CLI, IDE extension and desktop app share.

Both guard repo config: Claude Code asks before using a checked-in .mcp.json, and Codex reads .codex/config.toml only in a trusted project.

.mcp.json (Claude Code)
{
  "mcpServers": {
    "shared-server": {
      "type": "http",
      "url": "https://example.com/mcp"
    }
  }
}
~/.codex/config.toml (Codex)
[mcp_servers.figma]
url = "https://mcp.figma.com/mcp"
bearer_token_env_var = "FIGMA_OAUTH_TOKEN"

Claude Code vs Codex pricing and limits

Claude Code and Codex, from each vendor's pricing page in October 2026:

  • Claude Code comes with Claude Pro at $20 a month ($17 billed yearly), Max from $100 and Team seats at $25 ($20 billed yearly). Every plan's limits reset on a rolling five-hour window, and paid plans add weekly limits on top. More on Claude Code pricing.
  • Codex comes with ChatGPT Plus at $20 a month, Pro from $100 and Business at $25 per user ($20 billed yearly), and Free and Go ($8) run GPT-6 Luna in the desktop app. On Plus and Standard Business, OpenAI estimates 5–45 local messages per five hours on GPT-6 Astra, 15–160 on GPT-6.1 Sol and 350–3,000 on GPT-6 Luna. More on Codex pricing.

What our team saw running both

Of the 2,620 pull requests merged in our two repos from July 5 to October 3, 2026, 133 (5%) came from Codex, from 4 engineers. In the 30 days to October 3 the Codex share rose to 9.9%.

The agents' session-analytics blocks put all 31 of Codex's in September, and a little smaller than Claude Code's: a median 576 lines changed to 691.

Limits bit on both: on one engineer's laptop, Claude Code showed a usage-limit notice on 16 of 29 active days from September 4 to October 3, 2026, and in September Codex's weekly window reached 100% on 7 days.

Is Codex or Claude Code better? What our AI reviewer found

Our AI reviewer, IonWarp, reviews every pull request in our two repos and flags should-fix and blocking issues. Comparing Codex's pull requests with Claude Code's from the same engineer, repo and week (August 12 to October 4, 2026), Codex's were flagged 1 point more often, with a 95% confidence interval from 16 fewer to 20 more: no measurable difference.

Pull request size mattered far more. After review, Codex declined 22 of the 58 findings it answered (38%), against 18% for Claude Code with the same engineers (August 31 to September 20); with 31 Codex pull requests, that is thin.

One small team, agent-reported names and a reviewer that changed week to week: how we collected it.

Merged pull requests in our two repos, August 12 to October 4, 2026: share flagged should-fix or blocking on IonWarp's first review.
Pull requestsCountFlagged on first review
Codex vs Claude Code, same engineer, repo and week24 vs 162+1 point (−16 to +20)
Under 100 lines changed29811%
300 to 999 lines33445%
1,000 to 2,999 lines18557%

Running Claude Code and Codex on one repository

Keep one instruction file, AGENTS.md. Codex reads it from ~/.codex down to the working folder; Claude Code reads it when the repo has no CLAUDE.md. For Claude-only notes, start a CLAUDE.md with @AGENTS.md, as Anthropic's docs show below, and Claude Code loads both.

CLAUDE.md
@AGENTS.md

## Claude Code

Use plan mode for changes under `src/billing/`.

TRY IT ON YOUR TEAM

See what your team ships with AI.

Starter is free (3 seats, no credit card). Pro is $49 a month with 5 seats and Max is $149 a month with 10 seats — priced per workspace, not per engineer, with extra seats at $19 a month.

A FEW THINGS TO KNOW

Questions

Claude Code or Codex: which is better?+

Neither on every team: pick by the models you want and the plan you already pay for. On our own pull requests, both merged a median 37 minutes after opening, and our AI reviewer flagged them at about the same rate.

Does Claude Code read AGENTS.md?+

Yes, from version 2.1.277, when the repo has no CLAUDE.md or CLAUDE.local.md; with one, add @AGENTS.md to CLAUDE.md. The Project instructions setting in /config can also load both files.

Does Codex read CLAUDE.md?+

Not by default. Add CLAUDE.md to project_doc_fallback_filenames in ~/.codex/config.toml, and Codex reads it in any folder that has no AGENTS.md.