Both run in the terminal, an IDE and the cloud. Claude Code starts at $20 a month on Pro. Codex offers its desktop app free or at $8 on Go, subject to rollout, and the CLI, IDE and web at $20 on Plus. Pick by the plan you already pay for. I run both in one repo.
I checked every price and feature below against the vendors’ own pages on 11/22/2026. Prices and plan names change often, so treat this as a dated snapshot.
Which is better, Codex or Claude Code?
Neither wins everywhere, and I have not run a controlled benchmark between them, so I will not pretend to. A common way to split the work:
- Claude Code for long, multi-step jobs: a feature that touches many files, a refactor, a task that needs hooks and subagents to keep it honest.
- Codex for a second look: review a diff the other agent wrote, or answer the same question so you can compare.
That split is a habit, not a verdict. If you only want one, pick the one tied to a plan you already pay for. Give it a full week on your own repo.
How much do Codex and Claude Code cost?
Claude Code starts at $20 a month. Codex starts lower for the desktop app and at $20 for the CLI, IDE and web. The table shows the plans each vendor listed on 11/22/2026.
| Plan level | Codex (OpenAI) | Claude Code (Anthropic) |
|---|---|---|
| Free | Free plan, desktop app, subject to rollout | Not included |
| Low tier | Go, $8 a month, desktop app, subject to rollout | None |
| Entry | Plus, $20 a month | Pro, $20 a month ($17 billed yearly) |
| Heavy use | Pro, from $100 a month ($100, $200 or $500 tiers) | Max, $100 a month; Ultra, $200 a month |
| Teams | Business, $20 per user billed yearly, $25 monthly | Team, $20 or $25 per standard seat; $100 or $125 per premium seat |
| Pay per use | OpenAI API key, billed at API rates | Anthropic API key, Bedrock, Foundry or Google Cloud |
Two details matter more than the sticker price:
- Codex with an API key skips cloud features. OpenAI’s pricing page says API-key use excludes cloud features. Those include GitHub code review and the Slack integration.
- Claude’s Max and Ultra plans include API credit. Claude’s pricing page lists API credit on both plans. It is $100 a month on Max and $200 a month on Ultra.
For the Claude side in more depth, I compared the plans in Claude Pro vs Max.
Which models do Codex and Claude Code use?
Each tool runs its own vendor’s models, and you can switch inside a session.
- Codex listed GPT-6.2 Astra, GPT-6.2 Sol, GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna as recommended models on 11/22/2026. Its config example uses GPT-6.2 Sol.
- Claude Code defaults to Opus 5.5 on Pro, Max, Team, Enterprise and the API. The
/modelcommand switches to Sonnet 5.5, Haiku 5.5 or Fable 5.1.
Cheaper models stretch your usage limits further on both.
AGENTS.md vs CLAUDE.md: what happens when you run both?
This is the part most comparisons skip.
- Codex reads AGENTS.md. Running
/initin Codex creates one. - Claude Code reads CLAUDE.md. Its docs say it reads AGENTS.md only when there is no CLAUDE.md or CLAUDE.local.md in the folder or above it.
So a repo with both files gives each agent a different rulebook. My blog repo is exactly that case. When I checked it, the CLAUDE.md held the design system and build rules, while the AGENTS.md held a short, different list written for another agent.
The fix is one shared file. Put the rules both agents need in AGENTS.md. Then add an import line to CLAUDE.md so Claude Code loads it too. Claude Code’s memory docs describe that import. I wrote up the full setup in Claude Code and AGENTS.md.
How do permissions and sandboxing compare?
Both tools ask before risky actions by default, but they name the controls differently.
| What you want | Closest Codex setting | Closest Claude Code setting |
|---|---|---|
| Read only | read-only sandbox | plan mode |
| Edit files in the project | workspace-write sandbox, the default for local work | acceptEdits mode |
| Ask before acting | on-request approval policy | default mode, shown as Manual |
| Everything allowed | danger-full-access sandbox | bypassPermissions mode |
Claude Code also has auto and dontAsk modes, plus allow and deny rules per tool.
On either tool, avoid the everything-allowed setting on a machine that holds keys you care about.
Where can you run each one?
Almost everywhere, in both cases.
| Surface | Codex | Claude Code |
|---|---|---|
| Terminal | Yes, codex | Yes, claude |
| IDE | VS Code, Cursor, Windsurf | VS Code (and Cursor), JetBrains |
| Desktop app | Yes | Yes |
| Web and cloud tasks | chatgpt.com/codex and codex cloud | claude.ai/code |
| Phone | iOS | iOS and Android |
| CI and scripts | codex exec | claude -p |
| Code review | /review in the CLI; GitHub review in the cloud | GitHub Actions and GitHub code review |
Both support MCP servers, skills, plugins, subagents and hooks. Both can search the web: Codex with the --search flag, Claude Code with its built-in web search and fetch tools.
What are the usage limits?
Both use rolling windows, and neither publishes one fixed number for every plan.
- Codex shows estimated messages per 5-hour window on Plus and Business. It says weekly limits may also apply, and it said Pro had no 5-hour limit on 11/22/2026. The estimates vary a lot by model.
- Claude Code uses a 5-hour window and a weekly window on Pro and Max. Max gives 5 times Pro’s usage. Ultra gives 10 times Pro’s weekly usage and no 5-hour limit for verified accounts.
If you hit limits often, the cheaper model is usually a better fix than the bigger plan. Measure a week of your own work before you upgrade either one.
Is Codex open source? Is Claude Code?
The Codex CLI is open source. Its GitHub repo carries the Apache-2.0 license, and you can install it from npm or Homebrew.
Claude Code is not open source, even though its GitHub repo is public. You can read the repo, but its license file says all rights reserved and that use is subject to Anthropic’s commercial terms.
Which one should you pick?
- You already pay for ChatGPT Plus or above: start with Codex. It is included in the CLI, IDE and web.
- You already pay for Claude: start with Claude Code. It is included from Pro up.
- You pay for both: use both, keep one shared rules file, and give each the jobs it does best for you.
- You pay for neither and code daily: try each entry tier for one month on the same repo. Then keep the one you reached for more.
Whichever you pick, the habits that save the most money are the same on both. Keep the instruction file short. Pick the smallest model that does the job. Review every diff before it ships.
Sources
Checked 11/22/2026. Prices and limits change often, so confirm on these pages before you buy.
