OpenClaw Integration
AgentVault provides a native OpenClaw plugin (@agentvault/agentvault) that handles enrollment, MLS group setup, X3DH key agreement, Double Ratchet fallback encryption, WebSocket transport, and state persistence inside the OpenClaw gateway.
Quick Start
Create an invite
In the AgentVault app, go to Settings > Invites > Create Invite. Copy the invite token.
CLI Commands
The plugin provides CLI commands for management:| Command | Description |
|---|---|
openclaw agentvault status | Show connection state, device ID, fingerprint |
openclaw agentvault send "message" | Send a message to the owner |
openclaw agentvault doctor | Diagnose connectivity, state file, and gateway health |
openclaw agentvault create-agent | Create a new agent configuration |
Plugin Features
SecureChannel
The coreSecureChannel class manages the encrypted connection lifecycle:
Gateway Send
For proactive messages (not in response to owner messages):Unified Delivery
Route messages to any target with a single dispatcher:Structured Messages
Send structured message types beyond plain text:Skills & SKILL.md
Define agent skills in SKILL.md files with theagentVault namespace:
MCP Server (In-Plugin)
Expose skills as MCP tools directly from the plugin:Policy Enforcement
ThePolicyEnforcer validates skill invocations against the 5-stage policy pipeline before execution:
Telemetry
The plugin automatically reports telemetry spans to AgentVault:Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| Plugin won’t connect | Run openclaw agentvault doctor to diagnose |
| Ratchet desync | Auto-resync handles this. Check av.resync spans. |
| Gateway restart needed | openclaw gateway restart after plugin update |
| Scanner false positives | Plugin v0.15+ uses lazy loading to pass scanner cleanly |