Skip to main content
Subscribe
AI & Agentic

Claude Code vs Codex CLI: 6 Months of Real Daily Use

Claude Code vs Codex CLI: Six Months of Real Daily Use

Two terminal agents. One slot in your daily driver workflow. I’ve been running both Claude Code and OpenAI’s Codex CLI as primary tools for the last six months: different repos, different stakes, different team setups. They look almost identical from the outside: a CLI, a permission prompt, a model that edits your files. Under the hood, they’re not the same product at all.

JetBrains’ April 2026 research shows Claude Code adoption at work jumped from roughly 3% (April–June 2025) to 18% by January 2026 (a 6x increase in nine months) and its customer satisfaction score hit 91%, the highest of any coding tool they tracked (JetBrains Research, 2026). Codex CLI grew from 82,000 monthly npm downloads at launch to 14.53 million by March 2026, a 177x increase (gradually.ai, 2026). Both are winning. They’re winning for different reasons. This is the honest comparison.

October 2026 update: Both tools moved a lot since I first wrote this in May. Claude Code now runs the Claude 5 family, and Opus 5.5 (launched September 22) is available on every paid plan, Pro included (Anthropic, 2026). Codex CLI’s default model is now GPT-6.1 Sol, and it installs with a standalone script as well as npm and Homebrew (OpenAI Codex CLI docs, 2026). Two of my original conclusions no longer hold. Codex now ships Hooks, Skills, Plugins, and Subagents, so extensibility isn’t a Claude-only story anymore. And ChatGPT Pro added a $100 tier, so Claude’s Max 5x no longer has the middle of the price ladder to itself (ChatGPT pricing, 2026). The benchmark numbers and my hands-on results below are from May 2026 and are labelled that way.

portable code review across both agents

Key Takeaways

  • Claude Code won my testing on agentic quality and has the deeper extension ecosystem (Hooks, Skills, Subagents), though Codex now has all three. It is closed-source and had four CVEs disclosed and patched across 2025–2026 (Check Point Research, 2026).
  • Codex CLI is Apache 2.0, Rust-native, and ships a stricter default sandbox, better for untrusted repos and pull request review work.
  • 70% of developers run 2–4 AI tools at once (The Pragmatic Engineer, 2026). The right answer is usually both, with one as the daily driver.

Why Are Claude Code and Codex CLI Converging?

Both products believe the same thing: the IDE is a deeply customized editor, and an agent doesn’t need to live inside it to be useful. 95% of engineers in the Pragmatic Engineer survey now use AI tools weekly, and 75% report AI handles at least half of their engineering work (The Pragmatic Engineer, 2026). When the agent is doing half the work, the question stops being “which editor extension” and starts being “which process runs my repo.”

That’s the philosophical convergence. A terminal agent reads your files, runs commands, watches output, and proposes changes. It’s a long-running process that owns a working directory. Claude Code shipped this model in February 2025. Codex CLI shipped its first public version in April 2025 and then rewrote the whole thing in Rust by June 2025: the TypeScript prototype is gone, the repo is now 95.6% Rust with over 75,000 stars and 400 contributors (OpenAI Codex GitHub, 2026).

The convergence isn’t surface-level. The daily ritual is genuinely the same: open a terminal in the repo, type a goal, watch a plan appear, approve or deny tool calls, accept the diff. If you blindfolded me and dropped me into either CLI mid-task, I’d need at least thirty seconds to figure out which one I was in. The differences only show up under load: when the agent gets confused, when something fails, when you need to do anything outside the happy path.

A computer screen filled with lines of code in a classic terminal aesthetic, the surface area where both Claude Code and Codex CLI live

why the hook layer matters once you’re past the happy path


How Did GPT-5.3-Codex and Claude Opus 4.7 Behave on Real Codebases?

In May 2026, among the models powering these two tools, Claude Opus 4.7 posted 87.6% on SWE-bench Verified: ahead of GPT-5.3-Codex at around 85% and the base GPT-5 at 74.9% (Vellum, 2026; LLM-Stats, 2026). That gap is real but it’s also misleading: both models are trained on a lot of public SWE-bench-like data, and the benchmark increasingly measures how well a model has memorized the eval set, not how it handles your code.

Horizontal bar chart of SWE-bench Verified scores in May 2026 with Claude Opus 4.7 at 87.6 percent, GPT-5.3-Codex at 85 percent, Claude Sonnet 4.6 at 79.6 percent, Claude Sonnet 4.5 at 77.2 percent, and base GPT-5 at 74.9 percent

October 2026 note: This chart is a May 2026 snapshot. The models behind both tools have changed since: Claude Code now runs Opus 5.5 and Sonnet 5.5, and Codex CLI defaults to GPT-6.1 Sol. I haven’t re-run my refactor tests on the new pair yet, and I’m not going to quote scores for them that I haven’t checked against a primary source.

Here’s what I saw in practice during that round of testing. On a tangled refactor, say, lifting a service interface out of three coupled controllers in a legacy PHP/Laravel codebase, Claude Opus 4.7 produces a more cautious plan. It asks before touching shared types. It writes a checklist and follows it. It backs out cleanly when I tell it to. GPT-5.3-Codex is faster and bolder. It writes more code per turn, which is great when the code is right and painful when it isn’t.

My finding: On a 20-file refactor I ran on the same Laravel repo, Claude Code needed 3 prompts and stopped to confirm 4 times. Codex CLI did it in 1 prompt but introduced two regressions that broke tests in unrelated files. The fix for the regressions took longer than the original task would have on Claude.

That’s the consistent pattern. Claude is more conservative, more aligned with “ask first,” and recovers from mistakes better. Codex is more aggressive, more willing to refactor adjacent code without asking, and faster on greenfield work. Pragmatic Engineer’s 2026 survey reflects this preference split: 46% of engineers named Claude Code as the tool they love most, vs 19% for Cursor and 9% for GitHub Copilot (The Pragmatic Engineer, 2026).

Lollipop chart showing percent of engineers who name each AI coding tool as the one they love most: Claude Code 46 percent, Cursor 19 percent, GitHub Copilot 9 percent, Codex 6 percent, Windsurf 4 percent

Don’t read that as “Codex is bad.” Codex didn’t exist when the 2025 survey ran, and it reached 6% within months. Read it as “Claude Code had the strongest emotional pull in early 2026, especially for engineers doing focused refactor and debug work.”

the multi-model workflow I actually use


What’s the Real Difference in Sandboxing and Permissions?

Codex CLI ships with a stricter default. It runs with three sandbox modes (read-only, workspace-write, and danger-full-access) combined with three approval modes (suggest, auto-edit, full-auto) (OpenAI Codex Sandboxing, 2026). The default behavior asks before every write and refuses network calls outside the workspace. Claude Code has five permission modes (default, acceptEdits, plan, dontAsk, bypassPermissions) with file-level and command-level deny rules layered on top (Claude Code Permission Modes, 2026).

A developer at a multi-monitor coding setup with terminal windows and editors open, the daily-driver question that this article tries to settle

The naming is different. The actual capabilities are roughly equivalent. The difference that matters is the default. Codex’s default refuses more aggressively. Claude’s default trusts more aggressively. Neither is wrong; they reflect different assumptions about who’s at the keyboard.

Then there’s the security record. Four CVEs were disclosed against Claude Code across 2025–2026: CVE-2025-59536 (RCE via untrusted project config, CVSS 8.7), surfaced by Check Point Research (2026); CVE-2025-54794 (path bypass, CVSS 7.7) and CVE-2025-54795 (command injection, CVSS 8.7), both from Cymulate (2025); and CVE-2025-55284 (DNS exfiltration, CVSS 7.1) from Embrace The Red (2025). Anthropic patched all of them, and the underlying issue, that CLAUDE.md and .mcp.json files in a cloned repo could execute arbitrary shell on startup, is now mitigated. But the lesson is real: cloning a repo and immediately running Claude Code on it is not as safe as the UX makes it feel.

Why this matters: If you’re reviewing untrusted pull requests or pulling random GitHub repos to investigate them, Codex’s stricter default sandbox is the safer starting point. If you’re working in a repo you own, on a machine you trust, with a workflow you’ve tuned, Claude Code’s permission model is more ergonomic.

how MCP server config intersects with Claude Code’s permission model


Which One Has the Stronger MCP and Extensibility Story?

Both support the Model Context Protocol. Claude Code shipped MCP first and shaped the spec. Codex CLI added MCP support in 2026 with stdio and Streamable HTTP transports, including OAuth, configured through ~/.codex/config.toml (OpenAI Codex MCP docs, 2026). The MCP ecosystem now has more than 10,000 public servers, and the protocol was donated to the Linux Foundation’s Agentic AI Foundation in December 2025 (MCP Bundles, 2026).

So MCP support is no longer a Claude-only advantage. When I first wrote this, Hooks, Skills, and Subagents were. Here’s what they do on the Claude side:

As of October 2026, Codex has caught up on the checklist. It runs hooks at a similar set of lifecycle events (PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart, and more), enabled by default (Codex Hooks docs, 2026). It packages workflows as skills and distributes them as plugins (Codex Skills docs, 2026). And the CLI can spawn subagents in parallel and switch between their threads with /agent (Codex Subagents docs, 2026). I haven’t run Codex’s versions through the same months of daily use, so I can’t yet say how they hold up under load. Claude’s ecosystem is still older and deeper. This is the part of the comparison that gets undersold in most reviews. The extensibility surface isn’t a checkbox, it’s a multiplier, which is why ecosystem depth matters more than whether the feature exists. Once you have a Skill that knows how to ship a feature in your repo, or a Hook that blocks rm -rf regardless of what the model thinks, the productivity gap widens fast.

The trade-off is that this surface is also the attack surface. Three of the four CVEs above exploited Hooks, MCP config files, or project-level instructions. Power and risk on the same axis.

A glowing AI chip on a circuit board, the underlying model is half the agent, the surrounding framework is the other half

when to reach for a Skill vs an MCP server


How Does the Pricing Math Actually Compare?

Both tools start at the same paid price. Claude Code is included in Claude Pro at $20/month, with Max 5x at $100/month (5x the Pro rate limits) and Max 20x at $200/month (20x Pro limits) above that, or pay-per-token through the API (Anthropic Pricing, 2026). Codex is included on every ChatGPT plan as of October 2026: Free, Go ($8/month), Plus ($20/month), Pro at $100, $200, or $500/month, Business ($25/user/month), and Enterprise, plus pay-per-token through the OpenAI API (ChatGPT pricing, 2026).

At the $20 tier the entry price is a wash. Codex does have a cheaper on-ramp through ChatGPT Free and Go, which Claude Code doesn’t match. Above $20, the ladders now look almost identical. Here’s the math from my own usage:

The honest version: at $20 it’s a genuine tie, both rate-limit you on heavy days. In May, Claude’s real edge was the $100 Max 5x tier, the sweet spot for full-time agent work with no ChatGPT counterpart. ChatGPT Pro’s $100 tier closed that gap, so pricing no longer decides this comparison. I run both: Max 20x for daily-driver work, ChatGPT Plus for the occasional Codex run on something Claude is being weird about.


Feature Matrix: Where Each Tool Genuinely Wins

Capability Claude Code Codex CLI
Underlying model (Oct 2026) Claude Opus 5.5 / Sonnet 5.5 GPT-6.1 Sol (default)
SWE-bench Verified (May 2026) 87.6% (Opus 4.7) ~85% (GPT-5.3-Codex)
License Closed-source (npm) Apache 2.0 (Rust)
Permission modes 5 modes + deny rules 3 approval + 3 sandbox modes
MCP support Yes (original) Yes (stdio + Streamable HTTP)
Hooks Yes (9+ lifecycle events) Yes (12 lifecycle events)
Skills Yes (Oct 2025) Yes (distributed as plugins)
Subagents Yes Yes (/agent to switch threads)
Plugins Yes Yes
IDE extensions VS Code, JetBrains VS Code, JetBrains, Cursor, Windsurf
Desktop app Yes (Mac/Windows), web, CLI Yes (macOS Feb 2026, Windows Mar 2026)
Entry pricing $20/mo (Claude Pro) $0 (ChatGPT Free), $8 (Go), $20/mo (Plus)
Mid tier $100/mo (Max 5x) $100/mo (ChatGPT Pro)
Top pricing $200/mo (Max 20x) $200 or $500/mo (ChatGPT Pro)
Recent CVEs 4 patched in early 2026 None publicly disclosed
CSAT 91% Not publicly reported
GitHub stars (May 2026) n/a (closed-source) 75K+
Open governance No Yes (Apache 2.0, 400 contributors)

The matrix tells you what; it doesn’t tell you what to actually do. That’s the next section.


Which One Should Be Your Daily Driver in 2026?

Use this framework. The decision isn’t “which is better”, it’s “which fits the work you do most.”

Pick Claude Code as your daily driver if:

Pick Codex CLI as your daily driver if:

Run both if:

The Pragmatic Engineer survey backs this up: 70% of engineers run 2–4 AI tools simultaneously, and 15% run 5 or more (The Pragmatic Engineer, 2026). Treating this as a one-winner question is the wrong frame.

My current setup: Claude Code is the daily driver. Codex CLI is the second opinion. When Claude gets confused on a long task (usually around the 30-minute mark on something architecturally tangled) I’ll fork the conversation, paste the state into a fresh Codex session, and see what it does. The disagreement is often more useful than either agent’s answer alone.

why running two agents in parallel beats one for hard tasks


Frequently Asked Questions

Is Claude Code’s $100 Max tier worth it, or is the $20 Pro plan enough?

Claude Code starts at $20/month with Claude Pro, the same as ChatGPT Plus for Codex, and both throttle on heavy sessions at that tier. Claude Max 5x ($100/mo) gives roughly 5x Pro rate limits, enough for 6–8 hours of agent-heavy work daily without hitting walls (Anthropic Pricing, 2026). The crossover where Max pays for itself is around 3 hours/day of active agent use; below that, Pro is plenty. If you’re comparing against OpenAI, ChatGPT Pro now has a matching $100 tier.

Does Codex CLI support MCP servers?

Yes. Codex CLI added MCP support in 2026 with both stdio and Streamable HTTP (including OAuth) transports, configured in ~/.codex/config.toml (OpenAI Codex MCP, 2026). The MCP ecosystem has more than 10,000 public servers, and most work in both Claude Code and Codex CLI without modification.

Are Claude Code’s CVEs a reason to avoid it?

Not really. All four 2026 CVEs were patched within days of disclosure, and the underlying class of bug, trusting project-local config files on startup, has been mitigated (The Hacker News, 2026). The takeaway isn’t “Claude is unsafe,” it’s “don’t run any agent on a freshly cloned untrusted repo without sandboxing.”

Which model is actually better at coding, OpenAI’s or Claude’s?

In the May 2026 numbers I used, Claude Opus 4.7 led SWE-bench Verified at 87.6% vs GPT-5.3-Codex at ~85% and base GPT-5 at 74.9% (Vellum, 2026). In practice the gap was smaller and task-dependent. Claude was more cautious and recovered better from mistakes; OpenAI’s model was faster and more aggressive on greenfield work. Both tools have since moved on, to Opus 5.5 and GPT-6.1 Sol, and I haven’t seen a like-for-like comparison of that pair I’d trust yet.

Can I use Claude Code on the cheaper Claude Pro plan?

Yes. Claude Code is included in Claude Pro at $20/month, the same price as ChatGPT Plus with Codex, and Pro gets Opus 5.5 too. Pro’s rate limits are tight for heavy agentic work, which is why Max 5x ($100/mo) exists for full-time use. You can also pay per-token through the Anthropic API. There’s no free tier for Claude Code itself (Anthropic Pricing, 2026).



Nishil Bhave is a developer and builder who writes about AI tooling, agentic workflows, and the practical realities of shipping with AI. He has been running Claude Code and Codex CLI as primary tools since their respective launches.

Conclusion

If you only have one slot, Claude Code is still the daily driver I’d recommend for most engineers in late 2026. The 91% CSAT and the deepest extension ecosystem aren’t accidents, though Codex has closed the feature gap. If you also have $20/month for ChatGPT Plus, add Codex CLI as your second opinion. The cost of running both is rounding-error for any working engineer, and the dual-agent setup beats either one solo on hard tasks.

The terminal-agent paradigm is the new default. Pick the one that fits the work you do most, and don’t agonize over the choice. I said in May that both would be different products by Q4 2026, and they are: new models, new pricing tiers, and Codex with its own hooks and subagents. The only mistake is staying on the sidelines.

Related reading on this comparison: Claude Code vs Cursor (different philosophies, terminal agent vs AI IDE) and Gemini CLI vs Claude Code (and what replaced Gemini CLI after its June 2026 shutdown). And the meta-question: whether agent-driven coding is production-ready in 2026.

Written by Nishil Bhave

Builder, maker, and tech writer at MakeToCreate.

Never miss a post

Get the latest tech insights delivered to your inbox. No spam, unsubscribe anytime.

Related Posts