Use TeamoRouter with LibreChat
LibreChat is an open-source, self-hosted chat app for teams. You add TeamoRouter in librechat.yaml under endpoints.custom; no code changes needed.
Checked on 2026-11-07 against LibreChat v0.8.8 and the official custom endpoint docs.
1. Before you start
- Create an API key in the TeamoRouter console. Keys start with
sk-teamo-. - Have LibreChat installed and running. If not, follow the Docker setup guide.
2. Put the key in .env
Add one line to the .env file in your LibreChat folder:
TEAMOROUTER_API_KEY=sk-teamo-xxxxxx
Don't paste the key into librechat.yaml. The config below reads it as ${TEAMOROUTER_API_KEY}.
3. Add TeamoRouter to librechat.yaml
If you don't have a librechat.yaml yet, copy the example first: cp librechat.example.yaml librechat.yaml. Then add this under endpoints: → custom: (keep the version: line your file already has):
endpoints:
custom:
# OpenAI-compatible: baseURL ends with /v1
- name: 'TeamoRouter'
apiKey: '${TEAMOROUTER_API_KEY}'
baseURL: 'https://api.teamorouter.com/v1'
models:
default: ['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']
fetch: true
titleConvo: true
titleModel: 'current_model'
modelDisplayLabel: 'TeamoRouter'
# Claude in native Anthropic format: baseURL WITHOUT /v1
- name: 'TeamoRouter Claude'
provider: 'anthropic'
apiKey: '${TEAMOROUTER_API_KEY}'
baseURL: 'https://api.teamorouter.com'
headers:
anthropic-version: '2023-06-01'
models:
default: ['claude-sonnet-5-5', 'claude-opus-5-5', 'claude-haiku-5-5']
fetch: false
titleConvo: true
titleModel: 'claude-haiku-5-5'
modelDisplayLabel: 'Claude'
TeamoRouteruses the OpenAI-compatible format. Keep/v1inbaseURL; LibreChat adds/chat/completionsitself. Withfetch: true, LibreChat also pulls the model list from TeamoRouter.defaultmust still list at least one model.TeamoRouter Claudeusesprovider: 'anthropic'(LibreChat v0.8.7 or later), so Claude goes through the native/v1/messagesendpoint, where LibreChat can use prompt caching and Claude's thinking. HerebaseURLhas no/v1: the Anthropic client adds/v1/messagesitself. This endpoint doesn't fetch models, so list them indefault.- Claude models can also be picked under
TeamoRouter, but that uses the OpenAI format: prompt caching may not apply and you may not see the thinking. UseTeamoRouter Claudefor Claude. namemust be unique and can't be a built-in endpoint name such asopenAIoranthropic.
4. Load the config and restart
Docker only: LibreChat reads librechat.yaml only if it's mounted. Copy docker-compose.override.yml.example to docker-compose.override.yml and make sure it contains:
services:
api:
volumes:
- type: bind
source: ./librechat.yaml
target: /app/librechat.yaml
Restart after every change to .env or librechat.yaml:
docker compose down && docker compose up -d
Without Docker, stop the server and run npm run backend again. Then open LibreChat, pick TeamoRouter or TeamoRouter Claude in the model selector, and send a message.
5. Recommended models
| Model ID | Endpoint | Notes |
|---|---|---|
claude-sonnet-5-5 |
TeamoRouter Claude | Everyday main model |
claude-opus-5-5 |
TeamoRouter Claude | Strongest Claude, for the hardest tasks |
claude-haiku-5-5 |
TeamoRouter Claude | Fast and light; also good for conversation titles |
gpt-6.1-sol |
TeamoRouter | OpenAI's main model |
gpt-6-luna |
TeamoRouter | OpenAI, fast and light |
gemini-4-argon |
TeamoRouter | Google Gemini |
deepseek-v4-pro |
TeamoRouter | DeepSeek's main model |
deepseek-v4-flash |
TeamoRouter | DeepSeek, faster and lighter |
glm-5.3 |
TeamoRouter | Zhipu GLM |
kimi-k3.1-pro |
TeamoRouter | Moonshot Kimi |
qwen3.8-max |
TeamoRouter | Alibaba Qwen |
Prices and the full list are on the model list.
6. Common errors
| What you see | Cause | Fix |
|---|---|---|
Missing API Key for TeamoRouter |
.env has no TEAMOROUTER_API_KEY, or the name doesn't match the yaml |
Add the line from section 2 and restart |
| TeamoRouter doesn't show up in the model selector | Docker: librechat.yaml isn't mounted; or the block is missing name, baseURL, apiKey or models (LibreChat drops it without an error) |
Check section 4 and compare your block with section 3 |
| 401, API key incomplete | Key copied with missing characters | Copy the full sk-teamo- key into .env again and restart |
| 402 (400 on the OpenAI format), wallet balance is insufficient | Balance is $0 | Top up, from $5 |
| 301 redirect or an HTML web page instead of a reply | TeamoRouter baseURL is missing /v1 |
https://api.teamorouter.com/v1 |
| 404 "No gateway route matched this request path." | /v1 typed twice, or /chat/completions added to baseURL; or TeamoRouter Claude has /v1 in baseURL |
https://api.teamorouter.com/v1; for TeamoRouter Claude, https://api.teamorouter.com |
400 model_not_available |
Model ID misspelled or not in our catalog | Copy the ID from the model list |