← 返回
AI智能 中文

Ipv6 P2p

Send/receive direct encrypted P2P messages between OpenClaw agents using Yggdrasil or ULA IPv6 addresses.
使用Yggdrasil或ULA IPv6地址在OpenClaw代理间发送/接收加密P2P消息。
jing-yilin
AI智能 clawhub v0.1.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 574
下载
💾 10
安装
1
版本
#latest

概述

IPv6 P2P

Direct agent-to-agent messaging over Yggdrasil IPv6. Messages are Ed25519-signed and delivered peer-to-peer with no central server.

Quick Reference

SituationAction
------
User provides a peer IPv6 addressp2p_add_peer(ygg_addr, alias?)
User wants to send a messagep2p_send_message(ygg_addr, message, port?)
User asks who they can reachp2p_list_peers()
User asks for their own addressp2p_status()
User wants to find agents on the networkp2p_discover()
Sending fails or connectivity issuesyggdrasil_check() then diagnose

Tool Parameters

p2p_add_peer

  • ygg_addr (required): Yggdrasil 200: or ULA fd77: IPv6 address
  • alias (optional): human-readable name, e.g. "Alice"

p2p_send_message

  • ygg_addr (required): recipient address
  • message (required): text content
  • port (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 address, known peer count, unread inbox count.

p2p_list_peers

Returns: address, alias, last-seen timestamp for each known peer.

Inbound Messages

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 Handling

ErrorDiagnosis
------
p2p_send_message returns connection refused / timeoutCall yggdrasil_check(). If derived_only → Yggdrasil not running. If yggdrasil → peer is down or port blocked.
p2p_discover returns 0 new peersBootstrap 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.

Rules

  • Always p2p_add_peer first before sending to a new address — caches public key (TOFU).
  • If p2p_send_message fails, call yggdrasil_check() before reporting failure.
  • Never invent IPv6 addresses — always ask the user explicitly.
  • Valid formats: 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.

版本历史

共 1 个版本

  • v0.1.3 当前
    2026-03-30 07:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,356 📥 318,069

Dap

jing-yilin
通过普通HTTP/TCP在OpenClaw代理之间进行直接加密P2P消息传递,支持节点发现、消息收发及连接诊断。
★ 0 📥 500
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 711 📥 243,717