YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
π babel_mesh
The World's First Serverless Distributed AI Network β Phone to Phone
π¬ What Is This?
babel_mesh is the first system that turns every smartphone into an AI node β sharing compute, memory, and inference capabilities peer-to-peer over WiFi and Bluetooth, with zero internet, zero cloud, zero central server.
Traditional AI:
Your Phone β Internet β Cloud Server β AI Response β Internet β Your Phone
babel_mesh:
Your Phone ββ Neighbor Phone ββ Neighbor Phone ββ AI Response
(No internet. No cloud. Just mesh.)
Each device contributes what it can β RAM, CPU cycles, cached model fragments β and the mesh collectively runs inference that no single device could handle alone.
𧬠The Core Innovation
"AI is too big for one phone. babel_mesh makes it small enough for all phones."
The Three Pillars
1. Fragment Distribution Large AI models are split into micro-fragments (~50MB each). Each node in the mesh holds a different fragment. Inference is routed through nodes in sequence β like a pipeline.
2. Mesh Consensus Routing No single node controls the network. Routing decisions are made by mesh-wide consensus using a lightweight gossip protocol β inspired by how biological neural networks route signals.
3. Zero-Knowledge Inference Each node processes only its own fragment β it never sees the full prompt or the full response. Privacy is structural, not policy-based.
ποΈ Architecture
babel_mesh/
βββ core/
β βββ node.py # A single babel_mesh node
β βββ fragment_manager.py # Model fragment storage + retrieval
β βββ inference_pipeline.py # Distributed inference orchestration
β βββ gossip_protocol.py # Mesh consensus + peer discovery
βββ mesh/
β βββ wifi_direct.py # WiFi Direct peer connection (Android P2P)
β βββ bluetooth_bridge.py # Bluetooth LE mesh bridge
β βββ mesh_router.py # Intelligent routing across nodes
βββ crypto/
β βββ zk_inference.py # Zero-knowledge inference layer
β βββ fragment_seal.py # Fragment encryption + integrity
βββ api/
β βββ mesh_api.py # Local HTTP API (same interface as cloud AI)
β βββ node_registry.py # Local node discovery + registration
βββ cli/
β βββ babel_cli.py # Command-line interface
βββ examples/
β βββ three_phone_demo.py # 3-node mesh inference demo
β βββ offline_village.py # Offline community AI scenario
βββ docs/
β βββ ARCHITECTURE.md
β βββ RESEARCH.md
β βββ PRIVACY.md
βββ config/
βββ babel_config.yml
β‘ Quick Start
Install
pip install babel-mesh
Start a Node
babel init --name "my-node"
babel start
# Node is now discoverable on local WiFi/Bluetooth
Join a Mesh
babel join --mesh "village_network"
# Automatically discovers and connects to nearby nodes
Run Inference (same API as any cloud AI)
from babel_mesh import MeshClient
client = MeshClient()
client.connect() # auto-discovers nearby mesh
response = client.ask("Explain quantum computing simply")
print(response.text)
print(f"Nodes used: {response.node_count}") # e.g. 4
print(f"Latency: {response.latency_ms}ms")
print(f"Internet used: {response.used_internet}") # False
π Use Cases
| Scenario | How babel_mesh Helps |
|---|---|
| ποΈ Remote village, no internet | 10 phones create a local AI mesh |
| π« School with no cloud access | Students' devices form a classroom AI |
| π¨ Disaster zone | First responders run AI with no infrastructure |
| π Air-gapped enterprise | Secure AI with zero external connectivity |
| π©πΏ Rural Algeria | Communities access AI without data costs |
| βοΈ Airplane / submarine | AI available anywhere, no connectivity needed |
π Key Technical Concepts
Gossip Protocol for Node Discovery
Nodes announce themselves to the mesh using a lightweight gossip protocol. No central registry β nodes learn about each other organically, like biological cells signaling their neighbors.
Fragment Pipeline Inference
Model is split into N fragments. Inference flows through the mesh:
Node A (Fragment 1) β Node B (Fragment 2) β Node C (Fragment 3) β Result
Each node adds its computation and passes the activation tensor forward.
Zero-Knowledge Fragment Processing
Each node sees only:
- The activation tensor from the previous node (not the original prompt)
- Its own model fragment
- Instructions to pass output to the next node
No single node ever sees the complete conversation.
Adaptive Mesh Topology
The mesh continuously re-evaluates which nodes are available, their current load, and their fragment holdings β and re-routes inference dynamically to maintain speed and reliability.
πΊοΈ Roadmap
- v1.0 β Core node architecture
- v1.0 β Fragment manager + gossip protocol
- v1.0 β Distributed inference pipeline
- v1.0 β Zero-knowledge inference layer
- v1.1 β WiFi Direct integration (Android)
- v1.2 β Bluetooth LE mesh bridge
- v1.3 β Android APK (standalone node app)
- v2.0 β Cross-mesh federation (multiple villages)
- v2.1 β Incentive layer (nodes earn credits for contributing)
π License & Intellectual Property
MIT License β Copyright (c) 2026 swordenkisk
See LICENSE for complete Intellectual Property Notice.
Original invention date: March 2026 First public repository: github.com/swordenkisk/babel_mesh
π€ Author
swordenkisk
Inventor | AI Researcher | Software Architect | π©πΏ Algeria
| Project | Description |
|---|---|
| babel_mesh | This β Serverless Distributed AI Mesh |
| neuro_sync_ai | Developer Intent Prediction Engine |
| ai_code_her | Multi-AI Mobile Platform |
| In3Pro | Claude Code on Android |
"The internet gave everyone a voice. babel_mesh gives everyone a mind."
β Star this repo to establish priority timestamp.
First public implementation of serverless distributed AI inference over device mesh. March 2026 β swordenkisk