Claude Code vs OpenAI Codex is a close match on paper: both are coding agents that read your repo, edit files, run commands and open pull requests, and both come bundled with a chat subscription. The clearest difference is access. Codex is included on every ChatGPT plan, free ones too, while Claude Code needs a paid Claude plan.
We haven't finished testing either agent, so this page only covers what each company says about its own product. Every figure was read from the official pages on December 6, 2026. Prices change often, so check before you buy.
Claude Code vs OpenAI Codex at a glance
| Claude Code | OpenAI Codex | |
|---|---|---|
| Made by | Anthropic | OpenAI |
| Free access | Not on Claude's free plan | Included in ChatGPT Free and Go ($8/month) |
| Main paid plan | Pro, $20/month ($17/month billed yearly) | Plus, $20/month |
| Heavier use | Max $100, Ultra $200 a month | Pro at $100, $200 or $500 a month |
| Team plan | Team, $25 per seat monthly or $20 yearly (Standard) | Business, $25 per user monthly or $20 yearly |
| Pay by API instead | Yes, through an Anthropic Console account | Yes, with an API key in the CLI, SDK or IDE extension |
| Our verdict | Testing in progress | Testing in progress |
Sources: Claude pricing, Claude Code product page, Codex pricing, OpenAI Codex.
How usage is limited
Claude Code shares your Claude plan's limits, which reset in 5-hour and weekly windows. Max gives 5x the Pro allowance, and Ultra drops the 5-hour limit for verified accounts with 10x Pro's weekly usage. Anthropic's pricing page puts it simply: "Claude Code is included in all paid plans."
Codex shares ChatGPT's limits too. OpenAI gives estimated ranges of local messages per five hours for Plus and Business, which vary a lot by model, and says weekly limits may also apply. Pro currently has no five-hour limit. Cloud tasks can use more of your allowance than local ones.
On both, if you'd rather pay per use, you can sign in with an API account instead. OpenAI notes that API-key sessions can't use cloud features like GitHub code review and Slack.
Where each one runs
Claude Code runs in your terminal, VS Code, JetBrains IDEs, the Claude desktop app, the web and mobile apps, and Slack (Claude Code docs). In the terminal it works on the project folder on your machine. On the web it runs in Anthropic's cloud, which suits long tasks or repos you don't have locally. It works with git directly and can automate reviews through GitHub Actions or GitLab CI.
Codex runs in ChatGPT, the Codex desktop app, an IDE extension, the Codex CLI and Codex cloud. OpenAI's tagline is "Codex keeps going when you close your laptop," since cloud tasks run in environments set up per repo. The CLI and IDE extension run locally inside a sandbox that uses each operating system's own controls, such as Seatbelt on macOS and bubblewrap on Linux (Codex sandboxing). By default the agent can edit inside your workspace, and asks for approval to go further. Codex can also review pull requests on GitHub automatically.
Who each one is for
Both are aimed at developers and engineering teams, not people looking for a no-code builder.
- Claude Code pitches itself as the tool you hand a bug fix, test or multi-day migration to, while you set its permissions and review the work.
- Codex describes itself as an agent for real engineering work, from planning features to refactors, reviews and releases, with the same agent across every surface.
Which should you try first?
Until our tests are done, pick by what you already pay for:
- You have ChatGPT, even free: you can try Codex today at no extra cost, within its limits.
- You already pay for Claude: Claude Code is included, so start there.
- You want local and cloud in one tool: both offer a terminal agent plus cloud tasks, so compare them on the same small repo.
For the full Claude price breakdown, see Claude Code pricing, or read Cursor vs Claude Code. See how coding agents compare with app builders in our comparison.