Guilds AI / Blog

,

Claude Code Codex Plugin: Install and Review Code Safely

Illustrative laptop and plugin symbols representing Codex integration and code review in Claude Code.

The Claude Code Codex plugin is OpenAI’s integration for requesting Codex reviews and delegating tasks from an existing Claude Code session. Install it from the official marketplace repository, verify the local Codex authentication, and start with a read-only review. This guide explains the commands, the distinction between review and delegation, and how to keep usage and repository access under control.

For choosing a primary coding assistant before adding cross-model review, see our Claude vs ChatGPT for coding guide.

Before combining the agents, see our comparison of Codex and Claude Code for the differences in billing, permissions and execution.

What is the Codex plugin for Claude Code?

OpenAI publishes an integration that lets a developer use Codex while working in Claude Code. Rather than replacing Claude with an OpenAI model, it connects the Claude Code session to the local Codex installation. You can request a second opinion on changes or hand off a narrowly defined development task.

This is distinct from the OpenAI Developers plugin for API development, the Codex editor extension and unofficial integrations that connect the two agents in the opposite direction. Check that the marketplace points to OpenAI’s codex-plugin-cc repository before installing anything. If you need a separate editor interface instead, see our Codex in VS Code guide.

Install and authenticate the plugin

Start with a working Claude Code installation and Node.js 18.18 or later, as specified by the plugin’s README. You also need authorized Codex access through a supported ChatGPT account or OpenAI API key. Usage is subject to the selected Codex account’s limits. Check the current access and billing arrangements before starting a task.

Run these commands in the Claude Code interactive interface, one at a time:

/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins
/codex:setup

The setup command reports whether the local Codex installation and authentication are ready. If the binary is missing, setup may offer to install it through npm. Review the proposed installation before authorizing it. If Codex is installed but not signed in, the documented shortcut inside Claude Code is:

!codex login

Use the intended account, not an unrelated developer credential. A Claude subscription does not automatically cover Codex requests. Our Claude Code terminal guide covers the prerequisite CLI workflow.

Choose the correct plugin command

The official repository documents several commands with different effects. Select a read-only review when you want findings without a proposed agent changing the checkout. Use delegation only when you have authorized its scope.

CommandPurpose
/codex:reviewInspect changes without editing them
/codex:adversarial-reviewChallenge design assumptions and specified risks
/codex:rescueDelegate investigation or implementation
/codex:transferMove session context into a resumable Codex thread
/codex:status, /codex:result, /codex:cancelInspect or stop delegated jobs

The review commands do not themselves apply fixes. Normal review inspects the selected change set; adversarial review can also take a specific risk to investigate. Rescue is different because it can make changes, depending on the task and the permissions available to Codex.

Example: review a validation change before committing

Imagine Claude Code has updated a function that validates quantities in an order form. Save the work, inspect git status and git diff, and run the existing tests. Then request a second opinion on the uncommitted change:

/codex:review

For a branch comparison, use the project’s actual base branch. For example, if the intended base is main:

/codex:review --base main

For a narrower challenge, ask the adversarial reviewer to assess the assumption that empty and zero quantities are rejected. Inspect each finding against the requirements and source code before changing anything. A reviewer can misunderstand intentional behavior, so a second model is not a substitute for the acceptance tests.

If an investigation is more appropriate than a standard review, you could delegate a read-only diagnostic request:

/codex:rescue Investigate the quantity validation failure. Report likely causes and relevant tests; do not edit files.

These commands and scenarios are illustrative. The plugin and both authenticated agents were not executed for this guide. For native Codex review outside Claude Code, see our IDE code review tutorial.

Manage long-running jobs and the optional review gate

For a longer review, the plugin offers a background mode. The job belongs to the installed development tool on your machine, not to an ordinary chat response. Request a background review and later inspect the job’s status and stored result:

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

Use the job identifier when multiple tasks exist. Cancel an unwanted active job using the documented cancel command and verify whether it actually stopped. Do not let Claude and Codex make simultaneous edits to the same files; use separate worktrees if you intentionally run independent changes.

An optional review gate invokes Codex at a Claude Code stop hook and can cause further review-and-fix iterations. Leave it disabled for the first session. If you enable it, monitor usage and the changes it produces; repeated cycles can consume both time and account allowances. Disable it when no longer needed:

/codex:setup --disable-review-gate

Permissions, costs and cross-model review limits

The integration uses the local Codex configuration and authentication, including applicable project settings. Review those settings separately from Claude Code’s permissions. A restriction configured in one agent does not automatically establish the same boundary for the other. The two tools can also send relevant source material to different providers, so check organizational data-sharing policies before using both on private code.

The transfer command can import prior conversation context into a Codex thread. Inspect the material that will be transferred and avoid sending secrets or unrelated confidential content. Use an isolated checkout and keep production credentials unavailable to both agents.

Cross-model review can uncover different issues, but it does not guarantee better code. A July 2026 preprint on cross-model LLM code review (arXiv:2607.21656) reports that outcomes depended on the writer-reviewer pairing; community experiences also differ. Treat those observations as reasons to test the workflow rather than proof of a universal improvement. Our coding agent guide explains how to set independent acceptance criteria.

Frequently asked questions

Does the Codex plugin require a separate login? It uses the existing local Codex authentication. If Codex is not signed in, complete an authorized login.

Why does the setup command fail? Check whether the plugin is installed and loaded, whether the Codex binary is available, and whether the correct account is authenticated. Inspect the reported error before reinstalling components.

Does review change my code? The documented standard and adversarial review commands are read-only. Delegation and subsequent fixes have different effects.

Is it free? Installing the open-source plugin is distinct from paying for model usage. Check the allowances and billing for the selected Codex and Claude accounts.

Was the plugin tested live? The official repository documentation, search results from independent guides, a public community discussion and the research preprint were reviewed on December 4, 2026. No plugin installation or model calls were performed.