astrbot
БесплатноБез исполняемых скриптовНе проверенAstrBot is a self-hosted AI chatbot platform that connects one LLM assistant to messaging apps such as Discord, Slack, Telegram, LINE and Mattermost, with a…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
AstrBot — one self-hosted LLM assistant for many chat apps
Overview
AstrBot (v4.29.4 at the time of writing, license AGPL-3.0, Python 3.12+) is a server you run yourself. It holds the model connection, the conversation memory and a plugin system, and it logs in to chat platforms as a bot. Platforms with official adapters include QQ, Telegram, Slack, Discord, LINE, Feishu, DingTalk, WeCom, KOOK, Misskey and Mattermost. Model providers are OpenAI-compatible endpoints, Anthropic, Google Gemini, DeepSeek, Moonshot, Ollama and LM Studio.
An agent can do the server side: install, start, bind, set the password, change config keys, manage plugins. Adding a platform adapter, pasting a bot token and choosing the chat model happen in the web panel (WebUI, port 6185), which has no CLI or documented HTTP API for those steps. Tell the user which screens to open instead of guessing at files.
This skill is for running the ready-made platform. If the user wants custom bot logic in TypeScript or Python (their own slash commands, database, buttons), use the discord or slack-bot-builder skills and write the bot instead.
Instructions
Install with uv (single machine)
uv tool install astrbot --python 3.12
mkdir -p ~/astrbot-data && cd ~/astrbot-data
astrbot init --yes
astrbot init makes the working directory (it writes a .astrbot marker and creates data/, data/config, data/plugins, data/temp). Run every later astrbot command from this directory. astrbot --version prints the CLI version; pin a release with uv tool install astrbot==4.29.4 --python 3.12.
Start it on localhost only
The panel listens on 0.0.0.0:6185 by default, which is every interface. Bind it to loopback with the DASHBOARD_HOST environment variable (read before the config file):
cd ~/astrbot-data
DASHBOARD_HOST=127.0.0.1 astrbot run --port 6185
The same setting lives in data/cmd_config.json as dashboard.host. astrbot conf cannot set the host (its keys are timezone, log_level, dashboard.port, dashboard.username, dashboard.password, callback_api_base), so use the environment variable or edit that JSON while AstrBot is stopped. The startup log prints a warning when it listens on all interfaces: treat that line as a failure to fix.
To reach the panel from another machine, use an SSH tunnel (ssh -L 6185:127.0.0.1:6185 user@server) or a reverse proxy with TLS, not an open port.
Admin password
New installs print a random password for the user astrbot in the first startup log. Change it before any platform token is pasted in:
astrbot password # interactive, changes the panel password
astrbot password --username admin # also rename the user
Never leave a default or guessable password, and never write the password into a command in shared history; astrbot conf set dashboard.password puts it in the shell history, so prefer astrbot password. To seed a password at init time for unattended setups, export ASTRBOT_DASHBOARD_INITIAL_PASSWORD from a secret store before astrbot init. If it is lost, astrbot run --reset-password regenerates the initial password and prints it in the startup log.
Install with Docker
Run the published image, pinned to a release, with the panel published on loopback only and data on a volume:
mkdir -p ~/astrbot && cd ~/astrbot
docker run -d --name astrbot --restart unless-stopped \
-p 127.0.0.1:6185:6185 \
-v "$PWD/data:/AstrBot/data" \
-e TZ=Europe/Berlin \
soulter/astrbot:v4.29.4
docker logs astrbot 2>&1 | grep -i -E "password|dashboard"
The official compose file maps "6185:6185" (all interfaces) and also 6199 for the OneBot v11 websocket. Change the first to "127.0.0.1:6185:6185" and drop 6199 unless a OneBot or NapCat client really connects to it. The state is in ./data; back it up before upgrades. Upgrade by pulling the new tag, docker rm -f astrbot, and running the same command with the new tag.
Connect a model provider (panel)
Open http://127.0.0.1:6185, then Providers → Chat Completion → Add. For hosted models enter the base URL and key; the API Key field accepts $DEEPSEEK_API_KEY-style references, so the key can stay in the container environment (-e DEEPSEEK_API_KEY=..., introduced in v4.13.0). Click Save and Fetch Models, enable the model, then open Config, pick the profile, and set AI → Model → Chat Model.
For a local Ollama server choose Ollama (default base URL http://127.0.0.1:11434/v1). When AstrBot runs in Docker on Linux use the Docker host address (the docs use http://172.17.0.1:11434/v1); on Docker Desktop use http://host.docker.internal:11434/v1. Pull the model first with ollama pull.
Connect a platform (panel)
Platforms → Add Adapter, pick Discord or Slack, paste the token.
- Discord: create an application in the Developer Portal, reset and copy the bot token, enable Presence, Server Members and
Установить astrbot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл astrbot?
AstrBot is a self-hosted AI chatbot platform that connects one LLM assistant to messaging apps such as Discord, Slack, Telegram, LINE and Mattermost, with a web panel for providers, platforms and plugins. Use this skill to install it with uv or Docker, keep the panel on localhost, set the admin password, reset it, script settings with `astrbot conf`, manage plugins, or point it at a local Ollama model. Trigger phrases: "self-hosted chatbot for Discord and Slack", "deploy AstrBot", "AstrBot dashboard password", "run an LLM bot without writing code".
Как установить скилл astrbot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл astrbot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic