← 返回
未分类

APort Agent Guardrail

Pre-action authorization for AI agents. Verifies permissions before every tool runs (shell, messaging, git, MCP, data export). Works with OpenClaw, IronClaw,...
AI代理的预操作授权。在每次工具运行前验证权限(shell、消息、git、MCP、数据导出)。支持OpenClaw、IronClaw等。
uchibeke
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 281
下载
💾 0
安装
1
版本
#latest

概述

APort Agent Guardrail

Pre-action authorization for AI agents: every tool call is checked before it runs. Works with OpenClaw, IronClaw, PicoClaw, and compatible frameworks. Run the installer once; the OpenClaw plugin then enforces policy on every tool call automatically. You do not run the guardrail script yourself.

> Requires: Node 18+, jq. Install with npx @aporthq/agent-guardrails or ./bin/openclaw from the repo.

Installation

# Recommended (no clone needed)
npx @aporthq/agent-guardrails

# Hosted passport: skip the wizard by passing agent_id from aport.io
npx @aporthq/agent-guardrails <agent_id>

Get a Hosted Passport agent_id at aport.io after creating a passport there. __OPTIONAL__

From the repo (clone first): github.com/aporthq/aport-agent-guardrails — then run ./bin/openclaw or ./bin/openclaw from the repo root. Full guides: QuickStart: OpenClaw Plugin · Hosted passport setup.

You can preview your local passport at ~/.openclaw/aport/passport.json (or /aport/passport.json if you chose a different config dir; legacy installs may use /passport.json).

The installer is interactive: it sets your config dir, passport (local or hosted), installs the APort OpenClaw plugin, writes config, and installs wrappers. After it finishes, nothing else is required—start OpenClaw (or use the running gateway); the plugin enforces before every tool call.

Wrappers (default config dir ~/.openclaw): ~/.openclaw/.skills/aport-guardrail.sh (local), ~/.openclaw/.skills/aport-guardrail-api.sh (API/hosted). The plugin uses these; you don’t call them unless testing.

Usage

Normal use: Run the installer once. After that, nothing to run manually—the plugin enforces before each tool call automatically.

Optional — direct script calls (e.g. testing or other automations):

~/.openclaw/.skills/aport-guardrail.sh system.command.execute '{"command":"ls"}'
~/.openclaw/.skills/aport-guardrail.sh messaging.message.send '{"channel":"whatsapp","to":"+15551234567"}'
  • Exit 0 = ALLOW (tool may proceed)
  • Exit 1 = DENY (see /aport/decision.json or /decision.json for reason codes)

For API mode / hosted passports:

APORT_API_URL=https://api.aport.io ~/.openclaw/.skills/aport-guardrail-api.sh system.command.execute '{"command":"ls"}'

Tool name mapping

When you're about to…Use tool_name
-----------------------------------------------------------
Run shell commandssystem.command.execute
Send WhatsApp/email/etc.messaging.message.send
Create/merge PRsgit.create_pr, git.merge
Call MCP toolsmcp.tool.execute
Export data / filesdata.export

Context must be valid JSON, e.g. '{"command":"ls"}' or '{"channel":"whatsapp","to":"+1..."}'.

Why this skill?

  • Deterministic – runs in before_tool_call; the agent cannot skip it.
  • Structured policy – backed by Open Agent Passport (OAP) v1.0 and policy packs.
  • Fail-closed – if the guardrail errors, the tool is blocked.
  • Audit-ready – decisions are logged (local JSON or APort API for signed receipts).

Pair it with other threat-detection tooling if needed; enforce policy through this guardrail so unsafe actions never run.

Docs

This repo: QuickStart: OpenClaw Plugin · Hosted passport · Tool / policy mapping

OpenClaw: CLI: skills · Skills · Skills config · ClawHub

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 05:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Aport Complete

uchibeke
在标记任务完成前,依据APort护照的交付合同验证已完成任务。强制执行验收标准、摘要要求及测试规范。
★ 0 📥 549
security-compliance

Aport Id

uchibeke
注册 APort,获取可验证护照(DID 凭证),用于证明身份、定义权限并强制执行义务。
★ 0 📥 517
ai-intelligence

Myway Personal OS

uchibeke
使用OpenClaw作为AI后端,设置Myway自托管个人AI主屏幕。当用户想要安装Myway和OpenClaw时使用此技能。
★ 0 📥 491