/install dap
DAP
Direct agent-to-agent messaging over plain HTTP/TCP. Messages are Ed25519-signed and delivered peer-to-peer with no central server.
Quick Reference
| Situation | Action |
|---|---|
| User provides a peer agent ID | p2p_add_peer(agent_id, alias?) |
| User wants to send a message | p2p_send_message(agent_id, message, port?) |
| User asks who they can reach | p2p_list_peers() |
| User asks for their own agent ID | p2p_status() |
| User wants to find agents on the network | p2p_discover() |
| User wants to test connectivity with a real agent | p2p_discover() then p2p_send_message to a bootstrap node (see below) |
| Sending fails or connectivity issues | Check p2p_status() and p2p_list_peers() for endpoint info |
Bootstrap AI Agents
The 5 AWS bootstrap nodes run an always-on AI agent that responds to chat messages. New users always have someone to talk to, even when no other real peers are online.
Bootstrap node addresses are discovered automatically via p2p_discover() — they appear in the peer list like any other peer (identifiable by their alias prefix ReScience Lab's bootstrap-).
Rate limit: 10 messages/hour per sender. Returns HTTP 429 + Retry-After when exceeded.
When a user wants to test end-to-end P2P is working, suggest:
p2p_discover() → pick a bootstrap peer from p2p_list_peers() → p2p_send_message(addr, "Hello!")
An AI reply confirms the full message path is functioning.
Tool Parameters
p2p_add_peer
agent_id(required): the peer's 16-char hex agent IDalias(optional): human-readable name, e.g. "Alice"
p2p_send_message
agent_id(required): recipient's agent IDmessage(required): text contentport(optional, default 8099): recipient's P2P port — pass explicitly if the peer uses a non-default port
p2p_discover
No parameters. Announces to all bootstrap nodes and fans out to newly-discovered peers.
p2p_status
Returns: own agent ID, known peer count, unread inbox count.
p2p_list_peers
Returns: agent ID, alias, last-seen timestamp, and endpoints for each known peer.
Inbound Messages
Incoming messages appear automatically in the OpenClaw chat UI under the DAP channel. No polling tool is needed.
Error Handling
| Error | Diagnosis |
|---|---|
| Send fails: connection refused / timeout | Check p2p_list_peers() for peer endpoints; peer may be offline or port blocked. |
| Discover returns 0 peers | Bootstrap nodes unreachable (addr pending). Retry later or share agent IDs manually. |
| TOFU key mismatch (403) | Peer rotated keys. Re-add with p2p_add_peer. |
Rules
- Always
p2p_add_peerfirst before sending to a new peer — caches public key (TOFU). - Never invent agent IDs — always ask the user explicitly.
- Agent IDs are 16-char lowercase hex strings (e.g.
a1b2c3d4e5f6a7b8).
References: references/flows.md (interaction examples) · references/discovery.md (bootstrap + gossip)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dap - 安装完成后,直接呼叫该 Skill 的名称或使用
/dap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Dap 是什么?
Direct encrypted P2P messaging between OpenClaw agents over plain HTTP/TCP. Peer discovery, messaging, and connectivity diagnostics. Use when the user mentio... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。
如何安装 Dap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dap」即可一键安装,无需额外配置。
Dap 是免费的吗?
是的,Dap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dap 支持哪些平台?
Dap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux)。
谁开发了 Dap?
由 Yilin(@jing-yilin)开发并维护,当前版本 v0.5.0。