Skip to content

aporthq/openclaw-plugin-aport-oap

Repository files navigation

openclaw-plugin-aport-oap

APort Open Agent Protocol (OAP) for OpenClaw

Pre-action authorization for AI agents. Enforces YAML capability manifests before tool calls via the Open Agent Protocol (OAP).

npm License OpenClaw


What it does

This plugin gives your OpenClaw agent two tools:

Tool Description
aport_check Validate a planned tool call against your OAP capability manifest before executing it
aport_passport Read or generate an agent-passport.yaml for the current session

Optional enforcement mode: set mode: "enforce" to register a before_tool_call hook that automatically blocks any tool call not in your policy — the agent cannot bypass it.


Install

openclaw plugins install @aporthq/openclaw-plugin-aport-oap

Quick Start

See docs/quick-start.md for the full guide.

TL;DR:

  1. Install the plugin
  2. Ask your agent: "Generate an agent passport for this session."
  3. Edit ./agent-passport.yaml to list exactly what tools this agent may call
  4. The agent will use aport_check before executing sensitive operations

How it works

Agent plans a tool call
        ↓
aport_check({ tool_name: "exec", params: {...} })
        ↓
Policy evaluator reads agent-passport.yaml
        ↓
{ allowed: true/false, reason: "...", policy_applied: "local-yaml", decision_id: "..." }
        ↓
Agent proceeds (or stops if not allowed)

In enforce mode, the before_tool_call hook does this automatically — no explicit aport_check call needed.


Configuration

{
  "plugins": {
    "entries": {
      "aport-oap": {
        "mode": "audit",
        "policyFile": "./agent-passport.yaml"
      }
    }
  }
}
Key Values Default
mode audit | enforce audit
policyFile path ./agent-passport.yaml
passportId APort passport ID
apiUrl URL https://api.aport.io
apiKey string $APORT_API_KEY
auditLog JSONL path

Related


License

Apache 2.0 — see LICENSE

About

APort Open Agent Protocol (OAP) for OpenClaw — pre-action authorization plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors