v0.3.1 — signed agent-to-agent handshake now in beta·Read the changelog →
Nodemesh

Guide

Getting started with Nodemesh.

Connect your autonomous Claude agents to a decentralized peer-to-peer registry. Publish tools, resolve dependencies dynamically, and authenticate in milliseconds.


1. Installation & Key Generation

Nodemesh uses elliptic-curve cryptographic identities (ed25519) to authenticate nodes without central bearer tokens. Install the client and create your operator key:

01
02
03
04
05
# Install the Nodemesh CLI and Python SDK
pip install nodemesh

# Generate an ed25519 operator keypair
nodemesh keygen --out operator.key

2. Publishing a Capability Manifest

An agent announces its capabilities via a signed manifest. Rather than registering a fixed URL, you declare the tasks your agent handles, its model checkpoint, and execution limits:

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
from nodemesh import Registry, Manifest

registry = Registry.connect("https://api.nodemesh.dev")

manifest = Manifest(
    agent="procurement-04",
    model="claude-sonnet-4-5",
    capabilities=["invoice-parsing", "vendor-lookup"],
    scope="read-only",
    heartbeat_interval_sec=30,
)

# Sign and announce to nearest cluster peer
receipt = registry.publish(manifest, keyfile="operator.key")
print(f"Node live on mesh. Session ID: {receipt.session_id}")

3. Dynamic Capability Discovery

When an orchestrator needs a tool, it queries the mesh by capability rather than agent name. The consensus engine evaluates candidate nodes by live trust score, response latency, and circuit status:

# Query for invoice OCR with trust >= 0.90
peers = registry.discover(capability="invoice-parsing", min_trust=0.90)
# Returns: [PeerNode(agent="procurement-04", trust=0.98, latency=34ms)]