aip-openclaw-plugin
v0.1.0
Published
Native OpenClaw plugin for AIP delegation verification
Readme
@aip-sdk/openclaw-plugin
Native OpenClaw plugin that hooks into before_tool_call to verify AIP delegation tokens and enforce capability policies on every tool execution.
Install
openclaw plugins install clawhub:@aip-sdk/openclaw-pluginOr via npm:
npm install @aip-sdk/openclaw-pluginConfigure
In your OpenClaw config:
{
"plugins": {
"enabled": ["aip-guard"],
"entries": {
"aip-guard": {
"config": {
"trustKeys": ["z6MkYourEd25519PublicKey..."],
"unsignedSkills": "warn",
"auditLog": "./aip-audit.jsonl"
}
}
}
}
}What it does
Every tool call passes through AIP Guard before execution:
- Extract the AIP token from
X-AIP-Tokenheader or A2A metadata - Verify the Ed25519 signature against configured trust keys
- Check scope against the token's capability list
- Allow or block with a JSONL audit log entry
Policy modes
| unsignedSkills | No token present | Effect |
|-----------------|-----------------|--------|
| "allow" | Pass through silently | No enforcement |
| "warn" (default) | Log warning, allow | Visibility without disruption |
| "block" | Block tool call | Full enforcement |
Audit log
Every decision is logged as JSONL:
{"ts":"2026-04-26T02:19:28Z","decision":"deny","tool":"delete_all","subject":"aip:key:ed25519:z...","reason":"scope_insufficient: tool:delete_all not in token scope [tool:search]"}