aamp-openclaw-plugin
v0.1.29
Published
AAMP Agent Mail Protocol — OpenClaw plugin. Gives OpenClaw an AAMP mailbox identity and lets it receive, process and reply to AAMP tasks.
Readme
aamp-openclaw-plugin
OpenClaw plugin that gives an OpenClaw agent an AAMP mailbox identity.
Install
npm install aamp-openclaw-pluginWhen installed via:
npx aamp-openclaw-plugin initthe installer will prompt for:
AAMP HostPrimary trusted dispatch sender- optional
Dispatch context rules
The answers are written into the OpenClaw plugin config automatically, so users do not need to hand-edit openclaw.json.
Build
npm run buildOpenClaw config
{
"plugins": {
"entries": {
"aamp-openclaw-plugin": {
"enabled": true,
"config": {
"aampHost": "https://meshmail.ai",
"slug": "openclaw-agent",
"credentialsFile": "~/.openclaw/extensions/aamp-openclaw-plugin/.credentials.json",
"senderPolicies": [
{
"sender": "[email protected]",
"dispatchContextRules": {
"project_key": ["proj_123"],
"user_key": ["alice"]
}
}
]
}
}
}
}
}If senderPolicies is omitted, all senders are accepted. If set, the dispatch sender must match one policy and all configured dispatch-context rules for that sender must pass.
The plugin also understands:
- dispatch priority via
X-AAMP-Priority - dispatch expiry via
X-AAMP-Expires-At - sender-side cancellation via
task.cancel
When multiple tasks are pending locally, the plugin schedules them in this order:
urgenthighnormal
Within the same priority, tasks are processed FIFO by receive time. On startup, the plugin reconciles recent mailbox history so that still-valid tasks can be recovered after the agent was offline.
