Skip to content
Docs

Quickstart

This walks through standing up a router in front of one engine and making a billed request.

Terminal window
pip install lifeboatrouter
lifeboatrouter

Create the admin account when the browser opens.

The Models page lists what the router discovered. If an engine is on another machine or subnet, add it on the Network page (an IP, host:port, URL or CIDR range). If it needs an API key, enter it there too.

On the Sell page set input and output price per 1M tokens for each model. Private use is free and needs no price.

On the API keys page, create a key. The base URL is http://<this-machine>:9500/v1.

from openai import OpenAI
client = OpenAI(base_url="http://localhost:9500/v1", api_key="lbr-...")
r = client.chat.completions.create(
model="auto", # or a specific model id from /v1/models
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

Check the balance for a key without the UI:

Terminal window
curl http://localhost:9500/v1/account -H "Authorization: Bearer lbr-..."