Skip to content
Docs

Configuration reference

Configuration is ~/.lifeboat_router/config.yaml (override with LIFEBOAT_ROUTER_HOME or LIFEBOAT_ROUTER_CONFIG). Every field has a default, so the router runs with no file. The UI’s Settings, Network, Sell and Routing pages write it. State lives in ~/.lifeboat_router/router.db (SQLite).

Variable Effect
LIFEBOAT_ROUTER_HOME state directory
LIFEBOAT_ROUTER_HOST / LIFEBOAT_ROUTER_PORT bind address (default 0.0.0.0:9500)
LIFEBOAT_ROUTER_MODE node (a GPU owner’s router) or hub (the marketplace)
LIFEBOAT_ROUTER_TLS_CERT / LIFEBOAT_ROUTER_TLS_KEY PEM certificate and key — serve HTTPS directly
STRIPE_SECRET_KEY / STRIPE_PUBLISHABLE_KEY / STRIPE_WEBHOOK_SECRET filed to the test or live slot by the key prefix; never written to the config file
STRIPE_TEST_* / STRIPE_LIVE_* set a specific slot explicitly
STRIPE_MODE test or live — which slot is active
LIFEBOAT_ROUTER = 0 disable the engine plugin
LIFEBOAT_ROUTER_AUTOSTART = 0 announce an engine without starting a router

Secrets supplied by environment variables are kept out of config.yaml.

The router can serve TLS itself — no reverse proxy required:

Terminal window
lifeboatrouter serve --tls-cert /etc/ssl/router.crt --tls-key /etc/ssl/router.key
lifeboatrouter serve --tls-self-signed # dev / LAN: generate and cache a certificate

The same can be set in the config (tls_cert / tls_key) or by environment variable. A self-signed certificate encrypts the connection but clients warn until it is trusted. Behind a TLS terminator instead? Keep plain HTTP and use --root-path for a path prefix.

Section Key Default Meaning
mode node node or hub
host / port 0.0.0.0 / 9500 bind
public_url — used for Stripe redirect URLs
tls_cert / tls_key — PEM cert + key: serve HTTPS directly
require_api_key false require a key on /v1 even in private mode
discovery scan_local / scan_subnet true where to look
discovery targets [] extra IPs, hosts, URLs, CIDRs
discovery ports 8000, 30000, 8001, 8080, 11434, 1234, … ports probed
discovery interval_s / subnet_interval_s 60 / 900 re-scan cadence
discovery probe_capabilities true measure each model (context, TTFT, tokens/sec, concurrency)
discovery probe_interval_s 1800 how often to re-measure a model
discovery probe_concurrency / probe_max_tokens 4 / 48 the concurrency check’s requests and their length
billing default_input_per_m / default_output_per_m 0.20 / 0.60 default price per 1M tokens
billing packs 5, 20, 50, 100 credit packs offered
billing platform_fee 0.20 hub only: share kept per sale
stripe mode test active Stripe slot
stripe test_* / live_* — secret, publishable and webhook keys per slot
routing enabled / trigger true / auto smart routing on, and the model name
routing strategy failover failover, round-robin, weighted, random
routing model_map {} level/task/domain → model
routing context_override [] long-input rules
routing use_classifier / classifier_dir true / — ML tier
cloud enabled / hub_url / provider_token / display_name — selling through the hub
license mode / key private private (free) or commercial