Skip to content
Development
Command

/setup

Check whether the local Codex CLI is ready and optionally toggle the stop-time review gate

From plugin
codex-plugin-cc
35k8 skills1 agent8 commands
> /plugin marketplace add openai/codex-plugin-cc
> /plugin install codex@openai-codex

Command definition

setup.md
description: 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 $ARGUMENTS

If 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 $ARGUMENTS

If 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`.
@openai
Ships withcodex-plugin-cc

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.

35k3 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
34.7k
Star history of openai/codex-plugin-cc on GitHub, a chart by star-history.com

Other commands on codex-plugin-cc.

rescue

rescue

Command

Delegate investigation, an explicit fix request, or follow-up rescue work to the Codex rescue subagent

@openai@openaiInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command