/setup
Check whether the local Codex CLI is ready and optionally toggle the stop-time review gate
> /plugin marketplace add openai/codex-plugin-cc > /plugin install codex@openai-codex
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/setup
Context preview
What this command does when you run it.
Check whether the local Codex CLI is ready and optionally toggle the stop-time review gate
Command definition
setup.mddescription: Check whether the local Codex CLI is ready and optionally toggle the stop-time review gate argument-hint: '[--enable-review-gate|--disable-review-gate]' allowed-tools: Bash(node:*), Bash(npm:*), AskUserQuestion
Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" setup --json $ARGUMENTSIf the result says Codex is unavailable and npm is available:
- Use `AskUserQuestion` exactly once to ask whether Claude should install Codex now.
- Put the install option first and suffix it with `(Recommended)`.
- Use these two options:
- `Install Codex (Recommended)`
- `Skip for now`
- If the user chooses install, run:
npm install -g @openai/codex
- Then rerun:
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" setup --json $ARGUMENTSIf Codex is already installed or npm is unavailable:
- Do not ask about installation.
Output rules:
- Present the final setup output to the user.
- If installation was skipped, present the original setup output.
- If Codex is installed but not authenticated, preserve the guidance to run `!codex login`.
Use Codex from inside Claude Code for code reviews or to delegate tasks to Codex. This plugin is for Claude Code users who want an easy way to start using Codex from the workflow they already have.
Repo: openai/codex-plugin-cc
Other commands on codex-plugin-cc.
- /adversarial-review
Run a Codex review that challenges the implementation approach and design choices
Open command - /cancel
Cancel an active background Codex job in this repository
Open command - /rescue
Delegate investigation, an explicit fix request, or follow-up rescue work to the Codex rescue subagent
Open command - /result
Show the stored final output for a finished Codex job in this repository
Open command - /review
Run a Codex code review against local git state
Open command - /status
Show active and recent Codex jobs for this repository, including review-gate status
Open command

