Legion

Legion Developer Documentation

Legion is a distributed capability mesh for individual data sovereignty — a cohort of your own devices (your phone, your machines) that discover and invoke each other's capabilities (speech-to-text, an LLM, storage, audio) without routing your data through a big-cloud dependency.

These docs cover the public developer surface: how the system is layered, the exported ABI, and the two SDKs you build against.

Where to start

The two developer layers

You almost always work at exactly one of the top two layers:

  • Building an app? You work at L4 (consume capabilities the cohort advertises).
  • Providing a capability? You write a module at L3 (declaring provided_capsis advertising them, once your node is certified).

L1 (transport / mesh) and L2 (consensus / membership / identity) are the machinery underneath — internal, not application-facing. You should never need to call into them directly.

Copyright © 2026 Kultivator Consulting Ltd. All rights reserved.

legios.cloud