Claude Code vs Codex

The two leading coding agents do similar jobs in different ways. Here is how Anthropic's Claude Code and OpenAI's Codex compare, and why many people use both.

Claude Code (Anthropic) and Codex (OpenAI) are coding agents: tools, sometimes called harnesses, that connect a frontier AI model (Claude, or OpenAI's GPT models) to your project. You describe a task, and the model reads your files, makes edits and runs commands through the tool to complete it. They're closer than they are different, so the choice often comes down to which plan you already have and which models you prefer.

At a glance

Claude CodeCodex
Made byAnthropicOpenAI
Plans that include itPro ($20), Max ($100), Ultra ($200), Team, Enterprise; not FreeChatGPT Free and Go (limited), Plus ($20), Pro (from $100), Business, Edu, Enterprise
Pay-as-you-goAnthropic Console API billingOpenAI API key
Where it runsTerminal, Claude desktop app, VS Code and JetBrains, web, mobileTerminal, the Codex app, VS Code-family editors, web and cloud
ModelsAnthropic's Opus, Sonnet and Haiku familiesOpenAI's GPT models, including coding-tuned ones
Open sourceNoCLI is Apache 2.0
Project instructionsCLAUDE.md (can also read AGENTS.md)AGENTS.md
MCP toolsSupportedSupported
SubagentsSupportedSupported

Plans and prices as listed by Anthropic and OpenAI in November 2026.

Price and access

Codex is the easier one to try: it's included, with limits, even on ChatGPT's free plan. Claude Code starts with Claude Pro. At the popular $20 tier, both companies include their agent with usage limits that reset over time, and both offer higher tiers for heavy use. If you already pay for one of these plans, start with the agent it includes.

How they work

Their terminal, desktop and editor versions run on your computer, but the model itself runs in the cloud: your prompts, and the parts of your code each request needs, are sent to Anthropic or OpenAI and handled under that company's terms. Both ask before doing anything risky by default, with modes that give them more or less freedom: Claude Code has permission modes (cycled with Shift+Tab), and Codex has approval modes and a sandbox. By default, in a Git folder, Codex's sandbox lets it edit your project but keeps network access off; elsewhere it starts read-only. Both read project instruction files, connect to MCP tools and can run subagents.

Differences that matter

  • Models. The biggest real difference. Some people prefer Claude's models for certain work and OpenAI's for others; it's worth trying both on your own code.
  • Open source. Codex's CLI is open source; Claude Code is not.
  • Interfaces. In the desktop apps, Claude Code is the Claude app's Code tab and Codex has its own Codex app. Both have editor extensions and web versions.
  • Free access. Codex has limited free use; Claude Code doesn't.

Why not both?

Many developers keep both available and pick per task, or ask one to review the other's work. Since both operate on ordinary project files, switching is easy. Nexus, a native Mac app, puts Claude Code, Codex and free local models behind one chat, with the same diff and restore point for every task, so you can compare their results task by task and roll back any of them. Nexus will be a one-time purchase of $199 USD, with no Nexus subscription, for Apple silicon Macs. Connecting third-party AI services such as Claude Code or Codex is optional and at your own expense (see Nexus pricing). It uses your own Claude and ChatGPT plans, and it's coming soon.

Frequently asked questions

Is Claude Code or Codex cheaper?

Codex is included with every ChatGPT plan, including limited use on Free and Go ($8 a month). Claude Code needs at least Claude Pro ($20 a month) or API billing. At $20 a month, ChatGPT Plus and Claude Pro both include their agent.

Can I use Claude Code and Codex together?

Yes, on the same project, since both work on the files in your folder. Nexus, a Mac app that is coming soon, lets you switch between them, and local models, in one chat.