# Send Clawdio 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. 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. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "jameseball-clawdio",
    "name": "Clawdio",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/JamesEBall/jameseball-clawdio",
    "canonicalUrl": "https://clawhub.ai/JamesEBall/jameseball-clawdio",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/jameseball-clawdio",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jameseball-clawdio",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "package.json",
      "src/__tests__/basic.test.ts",
      "src/cli.ts",
      "src/crypto.ts",
      "src/index.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "jameseball-clawdio",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T13:55:02.894Z",
      "expiresAt": "2026-05-06T13:55:02.894Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jameseball-clawdio",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jameseball-clawdio",
        "contentDisposition": "attachment; filename=\"jameseball-clawdio-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "jameseball-clawdio"
      },
      "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/jameseball-clawdio"
    },
    "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/jameseball-clawdio",
    "downloadUrl": "https://openagent3.xyz/downloads/jameseball-clawdio",
    "agentUrl": "https://openagent3.xyz/skills/jameseball-clawdio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/jameseball-clawdio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/jameseball-clawdio/agent.md"
  }
}
```
## Documentation

### Clawdio

Minimal secure peer-to-peer communication for AI agents. Two agents exchange a connection string, perform a Noise XX handshake, then communicate over encrypted channels. No central server required.

### When to Use

Agent-to-agent communication across machines or networks
Secure task delegation between sub-agents on different hosts
Any scenario requiring encrypted, authenticated P2P messaging

### Setup

The Clawdio project lives at projects/clawdio/. Install dependencies and build:

cd projects/clawdio && npm install && npx tsc

### Quick Start

const { Clawdio } = require('./projects/clawdio/dist/index.js');

// Create two nodes
const alice = await Clawdio.create({ port: 9090, autoAccept: true });
const bob = await Clawdio.create({ port: 9091, autoAccept: true });

// Connect (Noise XX handshake)
const aliceId = await bob.exchangeKeys(alice.getConnectionString());

// Send messages
await bob.send(aliceId, { task: "What's the weather?" });
alice.onMessage((msg, from) => console.log(msg.task));

### Connection Consent (Recommended)

By default, unknown inbound peers require explicit consent:

const node = await Clawdio.create({ port: 9090 }); // autoAccept defaults to false

node.on('connectionRequest', (req) => {
  console.log(\`Connection from ${req.id}\`);
  console.log(\`Fingerprint: ${req.fingerprint}\`);
  // Accept or reject
  node.acceptPeer(req.id);  // or node.rejectPeer(req.id)
});

Outbound connections (you calling exchangeKeys) are auto-accepted. Already-trusted peers auto-reconnect.

### Human Verification

For high-trust scenarios, verify peers in person:

node.setOwner('Alice');
const code = node.getVerificationCode(peerId); // "torch lemon onyx prism jade index"
// Both humans compare codes in person, then:
node.verifyPeer(peerId); // trust: 'accepted' → 'human-verified'
node.getPeerTrust(peerId); // 'human-verified'

### Trust Levels

pending — connection request received, not yet accepted
accepted — peer accepted, encrypted communication active
human-verified — verified via in-person code exchange

### Persistent Identity

Pass identityPath to persist keys and trusted peers across restarts:

const node = await Clawdio.create({
  port: 9090,
  identityPath: '.clawdio-identity.json'
});

### Sub-Agent Pattern

Spawn a sub-agent to handle Clawdio communication:

1. Main agent spawns sub-agent with task
2. Sub-agent creates Clawdio node, connects to remote peer
3. Sub-agent exchanges messages, collects results
4. Sub-agent reports back to main agent

### Security Properties

Forward secrecy (ephemeral X25519 keys)
Mutual authentication (Noise XX)
Replay protection (monotonic counters)
XChaCha20-Poly1305 AEAD encryption
Connection consent for inbound peers

### API Reference

MethodDescriptionClawdio.create(opts)Create and start a nodenode.exchangeKeys(connStr)Connect to peernode.send(peerId, msg)Send encrypted messagenode.onMessage(handler)Listen for messagesnode.acceptPeer(id)Accept pending connectionnode.rejectPeer(id)Reject pending connectionnode.setOwner(name)Set human owner namenode.getVerificationCode(id)Get 6-word verification codenode.verifyPeer(id)Mark peer as human-verifiednode.getPeerTrust(id)Get trust levelnode.getFingerprint(id)Emoji fingerprintnode.getPeerStatus(id)alive/stale/downnode.stop()Shutdown
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: JamesEBall
- Version: 1.0.0
## 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-29T13:55:02.894Z
- Expires at: 2026-05-06T13:55:02.894Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/jameseball-clawdio)
- [Send to Agent page](https://openagent3.xyz/skills/jameseball-clawdio/agent)
- [JSON manifest](https://openagent3.xyz/skills/jameseball-clawdio/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/jameseball-clawdio/agent.md)
- [Download page](https://openagent3.xyz/downloads/jameseball-clawdio)