Skip to content
CodeBurn
Menu

Codex vs Claude Code

At a regular workload: OpenAI Codex's cheapest plan that fits is OpenAI API at $260.14/mo (pay per use), or Pro 100 at $100/mo if our estimate holds (OpenAI Codex doesn't publish that limit); Claude Code's cheapest plan that fits is Max at $100/mo (published or measured limit). Pick OpenAI Codex if you already pay for ChatGPT and want the coding agent on that bill. Pick Claude Code if you want Claude in the terminal, or you would rather pay the Claude API.

Head to head

Light, Regular, and Heavy use daily-driver models and leave team seats off. Full plan cards stay on the tool pages.

  • Light

    OpenAI Codex. $59.98 · OpenAI API (pay per use) Our estimate: ~$20 · Plus likely covers it (estimate; OpenAI Codex doesn't publish the limit)

    Claude Code. $20 · Pro (published or measured limit)

  • Regular

    OpenAI Codex. $260.14 · OpenAI API (pay per use) Our estimate: ~$100 · Pro 100 likely covers it (estimate; OpenAI Codex doesn't publish the limit)

    Claude Code. $100 · Max (published or measured limit)

  • Heavy

    OpenAI Codex. $659.79 · OpenAI API (pay per use) Our estimate: ~$100 · Pro 100 likely covers it (estimate; OpenAI Codex doesn't publish the limit)

    Claude Code. $100 · Max (published or measured limit)

  • Usage model

    OpenAI Codex. Plan allowance plus model-specific message ranges on Plus and standard Business. The range unit is not labeled on the page. API is per million tokens.

    Claude Code. Shared 5-hour session limit and weekly limit. Size is not published. API is per million tokens.

  • Key gotcha

    OpenAI Codex. Plus is $20 and Pro starts at $100 on the Codex pricing cards. Pro at $100, $200, and $500 is monthly only.

    Claude Code. Claude Max and Ultra include platform API credits that cannot be used in interactive Claude Code.

Open the calculator to change days, tokens, or the model class. OpenAI Codex · Claude Code · OpenAI Codex source · Claude Code source

Good to know

  • Codex comes with a ChatGPT plan: Plus $20, and Pro at $100, $200 or $500 a month. The Pro tiers are monthly only. OpenAI describes Plus as a few focused coding sessions a week and Pro as full workdays; it prints no hour or token quota.
  • Claude Pro is $20 (or $200 a year), Max $100 (described as 5× Pro) and Ultra $200 (10× Pro a week, with no 5-hour cap for verified accounts). These are multiples, not token counts, and the pool is shared with chat on claude.ai.
  • Usage does not cross: a used-up Codex allowance does not become Claude usage, or the other way round. Pick the company whose model you will actually call.
  • Claude Max and Ultra include platform API credits that cannot be spent in interactive Claude Code sessions (headless claude -p and the Agent SDK can use them), so they are not a reason to pick Ultra for terminal work.
  • If you would use up either plan, compare the API routes: no seat and every token billed. Compare rates only for the model the agent will really call.
  • Switching: Codex reads AGENTS.md; Claude Code reads CLAUDE.md and also AGENTS.md. Logins, CLI state and API keys stay with each vendor.

From the vendors' pages. The verdict and table above are computed from today's data; trust them where the two differ.

Where the docs differ

Rows where OpenAI Codex and Claude Code say the same thing are left off this page. The full matrix is on extensibility.

CapabilityOpenAI CodexClaude Code
HarnessTerminal CLI that works on the local repo, plus an IDE extension that uses the files already open in the editor. Codex CLI Codex IDE extensionTerminal, IDE extensions, the Desktop app, and cloud sessions. Claude Code overview
Bring your own model or keyCustom model_providers with a base URL and key, plus built-in Bedrock and GCP. Codex advanced configBedrock, Vertex AI, Microsoft Foundry, or an LLM gateway via ANTHROPIC_BASE_URL. Claude models only. Claude Code LLM gateway
Local or open-weight models--oss with Ollama or LM Studio (oss_provider). Codex advanced configNot supported. Anthropic does not support routing Claude Code to non-Claude models. Claude Code LLM gateway
MCPSTDIO and Streamable HTTP in config.toml, shared by the CLI and the IDE. Codex MCPLocal stdio and remote HTTP, SSE, and WebSocket. Reviewed connectors are listed in the Anthropic Directory. A total count is not published. Claude Code MCP
Adding a custom connectorA custom remote server is a name plus a URL in config.toml or the CLI. OpenAI Docs MCPAdd a server with claude mcp add or a project .mcp.json file. Claude Code MCP
Rules and instruction filesAGENTS.md files are read from ~/.codex and from the repo, root to the working directory. Codex prompting guideCLAUDE.md at user, project, and local scope, and AGENTS.md. Claude Code memory
Hookshooks.json events include PreToolUse, PostToolUse, and SubagentStop. Codex hooksUser-defined commands run at lifecycle events, including inside subagents. Claude Code hooks reference
Subagents or background agentsSubagents are documented. Codex subagentsCustom subagents are markdown files and can be given their own MCP servers. Claude Code subagents
CLI or CIcodex exec, and the GitHub Action openai/codex-action@v1. Codex non-interactive modeHeadless claude -p, the GitHub Action anthropics/claude-code-action, and GitLab CI/CD. Claude Code headless
Privacy controlsChatGPT sign-in follows the workspace's retention and residency. An API key follows the API org's settings. Local history.persistence. Codex auth Codex config referenceConsumer training toggle (30-day retention, or 5 years if opted in). Commercial and API data are not used for training. ZDR is available for orgs. DISABLE_TELEMETRY and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. Claude Code data usage
Offline usePartial: local OSS providers. Full offline is not stated. Codex advanced configNo. Requires api.anthropic.com or a cloud-provider endpoint. Claude Code network config
Lock-in and exportThe CLI and SDK are open source. Instructions live in AGENTS.md. openai/codexProject instructions and settings are files in the repo. A subscription-export tool is not documented. Claude Code directory

Report an error to hello@codeburn.dev.