Mesh LLM: distributed AI computing on iroh
TL;DR Highlight
Pool GPUs across machines and serve them as one OpenAI-compatible API.
Who Should Read
Backend developers who want to self-host LLMs on idle GPUs to cut API costs and keep control of their data.
Core Mechanics
- Many GPUs behind one API
- It pools GPUs and memory across machines and exposes one OpenAI-compatible API.
- Point any OpenAI client at http://localhost:9337/v1.
- Three ways to serve a request
- Run locally, or route to a peer that already has the model loaded.
- Models too big for one box are split across machines as a pipeline.
- Big models are split by layers
- Split mode (internally Skippy) assigns layer ranges to stages, e.g. layers 0-15 on one node, 16-31 on the next.
- Activations flow from stage to stage.
- iroh handles networking
- Every node runs an iroh endpoint whose public key is its identity, with no central server.
- iroh does hole-punching, NAT traversal, and relay fallback; two relays run in different regions.
- Three ALPNs split the protocol
- mesh-llm/1 carries gossip, routing, HTTP tunnels, and plugin channels.
- mesh-llm-control/1 is the owner control plane, skippy-stage/2 carries latency-sensitive activations.
- Catalog and install size
- The catalog has 40+ models from 0.5B up to 235B MoE.
- The software is about 18 MB and can join the public mesh or run private.
Community Reactions
- Worked first try, one user says
- On a MacBook Pro they ran mesh-llm --auto from the swarm page and it just worked.
- Model selection and peer download were automatic.
- No performance data, a commenter notes
- They worry network speed makes split models far slower than local RAM or disk.
- They found the model list says Qwen 235B A22B ran at 16 tok/s across 2 nodes, without node or network specs.
- Older GPU hit rough edges, one user reports
- None of the installable llama.cpp builds worked on their older GPU.
- Proxying an external llama.cpp service also failed.
- Security and throughput doubts
- One comment argues the host can still see your data, so it is not clearly more secure.
- Others want tokens/sec at high concurrency and on uneven hardware.
How to Apply
- Try the public mesh with mesh-llm --auto
- Today, run mesh-llm --auto on a personal machine and watch it serve and download a model.
- Switch an existing OpenAI client's base URL to http://localhost:9337/v1 and call it.
- Build a private mesh from idle GPUs
- Install on 2-3 office GPU machines and join them in a private deployment.
- Run a model too big for one box in split mode and measure speed.
- Measure tok/s and security before adopting
- Record tokens/sec at different concurrency levels on your real network and hardware.
- Send sensitive data only through a private mesh, since hosts can see it.
Try It
# Paste into a terminal (after installing mesh-llm; test the OpenAI-compatible API)
# See the 'See the code' link at https://www.iroh.computer/blog/mesh-llm for install steps
mesh-llm --auto
# In another terminal:
curl http://localhost:9337/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"{{model_name}}","messages":[{"role":"user","content":"{{question}}"}]}'Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls