Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LUMEN

Lightweight Unified Model ENdpoint

A universal, self-hostable LLM gateway written in Rust. One OpenAI-compatible endpoint in front of many providers - for chat, embeddings and reranking alike. It is designed to be light, fast and sovereign: a single static binary, zero telemetry, and prompts that are never logged by default.

What’s here

The five pillars

Every trade-off is decided in this order:

  1. Performance - < 1 ms added latency p99, zero-copy streaming, ~15 MB RAM idle.
  2. Sovereignty - zero telemetry, prompts never logged by default, single binary.
  3. Robustness - propagated cancellation, backpressure, DB off the request path.
  4. Multi-capability - chat + embeddings + rerank are first-class citizens.
  5. Token observability - every request of every capability produces a token count: upstream usage when reported, otherwise a local estimate flagged estimated. Never a silent zero. See token accounting & cost.

Want to contribute? Start with the contribution guide.