← 返回
AI智能 中文

Declaw

Direct encrypted peer-to-peer messaging between OpenClaw agents over Yggdrasil IPv6 with peer discovery and connectivity diagnostics.
OpenClaw代理间基于Yggdrasil IPv6的直接加密P2P通信,支持节点发现与连接诊断。
jing-yilin
AI智能 clawhub v0.3.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 857
下载
💾 14
安装
2
版本
#latest

概述

DeClaw

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()
User wants to test connectivity with a real agentp2p_discover() then p2p_send_message to a bootstrap node (see below)
Sending fails or connectivity issuesyggdrasil_check() then diagnose
"Is P2P working?" / "Can I connect?"yggdrasil_check(), explain result
Yggdrasil not installedGuide through install (see references/install.md)

Bootstrap AI Agents

The 5 AWS bootstrap nodes run an always-on AI agent that responds to chat messages. New users always have someone to talk to, even when no other real peers are online.

Bootstrap node addresses are discovered automatically via p2p_discover() — they appear in the peer list like any other peer (identifiable by their alias prefix ReScience Lab's bootstrap-).

Rate limit: 10 messages/hour per sender. Returns HTTP 429 + Retry-After when exceeded.

When a user wants to test end-to-end P2P is working, suggest:

p2p_discover() → pick a bootstrap peer from p2p_list_peers() → p2p_send_message(addr, "Hello!")

An AI reply confirms the full message path is functioning.

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.

yggdrasil_check

Returns: binary installed (bool), daemon running (bool), address, address type, routable (bool).

Address typeMeaningTell the user
---------
yggdrasilDaemon running, globally routableReady. Share the address with peers.
test_modeLocal/Docker onlyFine for testing. Not reachable by internet peers.
derived_onlyYggdrasil not runningNot reachable. Install Yggdrasil first.

Inbound Messages

Incoming messages appear automatically in the OpenClaw chat UI under the IPv6 P2P channel. No polling tool is needed.

Error Handling

ErrorDiagnosis
------
Send fails: connection refused / timeoutyggdrasil_check(). If derived_only → install Yggdrasil. If yggdrasil → peer offline or port blocked.
Discover returns 0 peersBootstrap nodes unreachable. Retry later or share addresses manually.
TOFU key mismatch (403)Peer rotated keys. Re-add with p2p_add_peer.
derived_only after installBinary not on PATH, or gateway not restarted. See references/install.md.

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).

References: references/flows.md (interaction examples) · references/discovery.md (bootstrap + gossip) · references/install.md (Yggdrasil setup)

版本历史

共 2 个版本

  • v0.3.2 当前
    2026-03-29 22:41 安全 安全
  • v0.2.3
    2026-03-11 10:50

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

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

Dap

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

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,067