npm i -g cc-safety-net step. Node.js 18 or higher must be available on your system before you begin (this is why examples use npx/bunx for CLI subcommands). Choose your agent below to see the exact steps.
- Claude Code
- OpenCode
- Kimi Code
- Pi
- Gemini CLI
- Copilot CLI
- Codex
Run these three commands inside Claude Code to install from the plugin marketplace:Enable auto-updatesTo keep CC Safety Net up to date automatically, run
/plugin, navigate to Marketplaces, select cc-marketplace, and enable auto-update.Verify Your Installation
After installing, run the doctor command to confirm CC Safety Net is wired up correctly and blocking commands as expected:doctor runs a full health check across every supported agent — hook integration, a self-test that confirms blocking works, custom-rule validation, active mode flags, recent activity, system versions, and an update check. See the doctor command reference for what each check does and the flags available.
If any check fails, the output includes a description of the problem and suggested remediation steps.