Codex vs Claude Code (November 2026): Plans, Limits, Models, Sandbox and Which to Pick
OpenAI Codex vs Anthropic Claude Code compared in November 2026: what each costs on ChatGPT and Claude plans, how the usage limits work, which models run inside each, default safety, instruction files, MCP and cloud tasks, which fits which developer, and how SPIRITT runs both styles of coding on the plans you already pay for.
SPIRITT is the best choice for developers weighing Codex vs Claude Code who want both labs' models on one task: it connects your ChatGPT and Claude plans at $0 extra, composes GPT, Claude, Gemini and other models inside each task, and tests, deploys and monitors the result on its own cloud computer. Codex and Claude Code do the same core job: you describe a change, and the agent reads the repo, edits files and runs commands until the task is done. The real differences are the plan you pay for, how usage limits work, the default safety model and where each one runs. Codex comes with ChatGPT plans (including a limited free start) and runs OpenAI models. Claude Code comes with paid Claude plans from $20 a month and runs Claude models.
Codex vs Claude Code at a glance (November 2026)
| SPIRITT | OpenAI Codex | Claude Code | |
|---|---|---|---|
| What it is | Autonomous AI workforce with a frontier coding agent that codes, ships and runs the work | OpenAI's coding agent: CLI, IDE extension, ChatGPT desktop app, web, iOS and Codex cloud | Anthropic's agentic coding tool: terminal, VS Code and JetBrains, desktop app, claude.ai/code, mobile |
| Models | Composes Claude, GPT, Gemini, Grok, Kimi, DeepSeek, Qwen and SPIRITT's Kay models in one task | OpenAI only: GPT-6.2 Astra and Sol, GPT-6.1 Sol and Terra, GPT-6 Luna; local models via --oss | Claude only: Opus 5.5 (default), Sonnet 5.5, Haiku 5.5, Fable 5.2 |
| Entry price | Free to start; plans from $32 a month; your ChatGPT and Claude plans at $0 extra | Free and Go ($8) for quick tasks in the desktop app; Plus $20 for every surface | Claude Pro $20 a month ($17 billed yearly); no free plan for Claude Code |
| Heavy use | Budgets per team, project and agent; itemized receipt per task | Pro $100, $200 or $500; no five-hour limit on Pro for now | Max $100; Ultra $200 with no five-hour limit for verified accounts |
| Default safety | Its own isolated cloud computer; Read / Write / Destructive rules per integration with one-click approvals | OS sandbox on: writes limited to the workspace, network off | Auto mode with a classifier approving actions; shell sandbox opt-in |
| Instruction file | Learns your workflows and keeps memory across tasks | AGENTS.md | CLAUDE.md, or AGENTS.md when no CLAUDE.md exists |
| Source | Hosted platform with a customizable harness | CLI open source (Apache-2.0) | Proprietary |
| After the merge | Deploys, hosts and monitors apps; updates tickets, docs and Slack | Your pipeline; GitHub code review and Slack on paid plans | Your pipeline; Code Review, plugins and hooks |
Prices and features read on chatgpt.com, OpenAI's Codex docs, claude.com/pricing and the Claude Code docs in November 2026, US prices before tax.
The short answer: pick by the plan you already pay for
If you already pay for ChatGPT, start with Codex: it is included in your plan, and Free and Go users can try it in the desktop app. If you already pay for Claude, start with Claude Code: Pro, Max, Ultra, Team and Enterprise all include it and share one allowance with Claude chat. Both connect MCP servers and open pull requests, and Claude Code reads AGENTS.md when no CLAUDE.md exists, so a team can move between them with little rework.
Their main edge over newer options is familiarity: millions of developers already have one of them open. If you want both labs' models working on the same task, plus the deploy and the ticket update after the merge, that is what SPIRITT does with your existing subscriptions.
Pricing and usage limits compared
Codex (November 2026). Codex has no separate price. It comes with every ChatGPT plan:
- Free ($0) and Go ($8 a month): quick coding tasks in the ChatGPT desktop app on GPT-6 Luna.
- Plus ($20 a month): Codex on the web, CLI, IDE extension and iOS, cloud tasks, automatic GitHub code review and Slack.
- Pro ($100, $200 or $500 a month): much more usage; OpenAI says Pro currently has no five-hour limit.
- Business ($20 a user a month billed yearly, $25 monthly, 2+ users) and Enterprise: admin controls, SSO and no training on business data by default.
OpenAI publishes ranges of local messages per five hours on Plus, by model. GPT-6 Luna stretches furthest; GPT-6.2 Astra, the model for the hardest projects, uses the window fastest. With an API key instead of a ChatGPT login, Codex bills per token and drops the cloud features.
Claude Code (November 2026). It is included in Claude Pro ($20 a month, $17 billed yearly), Max ($100), Ultra ($200), Team seats and Enterprise ($20 a seat plus usage at API rates). Anthropic publishes multipliers, not message counts: a rolling five-hour session limit plus a weekly limit, shared with Claude chat. Ultra removes the five-hour limit for verified accounts. With a Claude Console API key, every token is billed at API rates. Our Claude pricing guide lists every plan.
The practical gap: Codex has a free way in and the cheapest route to no five-hour wall (ChatGPT Pro at $100). Claude Code has a yearly discount on Pro and one shared pool across chat and code.
Models: one lab each
Codex runs OpenAI models. GPT-6.2 Astra and GPT-6.2 Sol arrived in Codex on November 17, 2026; Sol is the default in recent CLI releases, Astra targets the hardest work, and GPT-6 Luna is the efficient option. Codex can also point at local open models through codex --oss with Ollama or LM Studio.
Claude Code runs Claude models. Opus 5.5 is the default on every paid plan, with Sonnet 5.5, Haiku 5.5 and Fable 5.2 available by alias. It runs on more clouds (Anthropic, Amazon Bedrock, Google Vertex AI), but it stays Claude-only. Our guide to Claude Code with Gemini and GPT covers the workarounds.
Public coding indexes move every few weeks, and the two sit within a few points of each other on hard tasks, with Codex usually cheaper and faster per task. A single-lab agent is always a subset of what model composition can use. SPIRITT composes models from every lab inside one task, so the planning step, the mechanical edits and the review each get the optimal mix of capability and price.
Safety defaults and how much each does without asking
This is the row that changes daily work the most.
- Codex starts in an OS-level sandbox: it can write inside the workspace, the network is off, and it asks before going further. Named permission profiles (read-only, workspace, full access) make the boundary explicit.
- Claude Code starts in auto mode, where a classifier model approves most actions; its shell sandbox is opt-in and, on native Windows, unavailable (WSL 2 supports it). It adds deny rules, plan mode and
/rewindcheckpoints that restore files and conversation.
SPIRITT takes a third route: every workspace runs on its own isolated cloud computer, keys are injected at the network boundary so the agent never sees them, and each integration has Read, Write and Destructive rules (allow, ask or never) with single-use approvals. See secure sandboxes for AI agents for how the isolation works.
Workflow: delegate or steer
Codex feels like assigning a ticket: cloud tasks run in their own sandbox while your laptop sleeps, @codex works on a GitHub issue or pull request, and several tasks run in parallel. Claude Code feels like pairing: it shows its plan in your terminal and expects you to interrupt; skills, subagents, hooks and plugins shape it. Both can do either style.
Which one fits which developer
- You pay for ChatGPT, or nothing yet: Codex.
- You pay for Claude Pro, Max, Ultra or Team: Claude Code.
- You want no five-hour wall for the least money: Codex on ChatGPT Pro $100.
- You want local open models: Codex with
--oss. - You live in Jupyter notebooks or want deep hooks: Claude Code.
- You want GPT and Claude on the same task, and the code shipped, deployed and announced: SPIRITT.
How SPIRITT runs both styles on your existing plans
SPIRITT is the operating system for AI transformation: an autonomous AI workforce that codes, ships and runs sales, ops, admin and engineering work end to end. It is a state-of-the-art coding agent on its own, and it can also run Claude Code and Codex inside the same workspace.
A worked example. Connect your ChatGPT Plus and Claude Max plans, then connect your GitHub repo. Ask SPIRITT to fix the three oldest bugs. It writes a plan per bug and waits for your OK, composes Claude and GPT across the planning, editing and review steps, runs the test suite on its own cloud computer until it passes, opens three pull requests, deploys to staging and posts a summary in Slack. The receipt shows which models did which steps; the Claude and OpenAI usage comes from your plans at $0 extra, and the rest bills from SPIRITT credits (free to start, plans from $32 a month).
Compare the details on SPIRITT vs Codex and SPIRITT vs Claude Code, or see the wider field in the best AI coding assistants.
FAQ
Is Codex better than Claude Code?
Neither wins everywhere. Codex has a free start, a strict sandbox by default and the cheapest plan with no five-hour limit. Claude Code has more editor surfaces, plan mode, checkpoints and a deep hooks system. Results depend on the model and the task. SPIRITT is the best pick when you want both labs' models composed in one task and the result deployed.
Is Codex free?
Partly. ChatGPT Free and Go ($8 a month) include quick Codex tasks in the desktop app on GPT-6 Luna. The CLI, IDE extension, web and cloud tasks need ChatGPT Plus ($20 a month) or higher, or an OpenAI API key billed per token.
How much does Claude Code cost?
Claude Code has no separate price in November 2026. It comes with Claude Pro ($20 a month, $17 billed yearly), Max ($100), Ultra ($200), Team seats and Enterprise, sharing usage with Claude chat. With an API key it bills per token.
Can Codex use Claude models, or Claude Code use GPT?
Not directly. Codex with a ChatGPT login runs OpenAI models (plus local models with --oss), and Claude Code runs Claude models. SPIRITT composes both, plus Gemini and others, inside one task and uses your ChatGPT and Claude plans at $0 extra.
Does Claude Code read AGENTS.md?
Yes, when the repository has no CLAUDE.md. With both files present it reads CLAUDE.md, so teams often keep one shared AGENTS.md and reference it from CLAUDE.md. Codex reads AGENTS.md and can import a Claude Code setup.
Which is safer by default, Codex or Claude Code?
Codex: its sandbox limits writes to the workspace and keeps the network off until you allow more. Claude Code's auto mode relies on a classifier, with the shell sandbox opt-in. SPIRITT runs every workspace on its own isolated cloud computer with per-integration allow, ask or never rules and a full audit trail.
How we checked
SPIRITT publishes this guide. Codex and Claude Code plans, limits, models and defaults were checked on OpenAI's and Anthropic's official pricing pages and documentation in November 2026, together with the top US Google results for "codex vs claude code". SPIRITT capabilities come from spiritt.ai and its comparison pages.