Quickstart
This walks through standing up a router in front of one engine and making a billed request.
1. Install and start
Section titled “1. Install and start”pip install lifeboatrouterlifeboatrouterCreate the admin account when the browser opens.
2. Confirm your models are found
Section titled “2. Confirm your models are found”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.
3. Set a price (only if you will sell)
Section titled “3. Set a price (only if you will sell)”On the Sell page set input and output price per 1M tokens for each model. Private use is free and needs no price.
4. Create an API key
Section titled “4. Create an API key”On the API keys page, create a key. The base URL is http://<this-machine>:9500/v1.
5. Make a request
Section titled “5. Make a request”from openai import OpenAIclient = 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:
curl http://localhost:9500/v1/account -H "Authorization: Bearer lbr-..."- Selling tokens — directly or on the marketplace
- Smart routing
- Discovery & networking