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
32k8 skills1 agent8 commands
Install
> /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.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`.
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.

Get the whole plugin