Transport-agnostic secure P2P communication for AI agents. Noise XX handshake, XChaCha20-Poly1305 encryption, connection consent, human verification. No WebSocket — works over Telegram, Signal, or any messaging transport.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawdiocomms或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawdiocomms⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawdiocomms/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: clawdio version: 2.2.0 description: Secure P2P communication for AI agents via Telegram. Simple onboarding: create "Clawdio Hub" group, add bot, share keys. Noise XX handshake, XChaCha20-Poly1305 encryption, connection consent, human verification. ---
Secure peer-to-peer communication for AI agents using Telegram as transport. Create a "Clawdio Hub" group, add your bot, and you're ready to connect with other agents securely. Agents perform Noise XX handshake over Telegram, then communicate via encrypted channels.
message tool for send/receiveclawhub install clawdiocommscd projects/clawdio && npm install && npx tsc
const { Clawdio } = require('./projects/clawdio/dist/index.js');
// Create two nodes
const alice = await Clawdio.create({ autoAccept: true });
const bob = await Clawdio.create({ autoAccept: true });
// Wire transport (agents decide HOW to send)
alice.onSend((peerId, msg) => bob.receive(alice.publicKey, msg));
bob.onSend((peerId, msg) => alice.receive(bob.publicKey, msg));
// Connect (Noise XX handshake)
const aliceId = await bob.connect(alice.publicKey);
// Send messages
await bob.send(aliceId, { task: "What's the weather?" });
alice.onMessage((msg, from) => console.log(msg.task));
const node = await Clawdio.create({ owner: 'James' });
// Send via Telegram
node.onSend((peerId, base64Message) => {
// Use OpenClaw's message tool to send to peer's Telegram
sendTelegramMessage(peerId, base64Message);
});
// When receiving a Telegram message from peer:
node.receive(peerId, base64EncodedMessage);
Unknown inbound peers require explicit consent:
node.on('connectionRequest', (req) => {
console.log(`Peer: ${req.id}, Fingerprint: ${req.fingerprint}`);
node.acceptPeer(req.id); // or node.rejectPeer(req.id)
});
const code = node.getVerificationCode(peerId); // "torch lemon onyx prism jade index"
// Compare codes in person, then:
node.verifyPeer(peerId);
const node = await Clawdio.create({ identityPath: '.clawdio-identity.json' });
| Method | Description | |--------|-------------| | Clawdio.create(opts) | Create and initialize a node | | node.onSend(handler) | Register send handler (transport layer) | | node.receive(from, b64) | Feed incoming message from transport | | node.connect(peerId) | Initiate Noise XX handshake | | node.send(peerId, msg) | Send encrypted message | | node.onMessage(handler) | Listen for decrypted messages | | node.acceptPeer(id) | Accept pending connection | | node.rejectPeer(id) | Reject pending connection | | node.getVerificationCode(id) | Get 6-word verification code | | node.verifyPeer(id) | Mark peer as human-verified | | node.getPeerTrust(id) | Get trust level | | node.getFingerprint(id) | Emoji fingerprint | | node.getPeerStatus(id) | alive/stale/down | | node.stop() | Shutdown |
Single production dependency: libsodium-wrappers.
安装 Clawdio 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/clawdiocomms/ 目录(个人级,所有项目可用),或 .claude/skills/clawdiocomms/(项目级)。重启 AI 客户端后,用 /clawdiocomms 主动调用,或让 AI 根据上下文自动发现并使用。
Clawdio 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Clawdio 可免费安装使用。请查阅仓库了解许可证信息。
Transport-agnostic secure P2P communication for AI agents. Noise XX handshake, XChaCha20-Poly1305 encryption, connection consent, human verification. No WebSocket — works over Telegram, Signal, or any messaging transport.
Clawdio 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。