AstrBotDevs/AstrBot

GitHub: AstrBotDevs/AstrBot

一款开源的多平台即时通讯 AI Agent 基础设施,支持十余种 IM 平台接入、插件扩展和沙箱安全执行。

Stars: 18547 | Forks: 1394

![AstrBot-Logo-Simplified](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/098a13ce46170455.svg)
简体中文繁體中文日本語FrançaisРусский
Soulter%2FAstrBot | Trendshift Featured|HelloGitHub

python zread Docker pull

文档博客路线图问题追踪 邮件支持
AstrBot 是一个开源的一体化 Agent 聊天机器人平台,集成了主流即时通讯应用。它为个人、开发者和团队提供可靠且可扩展的对话式 AI 基础设施。无论您是构建个人 AI 伴侣、智能客服、自动化助手,还是企业知识库,AstrBot 都能让您在 IM 平台工作流中快速构建生产级 AI 应用。 ![screenshot_1 5x_postspark_2026-02-27_22-37-45](https://github.com/user-attachments/assets/f17cdb90-52d7-4773-be2e-ff64b566af6b) ## 主要特性 1. 💯 免费开源。 2. ✨ AI LLM 对话、多模态、Agent、MCP、技能、知识库、人格设定、自动上下文压缩。 3. 🤖 支持对接 Dify、阿里云百炼、Coze 等 Agent 平台。 4. 🌐 多平台:QQ、企业微信、飞书、钉钉、微信公众号、Telegram、Slack 以及[更多](#supported-messaging-platforms)。 5. 📦 插件扩展,提供 1000+ 插件,支持一键安装。 6. 🛡️ [Agent 沙箱](https://docs.astrbot.app/use/astrbot-agent-sandbox.html),用于隔离、安全地执行代码、Shell 调用以及会话级资源复用。 7. 💻 支持 WebUI。 8. 🌈 支持 Web ChatUI,内置 Agent 沙箱和网页搜索。 9. 🌐 国际化 (i18n) 支持。
💙 Role-playing & Emotional Companionship ✨ Proactive Agent 🚀 General Agentic Capabilities 🧩 1000+ Community Plugins

99b587c5d35eea09d84f33e6cf6cfd4f

c449acd838c41d0915cc08a3824025b1

image

image

## 快速开始 ### 一键部署 对于想要快速体验 AstrBot 的用户,我们推荐使用 `uv` 进行一键部署 ⚡️: ``` uv tool install astrbot astrbot init # Only execute this command for the first time to initialize the environment astrbot ``` ### Docker 部署 对于希望获得更稳定、生产级部署的用户,我们推荐使用 Docker / Docker Compose 部署 AstrBot。 请参阅官方文档:[使用 Docker 部署 AstrBot](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot)。 ### 在 RainYun 上部署 对于想要一键部署 AstrBot 且不想管理服务器的用户,我们推荐使用 RainYun 的一键云部署服务 ☁️: [![Deploy on RainYun](https://rainyun-apps.cn-nb1.rains3.com/materials/deploy-on-rainyun-en.svg)](https://app.rainyun.com/apps/rca/store/5994?ref=NjU1ODg0) ### 桌面应用 (Tauri) 对于想要在桌面部署 AstrBot,主要使用 AstrBot ChatUI,很少使用 AstrBot 插件的用户,我们推荐使用 AstrBot App: 桌面版仓库:[AstrBot-desktop](https://github.com/AstrBotDevs/AstrBot-desktop)。 支持多种系统架构,直接安装包,开箱即用。为初学者提供便捷的一键式桌面部署选项。 ### 一键启动器部署 (AstrBot Launcher) 对于想要快速部署以及具有环境隔离的多实例解决方案的用户,我们推荐使用 AstrBot Launcher: 访问 [AstrBot Launcher](https://github.com/Raven95676/astrbot-launcher) 仓库,并从最新 Release 中下载适用于您操作系统的安装包。 具有环境隔离的快速部署和多实例解决方案。 ### 在 Replit 上部署 社区贡献的部署方式。 [![Run on Repl.it](https://repl.it/badge/github/AstrBotDevs/AstrBot)](https://repl.it/github/AstrBotDevs/AstrBot) ### AUR ``` yay -S astrbot-git ``` **更多部署方式**:[宝塔面板部署](https://astrbot.app/deploy/astrbot/btpanel.html) | [1Panel 部署](https://astrbot.app/deploy/astrbot/1panel.html) | [CasaOS 部署](https://astrbot.app/deploy/astrbot/casaos.html) | [手动部署](https://astrbot.app/deploy/astrbot/cli.html) ## 支持的消息平台 将 AstrBot 连接到您喜爱的聊天平台。 | 平台 | 维护者 | |---------|---------------| | QQ | 官方 | | OneBot v11 协议实现 | 官方 | | Telegram | 官方 | | 企业微信 & 企业微信 AI 机器人 | 官方 | | 微信公众号 | 官方 | | 飞书 (Lark) | 官方 | | 钉钉 | 官方 | | Slack | 官方 | | Discord | 官方 | | LINE | 官方 | | Satori | 官方 | | Misskey | 官方 | | WhatsApp (即将支持) | 官方 | | [Matrix](https://github.com/stevessr/astrbot_plugin_matrix_adapter) | 社区 | | [KOOK](https://github.com/wuyan1003/astrbot_plugin_kook_adapter) | 社区 | | [VoceChat](https://github.com/HikariFroya/astrbot_plugin_vocechat) | 社区 | ## 支持的模型服务 | 服务 | 类型 | |---------|---------------| | OpenAI 及兼容服务 | LLM 服务 | | Anthropic | LLM 服务 | | Google Gemini | LLM 服务 | | Moonshot AI | LLM 服务 | | 智谱 AI | LLM 服务 | | DeepSeek | LLM 服务 | | Ollama (自托管) | LLM 服务 | | LM Studio (自托管) | LLM 服务 | | [AIHubMix](https://aihubmix.com/?aff=4bfH) | LLM 服务 (API 网关,支持所有模型) | | [CompShare](https://www.compshare.cn/?ytag=GPU_YY-gh_astrbot&referral_code=FV7DcGowN4hB5UuXKgpE74) | LLM 服务 | | [302.AI](https://share.302.ai/rr1M3l) | LLM 服务 | | [TokenPony](https://www.tokenpony.cn/3YPyf) | LLM 服务 | | [SiliconFlow](https://docs.siliconflow.cn/cn/usercases/use-siliconcloud-in-astrbot) | LLM 服务 | | [PPIO 云](https://ppio.com/user/register?invited_by=AIOONE) | LLM 服务 | | ModelScope | LLM 服务 | | OneAPI | LLM 服务 | | Dify | LLMOps 平台 | | 阿里云百炼应用 | LLMOps 平台 | | Coze | LLMOps 平台 | | OpenAI Whisper | 语音转文字服务 | | SenseVoice | 语音转文字服务 | | OpenAI TTS | 文字转语音服务 | | Gemini TTS | 文字转语音服务 | | GPT-Sovits-Inference | 文字转语音服务 | | GPT-Sovits | 文字转语音服务 | | FishAudio | 文字转语音服务 | | Edge TTS | 文字转语音服务 | | 阿里云百炼 TTS | 文字转语音服务 | | Azure TTS | 文字转语音服务 | | Minimax TTS | 文字转语音服务 | | 火山引擎 TTS | 文字转语音服务 | ### 开发环境 AstrBot 使用 `ruff` 进行代码格式化和检查。 ``` git clone https://github.com/AstrBotDevs/AstrBot pip install pre-commit pre-commit install ```
标签:AI代理, API接入, AstrBot, DNS解析, IM机器人, LLM集成, OpenClaw替代, Python, QQ机器人, Telegram机器人, 多平台即时通讯, 开源项目, 异步编程, 微信机器人, 无后门, 智能客服, 消息转发, 聊天机器人框架, 自动回复, 请求拦截, 调试插件, 跨平台集成, 逆向工具