Codex vs Claude Code (UK, 2026): prices, limits and which to choose

Comparison card of OpenAI Codex and Claude Code: cheapest way in, main plan, models, CLI licence, Windows sandbox, default safety and local model support, as of 29 October 2026

Codex vs Claude Code comes down to what you already pay for: OpenAI's Codex is the better buy if you use ChatGPT or want an open-source CLI and local models, and Anthropic's Claude Code is better if you want the cheaper main plan, Claude Pro at £18 a month including VAT, and the top independent benchmark score. Both read your project, edit files and run commands from plain-English instructions, in the terminal, your editor, a desktop app and the cloud. Meta has a rival in Muse Code, its terminal agent.

Key facts

  • Cheapest way in (UK, 29 October 2026): Codex with ChatGPT Free (limited); Claude Code from Claude Pro, £18 a month including VAT.
  • Main plans: ChatGPT Plus £20 and Claude Pro £18 a month; ChatGPT Pro from £89 and Claude Max from £90.
  • Models: Codex runs only OpenAI models, with GPT-6.1 Sol as OpenAI's pick on paid plans; Claude Code runs only Anthropic models and defaults to Opus 5.5.
  • Open source: the Codex CLI is Apache 2.0; Claude Code's licence reads "All rights reserved".
  • Benchmark: on Terminal-Bench 4.0, Claude Code with Opus 5.5 scores 64.8% and Codex with GPT-6.1 Sol 58.2%, at about a seventh of the run cost.
  • Windows: Codex has a native Windows sandbox; Claude Code's sandbox needs WSL2.
  • Training: both can train on personal-plan sessions unless you opt out; neither does on business plans by default.

On this page

Codex vs Claude Code: which is better?

Neither wins outright. Claude Code leads Terminal-Bench 4.0, an independent leaderboard that tests both agents, and its main plan costs £2 a month less in the UK. Codex is cheaper to try, more open, better on Windows and the only one of the two that officially runs local models.

Both come inside a chat subscription, so the real question is which subscription to keep. If you already pay for one, its agent costs nothing extra.

For eight agents side by side, see my AI coding agents comparison. For installing each, see my guides to Claude Code and OpenAI Codex.

What are Codex and Claude Code?

Both are AI coding agents. You describe a job in plain English, and the agent reads your code, edits files, runs commands and tests, and reports back. They differ more in licence and safety model than in what they do.

  • OpenAI Codex: the open-source Codex CLI, an extension for VS Code, Cursor and Windsurf, integrations in JetBrains IDEs and Xcode, the ChatGPT desktop app (Mac, Windows, Linux in preview) and Codex Cloud on the web and iPhone.
  • Anthropic's Claude Code: a terminal tool, VS Code and JetBrains extensions, the Claude desktop app (Mac, Windows, Linux in beta) and cloud sessions in a browser or phone.

Both run on Mac, Windows and Linux. Anthropic asks for macOS 13, Windows 10 version 1809 or Ubuntu 20.04 or later, with 4 GB of RAM. OpenAI's README lists macOS and Linux builds plus a Windows installer.

Claude Code documentation overview page, describing an agentic coding tool available in the terminal, IDE, desktop app and browser, with tabs for Terminal, VS Code, Desktop app, Web and JetBrains
Claude Code docs overview, code.claude.com, 29 October 2026. Screenshot: aiagents.org.uk
The openai/codex repository on GitHub, described as a lightweight coding agent that runs in your terminal, showing the Apache-2.0 licence and release 0.165.0 marked Latest
OpenAI Codex repository, github.com, 29 October 2026. Screenshot: aiagents.org.uk

Codex and Claude Code side by side

This table sets the official facts next to each other, as of 29 October 2026. UK prices are what each company showed UK visitors that day.

OpenAI CodexClaude Code
Cheapest plan with itChatGPT Free (limited, desktop app only)Claude Pro, £18 a month including VAT
Main personal planChatGPT Plus, £20 a monthClaude Pro, £18 a month or £180 a year
ModelsOpenAI only: GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 LunaAnthropic only: Opus 5.5 (default), Sonnet 5.5, Haiku 5.5, Fable 5.1
CLI licenceOpen source, Apache 2.0Proprietary, "All rights reserved"
Default safetyOS sandbox, network off, asks before leaving the workspaceAuto mode: a classifier model reviews actions
Sandbox on native WindowsYesNo, use WSL2
Local modelsSupported in the CLI with --oss (Ollama, LM Studio)Not supported by Anthropic
Automated GitHub PR reviewFrom Plus, by tagging @codexCode Review on Team and Enterprise
Training on personal plansOpt-out availableOpt-out

How much do Codex and Claude Code cost in the UK?

Codex comes with every ChatGPT plan, from Free, and Claude Code with every paid Claude plan, from Pro at £18 a month including VAT. I checked both UK pricing pages on 29 October 2026.

PlanUK price, billed monthlyBilled yearlyWhat you get
ChatGPT Free£0-Limited Codex, desktop app, GPT-6 Luna
ChatGPT Go£7-Limited Codex; may include ads
ChatGPT Plus£20-Full Codex, cloud tasks, GitHub review
ChatGPT ProFrom £89-Three usage tiers; no five-hour limit for now
ChatGPT Business£18 a seat£15 a seatTwo seats minimum; no training by default
Claude Pro£18£15 a month (£180)Claude Code with Opus
Claude MaxFrom £90-5x or 20x Pro usage
Claude Team Standard£22.50 a seat£18 a seat2-150 seats; no training by default
Claude Team Premium£113 a seat£90 a seat5x a Standard seat
Bar chart of UK monthly prices for plans that include each agent: ChatGPT Go 7 pounds, Claude Pro 18, ChatGPT Business 18 a seat, ChatGPT Plus 20, Claude Team Standard 22.50 a seat, ChatGPT Pro from 89, Claude Max 5x 90, Claude Team Premium 113 a seat
UK monthly prices, billed monthly. Source: chatgpt.com/pricing and claude.com/pricing, UK view, 29 October 2026. Claude prices include 20% VAT; OpenAI does not say.

On VAT, Anthropic's UK page says "Prices include 20% VAT". OpenAI's page shows pound prices but does not say either way, so check the checkout total. For a five-person team on monthly billing, ChatGPT Business comes to £90 a month and Claude Team Standard to £112.50.

Both also take pay-as-you-go API keys. GPT-6.1 Sol costs $2 per million input tokens and $10 per million output (about £1.50 and £7.50, plus any VAT); Opus 5.5 costs $4 and $20 (about £3 and £15). With an API key, Codex has "No cloud-based features".

How do the usage limits compare?

Both use five-hour windows with weekly caps on top, and neither publishes a fixed message count. When you hit the limit, both let you wait, upgrade or pay for more.

OpenAI estimates, for Plus and Standard Business, 15-160 local messages per five hours with GPT-6.1 Sol, 5-45 with GPT-6 Astra, 35-285 with GPT-6.1 Terra and 350-3,000 with GPT-6 Luna. Cloud tasks use more, "weekly limits may also apply", and ChatGPT Work shares the pool. Pro plans "currently have no five-hour limit". Type /status in the CLI to check.

Anthropic describes a five-hour session limit and weekly limits, "shared across Claude and Claude Code", so heavy chat leaves less for code. Max gives 5 or 20 times Pro usage. At the limit, you can wait, turn on extra usage or move to a pay-as-you-go Console account.

Which models do they use, and which scores higher?

Each agent runs only its maker's models. On Terminal-Bench 4.0, an independent leaderboard that tests both agents as products, Claude Code scores higher, and Codex is much cheaper per run.

OpenAI recommends GPT-6 Astra for "the most demanding workflows" and GPT-6.1 Sol for "near-Astra performance at a lower cost", with a 500,000-token context window in Codex. GPT-6.1 Terra is a fast, efficient model OpenAI suggests for writing and visual work, and Free and Go users get GPT-6 Luna.

Claude Code defaults to Opus 5.5 on every paid plan, with Sonnet 5.5 and Haiku 5.5 as cheaper options and Fable 5.1 as the most capable, though Fable can bill to usage credits rather than your plan's allowance. Anthropic does not support non-Claude models; my guide to Claude Code with Ollama covers the unofficial route. The Codex CLI runs local models with --oss.

Terminal-Bench tests agents doing real terminal work. Its 4.0 leaderboard at tbench.ai is hosted by Stanford, Harbor and the Laude Institute, not by either company. These are the top Codex and Claude Code entries on 29 October 2026, all at maximum reasoning effort. The cost column is the leaderboard's total cost in US dollars for the whole 330-trial run, converted at $1 = £0.75.

RankAgent and modelResolution rateTotal cost of the run
1Claude Code with Opus 5.564.8% (plus or minus 3.1)$4,719 (about £3,540)
2Claude Code with Sonnet 5.561.8% (plus or minus 2.9)$7,334 (about £5,500)
3 (joint)Codex with GPT-6 Astra58.2% (plus or minus 2.8)$3,267 (about £2,450)
3 (joint)Codex with GPT-6.1 Sol58.2% (plus or minus 3.1)$634 (about £476)

Read this with care: it is one benchmark, at settings your plan may not give you, with margins of about three points. And Codex with GPT-6.1 Sol finished for about a seventh of the cost of Claude Code with Opus 5.5: $634 against $4,719.

Is Codex open source? Is Claude Code?

The Codex CLI is open source under the Apache 2.0 licence. Claude Code is not open source.

In OpenAI's repository at github.com/openai/codex, version 0.165.0 was released on 27 October 2026. You can read the code, fork it and point it at other model providers through a compatible Responses API endpoint. OpenAI's desktop app, cloud service and models stay closed.

Anthropic's github.com/anthropics/claude-code repository holds the changelog, plugins and examples. Its licence file is one line: "© Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service." The latest version on npm, 2.1.312, was also released on 27 October 2026.

How do sandboxing and approvals differ?

Codex fences commands in an operating-system sandbox by default and asks before going further. Claude Code's default auto mode lets a second AI model approve actions instead of you, with an optional sandbox for shell commands.

  • Codex: OpenAI says the agent "runs with network access turned off" by default, with writes limited to the workspace. In the Auto preset it edits and runs commands there, and asks before going outside it or online. The sandbox uses Seatbelt on macOS, bubblewrap on Linux and WSL2, and a native sandbox on Windows.
  • Claude Code: since version 2.1.283, terminal and VS Code sessions start in auto mode, where a classifier model reviews actions. Manual mode asks before anything but reads, and plan mode blocks edits until you approve a plan. The Bash sandbox runs on macOS, Linux and WSL2, not native Windows, and covers shell commands only.

For client code, start strict. In Codex, run codex --sandbox read-only --ask-for-approval on-request. In Claude Code, run claude --permission-mode manual and turn on the sandbox with /sandbox.

Do both support MCP, skills, plugins, hooks and subagents?

Yes. Both now support all five, so extensions no longer separate them. The differences are in the details and in where the add-ons come from. If MCP is new to you, what is MCP? explains it.

FeatureCodexClaude Code
MCPConnect existing servers in the web app, desktop, CLI and IDE"Hundreds of external tools and data sources" through MCP
SkillsBuilt on the open agent skills standard; shared with ChatGPTSKILL.md files, run with /skill-name or loaded automatically
PluginsOne plugin directory shared by ChatGPT and CodexBundles of skills, agents, hooks and MCP servers from marketplaces
HooksRun scripts or MCP tools during the agent loopHook events with JSON input and output
SubagentsParallel subagents; custom agents in local clientsSubagents with their own context, in .claude/agents/
Project instructionsAGENTS.mdCLAUDE.md

See how to install skills in Claude Code. Treat any third-party plugin as code that runs with your permissions.

Cloud tasks and GitHub: which does more?

Both run tasks in their maker's cloud and open pull requests on GitHub. The main difference is that automated pull request review comes with ChatGPT Plus, while Anthropic keeps its Code Review for Team and Enterprise.

  • Codex Cloud is on Plus and above, not with an API key. You pick GitHub repositories, and each task "can keep working while your computer is asleep" before you open a pull request. Tag @codex in a pull request for a review. A GitHub Action runs Codex in CI.
  • Claude Code cloud sessions are on Pro, Max and Team, and on Enterprise premium or Chat + Claude Code seats, and need GitHub to clone and push code. Code Review, for Team and Enterprise, has several agents comment inline on each pull request. Claude Code GitHub Actions let you mention @claude in a pull request or issue.

If you want to assign GitHub issues and get pull requests back without leaving GitHub, also look at the GitHub Copilot cloud agent.

Do Codex and Claude Code train on your code?

On personal plans, both can, unless you switch it off. On business plans, neither trains on your code by default.

OpenAI CodexClaude Code
Personal plansFree, Go, Plus and Pro: training "Opt-out available"; opt out with "do not train on my content" in OpenAI's privacy portalFree, Pro and Max: trained on when the setting is on; Anthropic's pricing page lists it as opt-out
Business plansBusiness, Enterprise and Edu: "No training on your business data by default"Team, Enterprise and API: no training on code or prompts under commercial terms
RetentionEnterprise and Edu get data retention and data residency controlsPersonal: 5 years with training on, 30 days off. Business: 30 days; zero data retention for qualified Enterprise

Change the training setting before you open client or employer code, or use a business plan. If the code holds customers' personal data, read my guide to AI agents and UK GDPR first.

Claude Code vs Codex: which should you choose?

Pick the one that matches the subscription you already pay for. If you pay for neither, Claude Code is the stronger default for terminal-first work, and Codex is the better choice for open source, Windows, local models or a tight budget.

How to decide in four steps:

  1. Check what you already pay for. One agent may cost nothing extra.
  2. Try before you commit. ChatGPT Free includes some Codex; Claude Pro bills monthly, so you can cancel.
  3. Give both the same small job from your own project, with tests the agent can run, and compare results and allowance used.
  4. Set privacy first. Turn off training on a personal plan, or use ChatGPT Business or Claude Team, before you open client code.

Choose Codex if:

  • You already pay for ChatGPT, or want to start free.
  • You want an open-source CLI you can read, audit and fork.
  • You work on Windows without WSL2 and want a sandbox.
  • Code must stay on your machine, so you need local models.
  • Cost per run matters more than benchmark points.

Choose Claude Code if:

  • You already pay for Claude, or want the main plan at £18 rather than £20.
  • You want the agent with the highest Terminal-Bench 4.0 score on 29 October 2026.
  • You want long tasks with fewer prompts, in auto mode.
  • You want Anthropic's models, including Fable 5.1 for the longest jobs.
Decision card: choose Codex if you pay for ChatGPT, want an open-source CLI, local models, a native Windows sandbox or lower cost per run; choose Claude Code if you pay for Claude, want Pro at 18 pounds, the top Terminal-Bench 4.0 score, auto mode or Claude models
Start with the subscription you already pay for. Based on official docs, UK pricing and Terminal-Bench 4.0, checked 29 October 2026.

My verdict: both are capable and well documented. Claude Code has the edge on the benchmark and the main UK price; Codex on openness, free access, Windows and running costs. If you would rather work in an AI editor than hand jobs to an agent, see Claude Code vs Cursor and my Cursor review.

Frequently asked questions

Is Codex better than Claude Code?

Neither is better for everyone. As of 29 October 2026, Claude Code with Opus 5.5 leads the independent Terminal-Bench 4.0 leaderboard at 64.8%, against 58.2% for Codex with GPT-6.1 Sol, but the Codex run cost about a seventh as much. Start with the subscription you already pay for.

Is Codex free?

Partly. ChatGPT Free includes limited Codex use in the desktop app with GPT-6 Luna, and the Codex CLI is free, open-source software under the Apache 2.0 licence. Full use starts with ChatGPT Plus at £20 a month in the UK. Claude Code has no free plan.

Which is cheaper in the UK, Codex or Claude Code?

For the main personal plan, Claude Code is cheaper: Claude Pro costs £18 a month including VAT, or £15 a month billed yearly, against £20 for ChatGPT Plus. Codex is cheaper to start, because ChatGPT Free and Go at £7 include some Codex use. For teams, ChatGPT Business costs £18 a seat monthly against £22.50 for Claude Team Standard.

Can I use Codex and Claude Code together?

Yes. They are separate tools, so you can run both in the same Git repository, and both install as extensions in VS Code. OpenAI publishes a guide to importing from another agent. Each has its own usage limits and privacy settings, and paying for both main plans costs £38 a month.

Is Claude Code open source?

No. The Claude Code repository on GitHub holds the changelog, plugins and examples, but its licence file reads: "All rights reserved. Use is subject to Anthropic's Commercial Terms of Service." The Codex CLI, by contrast, is open source under the Apache 2.0 licence, although OpenAI's desktop app, cloud service and models are closed.

Do Codex and Claude Code train on my code?

On personal plans, they can unless you opt out. OpenAI lists training on Free, Go, Plus and Pro as "Opt-out available", and Anthropic trains on Free, Pro and Max when the model improvement setting is on. On ChatGPT Business and Enterprise, and on Claude Team, Enterprise and the API, neither company trains on your code by default.

Sources

About the author

Annie has spent twenty years in search, lead generation and ad tech, on the agency, client and publisher side, and has worked in growth for an AI agent platform. She writes aiagents.org.uk independently: no AI vendor pays for coverage. More about Annie · How guides are made · LinkedIn

Scroll to Top