Alpha · Holochain 0.7 · No online account

Decentralized LLM inference
between authenticated peers

AInonymous coordinates LLM inference over a Holochain P2P network, with a direct QUIC/mTLS channel between peers. No central server. Alpha software: no network anonymity.

ainonymous — terminal
~ holochain -c scripts/testnet/conductor_t51.yaml
◦ Holochain 0.7 test conductor (admin :65000)
~ AINON_CONFIG=scripts/testnet/daemon_t51.toml ./target/debug/ainonymous-daemon
◦ daemon API on 127.0.0.1:18890, QUIC on :9010
~ curl http://127.0.0.1:18890/health
ok
~ python3 scripts/sg1/run_sg1.py
◦ private admission checked with two real conductors (CI “SG1”)
~
4
pinned DNAs, rebuilt byte for byte (CI)
2
real Holochain 0.7 conductors · SG1 admission test
16/16
tokens identical to a single node · 2-stage split, 1 machine
7
QUIC/mTLS transport tests · loopback

Dual-channel: control plane + data plane

Holochain handles discovery and routing; QUIC transfers tensor activations at full throughput.

🔮 Control Plane · Holochain DHT
🔍 Node discovery
🗺 Routing & execution plan
🤝 QUIC session negotiation
💓 Heartbeat & metrics
📋 Collaborative blackboard
⇄
session
token
⚡ Data Plane · QUIC / iroh-net
🔢 Tensor activations
🔑 Ephemeral auth token (32B)
🔐 TLS 1.3 · end-to-end encryption
🏄 NAT traversal (hole punching)
🗜 zstd-1 auto (when bw < 1 Gbps)

Distributed inference, zero compromise

Four execution modes selected automatically based on available network resources.

🔗

Pipeline Split

The model is partitioned by layer ranges across multiple nodes. Activations flow over QUIC with a 64-byte binary header per segment.

240 MB / segment · Gemma4-31B
🧩

Expert Sharding (MoE)

For Gemma4-26B: all nodes carry the shared dense trunk. Sparse experts are distributed round-robin across the network.

26B-A4B activated per token
🚀

Speculative Decoding

A draft node (Gemma4-E4B) predicts multiple tokens ahead. A verify node (Gemma4-31B) validates in parallel. +38% throughput.

Draft node + verify node
🎯

Solo Mode

When a single node has sufficient VRAM, inference runs entirely locally with zero network overhead.

Automatic fallback
📡

OpenAI-Compatible API

Drop-in replacement on port 9337. Works with any standard OpenAI client: LangChain, LlamaIndex, Cursor, and more.

POST /v1/chat/completions
🖤

P2P Blackboard

Holochain-native agent collaboration space. Prefixes: STATUS / FINDING / QUESTION / TIP. Configurable TTL. PII stripped automatically.

Goose MCP integration
🦆

Goose Integration

AInonymous exposes 5 MCP tools. Goose (by Block) drives mesh inference, queries the blackboard, and orchestrates agent teams.

stdio MCP · JSON-RPC 2.0
🌐

Open Network

Private deployments require a network-bound membrane proof. Open admission remains experimental because public anti-Sybil controls are not implemented.

Holochain · zero gating

Gemma 4 lineup · Apache 2.0

Multimodal models (image + text), 128K–256K context window, GGUF format.

Model Type Min. VRAM Context Best mode Use case
gemma4-26b-moe MoE 16 GB 128K Expert Shard Recommended for production
gemma4-31b Dense 24 GB 128K Pipeline Split Highest quality
gemma4-e4b Fast 4 GB 128K Solo / Draft Speculative draft node
gemma4-e2b Fast 2 GB 256K Solo Edge / low-VRAM devices

From request to token, peer-to-peer

1

Discovery via Holochain DHT

The proxy receives an OpenAI request. The daemon queries the DHT to find active nodes (heartbeat < 60s) carrying the requested model, scored by VRAM / load / free slots.

2

QUIC session negotiation

The Holochain coordinator calls negotiate_quic_session() on the target node via call_remote(). A 32-byte ephemeral token is generated — only its SHA256 is stored in the DHT. The direct QUIC connection is established with TLS 1.3.

token: [u8; 32] → SHA256 in DHT → QUIC auth stream
3

Activation transfer

Each pipeline segment sends its activations with a 64-byte binary header (request_id, layer_range, dtype, compression flag) followed by tensor data, optionally compressed with zstd level 1.

[ Header 64B ][ Size 8B ][ Tensor data (zstd-1 if bw < 1 Gbps) ]
4

Token streaming

The final node streams generated tokens back over QUIC as length-prefixed JSON frames. The proxy re-emits them as OpenAI Server-Sent Events to the caller.

5

Metrics publication

After inference completes, each node publishes its metrics (latency, tokens/s, bytes transferred) to the Holochain DHT to improve future scoring decisions.

mesh-llm (Nostr) vs AInonymous (Holochain)

⚡ mesh-llm + Nostr

P2P layer Nostr (pubsub)
Data transport QUIC
Node discovery Nostr relays
Shared state Limited
Validation None
Agent collaboration Custom blackboard

🔮 AInonymous + Holochain

P2P layer Holochain DHT
Data transport QUIC direct (same)
Node discovery Agent-centric DHT
Shared state Source chain + DHT
Validation Integrity zomes + warrants
Agent collaboration Native Holochain blackboard

Get started from source

Requirements: Rust 1.91+, Holochain 0.7.0 CLI, llama.cpp

Quick start
Build from source
With Goose
# 1. Clone the repository git clone https://github.com/Geoking2104/AInonymous.git cd AInonymous # 2. Rust 1.91+ and WASM target, Holochain 0.7.0 (x86_64 Linux/WSL2) rustup target add wasm32-unknown-unknown bash scripts/setup_holochain_wsl.sh # 3. Build the crates and pack the hApps cargo build --workspace bash scripts/build-happ.sh release

The rest (conductor, daemon, OpenAI-compatible proxy on localhost:9337) is covered step by step in the setup guide below.

# Clone git clone https://github.com/Geoking2104/AInonymous.git cd AInonymous # Build native crates + WASM zomes + pack the hApps make build # Install ainonymous, ainonymous-daemon, ainonymous-proxy, ainonymous-mcp make install # Check: native tests and two-conductor admission (SG1) cargo test --workspace python3 scripts/sg1/run_sg1.py
# In ~/.config/goose/config.yaml extensions: ainonymous: name: AInonymous Mesh type: stdio cmd: ainonymous-mcp args: [] enabled: true # Start Goose with the mesh profile ainonymous goose --profile standard # fast | standard | powerful # Example usage in Goose # > "Run inference with gemma4-26b on the mesh network" # → mesh_query_nodes, mesh_run_inference, blackboard_post

Join the network.
Share your compute power.

Every node adds capacity to the mesh. No online account: your identity is a key generated on your machine. To join a private mesh, the network administrator issues you an admission proof.

⭐ GitHub 📖 Documentation

Alpha software: the multi-node speed-up has not been measured on real machines yet, and the network provides no anonymity. The guide is a scripted assistant running entirely in your browser; its commands come from the repository (docs/JOIN_NETWORK.md).