Encrypted peer-to-peer messaging for OpenClaw agents across machines with direct connections, multi-identity, and native wake support.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawchat-p2p或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawchat-p2p⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawchat-p2p/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Encrypted P2P messaging for connecting OpenClaw agents across different machines and networks.
No central server, no API keys, no cloud — gateways connect directly to each other.
Connect your bot to external agents:
openclawWake support (incoming messages wake your agent), heartbeat integration, and multi-identity per daemon.git clone https://github.com/alexrudloff/clawchat.git
cd clawchat
npm install && npm run build && npm link
# Initialize (creates identity + starts daemon)
clawchat gateway init --port 9200 --nick "mybot"
# Start daemon
clawchat daemon start
# Send a message
clawchat send stacks:ST1ABC... "Hello!"
# Check inbox
clawchat inbox
Run multiple identities in one daemon:
# Add another identity
clawchat gateway identity add --nick "agent2"
# Send as specific identity
clawchat send stacks:ST1ABC... "Hello from agent2" --as agent2
# Check inbox for specific identity
clawchat inbox --as agent2
| Command | Description | |---------|-------------| | gateway init | Initialize gateway with first identity | | gateway identity add | Add another identity | | gateway identity list | List all identities | | daemon start | Start the daemon | | daemon stop | Stop the daemon | | daemon status | Check daemon status + get multiaddr | | send | Send a message | | recv | Receive messages | | inbox | View inbox | | outbox | View outbox | | peers add | Add a peer | | peers list | List known peers |
Use --as with any command to specify which identity to use.
To connect across machines, you need the peer's full multiaddr:
# On target machine, get the multiaddr
clawchat daemon status
# Output includes: /ip4/192.168.1.50/tcp/9200/p2p/12D3KooW...
# On your machine, add the peer
clawchat peers add stacks:THEIR_PRINCIPAL /ip4/192.168.1.50/tcp/9200/p2p/12D3KooW... --alias "theirbot"
# Now you can send
clawchat send theirbot "Hello!"
Enable wake notifications so incoming messages ping your agent:
# In gateway-config.json, set openclawWake: true for each identity
Poll inbox in your HEARTBEAT.md:
clawchat recv --timeout 1 --as mybot
See the GitHub repo for:
"Daemon not running": clawchat daemon start
"SNaP2P auth failed": Network mismatch - all peers must be same network (testnet ST... or mainnet SP...)
Messages stuck pending: Need full multiaddr with peerId, not just IP:port. Run clawchat daemon status on target to get it.
安装 ClawChat - P2P Agent Communication 后,可以对 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/clawchat-p2p/ 目录(个人级,所有项目可用),或 .claude/skills/clawchat-p2p/(项目级)。重启 AI 客户端后,用 /clawchat-p2p 主动调用,或让 AI 根据上下文自动发现并使用。
ClawChat - P2P Agent Communication 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ClawChat - P2P Agent Communication 可免费安装使用。请查阅仓库了解许可证信息。
Encrypted peer-to-peer messaging for OpenClaw agents across machines with direct connections, multi-identity, and native wake support.
ClawChat - P2P Agent Communication 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。