Overview
Lifeboat Router turns a GPU running vLLM, SGLang, Lifeboat, llama.cpp,
Ollama, LM Studio or TGI into a metered, OpenAI-compatible token service.
pip install lifeboatrouter and the router finds the engines on your machine and network, lists
their models, and serves them at a single endpoint behind API keys, per-token metering, prices you
set, and — when you choose to sell — Stripe checkout.
It is free for non-commercial use. Selling access to tokens needs a commercial license, or you can sell through the Lifeboat Cloud marketplace hub operated by Iterate.ai.
What problem does Lifeboat Router solve?
Section titled “What problem does Lifeboat Router solve?”An inference engine serves one process on one box with no accounts, no metering and no billing.
The moment you want other people — a team, customers, or a marketplace — to use that GPU, you need
a gateway in front of it: discovery of every engine you run, a single OpenAI-compatible endpoint,
API keys, usage accounting per key, a price per model, a way to take payment, and a UI that a
non-engineer can use. Lifeboat Router is that layer, in one pip install.
How does it plug in?
Section titled “How does it plug in?”| Situation | What happens |
|---|---|
| An engine is already running | The router scans 127.0.0.1, its container bridges and the local subnet, fingerprints vLLM, SGLang, Lifeboat, llama.cpp, Ollama, LM Studio and TGI (and routes any other OpenAI-compatible server), and lists their models |
| An engine starts with the package installed | Its vllm.general_plugins / sglang.srt.plugins entry point announces it to the router and starts the router if it is not running. LIFEBOAT_ROUTER=0 opts out |
| Servers on another subnet | Add an IP, host:port, URL or CIDR range on the Network page; it is re-scanned every minute |
| Several machines | Routers find each other on the subnet and by scanning the router port, and route to any engine any of them can reach |
| Lifeboat control plane | Detected as Lifeboat; its own SGLang servers are routed through Lifeboat’s load balancer rather than hit directly |
The three ways to use it
Section titled “The three ways to use it”| Mode | Billing | Needs |
|---|---|---|
| Private (default) | off — free for your team | nothing |
| Sell directly | on — buyers pay you through your Stripe account | a commercial license key, activated on the Sell page |
| Sell on Lifeboat Cloud | the hub bills buyers and credits you, minus a platform fee | one form on the Sell page; no local license or Stripe needed |
What you get
Section titled “What you get”- an OpenAI-compatible gateway:
/v1/chat/completions,/v1/completions,/v1/embeddings,/v1/models, and/v1/account(balance by API key) — with native streaming (tokens relayed as Server-Sent Events, metered from the engine’s exact usage); - measured model capabilities: context window, time to first token, tokens/sec and a concurrency check, probed live and shown on the Network and Models pages;
- smart routing: send
model: "auto"and each prompt is routed to the right model — small and cheap for easy questions, large for hard ones — billed at the price of the model that answered; - HTTPS served directly (
--tls-cert/--tls-key, or--tls-self-signed), or run behind a reverse proxy with--root-path; - a built-in web UI: models and prices, a playground, buying credits, API keys, usage, and admin pages for the network, pricing, routing, users and settings;
- per-token metering with an integer-micro-dollar ledger, and Stripe checkout with sandbox and live modes.