Updated on 2026-09-10
What this comparison is, and what it is not
Let us start with the conflict of interest, because it is real. This site already publishes a practice guide and a pricing page on Claude Code, and I use it daily. You are entitled to distrust a comparison written here.
The safeguard is one rule: everything below comes from both vendors' public documentation, checked on 3 August 2026, with the links at the bottom of the page. No benchmark, no productivity percentage, no in-house measurement presented as fact. Where a figure is missing, the article says so instead of estimating it.
What remains checkable is already a lot: both price ladders, how each vendor communicates about quotas, and above all the guardrails applied by default. That last point is what decides the matter in a company, and it is the one no comparison treats seriously.
Two almost identical price ladders
The first surprise, putting both ladders side by side, is how closely they match on the tiers that matter.
| Tier | Claude Code | Codex |
|---|---|---|
| Free | Free, $0 | Free, $0 |
| Light entry | no equivalent | Go, $8 |
| Standard | Pro, $17 annual, $20 monthly | Plus, $20 |
| Heavy | Max 5x, $100 | Pro, $100 |
| Very heavy | Max 20x, $200 | Pro, $200 |
| Team | Team, $20 a seat annual, $25 monthly | Business, $20 per user annual, $25 monthly |
| Usage-based | API, $2 and $10 per million tokens on Sonnet 5 | API key, at OpenAI API rates |
Subscription prices alone do not distinguish the tools. Compare limits, the model actually used, team controls and the cost of an accepted task. Equally priced plans can cover very different workloads.
September 10, 2026 update: Anthropic kept Sonnet 5 at $2 input and $10 output per million tokens. The previously announced September increase to $3 and $15 was cancelled. Consult the provider’s pricing page for caching options and processing modes.
Quotas: one vendor publishes a number, the other does not
This is the first real difference, and it is about transparency rather than technology.
OpenAI documents a consumption unit. Its pricing page states that GPT-5.6 usage averages between 5 and 40 credits per message, and lets you buy extra credits when you hit your limit. It is imprecise, the range spans a factor of eight, but it is an order of magnitude you can build an estimate on.
Anthropic publishes no number. Quotas are relative: Pro gives at least five times Free usage per session, Max gives five or twenty times Pro. The mechanics are documented, a rolling five-hour window with weekly limits on top for paid plans, but the absolute value stays invisible until you open your own account's usage panel.
Both share one identical and rarely flagged trap: the quota is common to chat and to the coding agent. A long conversation eats into the coding budget, and the reverse holds. In a team this is hard to diagnose, because the symptom is a limit reached with no matching coding work.
One last calendar point, useful if you are reading older comparisons: Anthropic doubled Claude Code's five-hour limits on 6 May 2026 and removed the peak-hours reduction for Pro and Max. Every consumption benchmark published before that date is stale.
Default guardrails, the real point of divergence
Both tools build on the same system primitives, Seatbelt on macOS and bubblewrap on Linux, and both cleanly separate two layers: a technical boundary saying what a command can reach, and an approval layer saying when to ask you. Same architecture in principle.
| Point | Claude Code | Codex |
|---|---|---|
| Default writes | working directory and session temp directory | current workspace, workspace-write mode |
| Default network | no domain allowed, prompts on first connection | approval required, on-request policy |
| Native Windows | not supported, use WSL2 | Windows Sandbox via PowerShell |
| Remote execution | web, desktop app, GitHub Actions | managed cloud environment, agent phase offline by default |
| Instruction file | CLAUDE.md | AGENTS.md |
The difference that matters is in reads, not writes. Anthropic's documentation is explicit on a point nobody relays: by default the sandbox allows reading the entire computer, including ~/.aws/credentials and ~/.ssh. You have to declare a sandbox.credentials block to block those reads and unset sensitive environment variables. Until you do, a compromised command can read your keys.
Anthropic also documents the limit of its network filtering, which is rare and honest: the proxy decides from the client-supplied hostname without terminating TLS by default, so a domain-fronting style technique can leave the allowlist. If your threat model needs better, you have to wire in your own proxy that inspects traffic.
On the Codex side, the agent phase of cloud runs is offline by default, and secrets are only available during the setup phase before being removed. That is a stricter design for unattended work, and it is a real argument if you run agents with nobody watching the screen.
How to decide without spending a quarter on it
Since prices are identical and the architectures close, the choice comes down to concrete constraints rather than preference.
| Your constraint | What it favours |
|---|---|
| Native Windows machines, no WSL2 | Codex, whose sandbox covers Windows |
| Unattended agents in continuous integration | Codex, offline agent phase and secrets removed |
| Fine-grained per-tool permission policy, versioned in the repo | Claude Code, declarative allow, ask and deny rules |
| Rollout governed by a central IT team | Claude Code, lockable managed settings |
| Need to estimate consumption before signing | Codex, which publishes at least a credit range |
| Tight budget on light use | Codex, $8 Go tier |
One methodological note that applies to both. The project instruction file, CLAUDE.md on one side and AGENTS.md on the other, does more for output quality than the choice of tool. A repository that spells out its conventions, its test commands and its prohibitions gets far better results from either agent than a silent one.
And if you are still hesitating: both have a free tier. Two half-days on a real task in your own repository will teach you more than any comparison, this one included.
Frequently asked questions
Codex or Claude Code, which is cheaper?
The cheaper option depends on your plan, model and accepted work volume. Compare identical tasks and review requirements, then consult official pricing and limits.
How many requests per day does each subscription give?
Limits vary with plan, model and task size. Use the product’s usage indicators; a universal daily request count does not accurately describe development sessions.
Which is safer for a company repository?
Security depends on actual configuration: accessible files, allowed network access, available secrets and approvals. Check your environment and test an access denial before connecting a sensitive repository.
Does the sandbox protect my SSH and AWS keys?
Do not assume a sandbox blocks all sensitive reads. Check read rules and process environment variables in your version’s documentation, then test with dummy files.
Can you run both in parallel?
Yes, nothing technically prevents it, and both read a project instruction file at the repository root. In a team it is still better to pick one as the reference tool: maintaining two permission conventions and two instruction files costs more than the marginal gain.
Subscription or usage-based billing?
A subscription can suit regular interactive use. API billing measures automated workloads by tokens. These are different products: a subscription is not an equivalent API credit.
Should you switch if one ships a better model?
Compare observed gains with migration costs: instructions, permissions, integrations and training. A better benchmark alone does not justify switching an entire team.
Sources and references
- Plans & PricingAnthropic
The official Claude plan ladder, including the Pro, Max and Team tiers quoted here.
- PricingAnthropic, Claude Platform docs
API rates per model, the end of the Sonnet 5 introductory rate on 31 August 2026, and the caching multipliers.
- Configure the sandboxed Bash toolAnthropic, Claude Code docs
The source for the point on credential file reads and on the limit of network filtering without TLS termination.
- Higher usage limits for ClaudeAnthropic
The doubling of five-hour limits and the end of the peak-hours reduction, on 6 May 2026.
- PricingOpenAI, ChatGPT Learn
The Free, Go, Plus, Pro and Business tiers, and the 5 to 40 credits per message range.
- SandboxOpenAI, ChatGPT Learn
The workspace-write mode, the on-request policy and the offline agent phase of cloud runs.



