comparisons
    codex
    claude-code
    comparison

    Codex vs Claude Code: Which to Use, and How to Use Codex in Claude Code

    Codex CLI and Claude Code compared on pricing, performance, skills support, and workflow fit.

    June 25, 202613 min read
    Share:

    First published 25-06-2026, updated 21-11-2026. Last verified 21-11-2026: plans, limits and models change often, and we re-check this page monthly.

    Quick answer

    Pick Claude Code if your team wants one agent that works across your terminal, IDE, desktop and browser with plugins, hooks and skills. Pick Codex if you already pay for ChatGPT and want its plans, cloud tasks and automatic code review on GitHub. You no longer have to choose only one: since 30-03-2026, OpenAI's official Codex plugin lets you run Codex reviews and hand tasks to Codex from inside Claude Code. That plugin is the fastest way to use Codex in Claude Code, and the section below shows how.

    This page is for a developer or tech lead in a small product team who already ships with one coding agent and is deciding whether to switch, add the other or run both. It compares Codex and Claude Code on how they run, what they cost on 21-11-2026, their usage limits and their extensions, and it explains step by step how to use Codex in Claude Code. Our older comparison of Claude Code vs Codex CLI covers the same ground from June; this page is the one we keep current.

    How we checked this

    Our method in three lines: we read OpenAI's README for the Codex plugin, the Codex pricing and security docs, Claude's pricing page and the Claude Code docs on 21-11-2026; we opened the top three US results for "codex in claude code"; and we kept only claims a primary source states today.

    Our gate: a claim stays on this page only if the vendor's own docs, repository or pricing page state it on 21-11-2026. Six claims from our June version failed it and are gone. "Codex CLI spins up a cloud sandbox for each task" is wrong: OpenAI's docs describe a local, OS-enforced sandbox. Three benchmark figures (a 67% blind-review preference, 82.7% on Terminal-Bench 2.0 and "52.5% fewer hallucinations") had no primary source we could open in this run. The API prices for an older Claude model and "ChatGPT Pro at $120 a month" are not on today's pricing pages. A "1M token context window" for Claude Code was not re-verified.

    What we did not do: we have not installed the plugin and timed a review for this update, so the steps below follow OpenAI's README: not tested by us. We did not run both agents on the same repository, which is the test our content plan asks for; until we do, this page does not name a benchmark winner.

    Disclosure: we sell skills and pay-per-call tools that your agent uses through one MCP connection, and we name ours below. No vendor paid to be listed. Skills for writing better agent instructions sit in our prompt and skill engineering collection.

    How Claude Code and Codex work

    Claude Code is Anthropic's agentic coding tool. It reads your codebase, edits files, runs commands and works with your development tools, and the Claude Code docs list it in the terminal, IDE extensions, a desktop app and the browser. You extend it with plugins, which bundle skills, subagents, hooks and MCP servers into one install. Hooks run your own commands at fixed points, such as after every edit.

    Codex is OpenAI's coding agent, available in the CLI, an IDE extension, the web and the desktop app. The Codex CLI works against your local repository: it inspects files, makes edits and runs the tools already installed on your machine. OpenAI's security docs state that locally, Codex uses an OS-enforced sandbox that typically limits it to the current workspace and keeps network access off by default. An approval policy decides when it must stop and ask. Cloud tasks on the web run in OpenAI's containers instead. /init writes an AGENTS.md file with project instructions, and codex exec runs it from scripts and CI.

    The practical difference for a team: Claude Code puts more of the extension work in your hands, Codex puts more of the safety defaults in the agent.

    Is Codex better than Claude Code?

    Neither is better for every team, and we will not publish a winner until we have run both on the same repository on the same day. What decides it today is three things you can check yourself. Codex is the better fit if your company already pays for ChatGPT, because Codex comes with every plan from Free upward and adds automatic code review on GitHub from Plus. Claude Code is the better fit if you want to shape the agent with plugins, hooks and skills, because that is where its docs put the weight. And if you cannot decide, the plugin below lets Claude Code keep the keyboard while Codex reviews the work, which is how we would start.

    To judge them on your own code, give both the same three tasks from your backlog and record time, cost and how many fixes the reviewer had to ask for. Test Gap Filler: Find Untested Code and Write Real Tests, $3, helps make that comparison fair by writing tests that can actually fail. More in our testing and debugging collection.

    How to use Codex inside Claude Code

    To use Codex in Claude Code, install OpenAI's official Codex plugin from its GitHub marketplace, run its setup command and sign in to Codex. The plugin then adds /codex: slash commands and a Codex subagent to Claude Code. OpenAI released it as openai/codex-plugin-cc on 30-03-2026 under the Apache-2.0 licence.

    What you need. A ChatGPT subscription (the Free plan counts) or an OpenAI API key, and Node.js 18.18 or later. Usage counts toward your normal Codex usage limits, not toward your Claude plan.

    Install it in four steps. Inside a Claude Code session:

    1. Add the marketplace:
    /plugin marketplace add openai/codex-plugin-cc
    
    1. Install the plugin:
    /plugin install codex@openai-codex
    
    1. Reload:
    /reload-plugins
    
    1. Check it: /codex:setup. It reports whether Codex is ready and can offer to install the Codex CLI if npm is available. If Codex is installed but not signed in, run !codex login.

    After that, /agents shows a codex:codex-rescue subagent next to the new commands.

    What the commands do. These are the ones you will use, as the README describes them:

    CommandWhat it doesChanges code?
    /codex:reviewA normal Codex review of uncommitted changes, or of your branch with --base mainNo, read-only
    /codex:adversarial-reviewA steerable review that challenges design choices; add focus text such as "look for race conditions"No, read-only
    /codex:rescueHands a task to Codex through the subagent: investigate a bug, try a fix, continue a previous Codex taskYes
    /codex:transferTurns the current Claude Code session into a Codex thread you continue with codex resumeNo
    /codex:status, /codex:result, /codex:cancelManage background jobsNo

    How we would use it. Start with /codex:review --background before every merge, because a second model family reading the diff catches different mistakes and it cannot break anything. Use /codex:adversarial-review before risky changes such as auth, migrations or retries. Use /codex:rescue when Claude Code is stuck on a bug after two attempts; you can pick a model, for example --model gpt-5.4-mini, or let Codex choose. The plugin reads your normal Codex settings from ~/.codex/config.toml or a project's .codex/config.toml.

    One warning. /codex:setup --enable-review-gate makes Codex review every Claude response before it can stop. OpenAI's README warns this can create a long Claude and Codex loop that drains usage limits quickly, so only turn it on when you are watching the session.

    Code review skills that work alongside the plugin sit in our code quality and review collection. PR Review Pro: Verified, Severity-Ranked Code Review, free, gives Claude's own merge verdict to compare with Codex's.

    Plugin, MCP or a skill: which route should you use?

    There are three ways to get Codex and Claude to work together, and we would use them in this order.

    1. The official plugin. First because OpenAI maintains it, it uses your existing Codex login and it covers review and delegation, which is what most teams want.
    2. A skill that sets up the collaboration. Second because it adds a process on top of the plugin rather than replacing it. Claude × Codex Collab: Plan Debate and Code Review, $7, has Codex critique the plan and review the code read-only while Claude builds and fixes. Codex × Claude Code Debating, $3, makes both draft a design before anyone codes and leaves you a written decision.
    3. A multi-model review through other providers. Last because it adds setup, but it is the route if you want more than two opinions. Rival: Adversarial Second-Opinion Code Review, free, runs a panel of different models through OpenRouter or local Ollama.

    Community packages that call Codex from Claude Code also exist; we have not tested them and would start with the official plugin. More ways to combine agents are in our agents and orchestration collection and our list of Claude Code plugins by use case.

    Pricing: Codex Pro vs Claude Max

    Both agents come with a chat subscription, and both offer a higher tier for heavy use.

    TierCodex (ChatGPT plan, USD)Claude Code (Claude plan, shown to us in euros)
    EntryFree $0, Go $8 a monthNo Claude Code on the free plan
    StandardPlus $20 a monthPro €15 a month annual, €18 monthly
    Heavy usePro from $100, with $200 and $500 optionsMax €90 a month (5x Pro), Ultra €180 a month
    Pay as you goAPI key, billed at API rates, no cloud featuresUsage credits at standard API rates on paid plans

    Sources: Codex pricing and Claude pricing, both opened on 21-11-2026. Claude's page showed our Netherlands-based browser euro prices; check the dollar price from a US connection before you budget. Claude's pricing page states that Claude Code is included in all paid plans. Codex Plus adds Codex on the web, the IDE extension and iOS plus cloud integrations such as automatic code review and Slack.

    Our view: for one developer, the standard tier of either is enough to try the plugin, because the Codex side only runs when you call it. Teams running agents in CI should compare the API-key route on both sides, which our DevOps and cloud collection covers with skills for pipelines.

    Usage limits compared

    Both vendors meter in rolling windows, and both say the real number depends on the model and the task. On Claude, paid plans reset on a rolling five-hour window with weekly limits on top, and your chats, desktop use and Claude Code all draw from the same pool; Max gives 5x Pro usage and Ultra removes the five-hour limit with 10x Pro weekly, according to Claude's pricing page on 21-11-2026.

    On Codex, OpenAI publishes estimates per five hours for Plus: 15 to 160 local messages on GPT-6.1 Sol and 350 to 3,000 on GPT-6 Luna, with weekly limits that may also apply. Pro plans currently have no five-hour limit. These are vendor estimates, not limits we measured. Two practical points: Codex usage through the plugin comes out of your Codex allowance, not your Claude one, and cloud tasks can use more of it than local messages. Our guide to Claude Code usage limits explains how to make a Claude plan last.

    Skills, plugins and tools

    Both agents read SKILL.md skills, so a skill from our marketplace loads in either through one connection to Agensi (see the MCP setup guide); our guide on how to install skills in Codex CLI shows the Codex side. Claude Code also takes plugins that bundle skills with hooks and subagents. Two free or cheap skills we would use on day one: Hooks and Settings for Claude Code, free, to stop repetitive prompts and automate checks, and CLAUDE.md / AGENTS.md Generator, $3, which writes the instruction file both agents read and verifies every command in it. For Codex-specific skills, browse our Codex code quality and review collection.

    Neither agent generates images or pulls live search data on its own. That is not a model swap but a tool your agent calls over MCP. Through our tools hub, both Claude Code and Codex can use image models such as Nano Banana Pro at $0.195 per image and web search tools such as Google organic results at $0.0052 per call, listed on 21-11-2026, without your own provider accounts or API keys. Your agent sees the exact price before each use, and failed uses are free.

    When to use which

    Choose Claude Code when your team wants to shape the agent with plugins, hooks and skills, works across terminal, IDE and desktop and wants one plan that covers chat and coding. Choose Codex when you already pay for ChatGPT, want automatic code review on GitHub and Slack integration, or want strict sandbox defaults with network access off.

    For large refactors, we would let one agent plan and build and the other review, rather than pick a single winner: a refactor fails on the mistakes nobody re-reads. With the plugin, that is Claude Code building and /codex:adversarial-review challenging the design. Secure Code Review for Small Teams, $10 adds a security checklist to that review for changes that touch auth, secrets or data handling.

    Claude Cowork vs Codex for non-coding work

    If the work is documents, spreadsheets and office tasks rather than code, the comparison changes. Codex is built around a repository. Claude's desktop app includes Cowork, which works on files and tasks on your computer, and our explainer on what Claude Cowork is covers what it does. Our view: keep Codex and Claude Code for the repository, and do not force a coding agent onto a finance report.

    Your next step

    If you use Claude Code today, install the Codex plugin, run /codex:review --background on your next branch and compare its findings with your own review. If you want your agent to reach image, video or data tools as well, connect it to Agensi once; it tells you what each use cost.

    Written by Samuel Rose, Founder of Agensi. Sources checked on 21-11-2026. Next scheduled review: 21-12-2026.