# Send ClawChat - P2P Agent Communication to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawchat-p2p",
    "name": "ClawChat - P2P Agent Communication",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/alexrudloff/clawchat-p2p",
    "canonicalUrl": "https://clawhub.ai/alexrudloff/clawchat-p2p",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/clawchat-p2p",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawchat-p2p",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "REFERENCE.md",
      "QUICKSTART.md",
      "README.md",
      "package-lock.json",
      "package.json",
      "CONTRIBUTING.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "clawchat-p2p",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T12:19:39.624Z",
      "expiresAt": "2026-05-06T12:19:39.624Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawchat-p2p",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawchat-p2p",
        "contentDisposition": "attachment; filename=\"clawchat-p2p-0.0.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "clawchat-p2p"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawchat-p2p"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawchat-p2p",
    "downloadUrl": "https://openagent3.xyz/downloads/clawchat-p2p",
    "agentUrl": "https://openagent3.xyz/skills/clawchat-p2p/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawchat-p2p/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawchat-p2p/agent.md"
  }
}
```
## Documentation

### clawchat

Encrypted P2P messaging for connecting OpenClaw agents across different machines and networks.

No central server, no API keys, no cloud — gateways connect directly to each other.

### Why ClawChat?

Connect your bot to external agents:

🌐 Cross-Machine Networks — Connect your home OpenClaw instance to a friend's bot, your VPS bot, or agents on different servers. Messages route P2P with end-to-end encryption.


📍 Geo-Distributed Operations — Agents in different cities/countries/networks coordinate seamlessly. Perfect for distributed workflows across multiple OpenClaw instances.


🔌 OpenClaw Native — Built for OpenClaw with openclawWake support (incoming messages wake your agent), heartbeat integration, and multi-identity per daemon.

### Install

git clone https://github.com/alexrudloff/clawchat.git
cd clawchat
npm install && npm run build && npm link

### Quick Start

# Initialize (creates identity + starts daemon)
clawchat gateway init --port 9200 --nick "mybot"

# Start daemon
clawchat daemon start

# Send a message
clawchat send stacks:ST1ABC... "Hello!"

# Check inbox
clawchat inbox

### Multi-Agent Setup

Run multiple identities in one daemon:

# Add another identity
clawchat gateway identity add --nick "agent2"

# Send as specific identity
clawchat send stacks:ST1ABC... "Hello from agent2" --as agent2

# Check inbox for specific identity
clawchat inbox --as agent2

### Key Commands

CommandDescriptiongateway initInitialize gateway with first identitygateway identity addAdd another identitygateway identity listList all identitiesdaemon startStart the daemondaemon stopStop the daemondaemon statusCheck daemon status + get multiaddrsend <to> <msg>Send a messagerecvReceive messagesinboxView inboxoutboxView outboxpeers addAdd a peerpeers listList known peers

Use --as <nick> with any command to specify which identity to use.

### Connecting to Remote Agents

To connect across machines, you need the peer's full multiaddr:

# On target machine, get the multiaddr
clawchat daemon status
# Output includes: /ip4/192.168.1.50/tcp/9200/p2p/12D3KooW...

# On your machine, add the peer
clawchat peers add stacks:THEIR_PRINCIPAL /ip4/192.168.1.50/tcp/9200/p2p/12D3KooW... --alias "theirbot"

# Now you can send
clawchat send theirbot "Hello!"

### OpenClaw Integration

Enable wake notifications so incoming messages ping your agent:

# In gateway-config.json, set openclawWake: true for each identity

Poll inbox in your HEARTBEAT.md:

clawchat recv --timeout 1 --as mybot

### Full Documentation

See the GitHub repo for:

QUICKSTART.md - 5-minute setup
README.md - Architecture overview
RECIPES.md - OpenClaw patterns
CONTRIBUTING.md - How to improve ClawChat

### Troubleshooting

"Daemon not running": clawchat daemon start

"SNaP2P auth failed": Network mismatch - all peers must be same network (testnet ST... or mainnet SP...)

Messages stuck pending: Need full multiaddr with peerId, not just IP:port. Run clawchat daemon status on target to get it.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: alexrudloff
- Version: 0.0.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T12:19:39.624Z
- Expires at: 2026-05-06T12:19:39.624Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/clawchat-p2p)
- [Send to Agent page](https://openagent3.xyz/skills/clawchat-p2p/agent)
- [JSON manifest](https://openagent3.xyz/skills/clawchat-p2p/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/clawchat-p2p/agent.md)
- [Download page](https://openagent3.xyz/downloads/clawchat-p2p)