Getting Started
Prerequisites
- Node.js >= 18.0.0
- Claude Code
Install
npm install -g @pegasi-ai/reins
reins initreins init runs an interactive wizard that:
- Chooses a security level:
permissive/balanced/strict/custom - Selects modules to protect:
FileSystem,Shell,Browser,Network - Installs PreToolUse + PostToolUse hooks into
.claude/settings.json - Installs the Claude Code skill to
~/.claude/skills/reins/SKILL.md - Optionally connects to Reins Cloud for centralized policy management
- Runs an initial environment security scan (
reins scan)
See Claude Code for hook details, the skill, and examples.
Non-interactive install
For CI or scripted environments:
reins init --non-interactive --security-level balanced --modules FileSystem,ShellMachine-readable output:
reins init --non-interactive --jsonBuilding from source
git clone https://github.com/pegasi-ai/reins
cd reins
npm install
npm run build
# Link for global use
npm link
reins --helpAfter any code change: npm run build — no re-registration needed.
Verify
reins status # hook status + Reins Cloud connection
reins scan # 13-check security audit
reins audit # last 50 decisions