Comparison

Claude Code vs Codex (2027): Surfaces, Pricing and Fit

Claude Code vs OpenAI Codex compared from each vendor's own docs: where they run, what they cost, how they customise and which one fits your work.

Contents

Claude Code and Codex are the two coding agents most teams end up choosing between. Both read your repository, edit files, run commands, work with git, connect to MCP servers and run several agents in parallel. The choice comes down to the models you want, the plan you already pay for and the surfaces your team works in.

This comparison uses only what Anthropic and OpenAI publish about their own products, checked on 24 November 2026. Where one vendor documents something and the other does not, we say so rather than guess.

The short answer

  • Pick Claude Code if you want Claude's models, a terminal-first agent that also runs in VS Code, JetBrains, a desktop app and the browser, and the option to point the CLI and IDE extensions at third-party model providers.
  • Pick Codex if your team already pays for ChatGPT, you want cloud tasks, automatic GitHub code review and a Slack integration included in the plan, or you want an open-source CLI (Apache-2.0).
  • Use both if different work suits different models. AGNT runs either one on the subscription you already have, and puts workflows, memory and a receipt around each run.

Side by side

Claude Code OpenAI Codex
Made by Anthropic OpenAI
Surfaces Terminal CLI, VS Code, JetBrains, desktop app, web and the Claude mobile apps Codex CLI, IDE extension, ChatGPT desktop app, web (Codex cloud), iOS, SDK
Access A Claude subscription or an Anthropic Console account; the CLI, VS Code and JetBrains also support third-party providers A ChatGPT plan (Free, Go, Plus, Pro, Business, Enterprise/Edu) or an API key
Cheapest paid way in A paid Claude plan Go at $8/mo or Plus at $20/mo
API-key use Set ANTHROPIC_API_KEY and approve it API key covers the CLI, SDK and IDE extension, without cloud features
Project instructions CLAUDE.md, and it can read an existing AGENTS.md AGENTS.md
Extensions MCP, skills, hooks, plugins MCP, skills, plugins, connectors
Parallel work Subagents coordinated by a lead agent, background agents, the Agent SDK Subagents and custom agents, cloud chats
Scheduled work Cloud scheduled tasks (run with your computer off) and desktop scheduled tasks Scheduled tasks
Code review GitHub Code Review, GitHub Actions and GitLab CI/CD GitHub code review and automatic PR reviews (cloud plans)
Chat integrations Slack (mention @Claude for a pull request), plus Channels for Telegram, Discord, iMessage and webhooks Slack and Linear cloud integrations
Open source Not stated by Anthropic The Codex CLI is open source (Apache-2.0)

Where each one runs

Claude Code is one engine behind every surface, so a repository's CLAUDE.md, settings and MCP servers work the same in the terminal, the IDE, the desktop app and the browser. The desktop app runs several sessions side by side, reviews diffs visually and schedules recurring tasks; the web version runs long tasks on repositories you do not have locally. Sessions move between surfaces: start on the web or your phone and pull the work into your terminal.

Codex spans the CLI, an IDE extension, the ChatGPT desktop app for local chats, Codex cloud on the web and iOS, and an SDK for scripting. On a ChatGPT plan the cloud features (cloud chats, GitHub code review, Slack and Linear) come with it; with an API key you get the CLI, SDK and IDE extension, billed at API rates and without the cloud features.

What they cost

Codex shares pricing and usage limits with ChatGPT. OpenAI lists Free ($0), Go ($8/mo), Plus ($20/mo), Pro (from $100/mo, with $100, $200 and $500 tiers), Business ($20 per user per month billed annually for two or more users, $25 monthly) and Enterprise & Edu through sales. On Plus and Business, usage is an allowance per five-hour window that depends on the model and the task, and cloud tasks can use more of it than local messages; OpenAI says Pro currently has no five-hour limit.

Claude Code needs a Claude subscription or an Anthropic Console account for most surfaces; the desktop app needs a paid subscription. The CLI, VS Code and JetBrains integrations can also use third-party model providers. Anthropic lists current plan prices on code.claude.com.

How you customise them

Both read a markdown file of project instructions: CLAUDE.md for Claude Code (which also reads an existing AGENTS.md) and AGENTS.md for Codex. Both connect to MCP servers and support skills and plugins. Claude Code adds hooks, shell commands that run before or after its actions, such as formatting after every edit, and builds its own memory across sessions. Codex documents sandboxing and permission controls, and an approval and sandboxing policy that decides whether the agent can write outside the workspace or reach the network.

Which should you choose?

  • Your team already pays for ChatGPT Business or Enterprise: Codex, because the cloud review, Slack and admin controls are already in the plan.
  • You want Claude's models or the widest choice of surfaces: Claude Code.
  • You want an open-source agent you can read and patch: the Codex CLI, or an open-source agent such as OpenCode, Cline or Aider.
  • You want both, plus the work around the code: connect Claude Code and the Codex CLI to AGNT on the plans you already have, and give them workflows, schedules, approval gates and receipts. That is what an agentic development environment is for.

FAQ

Is Claude Code better than Codex?

Neither is better at everything. Claude Code covers more surfaces with one engine and lets the CLI and IDE extensions use third-party providers; Codex bundles cloud tasks, GitHub review and Slack into ChatGPT plans and has an open-source CLI. Most teams decide on the model they prefer and the plan they already pay for.

Can I use Claude Code and Codex together?

Yes. They read similar instruction files (Claude Code can read AGENTS.md), both speak MCP, and AGNT can run either one on your own subscription as an engine inside the same workflows.

Is Codex free?

OpenAI lists a Free ChatGPT plan that includes Codex for quick coding tasks, and paid plans from $8 a month with larger allowances. API-key use is billed at API rates.

Does Claude Code work on Windows?

Yes. Anthropic documents native installs for Windows PowerShell and CMD, WinGet, and a Windows desktop app for x64 and ARM64, as well as WSL.

Sources

Checked 24 November 2026. Both products change quickly; confirm details in each vendor's documentation.

Claude CodeOpenAI CodexAI Coding AgentsComparison