Codex (OpenAI) and Claude Code (Anthropic) do the same job: you describe what you want, and the agent reads your project, edits files, runs commands and shows you what changed. Which one to use mostly comes down to price, how much you'll use it, and the tools you already have. Prices and limits here were checked on 1 December 2026, from what the two companies publish.

Price

  • To start, Codex is cheaper. It comes with every ChatGPT plan, including Free and Go ($8 a month), with a limited amount on OpenAI's lowest-priced model. Claude Code has no free version; it starts with Claude Pro at $20 a month ($17 billed yearly).
  • At $20 it's a tie: ChatGPT Plus and Claude Pro.
  • Above that: $100 (ChatGPT Pro or Claude Max) and $200 (ChatGPT Pro or Claude Ultra). Only ChatGPT has a $500 tier.
  • Teams: both are $25 a seat a month, or $20 billed yearly.

Usage limits

Both have a limit that resets every 5 hours on the $20 plans, and both can add a weekly limit. OpenAI estimates about 15 to 160 messages every 5 hours on GPT-6.1 Sol for Plus. Anthropic no longer publishes a number for Pro. Both count work, not messages, so a long session on a big project uses far more than a small fix.

Two differences matter. On Claude, chat and Claude Code share one allowance; on ChatGPT, everyday chats are unlimited and Codex has its own. And at $200, both drop the 5-hour limit and keep only a weekly one.

Day to day

The two have become very alike: terminal, VS Code and JetBrains, a desktop app, the web and a phone app; cloud tasks; a project notes file (AGENTS.md for Codex, CLAUDE.md for Claude Code, which can also read AGENTS.md); and MCP connections. Codex's command-line tool is open source; Claude Code is not. Both work with an API key.

Which one?

Neither wins at everything, and the benchmark lead changes hands with each new model. Trying both is cheap: Codex costs nothing to try and Claude Code costs $20 for a month. Give both the same small task in your own project and compare.

Sources

This is the short version. The full guide, with every step and source, is on GeekSpark.