Use TeamoRouter with AstrBot

AstrBot is an open-source chatbot framework for QQ, Telegram, Lark, DingTalk, Slack and other platforms. It supports the OpenAI, Anthropic and Google API formats natively. Connect GPT, DeepSeek, Gemini and similar models to TeamoRouter through an OpenAI provider, and Claude through an Anthropic provider (the native protocol). Both providers share one key and one balance.

Checked on 2026-11-25 against the AstrBot v4.x docs and source.

New accounts start with a $0 balance — top up before your first request. Top up from $5 with a card, Alipay or WeChat Pay, or USDT. If the bot's reply fails with 402 or 400 and "wallet balance is insufficient", your balance is empty — your base URL and key are fine. Top up and retry.

1. Before you start

Create an API key in the TeamoRouter console.

2. GPT, DeepSeek, Gemini and others: OpenAI provider

  1. Open the AstrBot dashboard, go to Service Providers, click Add Provider and choose OpenAI.
  2. Fill in:
Field Value
API Base URL https://api.teamorouter.com/v1
API Key your sk-teamo- key
  1. Click Get Model List, click + next to each model you want (for example deepseek-v4-flash, gpt-6.1-sol), turn on the switch that appears, and save.

Keep /v1 at the end of the API Base URL. Don't append /chat/completions.

3. Claude: Anthropic provider

Use the native Anthropic protocol for Claude. This provider type is where AstrBot lets you configure thinking.

  1. Click Add Provider again and choose Anthropic.
  2. Set API Base URL to https://api.teamorouter.com. AstrBot strips a trailing /v1, so either form works. Use the same sk-teamo- key.
  3. Get the model list and add claude-sonnet-5-5 (or type the model ID), turn on the switch, and save.

4. Make it the default model

Open Configuration, find the chat model setting, click the selection button on the right, choose the provider and model you just added, and click Save Configuration at the bottom right.

To keep the key out of the config file: since v4.13.0 you can enter $TEAMOROUTER_API_KEY in the API Key field, and AstrBot reads the environment variable of that name.

5. Which model for which job

Job Model ID Official price (input / output per 1M tokens)
Everyday group chat replies (high volume, keep it cheap) deepseek-v4-flash $0.44 / $1.32
Cheapest small talk gpt-6-luna $0.1 / $0.5
Role-play, long conversations, plugin tools claude-sonnet-5-5 $2 / $10
GPT as the main model gpt-6.1-sol $2 / $10

These are the vendors' official list prices. TeamoRouter's current prices are in the model list.

6. Common errors

What you see Cause Fix
401, API key incomplete Key copied with missing characters Copy the full sk-teamo- key again
402 or 400, wallet balance is insufficient Balance is $0 Top up, from $5
The OpenAI provider returns 404, an HTML page or 405 API Base URL missing /v1 Use https://api.teamorouter.com/v1
A model you want isn't available after getting the list Not added, or a typo in the model ID Click + next to the model and turn on its switch. Check IDs in the model list
The bot doesn't reply and no request shows in the logs The default chat model still points at the old provider Switch it to the TeamoRouter provider in Configuration (section 4) and save
Ready? Three steps to startLog in to the console · top up · create an API key
DiscordGet community help instantly