Codex vs Claude Code for a Real App
Codex vs Claude Code is mostly not a question about which model writes better code. Both write good code now, and on price they’re closer than people think: each starts at $20 a month, and OpenAI’s GPT-6.2 Sol and Claude Sonnet 5.5 cost the same through the API, $2 per million input tokens and $10 per million output. What actually differs is how each tool behaves once it’s loose in your repo: what it reads before it starts, what it’s allowed to touch, and how you find out what it did.
I checked every number here against OpenAI’s Codex pricing page, claude.com/pricing and the Claude API pricing on December 4, 2026.
The money, side by side
| Codex (ChatGPT plans) | Claude Code (Claude plans) | |
|---|---|---|
| Entry plan | Plus $20/month | Pro $20/month ($17 billed yearly) |
| Middle | Pro $100 | Max $100, 5x Pro usage, $100 of API credits a month |
| Top | Pro $200 or $500 | Ultra $200, 10x Pro usage, $200 of API credits |
| Five-hour limit on the big plans | None on any Pro plan | None on Ultra (verified accounts) |
| Team seat | Business $25 ($20 yearly, 2+ users) | Team $25 / $125 ($20 / $100 yearly) |
| API key route | GPT-6.2 Sol $2 in / $10 out | Sonnet 5.5 $2 in / $10 out |
Two things the table hides. OpenAI publishes rough message counts for Plus, per five hours: 17 to 180 local messages on GPT-6.2 Sol, 6 to 50 on GPT-6.2 Astra. The Claude pricing page gives multipliers (1x, 5x, 10x) and no absolute numbers at all. So on Codex you can at least guess when you’ll hit the wall. On Claude you find out.
The other thing is speed pricing. Codex’s Ultrafast mode burns 6x your included usage on GPT-6.2 models, and if you pay for overage with credits it’s 3x until February 28, 2027 and 6x from March 1. We wrote that out with a worked session in our Codex pricing breakdown. Claude Code’s equivalent cost trap is different: Opus 5.5 at $4/$20 is double Sonnet, and people leave it as the default without noticing. Our Claude Code pricing post has what a normal month costs.

What each one reads before it starts
This is where teams actually trip.
Codex reads AGENTS.md. It looks in ~/.codex first, then walks from the Git root down to the folder you’re in, taking at most one file per directory and gluing them together, closest file last. There’s an AGENTS.override.md that wins over AGENTS.md in the same folder, and the whole lot is capped at 32 KiB by default (project_doc_max_bytes). Past that, Codex quietly stops adding files. Nobody reads that line in the AGENTS.md docs until the deploy rules at the bottom of a long file stop being followed.
Claude Code reads CLAUDE.md (plus CLAUDE.local.md and anything under .claude/rules/), and only falls back to AGENTS.md when there’s no CLAUDE.md at all. We went through that loading order line by line in what Claude Code actually reads.
A client of ours had two developers, one on each tool, and two instruction files that started identical in August. By October the AGENTS.md still said migrations go through supabase db push against staging, while CLAUDE.md had been updated to say never push from a laptop. Guess which agent ran a migration against the wrong database on a Friday. Nothing was lost because staging had a backup from that morning, but it took most of the afternoon to untangle.
The fix is boring: keep one file. Either point Claude Code at AGENTS.md by deleting CLAUDE.md, or tell Codex to read CLAUDE.md with project_doc_fallback_filenames = ["CLAUDE.md"] in ~/.codex/config.toml. We prefer the second, because Claude Code’s extra files (rules with path filters, local overrides) don’t have a Codex equivalent, so CLAUDE.md tends to be the more complete one.
Permissions are named differently and default differently
Codex has two separate dials. The sandbox is read-only, workspace-write or danger-full-access. The approval policy is on-request, never, or a granular table. In a Git repo it suggests workspace-write plus on-request, and network access is off unless you set network_access = true. That last default is the one that surprises people: the first npm install inside the sandbox fails and the agent starts “fixing” a problem that is really just no network. There’s also --yolo, which turns both dials off. The approvals docs say not to use it, and so do we.
Claude Code has permission modes you cycle with Shift+Tab (manual approval, accept edits, plan, auto, bypass), plus allow and deny rules in .claude/settings.json and hooks that can block a command before it runs. Deny rules hold in every mode, including bypass, which makes Claude Code the easier one to fence in when the thing you’re scared of is a single command like DROP TABLE or a push to main.
If I had to sum it up: Codex’s sandbox is the stronger default, Claude Code’s rules are the stronger custom setup.
Reviewing what the agent wrote
Both have a /review. Codex starts a separate reviewer on a diff, against a base branch or your uncommitted changes, and can review pull requests on GitHub through its connector, even automatically. Claude Code has /code-review locally on any plan, and a hosted Code Review service on Team and Enterprise that comments on every pull request. We compared what Claude’s version catches in our Claude Code review post.
Neither review replaces a person who knows the app. Both missed a row-level security policy that let any logged-in user read every booking on a client project last month, because the code was correct and the policy was the bug.
Which one we’d hand a founder
If you already pay for ChatGPT Plus, start with Codex. You have it, the sandbox is safe by default, and the published message counts make the limits less of a mystery.
If you’re picking fresh and the app touches money or personal data, we’d pick Claude Code, mainly for hooks and deny rules. Being able to say “this agent can never run this command” in a file that’s checked into the repo is worth more than any benchmark.
Still building in Lovable and wondering whether moving to Claude Code would cost you less per month? Our free Lovable cost check reads your repo and prices that route next to staying put.
Running both on one repo works fine once there’s a single instruction file and the same database rules for both. That’s a big part of what our AI build partner setup does, from $600 one-time, with a review retainer from $500 a month afterwards. If the app is already built and needs to get to real users, taking an app built with Claude Code, Cursor or Codex to production starts at $500, and the app development cost calculator shows how that compares with hiring an agency from scratch.