AI and agents · Step by step

Get Codex to review Claude, without leaving Claude Code.

OpenAI's official plugin puts Codex inside Claude Code. Here's how to install it, which command to use when, how I use it, what you really gain and what you don't.

OpenAI's official plugin
Claude Code + ChatGPT Plus or higher
4 commands to install it
Tested with version 1.0.6 on 14 Oct 2026

What you gain

Another head reviewingA reviewer that isn't from Claude's family. In my app, Codex found a comment in one of Claude's fixes that didn't tell the truth about what the code did.
More room in your Claude limitCodex does the review and it counts against your Codex usage, not your Claude usage: what Codex reviews, Claude doesn't spend, and you take longer to hit the five-hour limit.
No copying and pasting between windowsYou launch it from the same Claude Code conversation and the result comes back there, ready to pass to Claude.
It checks what it saysIn my test it ran the code to confirm the bug before telling me about it, and gave me the fix in one line.
What it doesn't do: it doesn't turn two $20 plans into one $200 plan (the numbers are further down). And /codex:review only looks at what you've changed: a bug that was already there won't get reported.

01

What you need

Two subscriptions and two programs.

⌄
WhatWhat forHow
Claude CodeWhere the plugin livesWith a paid Claude plan or with the API. It works in the Terminal or in the Code tab of the desktop app (local sessions). Not in the claude.ai chat or in cloud sessions.
ChatGPT Plus or higherCodex uses your ChatGPT accountPlus costs $20 a month. An OpenAI API key works too. Free and Go don't: they include Codex in the desktop app, but not in the terminal, which is what the plugin uses.
Node.js 18.18 or laterThe plugin needs itCheck your version with node -v. If you don't have it, you download it from nodejs.org.
A git repositoryThe review looks at git changesOpen Claude Code in a folder that's a git repository. If it isn't, git init inside it.
Codex CLIThe program that does the reviewIf you don't have it, /codex:setup offers to install it. Or by hand: npm install -g @openai/codex. Keep it up to date: with an old version, new models fail.
Watch out with the free account: the plugin's README says any ChatGPT account works, including the free one. OpenAI's pricing page only includes the Codex terminal from Plus up. Go with the pricing page.
02

Install it

Four commands inside Claude Code, not two.

⌄

Open Claude Code and type these four, one after the other:

Install
/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins
/codex:setup
  1. The first adds OpenAI's plugin marketplace.
  2. The second installs the plugin.
  3. The third makes Claude Code load it without restarting.
  4. The fourth checks that you have Node, Codex and your ChatGPT session. If Codex is missing, it offers to install it. If you haven't signed in, type !codex login.

In the Code tab of the desktop app, installed plugins can also be managed from the + button → Plugins.

And for the first test, with some uncommitted change in your project:

First review
/codex:review --background
/codex:status
/codex:result
03

The commands, and when to use each one

Eight commands. To get started, the first one is plenty.

⌄
CommandWhat it doesWhenExample
/codex:reviewA normal review of what you've changed. It only reads: it doesn't touch any file.Before every commit./codex:review
/codex:review --base main
/codex:review --background
/codex:adversarial-reviewIt questions how you did it: the design, what you take for granted and whether there was a simpler or safer way. This one you can tell what to focus on.When you've made a decision you have doubts about./codex:adversarial-review --base main check whether caching this was a good idea
/codex:rescueHands a task to Codex: investigate a bug or fix it. By default it writes to your project.When Claude gets stuck on something./codex:rescue investigate why the tests are failing
/codex:status
/codex:result
/codex:cancel
See how what's running in the background is going, read the result or stop it.After a --background./codex:status
/codex:result
/codex:transferTurns your Claude Code session into a Codex thread you can carry on with codex resume.When you want to carry on with that task in Codex./codex:transfer
/codex:setupChecks that everything's ready. It also turns on or off the automatic review at the end of every response (below I explain why I don't use it).When you install it, and if something fails./codex:setup
The difference that matters: /codex:review looks for bugs in what you've changed and doesn't take instructions. /codex:adversarial-review argues with your decisions and you can tell it what to focus on.
04

How I use it

Five steps, and the prompt to pass what Codex says on to Claude.

⌄
  1. Claude makes the change. As always.
  2. If you have a Claude reviewer, run it first. Mine is an agent that reviews the changes without seeing the conversation, so it doesn't defend what was done.
  3. Before the commit, /codex:review --background. You carry on with something else while it reviews. You type it yourself: Claude can't launch it on its own.
  4. /codex:result and pass it to Claude with the prompt below. Don't let it fix things blindly: first it has to check each point.
  5. If there's a design decision you have doubts about, /codex:adversarial-review telling it what to focus on.
To pass Codex's result on to Claude
Codex has reviewed these changes and says this:

[paste here what /codex:result gave you]

Don't touch anything yet. Check each point in the code and tell me which ones are true, which ones aren't and why.
Then fix only the true ones and show me the diff.
Why “don't touch anything yet”: Codex gets things wrong too. If Claude fixes everything you pass it without checking, you swap one blind reviewer for another.
05

What it found in my code

My app in production, and a test made for this guide.

⌄

In my app

My app was crashing when you deleted a save. Claude found the cause (two hooks below an early return) and fixed it. When I passed the fix to Codex, it agreed on the serious part and found one more thing:

The comment// Deferred past the pop (~350ms on iOS)
The code}, 300);

The comment said it waited for the animation to finish, and it didn't wait long enough: in the last few frames you could still see the empty screen.

In a test for this guide

A function that adds VAT, with two bugs on purpose: one in what I'd just changed (it let through numbers that aren't numbers, like NaN) and another that was already there (it says 21% and multiplies by 1.12). This came back in 40 seconds:

The new invalid-input handling misses non-finite numbers, confirmed with local Node execution. The incorrect VAT multiplier predates this change and is excluded from the findings. [P2] Reject non-finite numbers in the new validation. For NaN, Infinity, and -Infinity, typeof precio is “number” ... Use Number.isFinite(precio)

Two things almost nobody mentions: it ran the code to check before telling me, and it left out the bug that was already there on purpose, because it only reviews what you've changed.

06

Is it worth it?

Two $20 plans don't go as far as one $200 plan. Here's what they do get you.

⌄
PlanPer monthUsage, compared with Claude Pro
Claude Pro$201x
Claude Max 5x$1005x
Claude Max 20x$20020x
Claude Pro + ChatGPT Plus$40roughly 2x, and a second model

The $200 Max gives twenty times the usage of Pro: it says so on Claude's page. Two $20 plans give you roughly double. It's an approximate comparison, because Claude usage and Codex usage aren't measured the same way.

When it is worth it: if Claude Pro falls short for you, before jumping to Max try adding ChatGPT Plus. The reviews come out of your Codex usage, so you take longer to hit Claude's limit, and you gain a second model that doesn't think like the first.
07

Why another model

What a 2025 study says, in two lines.

⌄

A 2025 study with a title that sums it up, Great Models Think Alike and this Undermines AI Oversight, found two things that matter here:

  • A model that judges scores models that resemble it higher.
  • Models from the same family resemble each other more.

It's like getting a second opinion from a doctor who went to the same medical school as the first one, with the same textbooks.

The honest nuance: the same study sees that, as models get better, even ones from different companies get more and more of the same things wrong. Another family helps, but it isn't magic. And my case fits all of this, but one case doesn't prove it: that's why Codex doesn't replace my Claude reviewer, it adds to it. They measured it on open models, not on Claude or Codex.
08

If something fails

What I ran into, what the documentation says and how to fix it.

⌄
What you seeWhy it happensWhat to do
The '...' model is not supported when using Codex with a ChatGPT accountYour Codex is out of date and doesn't know the model your configuration asks for yet. It happened to me with GPT-6.1 Sol and Codex version 0.153.2.Update Codex: npm install -g @openai/codex@latest. Then close the Claude Code session and open a new one: when it closes, the plugin shuts down the Codex it had open. After that you can pick whatever model you want.
/codex:setup says you haven't signed inCodex is installed but without your account.!codex login from Claude Code.
The /codex: commands don't show upClaude Code hasn't reloaded the plugins./reload-plugins.
It doesn't flag a bug you know is there/codex:review only looks at what you've changed. A bug that was already there gets left out (even with --base main, which only looks at what your branch changes compared with main).Ask for it as a task: /codex:rescue review this file and tell me what bugs you see, without changing anything.
It takes a long timeReviewing several files takes a while.--background and then /codex:status.
It doesn't work with the free accountAccording to OpenAI's pricing page, the Codex terminal isn't included in Free or Go.ChatGPT Plus or higher, or an API key.
09

Careful

Three things before you let it loose.

⌄

The automatic review can drain your quota

/codex:setup --enable-review-gate makes Codex review every time Claude finishes a response. OpenAI warns that it can create a long loop between the two and use up your usage very fast. I don't have it on: I launch the review myself, before the commit.

Rescue mode writes to your project

/codex:rescue can edit files by default, and Claude can launch it on its own if it thinks delegating makes sense. Work on a separate branch and look at the diff before you keep it.

Every review uses up your Codex usage

Not Claude's, but it isn't free either. On Plus, OpenAI estimates between 5 and 45 messages every five hours with GPT-6 Astra, depending on how big the task is. Your real usage is in Codex's usage dashboard.

Sources