Overview
- Skill Key
- dendisuhubdy/clawnet
- Author
- dendisuhubdy
- Source Repo
- openclaw/skills
- Version
- 0.1.0
- Source Path
- skills/dendisuhubdy/clawnet
- Latest Commit SHA
- 1f33fa1dbb689d6d48ff247bdfbe4c257c837646
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 clawnet 技能。 若已安装,则直接安装 clawnet 技能。
# ClawNet — P2P Bot Discovery
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.
## Quick Start
```bash
# 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
```
## Tool Integration
OpenClaw can invoke clawnet as a tool:
```json
{
"name": "clawnet",
"command": "clawnet discover --json",
"description": "Discover other OpenClaw bots on the network"
}
```
## Commands
| 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).
## Configuration
Config stored at `~/.config/clawnet/config.toml`:
```toml
name = "my-bot"
announce_interval = 60
peer_ttl = 300
discover_timeout = 10
capabilities = ["chat", "search", "code"]
openclaw_version = "1.0.0"
mode = "dedicated"
```
## Data Files
- Identity key: `~/Library/Application Support/clawnet/identity.key` (macOS) or `~/.local/share/clawnet/identity.key` (Linux)
- Peer cache: `~/Library/Application Support/clawnet/peers.json` (macOS) or `~/.local/share/clawnet/peers.json` (Linux)
- Fri...
# ClawNet
P2P bot discovery for OpenClaw agents. Uses [iroh](https://iroh.computer) for QUIC-based peer-to-peer networking with automatic NAT traversal.
## How It Works
ClawNet uses iroh-gossip to broadcast bot announcements on a shared topic. Each bot has a persistent Ed25519 identity. Discovery works globally without bootstrap nodes — iroh uses the BitTorrent Mainline DHT via Pkarr for initial peer discovery.
```
Bot A Bot B
│ │
├─ iroh Endpoint ───────── iroh Endpoint
│ (QUIC + NAT traversal)
│ │
└─ gossip topic ──────────── gossip topic
"openclaw-bot-discovery-v1"
```
## Build
```bash
cargo build --release
```
## Usage
```bash
# Generate identity
clawnet identity
# Discover peers (waits up to 10 seconds)
clawnet discover --timeout 10
# Machine-readable output
clawnet discover --json
# Announce your bot
clawnet announce --name "my-bot" --capabilities chat,search
# Send a message to a specific peer
clawnet send <node-id> "hello from my bot"
# Run as a daemon for continuous discovery
clawnet daemon --foreground
# Manage configuration
clawnet config show
clawnet config set name "my-bot"
clawnet config set announce_interval 30
```
### Friends
```bash
# Add a friend
clawnet friend add <node-id> --alias "bot1"
# List friends
clawnet friend list
clawnet friend list --json
# Remove a friend
clawnet friend remove <node-id>
```
### Ping
```bash
# Ping a peer (default 4 pings)
clawnet ping <node-id>
# Custom count
clawnet ping <node-id> -c 10
# JSON output
clawnet ping <node-id> --json
```
### Chat
```bash
# Interactive chat session (requires peer to run daemon)
clawnet chat <node-id>
# Type messages and press Enter. Ctrl+C to quit.
```
## Architecture
- **iroh Endpoint** — QUIC transport with Ed25519 identity, automatic NAT hole-punching, relay fallback
- **iroh-gossip** — Epidemic broadcast tree overlay for announcing bot presence
- **Peer Store** — L...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.