Tailkits comparison

Codex vs Claude Code

Both are coding agents for the terminal, the editor and the cloud, and both start at $20 a month. Codex comes with a ChatGPT plan, has limited free access and an open-source CLI that can run local models. Claude Code runs only Claude models, has no free tier and is built for long, multi-step work, with subagents, 33 hook events and six permission modes.

OpenAI CodexFreemium

OpenAI's coding agent for CLI, IDE, ChatGPT app and cloud, from $20 a month

Anthropic's coding agent for terminal and IDEs: Pro $20, Max $100, Ultra $200

Key differences

  • Free access. ChatGPT Free and Go ($8 a month) include limited Codex: GPT-6 Luna in the ChatGPT desktop app, subject to rollout. Claude Code is not on Claude's free plan.
  • Models. Codex runs OpenAI's models (GPT-6.1 Sol for complex work) and, through its CLI, local models in Ollama or LM Studio. Claude Code runs only Claude models: Opus 5.5 by default, with context windows of up to 1 million tokens.
  • Open source. The Codex CLI, SDK and app server are Apache-2.0; its IDE extension and Codex Cloud are closed. Claude Code is closed source.
  • Limits. Both meter usage in 5-hour windows plus weekly limits. OpenAI publishes ranges per model (15 to 160 local messages per 5 hours with GPT-6.1 Sol on Plus, and no 5-hour limit on Pro); Anthropic publishes only multiples, drops the 5-hour limit on verified Ultra accounts, and Claude Code shares its pool with Claude chat.
  • Control. Codex runs local commands in an operating-system sandbox (Seatbelt on macOS, bubblewrap on Linux, a native sandbox on Windows). Claude Code has six permission modes, including plan and auto mode, and 33 hook events.
  • Parallel and cloud work. Codex Cloud runs tasks from your GitHub repositories while your computer sleeps, and paid plans review pull requests. Claude Code runs background sessions, each in its own git worktree if you choose, cloud sessions and scheduled tasks of up to 30 days.
  • Data. On personal plans both train on your sessions unless you opt out. Codex Business, Enterprise and Edu workspaces, and Claude Team, Enterprise and API use, are not used for training by default.

Codex and Claude Code side by side

From our reviews, checked OpenAI Codex on 21 October 2026, Claude Code on 23 November 2026. Plans and limits change often; check each vendor's pricing page before you pay.

WhatOpenAI CodexClaude Code
TypeCoding agent from OpenAI: open-source CLI, IDE extension, the Codex view of the ChatGPT desktop app (the standalone Codex app was folded into it on 9 July 2026), and Codex CloudAgentic coding tool from Anthropic: terminal agent, IDE extensions, desktop app, web and mobile sessions, background and cloud sessions
Where it runsCLI on macOS, Linux and Windows (installer, npm or Homebrew); extension for VS Code, Cursor and Devin Desktop (formerly Windsurf), with Xcode and JetBrains integrations; ChatGPT desktop app for macOS and Windows, Linux in preview; Codex Cloud from the web, desktop or phone; the ChatGPT app for iOS and Android to start and approve tasks; GitHub, Slack and LinearCLI on macOS, Linux, Windows and WSL; extensions for VS Code (also Cursor and Devin Desktop) and JetBrains IDEs; desktop app for macOS and Windows, Linux in beta (Ubuntu 22.04 or later, Debian 12 or later); claude.ai/code in the browser; the Claude app for iOS and Android; Slack, GitHub Actions and GitLab CI/CD
ModelsGPT-6.1 Sol (recommended for complex work), GPT-6 Astra, GPT-6 Sol, GPT-6 Luna and GPT-5.6 models; local models through Ollama or LM Studio with --oss; Amazon Bedrock, Azure or other providers through the config fileClaude only: Opus 5.5 by default on Pro, Max, Ultra, Team, Enterprise and the Anthropic API, plus Sonnet 5.5, Haiku 5.5 and Fable 5.2 (the fable alias), with context windows of up to 1 million tokens. Also through Amazon Bedrock, Google Cloud, Microsoft Foundry and LLM gateways
Free tierChatGPT Free: "Explore Codex capabilities on quick coding tasks", with GPT-6 Luna in the desktop app, subject to rollout. Go ($8 a month) gets the same model accessNone. The Claude Free plan does not include Claude Code
Paid plansPlus $20 a month; Pro $100, $200 or $500 a month (Ultrafast mode only on $500; other differences between the tiers not verified); Business $25 per user a month, or $20 billed annually, for 2 or more users; Enterprise and Edu through sales. No annual billing for individual plans. Codex pricingPro $20 a month, or $17 a month billed annually ($200 up front); Max $100 a month; Ultra $200 a month, billed monthly only (it replaced Max 20x); Team Standard seat $25 a month ($20 billed annually) and Premium seat $125 ($100), for 2 to 150 people; Enterprise $20 per seat a month, billed annually with a 20-seat minimum, plus usage at API rates
Pay as you goChatGPT credits after you reach your limits (GPT-6.1 Sol: 50 credits per million input tokens, 250 per million output), or an API key at API pricesAn Anthropic Console API key at API rates: Opus 5.5 $4 per million input tokens and $20 per million output, Sonnet 5.5 $2 and $10, Haiku 5.5 from $0.10 and $0.50, Fable 5.2 $8 and $40
How usage is limitedPer OpenAI, estimated local messages per 5 hours on Plus and Standard Business: 15 to 160 with GPT-6.1 Sol, 5 to 45 with GPT-6 Astra, 350 to 3,000 with GPT-6 Luna; weekly limits may apply; Pro has no 5-hour limit; shared with ChatGPT WorkA 5-hour period that starts with your first message, plus a weekly limit, shared by claude.ai, Claude Code and the desktop app. Per Anthropic, Pro gets more usage than Free, Max 5x Pro's every 5 hours and every week, and Ultra 10x Pro's every week with no 5-hour limit once the account is verified. Team seats are sized by tier and shared with Claude chat and Cowork
Open sourceCLI, SDK and app server under Apache-2.0 (openai/codex, 130.3k stars on 21 October 2026); the IDE extension and Codex Cloud are closedNo. The GitHub repository's license reads "All rights reserved"
Data usePersonal plans: tasks are used for training unless you opt out. Business, Enterprise and Edu: not used for training by defaultFree, Pro, Max and Ultra: used for model training unless you opt out, and kept 5 years while training is on (30 days when it is off). Team, Enterprise and API: not used for training by default
Latest notable releaseGPT-6.1 Sol in Codex (29 September 2026); GPT-5.5 retired from Codex for ChatGPT sign-in (14 October 2026); CLI 0.163.0 (15 October 2026)Version 2.1.330 (20 November 2026), which lets scheduled tasks and /loop run for up to 30 days instead of 7; 23 releases on npm since 21 October 2026

Choose Codex if

  • You already pay for ChatGPT Plus or Pro: Codex is included.
  • You want to try it free first, within ChatGPT Free's limits.
  • You want an open-source CLI, local models through Ollama or LM Studio, or providers such as Amazon Bedrock and Azure.
  • You want pull request reviews and cloud tasks on a personal plan.

Choose Claude Code if

  • You prefer Claude's models: Opus 5.5 by default, with up to 1 million tokens of context.
  • You run long or parallel jobs: custom subagents, background sessions in their own git worktrees, cloud sessions and scheduled tasks of up to 30 days.
  • You want fine-grained control through hooks and permission modes, including plan and auto mode.
  • You can budget for Max at $100 or Ultra at $200 a month once Pro's limits bite; Ultra drops the 5-hour limit on verified accounts.

FAQ

Is Codex or Claude Code better?

Neither wins outright. Codex suits developers who already pay for ChatGPT, or who want limited free access, an open-source CLI or local models. Claude Code suits developers who prefer Claude's models and want subagents, hooks and permission modes for long, multi-step work. Both start at $20 a month.

Which is cheaper, Codex or Claude Code?

They start at the same price: ChatGPT Plus and Claude Pro both cost $20 a month, and Codex also has limited access on ChatGPT Free and Go ($8). Above that, ChatGPT Pro costs $100, $200 or $500 a month, and Claude Max $100 and Ultra $200; the API credits that come with Max and Ultra can't be spent in Claude Code. For teams, ChatGPT Business and a Claude Team Standard seat both cost $25 a month, or $20 billed annually. ChatGPT prices as of 21 October 2026, Claude prices as of 23 November 2026.

Which models do Codex and Claude Code run?

Claude Code runs only Claude models, through Anthropic or through Amazon Bedrock, Google Cloud or Microsoft Foundry. Codex is built around OpenAI's models; its open-source CLI can also run local models through Ollama or LM Studio and use other providers set in its config file.

Can I move from Claude Code to Codex?

Yes. Since August 2026, the Codex CLI's /import command brings your setup and recent chats over from Claude Code and Cursor.

Do Codex and Claude Code train on my code?

On personal plans, both can unless you opt out: ChatGPT's "Improve the model for everyone" setting covers Codex tasks, and Claude's privacy settings cover Claude Code. Codex Business, Enterprise and Edu workspaces, and Claude Team, Enterprise and API use, are not used for training by default.

More comparisons