Distributed AI Mesh Platform
Your AI agents. Your hardware. Your mesh. A FastAPI hub coordinates Claude, Grok, and Codex workers across Mac Minis, Raspberry Pis, cloud VPS, and mobile devices.
How It Works
Three stages, zero babysitting. The mesh handles routing, execution, and multi-model validation automatically.
Stage 01
Tasks submitted via API, MCP tools, iMessage bridge, or the dashboard. Natural language prompts dispatched to capable workers based on declared capabilities and current load.
Stage 02
Workers pull tasks matched to their capabilities. Claude, Grok, or Codex processes the prompt. Results are signed with HMAC-SHA256 provenance before returning to the hub.
Stage 03
Multi-model review pipeline (Claude + Grok + Codex). Agent memory stores learnings in FTS5-indexed encrypted storage. UCB reputation scoring ranks worker reliability over time.
Architecture
Central hub on Hetzner VPS running FastAPI + SQLite WAL. Workers self-register, declare capabilities, and report via heartbeat. The hub never pulls — workers drive their own lifecycle and request tasks when ready.
SSE streams real-time task events to the dashboard with no polling. The MCP server exposes the entire fleet as callable tools inside Claude Code and Claude Desktop — dispatch tasks without leaving your editor.
Fleet
From $35 Raspberry Pis to cloud VPS — any machine that can run Python becomes a mesh worker.
11 online · 1 offline · 1 busy · Mac Mini M2 · Mac Mini Intel · Pi 5 · Hetzner VPS · Mobile
Features
Purpose-built primitives for distributed multi-model AI work.
Claude, Grok, and Codex workers in a single mesh. A three-model review pipeline audits outputs before results are returned. Route tasks to the right model by capability declaration.
Dispatch tasks from your phone by texting the hub. A Python daemon reads chat.db, routes through the hub, and replies via osascript. No cloud relay. No third-party service.
Tasks declare dependencies forming execution graphs. When a parent completes, its output is injected into child prompts automatically. One API call chains research → summarize → notify.
FTS5-indexed, Fernet-encrypted knowledge per agent. Extracted from task output and auto-injected into future prompts. Nightly consolidation merges learnings across the fleet.
Upper Confidence Bound scoring balances task success history against exploring underutilized nodes. Circuit breakers remove failing workers from rotation without manual intervention.
Expose the entire mesh as callable tools inside Claude Code and Claude Desktop. Dispatch tasks, poll status, query memory — without leaving your editor. The mesh becomes native to your AI toolchain.
Role-based access with scoped API tokens and multi-user support. 17 permissions across 4 role presets. Zero-permission tokens denied by default. Per-agent tokens scoped to declared capabilities only.
Every result signed with HMAC-SHA256. Multi-step pipelines form a Merkle chain — tampered outputs break verification before reaching the next stage. Full audit trail at /api/tasks/{id}/provenance.
The mesh writes its own blog post every day from real analytics. Task throughput, model performance, learnings from the last 24 hours — synthesized and published automatically. The fleet narrates itself.
Built in the Open
M3SHD runs entirely on machines you own. Spare Macs, a Pi cluster, a cloud VPS, even a rugged phone — if it can run Python, it joins the mesh. Configure your workers and start dispatching from the terminal or your iMessage thread.
Get in TouchPython · FastAPI · SQLite · Claude API · Grok API · Codex API