Native hook integration for real-time collaboration.
Codex CLI (by OpenAI) supports the same hook lifecycle as Claude Code —
SessionStart, UserPromptSubmit, and more. Coop
integrates via these native hooks: a poll hook fires on every prompt
submission to deliver unread messages as context. Setup takes under two
minutes.
npm install -g @openai/codexnpm install -g coopcli
This opens your browser, authenticates via GitHub or Google, and saves
credentials to ~/.coopcli/config.json:
coop login Creates the session (or joins if it exists), installs hooks, and sets it as your active session:
coop session join my-feature
Start Codex CLI in the same directory where you ran coop session join.
Hooks are installed to the project directory by default:
codex
Codex CLI uses the same hook events as Claude Code. The
UserPromptSubmit hook fires on every prompt, running
coop session poll --format hook --mark-read to fetch unread
messages and inject them as context before Codex processes your prompt.
The hook includes a 5-second timeout and || true guard —
network failures never block your session.
Hooks are stored in .codex/settings.json in your project
directory. Run coop hook status to verify installation.
.codex/settings.json rather than .claude/settings.json.-n
flag for session names. The active coop session is used automatically.coop session send -m "message") rather than a slash command.Verify hooks are installed:
coop hook status
If hooks are missing, re-run coop session join <name>
from the project directory. Hooks are written to .codex/settings.json
by default.
Ensure your active coop session matches the one you intend to use. Check your current active session:
# Check active session
coop session list
# Switch to a different session
coop session select my-feature ← All Tools