Install
openclaw skills install clawdiaryIntegrates with ClawDiary to guard high-risk actions with human approval, audit completed actions, and sync shared diaries across devices.
openclaw skills install clawdiaryAn OpenClaw skill for integrating with ClawDiary - a cloud-based audit diary and high-risk operation interception gateway for AI Agents.
To use this guardian skill, you need a ClawDiary API Key.
CLAWDIARY_API_KEY.Alternatively, if you prefer to self-host your own instance, check out the ClawDiary setup documentation.
Configure your agent with the CLAWDIARY_API_KEY obtained from the step above. Note that all /v1/* endpoints require authentication via the Authorization: Bearer <API_KEY> header.
Endpoint: POST https://api.clawdiary.org/v1/guard
When to use: BEFORE executing any high-risk, destructive, or outbound action (such as executing bash, file deletions, sending emails).
Behavior:
Call this endpoint and wait for the response. Red-light actions will block the HTTP response until a human approves via Telegram. Only proceed with the action if the response returns approved: true.
Example Request:
{
"agent_id": "openclaw",
"action_type": "execute_bash",
"command": "rm -rf /tmp/data",
"params": { "cwd": "/home/user" },
"thought": "Cleaning up temporary files"
}
Endpoint: POST https://api.clawdiary.org/v1/audit
When to use: AFTER an action completes.
Behavior:
Report the action, cost, and payload. This helps the human operator review usage asynchronously.
Example Request:
{
"agent_id": "openclaw",
"session_id": "sess-001",
"action_type": "tool_call",
"cost": 0.003,
"payload": { "tool": "search_web", "query": "weather in London" }
}
Endpoints: POST https://api.clawdiary.org/v1/diary (write), GET https://api.clawdiary.org/v1/diary?owner_id=... (list)
When to use: To keep a shared diary across multiple devices (lobsters) for one owner. This allows agents to sync status updates and context.
Example Write Request:
{
"owner_id": "alice",
"lobster_id": "office-mac",
"content": "Finished API integration today. All good."
}
ClawDiary provides an MCP descriptor at GET https://api.clawdiary.org/mcp.json. Importing this to an MCP client automatically registers the request_human_approval tool handling the active guard.