LobeChat
LobeChat is a popular open-source web AI client with both hosted and self-hosted options. Point its OpenAI provider at Tokensmart.
π‘ Quick setup: create a key on API Keys; the API Proxy URL value below is ready to paste.
Hosted
- Open chat.lobehub.com
- Avatar (top right) β Settings
- Left pane β Language Model β OpenAI
- Fill in:
| Field | Value |
|---|---|
| API Key | pk_live_xxxxxxxxxxxxxxxx |
| API Proxy URL | https://api.tokensmart.ai/v1 |
- Click Check
- In Model List below, enable or add
gpt-5.4/claude-sonnet-4-6etc.
Self-hosted (Docker)
docker run -d \
-p 3210:3210 \
-e OPENAI_API_KEY=pk_live_xxxxxxxxxxxxxxxx \
-e OPENAI_PROXY_URL=https://api.tokensmart.ai/v1 \
--name lobe-chat \
lobehub/lobe-chat
Tokensmart tips
- Team sharing pattern A β one key, many users: let LobeChat's own user accounts handle auth; use a single Tokensmart key behind the scenes. You only manage one balance and one billing stream.
- Team sharing pattern B β one key per user: if you want per-user accounting, hand each teammate/family member their own Tokensmart key with a personal daily limit, and deploy a multi-user LobeChat so they can enter their own.
- Add new models manually: LobeChat's built-in model list updates slower than Tokensmart ships new models (typically 24β48h after release). When something new lands, paste the Tokensmart model ID under Model List β Custom Model.
- Self-host with env vars: passing
OPENAI_PROXY_URLat container launch is more robust than the UI β upgrading the Docker image will never clobber your config.
Troubleshooting
- CORS in browser console β the hosted version proxies through its own backend and should not hit CORS; if you self-host without a backend, use the Docker build
- Only some models showing β LobeChat only lists models it has internally curated. Add missing ones under Model List β Custom Model