reins

pegasi-aiApache-2.0活跃维护

给 AI Agent 加一层行为管控,拦截它自作主张的操作,支持人工介入和审计留痕,防止越权执行你没要求的动作。

Stop AI agents from doing things you didn't ask for.

0.0.22发布于 2026-04-14 19:44 UTC393star52fork同步于 2026-11-10 06:03 UTC

怎么上手

由 README 提炼,执行前请确认
npm install -g @pegasi-ai/reins
reins init
硬件要求按 README 说明

README 未说明,仅要求 Node.js >= 18.0.0

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 AI Agent 加确定性安全策略,拦截你没授权的破坏性操作

给 AI Agent 加一层行为管控,拦截它自作主张的操作,支持人工介入和审计留痕,防止越权执行你没要求的动作。

核心能力

  • 执行前拦截破坏性动作并评估不可逆程度
  • 高风险操作走终端或消息审批并要求 CONFIRM 令牌
  • 扫描配置中的 OWASP ASI10 漏洞并追踪漂移
  • 策略本地缓存离线执行,单次评估低于 50ms
  • 追加写入 JSONL 不可篡改审计日志

容易踩的坑

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

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

3 个版本0.0.22
  1. 0.0.220.0.22 Watchtower Integrationpre-release最新正式版2026-04-14 · 2026-04-14 19:44 UTC

    What's Changed

    New Contributors

    Full Changelog: https://github.com/pegasi-ai/clawreins/compare/beta-0.0.2...0.0.22

  2. beta-0.0.2pre-release2026-04-07 · 2026-04-07 20:23 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/pegasi-ai/clawreins/commits/beta-0.0.2

  3. betav0.0.1-betapre-release2026-02-25 · 2026-02-25 23:31 UTC
    查看更新说明

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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

    Reins 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:

    Contributing

    PRs welcome. See CONTRIBUTING.md.

    License

    Apache 2.0 — see LICENSE.