/install clawdiary
ClawDiary Guardian
An OpenClaw skill for integrating with ClawDiary - a cloud-based audit diary and high-risk operation interception gateway for AI Agents.
How to Get an API Key (Registration)
To use this guardian skill, you need a ClawDiary API Key.
- Visit ClawDiary: Go to the official site at clawdiary.org.
- Register & Subscribe: Choose a plan and follow the registration process.
- Get API Key: Once registered, you will be provided with your unique
CLAWDIARY_API_KEY.
Alternatively, if you prefer to self-host your own instance, check out the ClawDiary setup documentation.
Setup In OpenClaw
Configure your agent with the CLAWDIARY_API_KEY obtained from the step above. Note that all /v1/* endpoints require authentication via the Authorization: Bearer \x3CAPI_KEY> header.
Features & Usage
1. Active Guard (Approval Gate)
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"
}
2. Passive Audit (Logging)
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" }
}
3. Shared Diary
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."
}
MCP Support
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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawdiary - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawdiary触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claw-Diary 是什么?
Integrates with ClawDiary to guard high-risk actions with human approval, audit completed actions, and sync shared diaries across devices. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 295 次。
如何安装 Claw-Diary?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawdiary」即可一键安装,无需额外配置。
Claw-Diary 是免费的吗?
是的,Claw-Diary 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claw-Diary 支持哪些平台?
Claw-Diary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw-Diary?
由 Jety(@jetywolf)开发并维护,当前版本 v1.1.9。