Back to Blog

Codex vs Claude Code (2026): pricing, limits, skills and config

Codex and Claude Code compared on documented plans, usage limits, where skills live and which config files each one reads, with a source for every figure.

Theo Marsh13 min read

If you want the short answer from the documented facts: choose Codex when cost at the entry level decides it, because ChatGPT Go is $8 per month and Codex is included on the Free plan, where Claude Code is not; choose Claude Code when you do not want coding work eating the same allowance as your chat, because OpenAI states that ChatGPT Work and Codex share usage limits and Anthropic publishes no equivalent split; and choose by the files you already have if neither of those decides it, because a repository with an AGENTS.md is read by both tools while skills, MCP configuration and hooks are read by neither from the other's paths.

What no honest comparison can tell you is which writes better code. Neither vendor publishes a benchmark putting the two agents on the same repository, so this page compares what they do publish: plans, usage limits, where skills live, which configuration files each one reads, and how a migration between them actually goes. Every figure comes from the vendor's own pricing, documentation or changelog, linked in the sources list, and was re-checked on 26 November 2026. Where a number is a documented range rather than a guarantee, it is written as a range.

Two things changed materially since this page was last updated in September, and both are in the pricing section: Anthropic has replaced the Max 20x tier with a separate Ultra plan, and OpenAI's top individual tier no longer has a five-hour limit at all.

#What does each one cost?

Both vendors sell the coding agent as part of a general subscription rather than as a separate product. Neither publishes a price for the coding agent on its own.

OpenAI's pricing page lists Free at $0, Go at $8 per month, Plus at $20 per month, and Pro from $100 per month, with tiers at $100, $200 and $500. Business is $20 per user per month billed annually for two or more users, and $25 per user per month billed monthly. Enterprise and Edu are quoted by sales. Only Business shows an annual price; the page lists no annual price for the other consumer plans.

Anthropic's pricing page lists Free at $0 with Claude Code marked as not included. Pro is $20 billed monthly, or $17 per month on annual billing charged as $200 up front. Max is $100 per month. Ultra is $200 per month, and it is a plan in its own right rather than a Max tier. Team seats are $25 per seat monthly or $20 annually for Standard, and $125 or $100 for Premium. Enterprise is $20 per seat per month billed annually with a 20-seat minimum, plus usage at API rates. Claude Code is included on Pro, Max, Ultra, Team and Enterprise.

That Ultra line is the correction worth calling out, because this page previously described a Max 20x tier at $200 per month and that tier is gone. The Max support article now says only "The Max plan is available for $100 per month", adds that "This price is for web subscriptions only", and mentions Ultra solely to link to a separate article and to note that "When upgrading from Max to Ultra, your account will be charged on a prorated basis for the remainder of your billing cycle." There is no Max 20x on either page today.

OpenAI's Pro plan has moved in the same direction from the other end. The pricing page no longer frames Pro as 5x or 20x higher rate limits than Plus, and it no longer carries separate Pro 5x and Pro 20x columns in its limits table. It gives the three Pro tier prices and states that Pro plans currently have no five-hour limit. We are not naming a price for a "Pro 20x" tier, because the page that would have to define one no longer uses that framing.

#How are the usage limits shaped?

Both vendors publish allowances as estimates rather than counts, and both now have a top individual tier that escapes the five-hour window.

OpenAI's pricing page gives estimated local messages per five-hour period per model, for Plus and Standard Business:

ModelPlus and Standard Business, per five hours
GPT-6.2 Astra6 to 50
GPT-6.2 Sol17 to 180
GPT-6 Astra5 to 45
GPT-6.1 Sol15 to 160
GPT-6.1 Terra35 to 285
GPT-6 Sol15 to 150
GPT-6 Luna350 to 3,000

Around that table the page adds four qualifications: Pro plans currently have no five-hour limit; cloud tasks may use more allowance than local messages; weekly limits may also apply; and Enterprise or Edu plans with flexible pricing have no fixed rate limits, while those without it get the same per-seat limits as Plus for most features.

The sentence that matters most for a coding agent is this one: "ChatGPT Work and Codex share pricing, credits, and usage limits." Time in Codex competes with time in chat, by OpenAI's own statement.

Anthropic's pricing page describes its allowances relatively rather than numerically. Free is limited usage every five hours and every week; Pro is more than Free; Max is 5x Pro usage every five hours and every week; Ultra has no five-hour limit and 10x Pro usage every week, with the five-hour exemption applying only to verified accounts; Team Standard is more than Pro, and Team Premium is 5x a standard seat. Enterprise usage cost scales with the model and the task. The page adds that how fast you reach a limit depends on the model, chat length and file size.

The Max support article fills in the mechanics. On how much the plan gets you it says: "Get five times the Pro plan's usage every five hours and every week." On how that is metered it says "Max plans have a five-hour limit, a weekly usage limit that applies across all models, and a separate weekly limit for Fable", with the weekly limit resetting at a fixed time assigned to each account. It lists access to Claude Code as a benefit and publishes no limit specific to Claude Code.

So the practical difference is narrower than it was, and it is about disclosure rather than architecture. OpenAI says in as many words that Codex and chat draw on one pool. Anthropic documents one per-session allowance that covers Claude and Claude Code together, which amounts to the same constraint, and separates them only on Enterprise, where usage is billed at API rates instead of against a session allowance.

Want step-by-step guides for this and more?

ClawDocx Pro includes 500+ curated prompts, setup guides, SKILL.md files, and templates — everything to make your AI agent unstoppable.

See plans & pricing

#What does it cost once you are past the subscription?

The two vendors answer in different units, which is the main reason a like-for-like cost per coding task is not available from published figures.

OpenAI bills overflow in credits. Its pricing page rates GPT-6 Luna at 2.5 credits for input, 0.25 for cached input and 12.5 for output per million tokens, and GPT-6.2 Sol at 50, 2.5 and 250. For two models it also gives dollar figures: usage-based billing for GPT-6.2 Astra at Standard speed is $8 input, $0.40 cached input and $40 output per million tokens, and GPT-6.2 Sol is $2, $0.10 and $10.

Anthropic publishes dollars per million tokens directly on its API pricing page. Claude Opus 5.5, which Claude Code’s model configuration page lists as the default on Pro, Max, Ultra, Team, Enterprise and the Anthropic API, is $4 input and $20 output, with cache hits at $0.20. Claude Sonnet 5.5 is $2 and $10, with cache hits at $0.10. The same page states that Claude 4.6 and later models, except Haiku 5.5, include the full 1M token context window at standard pricing, so a long request is billed at the same per-token rate as a short one.

Comparing those two columns tells you less than it looks. A credit is not a dollar until you know what you paid for the credits, and neither vendor documents how many tokens a typical coding task consumes in its own agent.

#Where do skills live in each tool?

This is still the sharpest incompatibility between the two, and it is still purely a matter of paths.

Codex scans .agents/skills at six scopes: $CWD/.agents/skills where you launch it, $CWD/../.agents/skills inside a git repository, $REPO_ROOT/.agents/skills at the repository root, $HOME/.agents/skills for your user, /etc/codex/skills as a shared machine location, and a SYSTEM scope bundled with Codex by OpenAI, which ships skill-creator and skill-installer and is enabled by default. Inside a repository it scans every directory from the working directory up to the root, and it follows symlink targets. A skill is a folder holding a required SKILL.md, optionally alongside scripts/, references/, assets/ and an agents/openai.yaml. The documentation states that "The SKILL.md file must include name and description", so both are required. You trigger one with $skill-name or browse with /skills in the CLI and IDE extension, and type @ in ChatGPT. Codex also selects a skill implicitly when a task matches its description, and allow_implicit_invocation: false in agents/openai.yaml turns that off while leaving explicit $skill invocation working.

Claude Code reads ~/.claude/skills/<skill-name>/SKILL.md for personal skills and .claude/skills/<skill-name>/SKILL.md for project skills, plus a nested <subdir>/.claude/skills/ for a subtree, a managed settings directory for enterprise skills, .claude/skills/ in any directory passed with --add-dir, plugin skills at <plugin>/skills/<skill-name>/SKILL.md invoked as /plugin-name:skill-name, and skills synced from a claude.ai account into ~/.claude/skills/synced/. Frontmatter is optional here: nothing is strictly required, description is documented as recommended, name defaults to the directory name, and an omitted description falls back to the first non-empty line of the body. You trigger a skill with /skill-name or by typing its name at the start of a message, and Claude loads one automatically when the description and when_to_use match the task.

Claude Code has one source Codex does not document at all: a skill served by an MCP server, named <server>:<skill> and in public beta. The two Anthropic pages number it differently: the MCP documentation says MCP skills "are in public beta and require Claude Code v2.1.331 or later", while the changelog lists the addition under 2.1.332, dated 25 November 2026. That is a distribution channel rather than a path, and it widens the gap rather than closing it, because nothing equivalent reads .agents/skills over a protocol. Our comparison of MCP and Agent Skills covers what that extension requires of a host.

Claude Code's frontmatter also carries far more options than Codex documents: when_to_use, argument-hint, arguments, disable-model-invocation, user-invocable, allowed-tools, disallowed-tools, model, effort, context: fork to run the skill in an isolated subagent context, agent, background, hooks, paths, shell, metadata, license and compatibility. Outside Claude Code, only name, description, license, compatibility, metadata and allowed-tools are accepted, which is the subset to stay inside if one file has to travel.

Both tools now document a context budget for the list of available skills, which this page previously recorded only on the Codex side. Codex budgets the initial list at, in its own words, at most 2% of the model's context window, or 8,000 characters when the context window is unknown, configurable with skills.max_context_tokens up to 10,000 tokens; it shortens descriptions first, may omit skills, and shows a warning. Claude Code's budget "scales at 1% of the model's context window", is raised with skillListingBudgetFraction or a fixed character count in SLASH_COMMAND_TOOL_CHAR_BUDGET, caps each entry's combined description and when_to_use text at 1,536 characters regardless of budget, and drops descriptions starting with the skills you invoke least.

The file format is close enough to share a body, and the discovery paths do not overlap at all. Claude Code's memory documentation is explicit that nothing under a .agents/ directory is read, so a repository that ships Codex skills should not be assumed to expose them to Claude Code. For the wider picture across agents, see where agent skills go by tool and how skills differ from subagents, plugins and MCP servers.

#Which config files does each one read?

Codex uses TOML. User configuration lives in ~/.codex/config.toml, and project-scoped overrides go in .codex/config.toml, which the reference says Codex loads only when you trust the project. Project-local config cannot override machine-local keys: the reference names openai_base_url, chatgpt_base_url, apps_mcp_product_sku, model_provider, model_providers, notify, profile, profiles, experimental_realtime_ws_base_url and otel as ignored when they appear in a project-local file, and directs provider, notification and telemetry keys to user-level config instead. MCP servers are configured under mcp_servers.<id> in the same file. Project instructions come from AGENTS.md, with project_doc_max_bytes capping how much is read from each one and project_doc_fallback_filenames naming alternatives when AGENTS.md is absent.

Claude Code uses JSON, split across five precedence levels. Highest first: managed settings, --settings on the command line, .claude/settings.local.json, .claude/settings.json, and ~/.claude/settings.json. One detail worth knowing is that list keys such as permissions.allow merge across files rather than overriding, so each file can add entries without removing another's. MCP servers are stored separately again: local and user scope in ~/.claude.json, project scope in a .mcp.json at the project root that is shared through version control, added with claude mcp add and a --scope flag taking local, project or user.

Project instructions are where the two tools nearly meet. Claude Code reads CLAUDE.md from ~/.claude/CLAUDE.md for user scope, ./CLAUDE.md or ./.claude/CLAUDE.md for a project, ./CLAUDE.local.md for personal project notes, and a managed policy path per platform, with a documented target of under 200 lines per file. Since v2.1.277 it can read a repository's AGENTS.md directly, and the default is to do so only when you have no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in your working directory or above it. A CLAUDE.md that imports AGENTS.md gets both.

That default is now a setting rather than a fixed behaviour, which is new since September. Project instructions in /config takes four values: claude-md-or-agents-md is the default just described, claude-md-and-agents-md reads both files together, claude-md reads only CLAUDE.md files, and managed-only loads just the managed CLAUDE.md and auto memory at launch. One trap is documented alongside it: because CLAUDE.local.md counts for that check, adding one to a repository that relies on AGENTS.md stops Claude reading the AGENTS.md for you, and claude-md-and-agents-md is the documented way to keep both.

So a repository already set up for Codex gets its AGENTS.md read by Claude Code with no extra file, which remains the one piece of configuration that genuinely carries across. For the Claude Code side in depth, see the CLAUDE.md memory guide.

#Codex vs Claude Code: the documented differences

WhatCodexClaude Code
Entry paid planChatGPT Go, $8/mo; Plus, $20/moClaude Pro, $20/mo monthly or $17/mo annual
Higher individual tierPro, from $100/mo, tiers at $100, $200 and $500Max $100/mo; Ultra $200/mo
Business seatBusiness, $20/user/mo annual, $25 monthlyTeam Standard $25/seat/mo, $20 annual; Premium $125/$100
EnterpriseQuoted by sales$20/seat/mo annual, 20-seat minimum, plus usage at API rates
Included on the free planYes, with GPT-6 Luna at Standard speed, subject to rolloutNot included on Free
Five-hour windowEstimated messages per five hours on Plus and Standard Business; no five-hour limit on ProFive-hour limit on Free, Pro and Max; none on Ultra for verified accounts
Weekly limit"Weekly limits may also apply"Published for Free, Pro, Max and Ultra (Ultra 10x Pro); not published for Team or Enterprise
Shares usage with chatYes: "ChatGPT Work and Codex share pricing, credits, and usage limits"One per-session allowance covers Claude and Claude Code
Paying past the allowanceCredits, rated per million tokensAPI rates per million tokens; Enterprise usage at API rates
Project skills path.agents/skills/<name>/SKILL.md.claude/skills/<name>/SKILL.md
Personal skills path$HOME/.agents/skills~/.claude/skills
Other skill sourcesBundled SYSTEM scope, /etc/codex/skillsPlugins, --add-dir, claude.ai sync, MCP servers (beta)
Skill frontmattername and description both requiredFrontmatter optional; name defaults to the folder
Skill trigger$skill-name in CLI and IDE, @ in ChatGPT/skill-name, or typing its name
Skills list budget2% of context, or 8,000 characters if unknown1% of context; 1,536 characters per entry
Config formatTOMLJSON
User config~/.codex/config.toml~/.claude/settings.json
Project config.codex/config.toml, loaded only in a trusted project.claude/settings.json and .claude/settings.local.json
MCP configmcp_servers.<id> in config.toml~/.claude.json and project .mcp.json
Project instructionsAGENTS.mdCLAUDE.md, and AGENTS.md since v2.1.277
Published context window272K on GPT-6.2 Astra, 500K on GPT-6.2 and 6.1 Sol, up to 1M1M on Claude 4.6 and later, at standard pricing

#How well does a migration between them work?

Only one direction is documented as a feature, and the list on that side has grown since September.

Codex ships an /import command, typed in an idle Codex CLI session. The CLI imports from Claude Code or Cursor; the desktop app also supports Claude Cowork. The documentation's import table now covers instruction files converted to AGENTS.md, settings.json converted to config.toml, skills, plugins, existing project folders that become projects using the same folders, project memories that become Memories, chats from the last 30 days that become ChatGPT chats, MCP server configuration, hooks, slash commands that become skills, and subagents. Plugins and subagents are both new entries. "Codex CLI imports up to 50 chats from the last 30 days", and when connected to a local daemon or a remote server, Codex looks for user settings and recent chats on that server as well as in the current project directory.

Two caveats are worth more than the list. The page states that "Importing doesn't change or delete your existing agent setup", and it names five things to review afterwards rather than assume: tool restrictions or permissions in imported skills and agents, MCP servers with custom authentication, headers, environment variables or transports that may need signing in again, hooks whose behaviour may differ, plugins or marketplaces needing manual follow-up, and prompt templates depending on arguments, shell interpolation or file-path placeholders. The documentation no longer says which table rows apply to the CLI and which only to the desktop app, so treat the division as unstated rather than settled.

Note also that skills importing at all still lands them where Codex looks, which is not where Claude Code looks, so an imported skill is a copy rather than a shared file.

Anthropic documents no equivalent importer in the other direction. What it documents instead is AGENTS.md compatibility, which covers project instructions but not skills, MCP configuration or hooks.

#Which models does each one run?

Codex's models page now lists six, with CLI identifiers: GPT-6.2 Astra (gpt-6.2-astra) for the hardest work, GPT-6.2 Sol (gpt-6.2-sol) for everyday tasks, GPT-6 Astra (gpt-6-astra) for complex work combining reasoning with computer use, GPT-6.1 Sol (gpt-6.1-sol) for complex work at lower cost, GPT-6.1 Terra (gpt-6.1-terra) for fast work on writing and visual understanding, and GPT-6 Luna (gpt-6-luna) for focused high-volume tasks. The page does not name a single default: if you do not specify a model, the app, CLI or IDE extension uses a recommended one, and new Work chats start with GPT-6.2 Sol at the Light setting on supported consumer plans.

Context window figures are now published, which they were not when this page was written. GPT-6.2 Astra is 272,000 tokens by default, GPT-6.2 Sol and GPT-6.1 Sol are 500,000, and the two GPT-6.2 models can each go to 1 million by setting model_context_window in config.toml. No figure is published for GPT-6 Astra, GPT-6.1 Terra or GPT-6 Luna. GPT-6 Sol has no entry on the models page at all, although the pricing page lists it as current in four places and the models page names it as the model to replace the retired gpt-5.4 with, so no context window figure is published for it either.

The retirements this page previously listed as upcoming have happened. GPT-5.5 retired from Codex with ChatGPT sign-in on 14 October 2026 at noon PDT, with Plus, Pro, Business, Enterprise and Edu users directed to GPT-6.1 Sol and Free and Go users to GPT-6 Luna; API-key sessions were unaffected. GPT-5.4 and GPT-5.4-mini retired on 31 August 2026, and GPT-5.3-Codex-Spark on 14 September 2026.

On the Claude Code side, Claude Opus 5.5 is the default model on Pro, Max, Ultra, Team, Enterprise and the Anthropic API, at $4 and $20 per million tokens with cache hits at $0.20, and the 1M token context window is included at standard pricing on Claude 4.6 and later. The latest Claude Code release is 2.1.332, dated 25 November 2026. On the Codex side the latest CLI is 0.172.0, dated 24 November 2026, and 0.171.0 on 20 November added GPT-6.2 Sol and Astra to the model catalogs with Sol as the default selection.

One note on the naming caveat this page used to carry: OpenAI's pricing page and models page now spell these models the same way, so the three competing spellings recorded in September are no longer visible on the pages we read today.

#What this comparison deliberately does not say

Neither vendor publishes a benchmark you can use to compare the two agents on code quality, and a subjective verdict from a page that has not run both on the same repository would be worth nothing. The honest summary of the documented position is narrower and more useful:

  • If a shared allowance is the deciding factor, Codex draws on the same pool as ChatGPT chat by OpenAI's own statement, which remains the clearest documented constraint on either side. Anthropic's one per-session allowance covering Claude and Claude Code is the same shape, stated less directly.
  • If a no-limit top tier is the deciding factor, both vendors now sell one, and they cost differently: ChatGPT Pro starts at $100 per month with no five-hour limit, while Claude's five-hour exemption arrives at Ultra, $200 per month, and only for verified accounts.
  • If configuration you already have is the deciding factor, AGENTS.md carries across to Claude Code with no work, and nothing else does in either direction without /import.
  • If skills are the deciding factor, the two ecosystems do not share a directory, Claude Code's documentation says nothing under .agents/ is read, and Claude Code has added a protocol-served skill source Codex does not document. A team standardising on one path is choosing a tool at the same time.

For a wider comparison that includes IDE-based tools, see Claude Code vs Cursor vs Copilot. The platform hubs for each tool are at Codex and Claude Code.

Frequently asked questions

Codex vs Claude Code: which should I use?
On documented facts, pick Codex if you want a coding agent on a free plan or the cheapest paid entry, since ChatGPT Go is $8 per month and Codex is included on Free, while Claude Code is not on Claude's Free plan at all. Pick Claude Code if you do not want your coding work competing with your chat usage, because OpenAI's pricing page states that ChatGPT Work and Codex share usage limits. Neither vendor publishes a benchmark comparing the two on code quality.
Claude Code vs Codex: what is the biggest practical difference?
Where each one reads its files. Codex uses TOML at ~/.codex/config.toml and reads skills from .agents/skills directories; Claude Code uses JSON settings files and reads skills from .claude/skills. The one piece of configuration that carries across is project instructions: Claude Code reads a repository's AGENTS.md directly since v2.1.277, which is the file Codex already uses.
Is Claude Code included in a free Claude plan?
No. Anthropic's pricing page marks Claude Code as not included on Free, and included on Pro, Max, Ultra, Team and Enterprise. Codex is the opposite: OpenAI's pricing page describes the Free plan as for exploring Codex on quick coding tasks, and includes GPT-6 Luna at Standard speed in the desktop app, subject to rollout.
Do Codex and ChatGPT draw on the same usage allowance?
Yes. OpenAI's pricing page states that ChatGPT Work and Codex share pricing, credits, and usage limits, and that cloud tasks may use more allowance than local messages. Anthropic's position is similar but less explicit: the Max plan article describes one five-hour and weekly allowance covering Claude and Claude Code together, rather than a limit specific to Claude Code.
What happened to the Claude Max 20x plan?
Anthropic's pricing page no longer lists a Max 20x tier. It lists Max at $100 per month with five times Pro usage, and a separate Ultra plan at $200 per month with no five-hour limit for verified accounts and ten times Pro usage each week. The Max support article now names only the $100 price and links to a separate Ultra article. If you read a page describing Max 20x at $200, it predates this change.
Can one SKILL.md file work in both tools?
The file body can be shared, because both tools read a SKILL.md with name and description frontmatter. The location and the trigger differ: Codex scans .agents/skills directories and you type $skill-name, while Claude Code reads .claude/skills and you type /skill-name. Claude Code's memory documentation also states that nothing under a .agents/ directory is read, so shipping Codex skills does not expose them to Claude Code.

Sources

  1. ChatGPT and Codex plans, pricing and rate limits
  2. Build skills for Codex and ChatGPT
  3. Codex configuration reference
  4. Import work from other AI apps
  5. Codex models
  6. ChatGPT and Codex changelog
  7. Claude plans and pricing
  8. What is the Max plan?
  9. Claude API model pricing
  10. Skills in Claude Code
  11. Claude Code settings files and precedence
  12. How Claude remembers your project
  13. Connect Claude Code to MCP servers
  14. Claude Code changelog
  15. Claude Code model configuration

Get the full experience with ClawDocx Pro

Access 500+ prompts, step-by-step guides, SKILL.md files, and more. Everything you need to master OpenClaw.

Start Free Trial

Related Posts