Skip to content
AstrBot

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Run AstrBot

    Start the container and open the dashboard on port 6185. The first login uses the user name astrbot and 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.

    Docker
    docker run -d --name astrbot -p 6185:6185 \
      -v ./data:/AstrBot/data \
      soulter/astrbot:latest
    docker logs astrbot | grep -i "initial"
  2. 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 Compatible
    ID:           shannon
    API Key:      YOUR_API_KEY
    API Base URL: https://api.shannon-ai.com/v1
    AstrBot Providers page with a Shannon OpenAI Compatible source, the Shannon API base URL and the shannon-coder-1 model configured
    A real run on AstrBot 4.29.4: the Shannon source and its configured model.
  3. Switch on a model

    Search the fetched list, click a model and set its capabilities and context window, then Save. It appears under Configured Models as shannon/<id>.

    AstrBot dialog adding shannon/shannon-coder-1 with Text and Tool use ticked and the context window filled in
    Adding the model: text and tool use on, image and audio off for a text-only model.
  4. Chat with it

    Open Chat in the top bar, pick the Shannon model in the model menu and send a message. For messages from connected platforms, set the same model as the default chat model under Config.

    AstrBot ChatUI on shannon/shannon-coder-1 answering that cats come in black, orange and white, with an automatic chat title
    A real chat on AstrBot 4.29.4: the answer, folded reasoning, and a title AstrBot asked the model for.

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 idContext windowMax outputImage 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.

SettingValueWhy
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

  1. 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.
  2. When you add a model, untick Image and Audio under Model capabilities for text-only models; AstrBot then stops sending them attachments.
  3. 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.
  4. Since v4.13 the API Key field can name an environment variable such as $SHANNON_API_KEY instead of holding the key.

Troubleshooting

SymptomCauseFix
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.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical