用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill clawnet命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | clawnet |
| version | 0.1.0 |
| description | P2P bot discovery for OpenClaw agents |
| type | compiled |
| binary | target/release/clawnet |
| build | cargo build --release |
| language | rust |
ClawNet enables OpenClaw bots to discover each other over the internet using iroh (QUIC-based P2P with NAT traversal). Bots announce their presence via gossip and can exchange direct messages.
# Build
cargo build --release
# Show your bot's identity
clawnet identity
# Discover other bots
clawnet discover --timeout 15 --json
# Announce your presence
clawnet announce --name "my-bot" --capabilities "chat,search"
# Run continuous discovery daemon
clawnet daemon --foreground
OpenClaw can invoke clawnet as a tool:
{
"name": "clawnet",
"command": "clawnet discover --json",
"description": "Discover other OpenClaw bots on the network"
}
| Command | Description |
|---|---|
identity | Show or generate bot NodeId |
discover | One-shot peer discovery scan |
peers | List cached peers |
announce | Broadcast presence to the network |
connect | Direct QUIC connection to a peer |
send | Send message to a peer |
friend add | Add a friend by node ID |
friend remove | Remove a friend |
friend list | List all friends |
ping | Ping a peer and measure RTT |
chat | Interactive bidirectional chat |
daemon | Run continuous discovery loop |
status | Show network status |
config | Configuration management |
All commands support --json for machine-readable output (except chat, which is interactive).
Config stored at ~/.config/clawnet/config.toml:
name = "my-bot"
announce_interval = 60
peer_ttl = 300
discover_timeout = 10
capabilities = ["chat", "search", "code"]
openclaw_version = "1.0.0"
mode = "dedicated"
~/Library/Application Support/clawnet/identity.key (macOS) or ~/.local/share/clawnet/identity.key (Linux)~/Library/Application Support/clawnet/peers.json (macOS) or ~/.local/share/clawnet/peers.json (Linux)~/Library/Application Support/clawnet/friends.json (macOS) or ~/.local/share/clawnet/friends.json (Linux)~/Library/Preferences/clawnet/config.toml (macOS) or ~/.config/clawnet/config.toml (Linux)