需 Node.js 18 及以上版本;审计日志固定写到 ~/.openclaw/reins/decisions.jsonl,需确保该目录可写;Claude Code 技能需额外手动下载 SKILL.md 或克隆仓库

reins
pegasi-aiApache-2.0活跃维护给 AI Agent 加一层行为管控,拦截它自作主张的操作,支持人工介入和审计留痕,防止越权执行你没要求的动作。
Stop AI agents from doing things you didn't ask for.
npm install -g @pegasi-ai/reins
reins initREADME 未说明,仅要求 Node.js >= 18.0.0
给 AI Agent 加确定性安全策略,拦截你没授权的破坏性操作
给 AI Agent 加一层行为管控,拦截它自作主张的操作,支持人工介入和审计留痕,防止越权执行你没要求的动作。
核心能力
- 执行前拦截破坏性动作并评估不可逆程度
- 高风险操作走终端或消息审批并要求 CONFIRM 令牌
- 扫描配置中的 OWASP ASI10 漏洞并追踪漂移
- 策略本地缓存离线执行,单次评估低于 50ms
- 追加写入 JSONL 不可篡改审计日志
容易踩的坑
- 0.0.220.0.22 Watchtower Integrationpre-release最新正式版2026-04-14 · 2026-04-14 19:44 UTC
What's Changed
- Add watchtower scan artifact upload by @zmaj1231 in https://github.com/pegasi-ai/clawreins/pull/56
- Bump picomatch from 2.3.1 to 2.3.2 by @dependabot[bot] in https://github.com/pegasi-ai/clawreins/pull/58
- Bump flatted from 3.3.3 to 3.4.2 by @dependabot[bot] in https://github.com/pegasi-ai/clawreins/pull/59
- feat: Watchtower connect flow by @kw2828 in https://github.com/pegasi-ai/clawreins/pull/57
New Contributors
- @zmaj1231 made their first contribution in https://github.com/pegasi-ai/clawreins/pull/56
- @dependabot[bot] made their first contribution in https://github.com/pegasi-ai/clawreins/pull/58
Full Changelog: https://github.com/pegasi-ai/clawreins/compare/beta-0.0.2...0.0.22
- beta-0.0.2pre-release2026-04-07 · 2026-04-07 20:23 UTC
查看更新说明
What's Changed
- Add clawreins configure alias, automation mode, and OpenClaw path contract by @kw2828 in https://github.com/pegasi-ai/clawreins/pull/41
- Add trust rate limiter for repeated denials by @joys0714 in https://github.com/pegasi-ai/clawreins/pull/40
- Feature/security scanner by @kw2828 in https://github.com/pegasi-ai/clawreins/pull/44
- Feature/security scanner by @kw2828 in https://github.com/pegasi-ai/clawreins/pull/46
- Out of band approvals by @kere-nel in https://github.com/pegasi-ai/clawreins/pull/49
- Allow/deny directories by @kere-nel in https://github.com/pegasi-ai/clawreins/pull/47
- stall before_tool_call hook until OOB approval resolves by @kere-nel in https://github.com/pegasi-ai/clawreins/pull/50
- Monitor based on OpenClaw config instead of scan's state by @zamaj123 in https://github.com/pegasi-ai/clawreins/pull/55
New Contributors
- @kere-nel made their first contribution in https://github.com/pegasi-ai/clawreins/pull/49
- @zamaj123 made their first contribution in https://github.com/pegasi-ai/clawreins/pull/55
Full Changelog: https://github.com/pegasi-ai/clawreins/commits/beta-0.0.2
- betav0.0.1-betapre-release2026-02-25 · 2026-02-25 23:31 UTC
查看更新说明
Full Changelog: https://github.com/pegasi-ai/clawreins/commits/beta
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
In Greek myth, Athena gave Bellerophon the golden bridle — reins included — that let him guide Pegasus. Reins applies the same idea to AI agents: raw power is not enough — what matters is making it controllable.
Reins enforces deterministic security policies on every agent action, scans your configs for OWASP ASI10 vulnerabilities, and tracks drift over time. Policies evaluate in under 50ms. Works with Claude Code PreToolUse and PostToolUse hooks, OpenClaw, and any MCP-compatible agent.
Quickstart
npm install -g @pegasi-ai/reins
reins init
Claude Code Skill
Install the Reins skill to give Claude Code awareness of your security posture:
mkdir -p ~/.claude/skills/reins
curl -o ~/.claude/skills/reins/SKILL.md \
https://raw.githubusercontent.com/pegasi-ai/reins/main/.claude/skills/reins/SKILL.md
Or clone the repo — the skill is included at .claude/skills/reins/ automatically.
Demo

An OpenClaw agent tries to bulk-delete 4,382 Gmail messages. Reins blocks it before execution.
What Reins does
- Prevent — Block destructive actions before execution. Score irreversibility. Detect risky browser state.
- Pause — Route high-impact actions through terminal or messaging approval flows. Require explicit
CONFIRM-*tokens for catastrophic operations. - Prove — Preserve an immutable audit trail of every decision, approval, and block.
Security guarantees
- Zero Trust — every action evaluated before execution
- Synchronous — agent cannot proceed until the hook exits
- No network in the hot path — policies cached locally, enforced offline
- Fail-closed — any unhandled hook error blocks the action
- Immutable audit — append-only JSONL at
~/.openclaw/reins/decisions.jsonl
Documentation
Full docs at reins.sh/docs:
- Getting Started
- How It Works
- Security Policies
- CLI Reference
- Security Scan
- Reins Cloud
- Use as a Library
- Architecture
Contributing
PRs welcome. See CONTRIBUTING.md.
License
Apache 2.0 — see LICENSE.