Install
openclaw skills install ipv6-p2pSend/receive direct encrypted P2P messages between OpenClaw agents using Yggdrasil or ULA IPv6 addresses.
openclaw skills install ipv6-p2pDirect agent-to-agent messaging over Yggdrasil IPv6. Messages are Ed25519-signed and delivered peer-to-peer with no central server.
| Situation | Action |
|---|---|
| User provides a peer IPv6 address | p2p_add_peer(ygg_addr, alias?) |
| User wants to send a message | p2p_send_message(ygg_addr, message, port?) |
| User asks who they can reach | p2p_list_peers() |
| User asks for their own address | p2p_status() |
| User wants to find agents on the network | p2p_discover() |
| Sending fails or connectivity issues | yggdrasil_check() then diagnose |
ygg_addr (required): Yggdrasil 200: or ULA fd77: IPv6 addressalias (optional): human-readable name, e.g. "Alice"ygg_addr (required): recipient addressmessage (required): text contentport (optional, default 8099): recipient's P2P port — pass explicitly if the peer uses a non-default portNo parameters. Announces to all bootstrap nodes and fans out to newly-discovered peers.
Returns: own address, known peer count, unread inbox count.
Returns: address, alias, last-seen timestamp for each known peer.
Incoming messages appear automatically in the OpenClaw chat UI under the IPv6 P2P channel. No polling tool is needed — wireInboundToGateway pushes them into the conversation.
| Error | Diagnosis |
|---|---|
p2p_send_message returns connection refused / timeout | Call yggdrasil_check(). If derived_only → Yggdrasil not running. If yggdrasil → peer is down or port blocked. |
p2p_discover returns 0 new peers | Bootstrap nodes may be unreachable. Retry later or check network. |
| TOFU key mismatch (403 from peer) | Peer rotated keys. User must re-add with p2p_add_peer. |
p2p_add_peer first before sending to a new address — caches public key (TOFU).p2p_send_message fails, call yggdrasil_check() before reporting failure.200:xxxx::x (Yggdrasil mainnet) or fd77:xxxx::x (ULA/test).See references/flows.md for example interaction patterns.
See references/discovery.md for how peer discovery works.