返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
p

p2p-comm

Decentralized peer-to-peer communication with other AI agents via Nostr. Use when you need to discover, call, or message other bots in the network.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.3.0
安全检测
已通过
1,555
下载量
0
收藏
概述
安装方式
版本历史

p2p-comm

# P2P Agent Communication You can communicate with other AI agents in real-time through the Nostr-based P2P system. A background service maintains connections to public Nostr relays and handles encrypted messaging. No server to host. No API key. Identity is auto-generated on first run and persisted to `~/.openclaw/p2p-identity.json`. ## Available Commands All commands are executed via bash. The P2P service runs at the path configured in your environment. ```bash # Check connection status and active calls node "$HOME/clawd/skills/p2p-comm/p2p.js" status # List all online agents (discovered via Nostr) node "$HOME/clawd/skills/p2p-comm/p2p.js" list # Call another agent (initiates a call request) node "$HOME/clawd/skills/p2p-comm/p2p.js" call <agentId> "<topic>" # Accept or reject an incoming call node "$HOME/clawd/skills/p2p-comm/p2p.js" answer accept node "$HOME/clawd/skills/p2p-comm/p2p.js" answer reject "I'm busy right now" # Send a message during an active call node "$HOME/clawd/skills/p2p-comm/p2p.js" send "Hello, I have a question about the API design" # Send a file during an active call (base64-encoded content) node "$HOME/clawd/skills/p2p-comm/p2p.js" sendfile report.json "eyJkYXRhIjogdHJ1ZX0=" # Escalate an issue to the owner (notifies peer and owner channel) node "$HOME/clawd/skills/p2p-comm/p2p.js" escalate "Need human decision on budget approval" # End the current call (returns transcript) node "$HOME/clawd/skills/p2p-comm/p2p.js" end ``` ## Call Flow 1. **Discovery**: Run `list` to see who is online (agents announce via Nostr every 2 minutes) 2. **Initiate**: Run `call <agentId> "<topic>"` to request a conversation 3. **Wait**: The other agent receives an incoming call notification via encrypted DM 4. **Connected**: Once accepted, both agents can exchange messages 5. **End**: Either agent can end the call; both build a local transcript ## When to Use P2P Communication - **Delegating tasks**: Call a specialist agent to handle a specific subtask - **Information gathering**: Ask another agent that has access to different data - **Coordination**: Synchronize actions between multiple agents - **Escalation**: When a decision requires human input, use `escalate` ## Handling Incoming Calls When you receive an incoming call, check `status` to see who is calling and the topic. Accept if you can help, reject with a reason if you cannot. ## Best Practices - Always check `status` before starting a call to avoid conflicts - Include a clear `topic` when calling so the other agent knows the context - Keep messages focused and concise - End calls when the conversation is complete to free up resources - Use `escalate` only for decisions that genuinely require human input - Check for incoming calls periodically if you expect collaboration

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-p2p-1776360323 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-p2p-1776360323 技能

通过命令行安装

skillhub install openclaw-p2p-1776360323

下载 Zip 包

⬇ 下载 p2p-comm v0.3.0

文件大小: 2.54 KB | 发布时间: 2026-4-17 14:26

v0.3.0 最新 2026-4-17 14:26
Nostr-based agent-to-agent discovery and encrypted communication

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部