cd /news/ai-agents/building-a-decentralized-mesh-networ… · home › topics › ai-agents › article
[ARTICLE · art-150764] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Building a Decentralized Mesh Network in Rust: GhostWire

A developer has released GhostWire, an open protocol and Rust reference implementation for resilient peer-to-peer mesh communication built on libp2p, XChaCha20-Poly1305 encryption, X25519/ML-KEM-768 hybrid post-quantum key exchange, delay-tolerant networking, and AI-assisted routing. The project targets disaster responders, rural communities, and privacy advocates who need communication to function over intermittent connectivity and untrusted infrastructure, and is available as a Rust crate, REST API, or implementable spec.

by read1 min views3 publishedOct 15, 2026

GhostWire is an open protocol and reference implementation for resilient peer-to-peer communication. It is built in Rust with libp2p, XChaCha20-Poly1305, X25519/ML-KEM hybrid post-quantum key exchange, delay-tolerant networking, and AI-assisted routing.

Most communication systems assume a working internet, centralized servers, and stable identities. GhostWire assumes the opposite: intermittent connectivity, untrusted infrastructure, and real physical threats. It is built for disaster responders, rural communities, privacy advocates, and developers who need communication that still works when the normal stack fails.

Application: messaging, knowledge ark, ghost channels
API: REST, WebSocket, CLI, TUI
Services: block store, mailbox, social, Sphinx
AI routing: LightGBM -> Gemma 4 -> GNN -> PRoPHET
Crypto: XChaCha20-Poly1305, X25519, ML-KEM-768
Transports: TCP, WebRTC, BLE, LoRa, obfs4, Reticulum
Mesh: libp2p GossipSub, Kademlia DHT, DTN
git clone https://codeberg.org/PHANTOMOJO/GhostWire-secure-mesh-communication.git
cd GhostWire-secure-mesh-communication/ghostwire
cargo run --release

The node starts on http://127.0.0.1:8080. Mesh networking activates with --mesh-port.

GhostWire is a protocol, not just an app. Use it as a Rust crate, REST API, or implement the spec in another language.

Read the spec: docs/spec/

GitHub/Codeberg: https://codeberg.org/PHANTOMOJO/GhostWire-secure-mesh-communication

Website: https://www.ghostwire.cc/

We welcome code, tests, docs, security review, and field testing. Good first issues and help-wanted labels are being prepared now. If you work on mesh networking, privacy, DTN, or Rust crypto, your review would help.

── more in #ai-agents 4 stories · sorted by recency
── more on @ghostwire 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/building-a-decentral…] indexed:0 read:1min 2026-10-15 · —