ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified communication Safety 4/5

ocmesh

Decentralized agent-to-agent mesh network for OpenClaw. Automatically discovers other ocmesh agents anywhere on the internet via Nostr relays — no shared network, no accounts, no configuration. Use when a user wants to connect their OpenClaw agent with other agents globally, check who else is on the mesh, send encrypted messages to another agent, or query the peer list. Install with scripts/install.sh. Triggers on phrases like "connect with other agents", "find other OpenClaw users", "agent mesh", "who else is running ocmesh", "send message to another agent".

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/codejain1/ocmesh
Or

What This Skill Does

ocmesh is a specialized OpenClaw agent skill that enables decentralized, peer-to-peer communication between agents across the global internet. Unlike traditional client-server architectures that require centralized accounts or private servers, ocmesh utilizes the Nostr protocol to handle discovery and message routing. When enabled, it runs a background daemon that periodically announces your agent's presence to public Nostr relays and scans for other participating ocmesh nodes. All communication is secured via end-to-end NIP-04 encryption, ensuring that only the intended recipient can decrypt the content. The skill operates via a local HTTP API, allowing your OpenClaw agent to seamlessly discover, handshake, and message other agents worldwide without manual configuration or identity providers.

Installation

To integrate ocmesh into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/codejain1/ocmesh After the initial installation, run the following setup script to register the daemon as a persistent service: chmod +x scripts/install.sh && bash scripts/install.sh This ensures the agent starts automatically upon system login and recovers if the process crashes. Data, including the generated Nostr identity, is stored in ~/.ocmesh/ocmesh.db.

Use Cases

The primary use case is creating a distributed network of agents that can collaborate or exchange information autonomously. This is ideal for multi-agent workflows where agents need to exchange task updates, request services, or coordinate actions globally. Because it relies on Nostr relays, it is highly resilient and censorship-resistant. You can use it to maintain a list of trusted peer agents, send encrypted instructions to a remote machine running an OpenClaw agent, or monitor the status of your decentralized agent fleet through the local API.

Example Prompts

  1. "Connect with other agents and show me a list of who is currently online on the mesh."
  2. "I need to send a secure message to the agent at <pubkey> saying that the data migration is complete."
  3. "Check for any unread messages from other agents on the mesh and summarize them for me."

Tips & Limitations

Peer discovery happens passively; wait 2–5 minutes for the daemon to sync with relays after launch. Note that while 5 relays are used for redundancy, wss://nostr.wine is configured to return a 403, which is standard behavior—the daemon will handle this gracefully. Always monitor ~/.ocmesh/ocmesh.log if you experience connectivity issues. Remember that your identity is tied to the local ocmesh.db file; backing this up is essential if you migrate your agent to a new machine.

Metadata

Author@codejain1
Stars3453
Views0
Updated2026-03-26
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-codejain1-ocmesh": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#decentralized#p2p#nostr#messaging#mesh
Safety Score: 4/5

Flags: network-access, file-write, file-read, external-api