tool comparisonsby updated 6 min read

ChatGPT vs Claude for Coding: Codex and Claude Code Compared

For coding work, the ChatGPT and Claude choice comes down to OpenAI's Codex and Anthropic's Claude Code. Where each one runs, what each plan costs and includes as listed on December 2, 2026, how usage limits work, and how to choose for your team.

For coding, ChatGPT means OpenAI's Codex and Claude means Anthropic's Claude Code. Both read a project, edit files, run commands and run from scripts. Codex in the CLI, the IDE extension and on the web starts with ChatGPT Plus at $20 a month. Claude Code starts with Claude Pro at $20 a month, as listed December 2, 2026.

Both chat apps can write a function you paste into a file. For work on a real project, where the AI reads the code, edits files and runs the tests, the comparison is between OpenAI's Codex and Anthropic's Claude Code. Both are agents that work inside a project folder, and both come with the vendors' paid plans. The facts below come from each vendor's documentation and pricing pages as they read on December 2, 2026. Plans and limits change often, so check the pricing pages before you buy.

Where each one runs

OpenAI's quickstart puts Codex in several places: the ChatGPT desktop app for macOS, Windows and Linux, where you pick Codex from the ChatGPT dropdown, the Codex CLI in a terminal, an IDE extension, cloud tasks on the web, and the Codex view on mobile. The Codex CLI installs with a script, npm or Homebrew, signs in with a ChatGPT account, and runs from scripts and CI with codex exec.

Claude Code runs in a terminal, in VS Code and JetBrains IDEs, in a desktop app and on the web, according to Anthropic's overview. It runs from scripts too, with claude -p, and Anthropic documents GitHub Actions and GitLab CI/CD setups. What Is Claude Code? covers it in more depth.

Plans and prices as listed on December 2, 2026

OpenAI (Codex)Anthropic (Claude Code)
Free plan$0, GPT-6 Luna in the desktop app, subject to rollout$0, no Claude Code
Entry paid planGo, $8 a month, same desktop app access as FreeNone below Pro
Main individual planPlus, $20 a monthPro, $20 a month, or $17 a month billed annually
Heavier usePro at $100, $200 or $500 a monthMax at $100 a month, Ultra at $200 a month
Team planBusiness, $20 per user a month billed annually (2+ users), $25 billed monthlyTeam standard seat, $20 a month billed annually, $25 billed monthly
Pay by usageAPI key at API pricesAnthropic Console account at API prices

On the Codex pricing page, Plus adds Codex on the web, in the CLI, in the IDE extension and on iOS, plus automatic code review and a Slack integration. Codex with an API key works in the CLI, SDK and IDE extension, without the cloud features such as GitHub code review and Slack. Enterprise and Edu plans are priced through sales.

On Claude's pricing page, the free plan doesn't include Claude Code, and Pro, Max and Ultra do. Team plans include Claude Code, with a premium seat at $100 a month billed annually or $125 billed monthly. Enterprise is $20 a seat a month billed annually, with a 20-seat minimum, plus usage at API rates. Anthropic's setup page lists the accounts that work: Pro, Max, Ultra, Team, Enterprise or Console.

How usage limits work

Neither vendor states a fixed number of coding requests per plan. OpenAI says the number of messages you can send depends on the model, the size and complexity of the task, and whether it runs locally or in the cloud. Its estimates for Plus range from 15 to 160 local messages every five hours with GPT-6.1 Sol, and from 350 to 3,000 with GPT-6 Luna. OpenAI notes that these estimates aren't fixed limits, that weekly limits may also apply, and that Pro plans currently have no five-hour limit.

Anthropic sets Claude limits per five hours and per week. Max gives five times Pro usage. Ultra has no five-hour limit for verified accounts and gives ten times Pro usage each week. The pricing page says how fast you reach a limit depends on the model, how long your chats are and how large your files are.

On both sides, coding draws on the same allowance as everything else. OpenAI says ChatGPT Work and Codex share pricing, credits and usage limits, and Anthropic says Claude Code shares the usage limits of the rest of your plan. Paid plans on both can keep working past the included usage with credits, which Anthropic bills at standard API rates.

Project instructions

Each agent reads a standing instructions file before it works. Codex reads AGENTS.md: a global file in ~/.codex, then one file per folder from the project root down to where you're working. It stops adding files at 32 KiB by default.

Claude Code reads CLAUDE.md. According to Anthropic's memory documentation, it also reads AGENTS.md when a project has no CLAUDE.md (from v2.1.277), and a CLAUDE.md can pull an AGENTS.md in with an @AGENTS.md import. So a team that uses both agents can keep shared rules in one AGENTS.md and add Claude-specific rules in CLAUDE.md.

What each one does without asking

Codex's approvals and security page says that in the CLI and IDE extension it runs inside a sandbox enforced by the operating system, with no network access and write access limited to the current workspace by default. It asks before editing files outside the workspace or running commands that need the network.

Claude Code uses permission modes. In Manual mode it asks before most file edits, shell commands and network requests, and reads files in the working folder without asking. Other modes accept edits automatically, plan without editing, or let a classifier review actions instead of you. The permissions page describes each mode and how to write allow and deny rules.

How to choose for your team

Start with what you already pay for. ChatGPT Business includes Codex, and the Claude Team plan includes Claude Code. If your staff already work in one of them, adding coding work there keeps it with a vendor you've already reviewed.

If you're choosing fresh, run both on the same small task in a copy of a real project, such as adding a field to an internal form along with its tests. Give each the same AGENTS.md, then compare the diffs, whether the tests pass and how many times each stopped to ask you something. Keep the task small enough that you can read every line of both results.

For scripted work, both CLIs run from a script. OpenAI suggests an API key for shared environments such as CI, and an API-key session doesn't get Codex's cloud features such as GitHub code review.

Whichever you pick, review each change before it merges, the same as you would for a person's change. For a broader look at the chat products themselves, read Claude vs ChatGPT vs Gemini, and for getting more out of Codex, the ChatGPT and Codex power guide.

Sources

  1. Codex pricing: plans, included usage and API-key billing (OpenAI, ChatGPT docs) (checked 2026-12-02)
  2. ChatGPT quickstart: desktop app, web, Codex CLI and IDE extension (OpenAI, ChatGPT docs) (checked 2026-12-02)
  3. Codex CLI: install, sign-in and codex exec (OpenAI, ChatGPT docs) (checked 2026-12-02)
  4. Custom instructions with AGENTS.md (OpenAI, ChatGPT docs) (checked 2026-12-02)
  5. Agent approvals and security: sandbox and approval policy (OpenAI, ChatGPT docs) (checked 2026-12-02)
  6. Claude plans and pricing (Anthropic) (checked 2026-12-02)
  7. Claude Code overview (Anthropic documentation) (checked 2026-12-02)
  8. Claude Code setup: accounts and system requirements (Anthropic documentation) (checked 2026-12-02)
  9. How Claude remembers your project: CLAUDE.md and AGENTS.md (Anthropic documentation) (checked 2026-12-02)
  10. Configure permissions: permission modes (Anthropic documentation) (checked 2026-12-02)
chatgptclaudecodexclaude codeai codingcomparisonopenaianthropic
go deeper

Worked steps, FAQs and resources on this topic.

read the guide
the list

Get the next one.

Field notes from real deployments, written the way this one was. No schedule promised and nothing sold to you. Unsubscribe whenever.

ready to ship?

Let's build yours.

Reading is the easy part. We do the work. Tell us what's broken and we'll tell you straight up whether we can help.

let's talk