English
Get started

← All templates · AI and agents

Deploy AstrBot in one click

An AI chatbot and agent for Telegram, Discord, Slack, QQ, WeChat and more, with plugins and a web dashboard

A self-hosted alternative to OpenClaw.

What is AstrBot?

AstrBot is an open-source AI chatbot and agent platform, an OpenClaw alternative that lives in the chat apps you already use. One instance can answer on Telegram, Discord, Slack, Mattermost, QQ and personal WeChat at the same time, with the model you pick: OpenAI, Anthropic, Gemini, DeepSeek or a local one through Ollama. The agent calls tools and MCP servers, follows skills, searches a knowledge base and keeps the persona you set. Plugins from its market install from the web dashboard.

People self-host AstrBot to keep their chats and API keys on a server they control, and to run one bot across every group they look after: a personal assistant, a community's group bot, or customer service inside a team's chat. The code is AGPL-3.0. The catch: AstrBot is only as good as the model behind it, so you need a provider's API key or a local model.

Hosting AstrBot on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at AstrBot. You fill in what it asks for and click Create project: Admin password.
  3. In a minute or two AstrBot is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about AstrBot

Is AstrBot free and open source?

Yes. AstrBot is free and open source under the AGPL-3.0 license, which requires anyone who runs a modified version as a network service to offer its source to their users. Model providers bill their API use separately.

Is AstrBot an alternative to OpenClaw?

Its developers present it as one. AstrBot answers in personal and group chats on many platforms, and can also hand conversations to an agent built in Dify, Coze or DeerFlow.

How do I connect AstrBot to Telegram?

Create a bot with BotFather and copy its token. In the AstrBot dashboard open Platforms, click Add Adapter, choose telegram and paste the token as Bot Token. For group chats, disable privacy mode in BotFather with /setprivacy.

Does AstrBot support WhatsApp?

Not yet: AstrBot lists WhatsApp as coming soon. Its own adapters cover QQ, Telegram, Discord, Slack, LINE, personal WeChat, WeCom, Feishu, DingTalk and others, and community plugins add Matrix and Rocket.Chat.

What is AstrBot's default username and password?

The username is astrbot. A plain Docker install prints a random first password in its startup log; this template sets the first password to the one you give at deploy, and AstrBot then asks you to change it.

How much memory and disk does AstrBot need?

AstrBot is light: about 300 MB of memory, and its chat history and plugins take little disk. On Pethost the Starter plan is enough for it, with room for other apps beside it.

AstrBot Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: astrbot (soulter/astrbot:v4.29.0).

Volumes, in the nightly backup: data.

services:
  astrbot:
    image: soulter/astrbot:v4.29.0
    restart: unless-stopped
    environment:
      TZ: UTC
      # The dashboard's first password, instead of a random one printed in the log. AstrBot asks
      # for a new one at the first sign-in, and refuses to start on one without an upper-case
      # letter, a lower-case letter and a digit.
      ASTRBOT_DASHBOARD_INITIAL_PASSWORD: ${ADMIN_PASSWORD}
    volumes:
      - data:/AstrBot/data

volumes:
  data:

More in AI and agents