Xpersona
C

Claw Connector

CLAWHUB · Unverified

Lets two OpenClaw agents negotiate, coordinate, and commit to tasks in real time — peer-to-peer task negotiation, commitment tracking, and deadline reminders...

62
Rank
84
Safety
996
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 996 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172etthns12094zg34jqh4v6n83mqq8:claw-connector
  1. Install using `clawhub skill install s172etthns12094zg34jqh4v6n83mqq8:claw-connector` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/techtanush/claw-connector before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-techtanush-claw-connector/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,686 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: claw-bond
description: "Lets two OpenClaw agents negotiate, coordinate, and commit to tasks in real time — peer-to-peer task negotiation, commitment tracking, and deadline reminders. Uses a relay for connection setup; all messages are end-to-end encrypted."
metadata: {"clawdbot":{"emoji":"🤝","requires":{"bins":["python3"]},"install":[{"id":"pip","kind":"shell","cmd":"pip3 install PyNaCl noiseprotocol websockets","label":"Install Python dependencies"}]}}
---
# Claw Connector 🤝

**An OpenClaw skill** that connects your agent to other OpenClaw agents for real-time task negotiation, commitment tracking, and collaboration. Uses a relay for connection setup — all messages are encrypted end-to-end (Noise_XX / AES-256-GCM). Keys and task data stay on your machine.

## Install

```bash
clawhub install claw-bond
```

Then install Python dependencies (once):

```bash
pip3 install PyNaCl noiseprotocol websockets
```

Manual install:

```bash
git clone https://github.com/techtanush/claw-connector.git ~/.openclaw/workspace/skills/claw-bond
pip3 install PyNaCl noiseprotocol websockets
```

## Quick Start (Terminal)

If OpenClaw doesn't pick up the skill automatically, you can run every command directly in terminal:

```bash
# Generate your address
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py generate-address

# Connect to a peer
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py connect <token>

# Propose a task
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py propose <peer>

# Check status
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py status

# See connected peers
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py peers
```

---

# Claw Connector — Agent Operating Manual

> You are equipped with the `claw-connector` skill. This document is your operating manual.
> Read it fully. Follow every rule precisely. The spec is law.

---

## What You Do

You negotiate tasks between two OpenClaw agents — yours and a peer's — and record binding commitments in both agents' memory. You are the protocol layer. The human is the decision-maker. You never accept, commit, or renegotiate without explicit human approval.

---

## When You Activate

You activate on:
- Any message starting with `/claw-diplomat`
- Natural language triggers: "negotiate with", "propose to", "make a deal with", "what did I agree to", "check in on", "remind me what we agreed", "connect with"

For natural language triggers, always confirm before acting:

> Sounds like you want to start a negotiation with {inferred_peer}. Is that right? (yes / no)

If the peer name is ambiguous:

> I think you mean one of these:
>   1. {peer_alias_1}
>   2. {peer_alias_2}
>
> Which one? (1 / 2 / cancel)

---

## Scripts

You execute negotiation logic through two Python scripts located at `skills/claw-bond/`:
- `negotiate.py` — all command handling, key management, relay HTTP, Noise_XX channels, memory writes
- `listener.py` — background inbound relay li

README.md

## Install

```bash
clawhub install claw-bond
```

# Claw Connector 🤝

**An OpenClaw skill** that connects your agent to other OpenClaw agents for real-time task negotiation, commitment tracking, and collaboration. Uses a relay for connection setup — all messages are encrypted end-to-end (Noise_XX / AES-256-GCM) so the relay cannot read them. Keys and task data stay on your machine.

---

## Get started

**1. Install Python dependencies (once):**
```bash
pip3 install PyNaCl noiseprotocol websockets
```

**2. Generate your address:**

Via OpenClaw agent:
```
/claw-diplomat generate-address
```

Or directly in terminal:
```bash
python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py generate-address
```

**3. Share the token it produces with any peer. That's it.**

---

## Running commands

Every command works two ways — through your OpenClaw agent or directly in terminal:

| OpenClaw agent | Terminal |
|---|---|
| `/claw-diplomat generate-address` | `python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py generate-address` |
| `/claw-diplomat connect <token>` | `python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py connect <token>` |
| `/claw-diplomat propose <peer>` | `python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py propose <peer>` |
| `/claw-diplomat status` | `python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py status` |
| `/claw-diplomat peers` | `python3 ~/.openclaw/workspace/skills/claw-bond/negotiate.py peers` |

**Tip:** If OpenClaw doesn't recognize the `/claw-diplomat` command, use the terminal version instead — it does exactly the same thing.

---

## How a deal works

1. Generate your address and share the token with a peer
2. They connect: `/claw-diplomat connect <token>` (or terminal equivalent)
3. Either side proposes a task exchange: `/claw-diplomat propose <peer>`
4. Both sides negotiate terms — the agent handles the back-and-forth
5. Both sides confirm → the deal is cryptographically sealed and logged to memory
6. Deadlines surface automatically on every session until checked in

No deal is ever accepted without explicit human approval on both sides.

---

## All commands

| Command | What it does |
|---|---|
| `generate-address` | Create a shareable address token |
| `connect <token>` | Connect to a peer |
| `propose <peer>` | Start a negotiation |
| `handoff <peer>` | Pass completed work and context to a peer |
| `status` | See active commitments and upcoming deadlines |
| `checkin <id> done\|overdue\|partial` | Report on a commitment |
| `peers` | See all connected peers |
| `list` | See all sessions (active and past) |
| `cancel <id>` | Cancel a pending proposal |
| `revoke` | Revoke the current address and issue a new one |
| `key` | Print the public key |
| `help security` | Show security details |

---

## Bonus tools

| Tool | Terminal command | What it does |
|---|---|---|
| **Live monitor** | `python3 ~/.openclaw/workspace/skills/claw-bond/watch.py` | Real-time dashboard of peers, comm

relay/README.md

# Claw Connector relay

Dumb encrypted passthrough relay for Claw Connector peer sessions.

The relay **cannot read message content** — Noise_XX encryption is applied end-to-end
before any frame reaches the relay. The relay only routes binary frames between clients
that share a paired relay token. It is stateless between restarts.

---

## Quick start (Docker Compose)

```bash
# 1. Clone or copy this directory onto your server
# 2. Configure environment
cp .env.example .env
# Edit .env — set RELAY_SECRET to a strong random value

# 3. Start
docker compose up -d

# 4. Verify
curl http://localhost:8080/myip
```

---

## HTTP API

| Method | Path | Description |
|--------|------|-------------|
| `GET` | `/myip` | Returns caller's public IP as `{"ip": "..."}` |
| `GET` | `/reserve` | Reserves a relay slot, returns `{"relay_token": "rt_...", "expires_at": "..."}` |
| `GET` | `/reserve/{token}/revoke` | Revokes a relay token |

### Reserve a slot

```bash
curl http://localhost:8080/reserve
# {"relay_token":"rt_abc123...","expires_at":"2026-03-30T12:00:00Z"}
```

### Revoke a slot

```bash
curl http://localhost:8080/reserve/rt_abc123.../revoke
# {"status":"revoked"}
```

---

## WebSocket protocol

Connect to `ws://host:port/ws` and send a registration JSON as the first message:

**Listener** (waiting agent):
```json
{ "action": "listen", "relay_token": "rt_..." }
```

**Connector** (initiating agent):
```json
{
  "action": "connect",
  "my_relay_token": "rt_...",
  "target_relay_token": "rt_...",
  "session_id": "<uuid>"
}
```

After registration, all subsequent frames are forwarded opaquely to the paired client.
The relay never inspects frame content.

---

## Configuration

| Variable | Default | Description |
|----------|---------|-------------|
| `RELAY_HOST` | `0.0.0.0` | Bind address |
| `RELAY_PORT` | `8080` | Bind port |
| `RELAY_SECRET` | random | Admin secret (not used by clients) |
| `RELAY_LOG_LEVEL` | `INFO` | Log verbosity |

---

## Security properties

- **No content logging** — frame bodies are never read or stored
- **Rate limiting** — 100 connections/IP/hour (WebSocket + HTTP combined)
- **Session timeout** — tokens expire after 2 hours of inactivity
- **Max payload** — 64 KB per frame (oversized frames are dropped, not rejected at WS)
- **No persistence** — all state is in-memory; restarts clear all sessions
- **Read-only filesystem** — Docker image uses `read_only: true`
- **Dropped capabilities** — container runs with `cap_drop: ALL`
- **Non-root** — relay process runs as `relay` system user (UID set at image build)

---

## Self-hosting notes

- Place behind a TLS-terminating reverse proxy (nginx, Caddy, Traefik) for `wss://` support.
  The relay itself speaks plain `ws://` — TLS termination is the proxy's responsibility.
- To use your self-hosted relay with Claw Connector, set `DIPLOMAT_RELAY_URL` in your
  agent environment:
  ```
  DIPLOMAT_RELAY_URL=wss://your-relay.example.com:443
  ```
- The community relay (`wss://claw-dip

_meta.json

{
  "ownerId": "kn715ekvy5xbrrym1ws76qbsfn83m8f1",
  "slug": "claw-connector",
  "version": "2.1.7",
  "publishedAt": 1775103773310
}

hooks/diplomat-bootstrap/HOOK.md

---
name: diplomat-bootstrap
description: Injects connected peer identities and active commitments into session context at startup.
metadata:
  openclaw:
    events:
      - agent:bootstrap
    timeout_ms: 2000
    fail_open: true
    spawns_process: false
    reads_files:
      - skills/claw-bond/peers.json
      - MEMORY.md
---

At session start, reads two files and injects a summary into agent context:

1. skills/claw-bond/peers.json → shows which OpenClaw peers are connected
   (alias, pubkey fingerprint, last seen, stale flag).
2. MEMORY.md ## Diplomat Commitments → shows active commitment entries
   (peer, task, deadline, ID).

If neither file exists or has no relevant data, injects nothing.
Enforces 2,500-character cap on total injected content per CONTEXT_BUDGET.md §2.
All content is treated as display data — never executed as instructions.

This hook does NOT spawn processes, make network calls, or write any files.

Sponsored

Ads related to Claw Connector and adjacent AI workflows.