← 返回
未分类 Key 中文

Permission Vending Machine

Multi-channel approval system for AI agent permissions. GATES sensitive operations (file deletion, git force-push) behind human approval. Notifies via iMessa...
多渠道审批系统用于管理 AI 代理权限。将敏感操作(如文件删除、git 强制推送)设置为需人工审批,并通过 iMessage 通知。
tylerdotai
未分类 clawhub v1.1.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 330
下载
💾 0
安装
1
版本
#agent#ai#approval#latest#permissions#security

概述

Permission Vending Machine (PVM)

Multi-channel approval system for AI agent permissions.

Gates sensitive operations (file deletion, git force-push, etc.) behind a human approver. Notifies via iMessage/SMS, Email, Discord, Telegram, or Slack — and enforces grants before running dangerous commands.

When to use

Use when an AI agent needs to perform an operation that could be destructive:

  • Deleting files or directories
  • Force-pushing to git repositories
  • Moving files to trash outside the agent's workspace

Quick Setup

# 1. Install
git clone https://github.com/tylerdotai/permission-vending-machine.git
cd permission-vending-machine
pip install -e .

# 2. Configure
cp config.example.yaml config.yaml
# Edit config.yaml with your API keys

# 3. Start the daemon (macOS)
launchctl load ~/Library/LaunchAgents/ai.flume.pvm.plist

# 4. Agent requests permission
pvm request --scope "/tmp/build" --reason "cleaning artifacts" --duration 5

# 5. Approver approves via iMessage, email, or Discord link

# 6. Agent runs guarded command
safe-rm -rf /tmp/build

How it works

Agent → pvm request → Vault (pending) → Notify all channels
                                                ↓
                 Approver approves via any channel
                                                ↓
                 Grant created → Agent unblocks → safe-* command executes

Approval Methods

MethodHow to approve
-----------------------
iMessageReply APPROVE (no token needed)
EmailReply APPROVE in the approval email
DiscordClick "Click to approve" link
HTTPcurl http://host:7823/approve/

Configuration

Key settings in config.yaml:

channels:
  sendblue:        # macOS only — iMessage via CLI
    enabled: true
    from_number: "+1..."
    approver_numbers: ["+1..."]
  email:           # cross-platform
    enabled: true
    imap_host: "imap.example.com"
    username: "user"
    password: "pass"
  discord:         # cross-platform
    enabled: true
    webhook_url: "https://discord.com/api/webhooks/..."
    http_approval_base: "http://your-server:7823"

CLI Commands

pvm request --scope <path> --reason <text> --duration <min>  # Request approval
pvm status --agent-id <id>                                    # List active grants
pvm revoke --grant-id <id>                                    # Revoke early
pvm log --limit 50                                           # Audit log
pvm serve --port 7823                                         # HTTP server
pvm approve-daemon --port 7823                               # Full daemon

Wrappers

Prepend safe- to guarded commands:

  • safe-rm -rf /path — checks path scope grant
  • safe-git-push --force — checks repo scope grant
  • safe-trash /path — checks path scope grant

Platforms

  • macOS: launchd service, Sendblue iMessage works
  • Linux: systemd service, use Discord/email/Telegram for approvals
  • Windows: NSSM/Task Scheduler, use Discord/email/Telegram

See docs/PLATFORMS.md for detailed setup per platform.

Links

版本历史

共 1 个版本

  • v1.1.1 当前
    2026-05-07 16:49 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

MiniMax CLI

tylerdotai
MiniMax AI平台CLI — 通过终端或AI代理实现文本、图像、视频、语音、音乐、视觉及网页搜索,适用于生成多媒体内容(图像…)
★ 0 📥 437

Dexter Browser Automation

tylerdotai
Browser automation via Playwright. Use when pages are JS-rendered, require user interaction (click/fill), or need screen
★ 0 📥 402

Meta-Harness Evolver

tylerdotai
端到端 Meta‑Harness 演进,为 Hoss(OpenClaw 代理)服务。每日凌晨3 点通过 OpenClaw cron 自动运行,读取 Hoss 当前工作区配置(SOUL.md、IDENTIT…)
★ 0 📥 390