Add OpenAI Codex CLI as a second-brain reviewer agent inside Claude Code via the official
codex@openai-codexplugin. AI agent automation for diff review, adversarial critique, and rescue tasks.
Claude Code skill | Works with: Codex CLI · OpenAI · Anthropic Claude
This Claude Code skill installs and wires the official OpenAI Codex CLI plugin into Claude Code so you get a second LLM agent inside your existing session. After install, new /codex:* slash commands let Claude delegate diff review, devil's-advocate plan critique, and rescue sub-tasks to Codex without leaving the Claude Code terminal. Authentication uses your ChatGPT Plus/Pro/Business subscription quota — no separate API key, no extra billing.
Before: one AI agent reviewing its own output, no adversarial signal, no Codex-as-rescuer fallback. After: Claude Code + Codex CLI working as a paired team — Claude proposes, Codex reviews, both sign off before merge.
- Agent: Claude Code (primary) — adds Codex CLI as sub-agent
- Tools / MCPs: Codex CLI ≥ 0.125.0, Homebrew or npm
- Accounts / API keys: ChatGPT Plus, Pro, or Business subscription (no OpenAI API key needed)
- OS: macOS / Linux
curl -fsSL https://raw.githubusercontent.com/sergeyramas/connect-codex-skill/main/install.sh | bashOr manually:
git clone https://github.com/sergeyramas/connect-codex-skill ~/.claude/skills/connect-codexRestart Claude Code after install.
Tell Claude Code one of these trigger phrases:
- "install codex plugin"
- "connect codex to claude code"
- "set up codex cli"
Claude will then walk through six steps: install Codex CLI, run codex login for OAuth, add the openai/codex-plugin-cc marketplace, install codex@openai-codex, restart Claude Code, and verify with /codex:status.
The skill encodes the exact sequence that hooks Codex CLI into Claude Code's plugin system. It installs Codex via Homebrew (or npm fallback), authenticates against the user's ChatGPT subscription so Codex uses subscription quota instead of API billing, registers the OpenAI plugin marketplace inside Claude Code, and installs the codex@openai-codex plugin at user scope so it's available across every project. After a restart, Claude Code exposes /codex:review, /codex:adversarial-review, /codex:rescue, /codex:status, /codex:result, /codex:cancel, and /codex:setup slash commands. The skill also documents the common pitfalls — missed restarts, wrong ChatGPT account in the OAuth browser, expired ~/.codex/auth.json, free-plan quota, and asking Codex to review UI bugs it cannot see.
/codex:review— read-only review of the current diff/codex:adversarial-review— devil's-advocate critique (paste the plan inline)/codex:rescue— delegate a task to Codex as a sub-agent/codex:status— list background Codex jobs/codex:result— fetch a completed job result/codex:cancel— cancel a running job/codex:setup— re-authenticate
Скилл подключает OpenAI Codex CLI к Claude Code как второго AI-агента. После установки Claude Code получает /codex:* slash-команды: ревью диффа, adversarial-разбор плана, rescue-делегирование. Аутентификация — через подписку ChatGPT Plus/Pro/Business, а не через API-ключ.
До: один агент сам себя ревьюит, adversarial-сигнала нет. После: Claude предлагает — Codex ревьюит, оба подписывают перед merge.
curl -fsSL https://raw.githubusercontent.com/sergeyramas/connect-codex-skill/main/install.sh | bashПосле установки перезапусти Claude Code.
- "подключи кодекс"
- "поставь codex в claude code"
- "связка claude+codex"
- "настрой codex"
Шесть проверенных шагов: brew install codex → codex login → /plugin marketplace add openai/codex-plugin-cc → /plugin install codex@openai-codex → restart Claude Code → /codex:status. Плюс список граблей (забытый restart, не тот ChatGPT-аккаунт в браузере, протухший ~/.codex/auth.json, free-план, попытка ревьюить UI-баги).
@sergeyramas — I publish proven AI agent processes as reusable Claude Code skills at sergeyramas.vercel.app.