Use TeamoRouter with LobeChat
LobeChat (renamed LobeHub; web app, desktop app or self-hosted) lets you add your own AI providers. Add TeamoRouter as a custom provider with your TeamoRouter API key, and the TeamoRouter models show up in LobeChat's model picker.
Checked on 2026-11-07 against the LobeHub v2.3.2 source (lobehub/lobehub, released 2026-11-06).
1. Before you start
- Create an API key in the TeamoRouter console. It starts with
sk-teamo-. - Open LobeChat: the web app, the desktop app or your own deployment. The settings below are the same in all three.
2. Add TeamoRouter in Settings
- Open Settings → Provider. Next to the provider search box, click + (Add Custom Provider).
- In Create Custom AI Provider, fill in:
| Field | Value |
|---|---|
| Provider ID | teamorouter |
| Provider Name | TeamoRouter |
| Request Format | OpenAI |
| Proxy URL | https://api.teamorouter.com/v1 |
| API Key | your sk-teamo- key |
- Click Create. LobeChat opens the TeamoRouter provider page.
- Under Model List, click Fetch models and turn on the models you want. Or click Add Model and enter a Model ID from the table in section 4.
- Under Connectivity Check, pick one of your models in the dropdown (for example
deepseek-v4-flash) and click Check. - Start a new chat and pick a TeamoRouter model in the model picker.
- Keep
/v1at the end of the Proxy URL. In the OpenAI format, LobeChat appends/chat/completionsto it as is. - Leave Use Responses API Specification off (it is off by default for custom providers). When it's on, every request goes to
/v1/responses, which on TeamoRouter serves GPT models only. GPT-6 models such asgpt-6.1-soluse/v1/responsesautomatically even with the switch off.
You can also put the same URL and key into LobeChat's built-in OpenAI provider (field API Proxy URL). On that provider, Use Responses API Specification is on by default: turn it off, or only GPT models will work.
Claude: add a second provider in the Anthropic format
Claude models work through the provider above, but over the OpenAI format they may miss the prompt cache, and you won't see Claude's thinking. For Claude, add one more custom provider with the same key:
| Field | Value |
|---|---|
| Provider ID | teamorouter-claude |
| Provider Name | TeamoRouter Claude |
| Request Format | Anthropic |
| Proxy URL | https://api.teamorouter.com |
| API Key | the same sk-teamo- key |
Then click Add Model and add claude-sonnet-5-5, claude-opus-5-5 and claude-haiku-5-5.
- No
/v1here: the Anthropic SDK adds/v1/messagesitself. If you do type/v1, LobeChat strips it, so both work. - In this format LobeChat turns on prompt caching for Claude by default.
- The built-in Anthropic provider also has an API Proxy URL field. Filling in
https://api.teamorouter.comand your TeamoRouter key there works the same way.
3. Self-hosting: environment variables
On a self-hosted deployment (Docker and others), you can preconfigure LobeChat's built-in providers on the server so users don't have to enter a key. Add these to your deployment's .env and restart:
# OpenAI-compatible: GPT, Gemini, DeepSeek, GLM, Kimi, Qwen
OPENAI_API_KEY=sk-teamo-xxxxxx
OPENAI_PROXY_URL=https://api.teamorouter.com/v1
OPENAI_MODEL_LIST=-all,+gpt-6.1-sol,+gpt-6-luna,+gemini-4-argon,+deepseek-v4-pro,+deepseek-v4-flash,+glm-5.3,+kimi-k3.1-pro,+qwen3.8-max
# Claude in the Anthropic format
ANTHROPIC_API_KEY=sk-teamo-xxxxxx
ANTHROPIC_PROXY_URL=https://api.teamorouter.com
ANTHROPIC_MODEL_LIST=-all,+claude-sonnet-5-5,+claude-opus-5-5,+claude-haiku-5-5
OPENAI_PROXY_URLmust end with/v1.ANTHROPIC_PROXY_URLdoesn't need it.- In
*_MODEL_LIST,-allhides LobeChat's default model list and+model-idadds a model. Separate entries with commas. - These variables go to the built-in OpenAI and Anthropic provider. Its Use Responses API Specification switch is on by default, so after deploying, each user should open Settings → Provider → OpenAI and turn it off. GPT-6 models keep using
/v1/responseson their own. - Environment variables only cover built-in providers. A custom provider (section 2) is set up in the UI.
4. Recommended models
| Use | Model ID | Provider in LobeChat |
|---|---|---|
| Everyday chat, writing, coding | claude-sonnet-5-5 |
TeamoRouter Claude (Anthropic) |
| Hardest reasoning and long tasks | claude-opus-5-5 |
TeamoRouter Claude (Anthropic) |
| Fast, low-cost Claude | claude-haiku-5-5 |
TeamoRouter Claude (Anthropic) |
| GPT flagship | gpt-6.1-sol |
TeamoRouter (OpenAI) |
| Light GPT | gpt-6-luna |
TeamoRouter (OpenAI) |
| Gemini | gemini-4-argon |
TeamoRouter (OpenAI) |
| Strongest DeepSeek | deepseek-v4-pro |
TeamoRouter (OpenAI) |
| Fast DeepSeek | deepseek-v4-flash |
TeamoRouter (OpenAI) |
| GLM | glm-5.3 |
TeamoRouter (OpenAI) |
| Kimi | kimi-k3.1-pro |
TeamoRouter (OpenAI) |
| Qwen | qwen3.8-max |
TeamoRouter (OpenAI) |
Model IDs have no vendor prefix. The full list and current prices are on the model list.
5. Common errors
| What you see | Cause | Fix |
|---|---|---|
| 401 | Key missing, or copied with missing characters | Paste the full sk-teamo- key into the provider's API Key field |
| 402 (400 on the OpenAI format), wallet balance is insufficient | Balance is $0 | Top up, from $5 |
| A 301 redirect, an HTML page or an empty reply instead of a model answer; Fetch models fails | OpenAI-format Proxy URL is missing /v1 |
https://api.teamorouter.com/v1 |
| 404 "No gateway route matched this request path" | /v1 twice, or a full path such as /v1/chat/completions pasted into the Proxy URL |
The Proxy URL ends at /v1 |
| GPT works, other models return 400 | Use Responses API Specification is on | Turn it off on the provider page |
| Check fails with a model you didn't add | The check uses a default model TeamoRouter doesn't have | Pick one of your models in the dropdown next to Check |
| Error naming the model (not found or not supported) | Model ID typo, a vendor prefix, or . instead of - |
Copy the ID from the model list, for example claude-sonnet-5-5, not claude-sonnet-5.5 |