The Techno-WitchWe read the fine print so you don't have to.

Consult the almanac

Turning the pages…

Arrow keys to move, Enter to open, Esc to close. Every answer links to a dated page.



Versus · Duels

Codex vs Claude Code: Which Coding Agent to Pay For

Codex comes with every ChatGPT plan, even Free. Claude Code starts with Claude Pro at $20 a month. Here's where each runs and how the limits work.

Some links on this site may earn us a commission. It never changes a price, a verdict or what we tell you to skip. How we make money.

In this story (7 sections)
  1. What Codex and Claude Code actually are
  2. Codex vs Claude Code pricing: the monthly ladder
  3. Where each one runs: terminal, editor, app and browser
  4. Usage limits: how each company words your mana
  5. Paying through the API, and the key that hexes your bill
  6. Privacy defaults for your code
  7. What to do next

Codex is the one you can try for $0, because OpenAI includes it in ChatGPT Free. If you're paying anyway, Codex comes with ChatGPT Go at $8 a month and Claude Code starts with Pro at $20 a month, so pick by the apps you already use and how each one words its limits.

Prices and plans are as of November 27, 2026, in US dollars. For local prices in India or the UK, check Claude's pricing page or OpenAI's Codex pricing page from your country.

What Codex and Claude Code actually are

Both are coding agents: you describe a task in plain English and the agent works on the code itself instead of just chatting about it.

Claude Code is "an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools" (Claude Code overview). Codex is "OpenAI's coding agent that helps you write, review, and ship code," and the Codex CLI is "a coding agent from OpenAI that runs locally on your computer" (Codex help article).

Two words you'll need. The terminal is the plain text window where you type commands to your computer. An IDE is the app programmers write code in, like VS Code.

We won't rank which one writes better code. The boring stuff decides your bill: access, price, where it runs and limits.

Codex vs Claude Code pricing: the monthly ladder

Every price here is monthly. Claude's exclude tax. Full breakdowns live in our Claude Code pricing and ChatGPT pricing guides.

Tier Codex (ChatGPT plan) Claude Code (Claude plan)
Free Free, $0: included, limited Free, $0: not included
Entry Go, $8 a month: included No plan between Free and Pro
Main Plus, $20 a month Pro, $20 a month
Bigger Pro, from $100 a month (tiers at $100, $200 and $500) Max, $100 a month; Ultra, $200 a month
Small team Business, $25 per user a month billed monthly Team Standard seat, $25 per seat a month; Premium seat, $125 per seat a month (billed monthly)
Large org Enterprise and Edu: contact sales Enterprise: $20 per seat a month billed annually, plus usage at API rates

Codex is included in ChatGPT Free, Go, Plus, Pro, Business, Edu and Enterprise (OpenAI pricing). Claude Code is included in Pro, Max, Ultra, Team and Enterprise, and shows "No" on Free (Claude pricing).

From $20 a month up, the ladders line up: $20, $100 and $200 on both sides, with ChatGPT adding a $500-a-month Pro tier at the top. The real gap is below $20. OpenAI has Free and Go there, and Claude Code has nothing.

One catch on the cheap ChatGPT plans: Codex Cloud is not included with Free or Go. Free is pitched as a way to "Explore Codex capabilities on quick coding tasks." Our read: a tasting menu, enough to see if you like the idea.

For a free trial of Claude Pro or Max, check claude.com/pricing.

Where each one runs: terminal, editor, app and browser

Claude Code runs in the terminal, as a VS Code and Cursor extension, as a JetBrains plugin (which needs the terminal version installed separately), in a desktop app, and on the web at claude.ai/code. The web version works in desktop browsers and in the Claude app for iOS and Android (overview).

Codex runs in the ChatGPT desktop app, the ChatGPT mobile app, ChatGPT on the web, the Codex CLI, the Codex IDE extension and Codex Cloud. Editor support covers VS Code, Cursor, Windsurf and VS Code Insiders, plus Xcode and JetBrains integrations. Local work runs on your device. Cloud tasks run in environments OpenAI manages (Codex docs).

Operating systems:

  • Claude Code terminal: macOS 13.0+, Windows 10 1809+ or Windows Server 2019+, Ubuntu 20.04+, Debian 10+, Alpine Linux 3.19+, with 4 GB+ of RAM and an internet connection (setup page).
  • Claude desktop app: macOS and Windows, with Ubuntu and Debian in beta.
  • ChatGPT desktop app (for Codex): macOS, Windows or Linux (app page).

Usage limits: how each company words your mana

Neither gives you a fixed number of messages.

Claude Code: Pro and Max have "a five-hour session limit and a weekly limit" (Claude Code plan help). Ultra has a weekly limit, and verified Ultra accounts have no five-hour limit. The pricing page calls Pro "More usage than Free," Max "5x Pro usage" and Ultra "10x Pro usage." Our Claude usage limits guide goes deeper.

Codex: "Your ChatGPT plan includes a usage allowance," and local messages and cloud chats share it. OpenAI's estimates "are not fixed message limits." The Plus example is 17 to 180 local messages per five-hour period on GPT-6.2 Sol. OpenAI says Pro currently has no five-hour limit.

OpenAI's pricing page adds that starting in December, the Plus, Pro and Business allowance "will be shared across ChatGPT and Codex." The page gives no year.

When you run out:

  • Claude Code: turn on usage credits, billed at standard API rates on top of your plan, or wait for the reset. The monthly API credits that come with Max and Ultra can't be used for Claude Code.
  • Codex: wait for the reset, upgrade, or "buy credits to continue using eligible features" (usage limits help).

Paying through the API, and the key that hexes your bill

Both can skip the subscription and bill per token. Claude Code works with an Anthropic Console account and with Amazon Bedrock, Google Cloud and Microsoft Foundry. One trap to dodge: if ANTHROPIC_API_KEY is set on your computer, Claude Code uses it instead of your subscription, and you get API charges (Claude help center).

For Codex, "API-key sessions use separate API pricing, not your ChatGPT allowance." Signing in to the CLI with a ChatGPT account is the simple path. An API key "requires additional setup."

Privacy defaults for your code

On ChatGPT Free, Plus and Pro personal workspaces, "data sharing is enabled by default." Turn it off under Settings, Data controls, "Improve the model for everyone." Business, Enterprise and Edu aren't used for training by default (data controls FAQ).

On Claude's consumer plans, Anthropic gives "you the choice" on training, and that covers Claude Code. Retention is 5 years if you allow training and 30 days if you don't. Team, Enterprise and API use isn't trained on unless the customer opts in (data usage). Check your setting at claude.ai/settings/data-privacy-controls.

What to do next

  • Just curious, $0 budget: start with Codex on ChatGPT Free. Claude Code has no free plan.
  • Tight budget: ChatGPT Go at $8 a month includes Codex, minus Codex Cloud.
  • Ready for $20 a month: ChatGPT Plus and Claude Pro cost the same, so we'd pick the app you already use.
  • Coding all day: line up ChatGPT Pro at $100 a month against Claude Max at $100 a month, or $200 against $200. If five-hour windows would cramp you, look at ChatGPT Pro (no five-hour limit, per OpenAI) or Claude Ultra (none for verified accounts).
  • Mostly on your phone: Codex runs in the ChatGPT mobile app, and Claude Code's web version runs in the Claude app.

Receipts

Official pages behind this story, read Nov 27, 2026
  1. code.claude.com
    What is Claude Code? · Where does Claude Code run?
  2. claude.com
    Which Claude subscriptions include Claude Code, and at what price?
  3. code.claude.com
    Which operating systems does Claude Code support?
  4. support.claude.com
    How does Anthropic word Claude Code usage limits? · What happens when you hit the Claude Code limit?
  5. platform.claude.com
    Can Claude Code be billed through the API?
  6. code.claude.com
    What are Claude Code's data and training defaults?
6 more receipts
  1. help.openai.com
    What is Codex? · Is there free access to Codex?
  2. learn.chatgpt.com
    Which ChatGPT plans include Codex, and at what price? · How does OpenAI word Codex usage limits?
  3. learn.chatgpt.com
    Where does Codex run?
  4. learn.chatgpt.com
    Which operating systems does Codex support?
  5. help.openai.com
    What happens when you hit the Codex limit?
  6. help.openai.com
    What are Codex's data and training defaults?

Only pages the company publishes itself are listed. How we check: our method. Spotted a wrong number? Corrections.

Filed under

Versus: Duels“codex vs claude code”

Front page