ClawMesh is a mesh-first AI gateway designed for distributed, capability-aware operations (e.g., smart farming). It connects various nodes into a single, cohesive P2P mesh network where context (sensor data, events, intents) is propagated automatically, and decisions are made locally or via a command center.
- Nodes & Capabilities: Every device running ClawMesh is a node. Nodes advertise their capabilities (e.g.,
sensor:moisture:zone-1,actuator:pump:P1,skill:intelligence). - Identity & Trust: Every node has an Ed25519 identity. Nodes only communicate with peers they explicitly trust.
- World Model: Each node maintains a local "world model" populated by context frames (sensor readings, events, inference) gossiped across the network.
- Intelligence Layer: Powered by Pi (
pi-coding-agent), command center nodes can run an LLM-powered planner that reads the world model and proposes actions. - Trust Policy: Strict L0-L3 approval levels. An LLM alone NEVER triggers physical actuation without human approval and sensor evidence.
- Node.js: v22+
- Package Manager: pnpm (v10+)
- Network: Local Area Network (LAN) supporting mDNS for auto-discovery (or static IPs for manual peering).
Clone the repository and install dependencies:
git clone https://github.com/your-org/clawmesh.git
cd clawmesh
pnpm installWhile any node can run any capability, a typical deployment has two types of nodes:
Runs the dashboard UI, the Pi intelligence layer (LLM), and acts as the brain.
- Capabilities:
skill:intelligence - Role: Ingests mesh data, runs the planner loop, creates proposals, provides UI.
- Setup Command Center Guide
Sits in the field, reads sensors, controls actuators. Does not need an LLM.
- Capabilities:
sensor:*,actuator:* - Role: Broadcasts sensor data to the mesh, executes approved actuation commands.
- Setup Field Node Guide
- Read the Command Center Setup.
- Read the Field Node Setup.
- Review the Trust & Safety Policy to understand how actuation is gated.