Personal and autonomous agents
Use AstrBot with Shannon
Add Shannon to AstrBot as an OpenAI Compatible provider source, switch on a model, and your bots answer on Shannon models in every connected platform.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 5 min
About AstrBot
AstrBot is an open-source, self-hosted chatbot and agent framework. One AstrBot instance connects to QQ, Telegram, Discord, Slack, Lark, WeChat and other platforms, with plugins, personas, a knowledge base and tool use, managed from a web dashboard. With Shannon as a provider source, its bots and agents run on the Shannon model you pick.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Run AstrBot
Start the container and open the dashboard on port 6185. The first login uses the user name
astrbotand the initial password printed in the logs; AstrBot then asks you to set your own account. The language button on the login card switches the dashboard to English.Dockerdocker run -d --name astrbot -p 6185:6185 \ -v ./data:/AstrBot/data \ soulter/astrbot:latest docker logs astrbot | grep -i "initial" -
Add Shannon as a provider source
Open Providers → Chat Completion, press Add and choose OpenAI Compatible. Set the fields below, then press Save And Fetch Models; AstrBot reads the model list from
GET /v1/models.OpenAI CompatibleID: shannon API Key: YOUR_API_KEY API Base URL: https://api.shannon-ai.com/v1
A real run on AstrBot 4.29.4: the Shannon source and its configured model.
Check that it works
Send: Name three colours a cat can be, in one short sentence.
You should see: "Cats come in black, orange, and white." under a collapsed Thought line, and a conversation title such as "Three possible cat colours".
Models that fit AstrBot
Every id below meets what AstrBot needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
shannon-3 | 196,608 | 65,536 | Yes |
shannon-3-pro | 196,608 | 65,536 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Model settings
AstrBot asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
Model context window size | 196608 | Set per model when you add it. |
Model capabilities | Text, Image, Tool use | Tick Image only for models with image input. |
Good to know
- AstrBot asks the model for a title for each new ChatUI conversation, one extra request per chat.
- Its agent sends a persona and tool definitions with each message, so requests are larger than the text you type.
- Embeddings for the knowledge base need a separate embedding provider; Shannon does not serve embeddings.
Tips
- Test in the dashboard's Chat page first: its model picker lists every model you switched on, so you can check Shannon before connecting a platform.
- When you add a model, untick Image and Audio under Model capabilities for text-only models; AstrBot then stops sending them attachments.
- Fill in Model context window size with the window from the table above; at 0 AstrBot tries to fill it from public model metadata, which may not list Shannon ids.
- Since v4.13 the API Key field can name an environment variable such as
$SHANNON_API_KEYinstead of holding the key.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Save And Fetch Models finds nothing | The API Base URL lacks /v1. | Enter https://api.shannon-ai.com/v1. |
| The model is missing from the Chat model menu | It was fetched but never added or is switched off. | Click it in the fetched list, Save, and check its switch under Configured Models. |
| Platform messages use another model | The default chat model in Config still points elsewhere. | Set it to shannon/<id> and save. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does AstrBot work with Shannon?
Yes, as an OpenAI Compatible provider source with https://api.shannon-ai.com/v1 as the API Base URL. The OpenAI Responses and Anthropic Compatible sources work with the same key.
Can my Telegram or Discord bot use Shannon through AstrBot?
Yes. Connect the platform under Platforms and set the Shannon model as the default chat model; every platform AstrBot serves then answers with it.