Skip to content
Docs

Install

Terminal window
pip install lifeboatrouter

Lifeboat Router ships as a compiled wheel (the logic is native extensions, not Python source). Wheels are published for Linux (x86_64, aarch64) and macOS (Apple silicon and Intel) on CPython 3.10–3.12.

Terminal window
lifeboatrouter # UI + OpenAI API on http://localhost:9500, opens your browser
lifeboatrouter serve # same, without opening a browser (services, containers)

On first start the UI asks you to create an admin account and set its password — nothing is exposed until you do. From there the admin adds servers, sets prices, and (to sell) adds Stripe keys or a license.

Turn an engine into a seller automatically

Section titled “Turn an engine into a seller automatically”

pip cannot run anything at install time, so install the package into the Python environment that runs your engine. The next time the engine starts, its plugin announces it to the router and launches the router if it is not already running:

Terminal window
pip install lifeboatrouter # in the same env as vLLM / SGLang / Lifeboat
vllm serve <model> # the router comes up and lists this model

A banner on the engine’s console points to the URL where you finish setup. LIFEBOAT_ROUTER=0 disables the plugin; LIFEBOAT_ROUTER_AUTOSTART=0 announces the engine without starting a router (useful when the router runs as a service or on another machine).

model: "auto" routes on fast text heuristics out of the box. For the ML classifier:

Terminal window
pip install "lifeboatrouter[classifier]"

and place the router model files (router.int8.onnx, labels.json, vocab.txt) in ~/.lifeboat_router/router-model/. See Smart routing.

Terminal window
lifeboatrouter install-service # systemd user unit (Linux) or launchd agent (macOS)

~/.lifeboat_router/ (override with LIFEBOAT_ROUTER_HOME): config.yaml, the SQLite database router.db, and engine announcements. See the configuration reference.