Skip to content

What Is AstrBot? An Open-Source Platform for Telegram, Discord and Slack Bots, Docker Setup, Knowledge Base and Plugin Risk

You install AstrBot on your own server or computer, create a bot on Telegram, Discord or Slack and connect it, and choose which AI model the bot talks to. Optionally you upload menu, FAQ or guide documents; when a customer chats with the bot, the bot builds its reply from the passages it finds in those documents. The web panel is where you manage bots, models, knowledge bases and plugins.

What it does
Answers with a bot on a messaging app
Platforms
Telegram, Discord, Slack, LINE, QQ, WeCom and more
Setup
Docker, uv, a desktop app or from source
WhatsApp
"Coming soon" in the README; no configuration
License
AGPL-3.0
Is it free?
The software is free; server and model API costs are yours

What does AstrBot do?

The problem it solves: customers or your community write on Telegram, Discord or Slack and keep asking the same questions (opening hours, menu, sign-up terms), and you answer them by hand every time. AstrBot puts your own bot on those channels; the bot talks to the AI model you chose and can answer from documents you uploaded. Because you run the installation, conversations and settings stay on your own server.

Who it's for: a café or hotel that wants to answer menu and opening-hours questions on a Telegram or Discord channel, course and community managers, and the agencies and developers who set up bots for their clients. Who it's not for: a business whose customer line is WhatsApp; WhatsApp is listed as "coming soon" in AstrBot's official list and has no configuration.

How it differs from Botpress, Typebot and Chatwoot on the same shelf of the atlas: AstrBot is an open-source framework you install on your own server, and the official platform list includes Chinese platforms such as QQ, WeCom, Feishu and DingTalk; Telegram, Discord, Slack and LINE are also in the list.

The Botpress guide on the same shelf.

The Typebot guide on the same shelf.

The Chatwoot guide on the same shelf.

How does AstrBot work? Platform, model, knowledge base and tools

A message arrivesFrom a platform you connected, such as Telegram, Discord or Slack
AstrBotProfile: model, knowledge base, persona, tools
Model and toolsThe provider you chose; MCP, skills, web search
The reply is sentTo the same chat, in the format the platform supports
In group chats the bot does not answer every message; mention it with @ or use the wake prefix (default /).
Platform adapter

In the panel you pick a platform with Platforms › Add Adapter and enter the bot token; the bot uses the platform's official bot interface. A default configuration profile is chosen for each bot.

Model provider

You add a provider under Providers and enter its key, then pick it as the chat model in a profile under Config. The model is subject to the provider's terms for cost and privacy.

Knowledge base

Uploaded documents are split into chunks and indexed with an embedding model; when a question arrives the relevant chunks are found and passed to the chat model. The document does not train the model and the answer can still be wrong.

Tools

MCP servers (Streamable HTTP, SSE or stdio locally), skill packages, web search and plugins. Using tools requires the chat model and its API to support tool calling.

Plugins run in AstrBot's Python environment and every plugin in the marketplace is third-party; the maker does not audit them. A stdio MCP server also starts a local process in AstrBot's environment. Install only from sources you trust.

Source: AstrBot docs (Messaging Platforms, Providers, Knowledge Base, Plugins, MCP) and the EULA, November 23, 2026.

What do you type, and what do you get? Ready-made examples

The examples are derived from the AstrBot docs on the knowledge base, proactive capabilities and commands; the output is described only as far as the docs describe it. Replies depend on the model you choose.

  1. Add an embedding model: On the Providers › Embedding tab pick a provider with Add; enter the endpoint, key, model name and vector dimensions. A chat-only model cannot serve as an embedding model.
  2. Create a knowledge base: Knowledge Base › Create Knowledge Base, give it a name and pick the embedding model. The choice is locked afterwards; changing the model means a new knowledge base and re-uploading.
  3. Upload the document: Documents › Upload Document. Formats are .txt, .md, .markdown, .rst, .adoc, .pdf, .docx, .epub, .xls, .xlsx; the upload interface lists a maximum of 128 MB per file. A scanned, image-only PDF is not processed with OCR automatically.
  4. Test retrieval first, then connect to chat: On the Retrieval tab ask a question and look at the passages that come back. Then select it in the Config › AI › Capabilities › Knowledge Base list and press Save Configuration; a knowledge base is not enabled for every bot automatically.
1. A customer question (the café's menu and hours document is uploaded)"How late are you open on Saturday, and do you have a vegan dessert?"What you get: the customer writes this in the Telegram chat that has your bot. If the knowledge base is selected in that profile, AstrBot finds the relevant passages and passes them to the chat model, and the bot bases its reply on them. Add an instruction asking it to say so when the document has no answer; the reply can still be wrong, so keep menus and hours current.
2. A scheduled message (proactive capability, experimental)"Every day at 9 AM Europe/Istanbul time, send the titles, brief summaries and source links of three technology news items to this group."What you get: you write this in the private or group chat that should receive the message; the model creates a schedule with the future_task tool. Do not rely on an "OK, scheduled" reply: check the instruction, the run time and the target on the Extensions › Future Tasks page. News also needs Web Search configured; AstrBot must keep running, and the docs describe this as a scheduled task, not continuous monitoring.
3. Find out the chat ID (for admin setup)› /sid

/sid returns the ID of that chat and of the sender. To use admin commands (for example /provider, /plugin) you add your ID to the Config › Access Control › Administrators › Administrator IDs list and press Save Configuration. /reset clears the conversation context and /new starts a new conversation.

How do you install AstrBot? Steps by option

The docs suggest three routes: Docker for production and servers, uv for a quick trial, the desktop app on a personal computer. On first start the panel user name is usually astrbot and the password is generated randomly and printed in the startup log; there is no fixed default password.

The command from the official docs› mkdir astrbot cd astrbot sudo docker run -itd -p 6185:6185 -p 6199:6199 -v $PWD/data:/AstrBot/data -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --name astrbot soulter/astrbot:latest
Check the log (the password is printed here)› sudo docker logs -f astrbot

Open one of the addresses under the Dashboard started, accessible at line in the log in a browser. According to the docs, because Docker isolates the network you cannot use localhost; on a cloud server you need to open ports 6180-6200 and 11451. Your data is in the data folder.

The command uses the latest tag. To pin the version you can write a tag from Docker Hub such as v4.29.4. If you prefer Docker Compose, clone the repository and run docker compose up -d.

  1. Sign in and change the password: The user name is usually astrbot and the password is in the startup log. Change it after the first sign-in. If you forget it, in Docker run sudo docker exec -it astrbot astrbot password and restart the container.
  2. Add a model provider: Providers › Chat Completion › Add; pick the provider (OpenAI Compatible for another OpenAI-compatible service), enter the name, API Key and API Base URL, press Save and Fetch Models and enable the model with the + beside it.
  3. Pick the chat model in the profile: Under Config › the profile in use › AI › Model, select the Chat Model and press Save Configuration.
  4. Connect a platform (Telegram example): On Telegram send /newbot to BotFather and keep the token it returns. In the panel go to Platforms › Add Adapter › telegram, tick Enable and enter the token in the Bot Token field. If you will use it in a group, set Privacy mode to Disable with /setprivacy in BotFather.

If you expose the panel port to the internet, turn on two-factor authentication (TOTP) under System Settings then Security and keep the recovery codes; according to the docs, if you lose the recovery codes you have to edit the configuration file by hand.

Which platforms does it connect to? Is there WhatsApp?

TelegramYesText, images, voice, video, files; proactive messages supported. Your network must be able to reach Telegram; set an HTTP proxy in the panel if needed.
DiscordYesYou create an application and bot in the developer portal and take the token; you turn on the Presence, Server Members and Message Content intents.
SlackYesWebhook or Socket method; if you have no public server the docs recommend Socket.
LINE, Mattermost, KOOK, Misskey, SatoriYesListed in the README as maintained by the developers.
QQ, WeCom, WeChat Official Accounts, Feishu (Lark), DingTalkYesListed in the README as maintained by the developers; much of the documentation is for these platforms.
Matrix, Rocket.Chat, VoceChatPartlyThrough a community plugin; not maintained by the developers.
WhatsAppNoListed as "Coming Soon" in the README; the docs have no configuration page.

When you delete a bot, the panel lets you choose which associated data is deleted too: custom rules, preferences and future tasks are selected by default; AI conversations, message history and usage statistics are kept by default. Selected data is deleted permanently.

In addition to the platform list, AstrBot can also connect external agent platforms such as Dify, Alibaba Cloud Bailian, Coze and DeerFlow as an "agent runner"; the configuration is described in the docs under Providers › Agent Runner.

The Dify guide.

Which model providers does it work with?

AstrBot is not a model but a framework that connects a model to your bot. According to the docs it supports the native API formats of OpenAI, Google GenAI and Anthropic; you can connect any provider that follows one of those three formats.

TypeExample providers (README and docs)Note
Cloud chat modelsOpenAI, Anthropic, Google Gemini, DeepSeek, Moonshot, Zhipu, OpenRouterAn API key is needed; the provider charges you
Local modelsOllama, LM StudioThe address must be reachable from where AstrBot runs; in Docker, localhost is the container itself
External agent platformsDify, Alibaba Cloud Bailian, CozeConfiguration is done in that service
Embedding and speechOpenAI, Gemini, Ollama; Whisper, Edge TTS, Azure TTSAn embedding model is required for the knowledge base

For Claude, enter an Anthropic API key. Anthropic's compliance page says it does not permit offering Claude.ai login inside third-party applications.

Checked: November 23, 2026. The provider list is from the README and changes often; no model names are given.

Is AstrBot free? What does it really cost?

The software is free and AGPL-3.0 licensed. The EULA says the maker offers no paid service through this project; there is no plan or pricing page. The README recommends a third-party host (RainYun) as a paid one-click cloud deployment; the price of that service belongs to the host.

Model API cost

On every reply the bot calls the provider you chose; you are charged at the provider's price. A local model (such as Ollama) removes the API charge, and the hardware cost stays with you.

Server

For the bot to answer around the clock AstrBot must keep running; the server, backups and updates are yours. The official docs state no server size or amount.

Search and embedding services

Web search needs a separate search provider and key, and the knowledge base needs a separate embedding model; their costs are on their own services.

There is no fee to the maker for the software itself. If someone charges you for installing or hosting AstrBot, that is the price of a third-party service (like RainYun in the README); check who offers the service and what the charge is for.

Turkish and use from Turkey

Turkish panelNoThe panel translation folders in the repository are English, Japanese, Russian and Chinese; Turkish is not among them. The bot's system language setting is also only Chinese and English.
Replies in TurkishUnclearThe support of the model you pick decides the reply language; the docs make no separate Turkish claim. Check spelling and characters in the first test.
Telegram, Discord, SlackYesIn the official platform list. The official sources state no restriction or recommendation specific to Turkey; the server needs network access to the platform (the Telegram docs say this explicitly).
WhatsAppNoListed as "coming soon"; if your customer line in Turkey is WhatsApp, AstrBot is not a solution for now.
PaymentYesThere is no payment for AstrBot itself; you only pay the model provider and the server under their terms.

Where is my data? Bot tokens, plugins and panel security

It stays on your server

The configuration is in the data/cmd_config.json file (including provider and platform settings); traces are kept for 7 days in data/logs/traces.db; workspaces and skills are under data. The docs do not say how bot tokens and API keys are stored; back the file up and do not share it. You can also load keys from environment variables.

What goes to the model and services

Users' messages and the passages found in the knowledge base go to the chat model. If you use a remote embedding service, document text and search queries are sent to that service.

Anonymous statistics

The EULA says limited anonymous usage statistics may be collected and that conversation content and personally identifying information are not collected. It is turned off with the ASTRBOT_DISABLE_METRICS=1 environment variable.

Plugins and MCP

Every plugin in the marketplace is third-party; the maker does not audit them and being in the marketplace is no guarantee of stability or security. Plugin code runs in AstrBot's Python environment; the agent isolation settings do not isolate arbitrary plugin code.

Panel access

The first password is random; TOTP two-factor authentication, HTTPS and a login rate limit for the panel are under System Settings then Security. For remote access dashboard.host is set in the configuration.

Computer use (Agent Computer Use)

In the local runtime, code execution and network are off by default for members and file access is limited to the workspace; for administrators code execution is on and reaches the whole environment. In Docker the "local environment" is inside the container. To open it to everyone an isolated third-party sandbox is chosen.

Do not share bot credentials (Telegram token, API key) with anyone; if a token leaks, revoke it on the platform's developer page and generate a new one.

Commercial use and license (AGPL-3.0)

Allowed
  • Under AGPL-3.0 you can use, modify and distribute the software; the EULA grants it as a free, open-source license
  • You can run the bot on your own business's channel
  • The maker offers no paid service; there is no license fee for the software
Not allowed
  • AGPL-3.0 section 13: if you offer a version you modified to others over a network (commercial or not), you must give its users the source code of that version; there is no such duty when you use it unmodified
  • According to the EULA, entering illegal or harmful content, or content that violates the privacy of others, is not allowed; turning off the built-in safety mode is not recommended and responsibility is the user's
  • The risk, loss and legal consequences of third-party plugins and services are the user's

Source: the AstrBot docs (Notice section), the LICENSE and the EULA (last updated January 12, 2026), November 23, 2026. For details the docs give community@astrbot.app. This section is not legal advice.

Common problems and fixes

What happensWhat to do
The bot does not reply in a groupIn groups the bot does not answer every message; mention it with @ or use the wake prefix such as /hello. On Telegram, set Privacy mode to Disable in BotFather for groups.
An admin command does not workFind your ID with /sid; add it to the Config › Access Control › Administrators › Administrator IDs list and press Save Configuration.
I forgot the panel passwordIn Docker run sudo docker exec -it astrbot astrbot password, then restart the container; for a uv install run astrbot password in the working directory.
After an upgrade I cannot sign in with the right passwordOld panel files may be incompatible with the newer backend: stop AstrBot, delete the data/dist folder, restart and hard-refresh the browser with Ctrl+Shift+R.
The proxy does not work in DockerAstrBot reaches the proxy address from inside its own container; 127.0.0.1 is the container itself. Use host.docker.internal on Docker Desktop and the docker0 gateway (for example 172.17.0.1) on Linux; the setting is under System Settings then Network.
"No module named" error after installing a pluginThe plugin's dependency may not have installed. Install the package by hand with Data & Logs › Logs › Install pip Package; check the requirements in the plugin's docs.
The model returns "empty content"Check that the key is valid, the API limit and quota, and the network connection; reset the settings; switch to another model or provider.

Removing it and deleting data

  1. Delete a bot: Press the delete button in the Platforms list and in the confirmation dialog choose which associated data is removed: custom rules and future tasks are selected by default, conversations and message history are kept.
  2. Revoke the bot token: Deleting from AstrBot does not revoke the token on the platform; revoke it in BotFather or the platform's developer page.
  3. Updating: For a uv install, uv tool upgrade astrbot --python 3.12; the desktop app tells you about an update and you confirm it.
  4. Removing from your server: The docs do not describe removal steps. The data is in the data folder; back it up before deleting it and revoke the bot tokens.

Frequently asked questions

What is AstrBot?

An open-source agent chatbot platform you install on your own server that connects to messaging apps. It runs a bot on platforms such as Telegram, Discord and Slack, talks to the AI model you choose and can answer from documents you upload.

How do I install AstrBot with Docker?

You run the docker run command from the docs: ports 6185 and 6199 and the data folder are mapped. You open one of the addresses in the log to reach the panel; the first password is printed in the log. In Docker you cannot use localhost.

Is AstrBot free?

The software is free and AGPL-3.0 licensed; the maker offers no paid service. You pay the model API cost to the provider and the server cost to the host; the README recommends third-party RainYun as a paid one-click deployment, and that price belongs to the host.

Does AstrBot connect to WhatsApp?

Not for now: the platform list in the README shows WhatsApp as "Coming Soon" and the docs have no configuration page. Platforms such as Telegram, Discord, Slack and LINE are available.

Are AstrBot plugins safe?

Every plugin in the marketplace is third-party; the maker does not audit them and being in the marketplace is no security guarantee. Plugins run in AstrBot's Python environment, so install only from sources you trust.

Can I use AstrBot commercially?

AGPL-3.0 allows use, modification and distribution. Section 13 of the license requires you to offer the source code of a version you modified to its users if you provide it over a network; it makes no commercial distinction and there is no such duty when you use it unmodified. The introduction note in the docs simplifies this to "commercial network services". For details, read the license text.

Related guides

Sources

Not clear in the official sources: Whether bot tokens and API keys are stored encrypted in the data folder · Quality of Turkish replies (depends on the model; the docs make no Turkish claim) · When WhatsApp will open · The security status of marketplace plugins (the maker does not audit them) · The required server size (the docs do not state it)

You can do it yourself; if you’d like support

The guide is free and needs no sign-up; you can follow the steps here yourself. If you’d like professional support at some point, choose the option that fits your needs. This doesn’t affect the rankings in the guide.