How to Use Claude Code and Codex Together (Two $20 Plans, One Workflow)
A step-by-step setup guide for OpenAI's official Codex plugin, with the commands, a daily workflow and fixes for common errors
You can run Codex from inside Claude Code with OpenAI's official plugin, codex-plugin-cc. Setup takes a few minutes: install the plugin with two commands, sign in to Codex with your ChatGPT account, and you can send code reviews and side tasks to Codex without leaving Claude Code. Everything Codex does still counts toward your Codex limits, so the plugin spreads your work across two plans. It does not give you extra usage.
This guide is for people who already use Claude Code and have (or are thinking about) a ChatGPT plan for Codex. A common pair is Claude Pro and ChatGPT Plus at $20 each.
Before you start
Check these four things first. Most setup problems come from one of them.
| You need | How to check | Notes |
|---|---|---|
| Claude Code | Open it in your terminal as usual | Included with Claude Pro ($20/month in the US) and Max |
| Node.js 18.18 or later | node --version | Install or update from nodejs.org if it's older |
| Git, and a project that is a Git repository | git status in your project folder | The review commands only work inside a Git repository |
| A ChatGPT account or an OpenAI API key | You'll sign in during step 3 | A free ChatGPT account works; usage counts toward that account's Codex limits |
You don't need to install Codex in advance. The setup command can do it for you.
Step 1: Install the plugin
Start Claude Code in your project folder and run these two commands, one at a time:
/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codexThe first adds OpenAI's plugin source. The second installs the plugin from it. Then reload so the new commands appear:
/reload-pluginsStep 2: Run setup
/codex:setupSetup checks Node.js, npm, the Codex CLI and whether you are signed in, then tells you what's missing. If Codex isn't installed and npm is available, it offers to install it for you. If you'd rather install Codex yourself, run this in a normal terminal:
npm install -g @openai/codexWhen setup reports that Codex is ready, you'll also see the new /codex: commands, and a codex:codex-rescue agent in /agents.
Step 3: Sign in to Codex
If setup says you aren't signed in, run this inside Claude Code. The ! at the start runs it as a shell command:
!codex loginA browser window opens. Sign in with the ChatGPT account whose plan you want to use. If the browser sign-in doesn't work, for example on a remote server, use one of these instead:
!codex login --device-auth
!codex login --with-api-keyIf you already use Codex on this computer, you can skip this step. The plugin uses the same sign-in, settings and Codex install you already have.
Step 4: Do a first run
Make a small change in your project, then run a review in the background and check on it:
/codex:review --background
/codex:status
/codex:result/codex:status shows whether the job is still running. /codex:result shows Codex's review when it's done. If you see a review, everything works.
A daily workflow with two $20 plans
Here's one way to split the work so both plans pull their weight.
- Plan and build with Claude Code as usual. This uses your Claude limits.
- Before you commit, ask Codex for a review. This uses your Codex limits.
/codex:review- For a bigger change, ask Codex to question the design, not only the code. You can say what to focus on:
/codex:adversarial-review --base main look for race conditions and question the retry design- When you hit a bug you don't want to spend Claude usage on, hand it to Codex and keep working:
/codex:rescue --background investigate why the tests started failing- Read the result with
/codex:result. If you want to continue that work directly in Codex, the result includes a session ID you can open withcodex resume <session-id>.
You can also ask in plain words, for example "Ask Codex to fix the failing test with the smallest safe patch", and Claude Code will hand it over.
When one plan runs low, lean on the other. If your Claude session limit is close, send more of the debugging to Codex with /codex:rescue. If Codex is low, keep reviews for your bigger changes only.
Command cheat sheet
| Command | What it does | Changes your code? |
|---|---|---|
/codex:review | Normal code review of uncommitted changes, or of your branch with --base main | No |
/codex:adversarial-review | Review that challenges your approach; add focus text after the flags | No |
/codex:rescue | Hands a task to Codex: investigate a bug, try a fix, continue an earlier task | Yes, it can |
/codex:status | Shows running and recent Codex jobs for this repository | No |
/codex:result | Shows the final output of a finished job | No |
/codex:cancel | Stops a background job | No |
/codex:transfer | Moves your current Claude Code conversation into Codex so you can continue there | No |
/codex:setup | Checks install and sign-in; turns the review gate on or off | No |
Useful flags: --background runs a job without blocking you, --wait waits for it, and --base <branch> reviews your branch against another branch. /codex:rescue also takes --resume to continue the last task, --fresh to start a new one, and --model and --effort to pick the model and reasoning effort. If you leave those out, Codex uses its own defaults.
How usage is counted
| What you do | Whose limit it uses |
|---|---|
| Chatting, planning and coding in Claude Code | Your Claude plan |
/codex:review and /codex:adversarial-review | Your Codex limits on the ChatGPT account you signed in with |
/codex:rescue tasks | Your Codex limits |
| Signed in with an API key instead | Your OpenAI API account |
Codex limits on ChatGPT plans are counted in a 5-hour window and a weekly window. OpenAI also refills everyone's limits from time to time; you can see when on our Codex reset radar.
Be careful with the review gate
/codex:setup --enable-review-gate makes Codex review every Claude Code reply automatically, and sends Claude back to fix whatever Codex finds before it stops. OpenAI warns that this can start a long Claude and Codex loop and drain your usage limits quickly. Turn it on only while you're watching the session, and turn it off with:
/codex:setup --disable-review-gateCommon errors and how to fix them
"Codex CLI is not installed or is missing required runtime support"
Codex isn't installed, or your version is too old for the plugin. Run npm install -g @openai/codex in a terminal, then run /codex:setup again.
Setup says you're not signed in
Run !codex login. If the browser step fails or you're on a remote machine, use !codex login --device-auth, or !codex login --with-api-key if you have an API key.
"This command must run inside a Git repository."
The review commands compare your changes with Git. Open Claude Code inside your project folder. If the project isn't a Git repository yet, run git init there and make a first commit.
"Unable to detect the repository default branch"
Tell the review which branch to compare against, for example /codex:review --base main. Use master or your branch name if your project doesn't use main.
"git is not installed"
Install Git for your system (git-scm.com), then open a new terminal and try again.
/codex:transfer doesn't work
Older Codex versions can't import Claude Code conversations. Update Codex with npm install -g @openai/codex, then try again.
Your project's Codex settings are ignored
Settings in a project's .codex/config.toml only load when Codex trusts that project. Your user-level settings in ~/.codex/config.toml always apply.
Your Codex usage drops much faster than expected
Check whether the review gate is on by running /codex:setup. Also remember that /codex:rescue tasks can run for a long time; run them in the background and cancel ones you no longer need with /codex:cancel.
FAQ
Do I need a paid ChatGPT plan?
No. OpenAI says any ChatGPT account, including Free, or an OpenAI API key works. How much you can do depends on the Codex limits of your plan, so check them under Settings → Usage in ChatGPT before you rely on it daily.
Do I need a separate Codex account?
No. The plugin uses the Codex sign-in on your computer. If you already use Codex there, it works right away.
Can Codex change my files?
The two review commands are read-only. /codex:rescue can edit code, because its job is to try fixes.
Is Claude Pro plus ChatGPT Plus better than one bigger plan?
Two $20 plans cost $40 a month and give you two separate sets of limits plus a second model to check the first one's work. The next step up on either side is $100 a month: Claude Max or ChatGPT Pro 100. If you keep running out on both $20 plans, our ChatGPT Pro vs Claude Max comparison puts the two side by side.
Can I choose which model Codex uses?
Yes. Add --model and --effort to /codex:rescue, or set a default in ~/.codex/config.toml with the model and model_reasoning_effort settings. The plugin uses the same Codex settings as the Codex CLI.
Bottom line
Install the plugin with /plugin marketplace add openai/codex-plugin-cc and /plugin install codex@openai-codex, run /codex:setup, and sign in with !codex login. Then use /codex:review before commits and /codex:rescue --background for side jobs, and leave the review gate off unless you're watching. Your Claude plan pays for the planning and coding, and your ChatGPT plan pays for the reviews and side tasks.
Checked against OpenAI's official plugin repository (github.com/openai/codex-plugin-cc) and Anthropic's help center on October 28, 2026.