langbot-app/LangBot
GitHub: langbot-app/LangBot
LangBot 是一个生产级开源平台,用于将大语言模型快速连接并部署到各大即时通讯平台,构建具备知识库与工具调用能力的 AI 智能体。
Stars: 16421 | Forks: 1457
用于构建原生智能体 IM 机器人的生产级平台。
快速构建、调试并将 AI 机器人部署到 Slack、Discord、Telegram、微信等平台。
English / [简体中文](README_CN.md) / [繁體中文](README_TW.md) / [日本語](README_JP.md) / [Español](README_ES.md) / [Français](README_FR.md) / [한국어](README_KO.md) / [Русский](README_RU.md) / [Tiếng Việt](README_VI.md)
[](https://discord.gg/wdNEHETs87)
[](https://deepwiki.com/langbot-app/LangBot)
[](https://github.com/langbot-app/LangBot/releases/latest)

[](https://github.com/langbot-app/LangBot/stargazers)
官网 |
功能 |
文档 |
API |
云端 |
插件市场 |
路线图
## 什么是 LangBot?
LangBot 是一个**开源、生产级的平台**,用于构建 AI 驱动的即时通讯机器人。它将大型语言模型 (LLM) 连接到任何聊天平台,使您能够创建可以进行对话、执行任务并与现有工作流集成的智能体。
### 核心功能
- **AI 对话与智能体** — 多轮对话、工具调用、多模态支持、流式输出。内置 RAG(知识库),并与 [Dify](https://dify.ai)、[Coze](https://coze.com)、[n8n](https://n8n.io)、[Langflow](https://langflow.org)、[Deerflow](https://deerflow.tech)、[Weknora](https://weknora.weixin.qq.com) 深度集成。
- **通用 IM 平台支持** — 一套代码支持 Discord、Telegram、Slack、LINE、QQ、微信、企业微信、Lark、钉钉、KOOK。
- **生产就绪** — 访问控制、速率限制、敏感词过滤、全面的监控和异常处理。值得企业信赖。
- **插件生态系统** — 数百个插件、事件驱动架构、组件扩展以及 [MCP 协议](https://modelcontextprotocol.io/)支持。
- **Web 管理面板** — 通过直观的浏览器界面配置、管理和监控您的机器人。无需编辑 YAML。
- **多 Pipeline 架构** — 针对不同场景提供不同机器人,具备全面的监控和异常处理能力。
[→ 了解所有功能的更多信息](https://link.langbot.app/en/docs/features)
📍 实用指南:[5分钟部署多平台 AI 机器人](https://blog.langbot.app/en/blog/deploy-ai-bot-in-5-minutes/)、[将 DeepSeek 连接到微信、Discord 和 Telegram](https://blog.langbot.app/en/blog/connect-deepseek-to-wechat/)、[在 Discord、Telegram 和 Slack 中运行 Dify 智能体](https://blog.langbot.app/en/blog/dify-agent-discord-telegram-slack/),以及[构建由 n8n 驱动的聊天机器人](https://blog.langbot.app/en/blog/n8n-multi-platform-ai-chatbot/)。
## 快速开始
### ☁️ LangBot Cloud(推荐)
**[LangBot Cloud](https://space.langbot.app/cloud)** — 零部署,开箱即用。
### 一行命令启动
```
uvx langbot
```
### Docker Compose
```
git clone https://github.com/langbot-app/LangBot
cd LangBot/docker
docker compose --profile all up -d
```
### 一键云端部署
[](https://zeabur.com/en-US/templates/ZKTBDH)
[](https://railway.app/template/yRrAyL?referralCode=vogKPF)
**更多选项:** [Docker](https://link.langbot.app/en/docs/docker) · [手动部署](https://link.langbot.app/en/docs/manual-deploy) · [宝塔面板](https://link.langbot.app/en/docs/bt-panel) · [Kubernetes](https://docs.langbot.app/en/deploy/langbot/kubernetes)
## 支持的即时通讯平台
| 平台 | 状态 | 备注 |
|----------|--------|-------|
| Discord | ✅ | 官方 |
| Telegram | ✅ | 官方 |
| Slack | ✅ | 官方 |
| LINE | ✅ | 官方 |
| QQ | ✅ | 个人与官方 API(频道、私信、群组) |
| 企业微信 | ✅ | 企业微信、对外客服、AI 机器人 |
| 微信 | ✅ | 个人与公众号 |
| Lark | ✅ | 官方 |
| 钉钉 | ✅ | 官方 |
| KOOK | ✅ | 官方 |
| Satori | ✅ | |
| 邮件 | ✅ | Matrix, Satori |
| Matrix | ✅ | 支持多种桥接平台,例如 Signal、WhatsApp、Messenger、iMessage、Mattermost、Google Chat、IRC、XMPP、Zulip 等 |
## 支持的 LLM 与集成
| 提供商 | 类型 | 状态 |
| ----------------------------------------------------------------------------------------------------------------- | ------------ | ------ |
| [OpenAI](https://platform.openai.com/) | LLM | ✅ |
| [Anthropic](https://www.anthropic.com/) | LLM | ✅ |
| [DeepSeek](https://www.deepseek.com/) | LLM | ✅ |
| [Google Gemini](https://aistudio.google.com/prompts/new_chat) | LLM | ✅ |
| [xAI](https://x.ai/) | LLM | ✅ |
| [Moonshot](https://www.moonshot.cn/) | LLM | ✅ |
| [Zhipu AI](https://open.bigmodel.cn/) | LLM | ✅ |
| [Ollama](https://ollama.com/) | Local LLM | ✅ |
| [LM Studio](https://lmstudio.ai/) | Local LLM | ✅ |
| [Dify](https://dify.ai) | LLMOps | ✅ |
| [MCP](https://modelcontextprotocol.io/) | Protocol | ✅ |
| [SiliconFlow](https://siliconflow.cn/) | Gateway | ✅ |
| [Aliyun Bailian](https://bailian.console.aliyun.com/) | Gateway | ✅ |
| [Volc Engine Ark](https://console.volcengine.com/ark/region:ark+cn-beijing/model?vendor=Bytedance&view=LIST_VIEW) | Gateway | ✅ |
| [ModelScope](https://modelscope.cn/docs/model-service/API-Inference/intro) | Gateway | ✅ |
| [GiteeAI](https://ai.gitee.com/) | Gateway | ✅ |
| [CompShare](https://www.compshare.cn/?ytag=GPU_YY-gh_langbot) | GPU Platform | ✅ |
| [PPIO](https://ppinfra.com/user/register?invited_by=QJKFYD&utm_source=github_langbot) | GPU Platform | ✅ |
| [ShengSuanYun](https://www.shengsuanyun.com/?from=CH_KYIPP758) | GPU Platform | ✅ |
| [接口 AI](https://jiekou.ai/) | Gateway | ✅ |
| [302.AI](https://share.302.ai/SuTG99) | Gateway | ✅ |
| [Qiniu](https://www.qiniu.com/ai/agent) | Gateway | ✅ |
[→ 查看所有集成](https://link.langbot.app/en/docs/features)
## 为什么选择 LangBot?
| 使用场景 | LangBot 如何提供帮助 |
| --------------------------- | ------------------------------------------------------------------------------------------ |
| **客户支持** | 将 AI 智能体部署到 Slack/Discord/Telegram,使用您的知识库回答问题 |
| **内部工具** | 将 n8n/Dify 工作流连接到企业微信/钉钉,实现业务流程自动化 |
| **社区管理** | 通过 AI 驱动的内容过滤和互动来管理 QQ/Discord 群组 |
| **多平台覆盖** | 一个机器人,全平台通用。从单一仪表盘进行管理 |
## 为 AI 智能体而生 🤖
LangBot **原生契合智能体设计** — 您的编码智能体(Claude Code、Codex、Copilot、Cursor 等)可以在一流的支持下操作、扩展和部署 LangBot:
- **MCP Server** — LangBot 在 `/mcp` 暴露了一个内置的 [Model Context Protocol](https://modelcontextprotocol.io/) endpoint,映射了 HTTP API,使得智能体能够以编程方式管理机器人、Pipeline、插件和模型。使用相同的 API key 进行身份验证(在 `config.yaml` 中设置全局 key 或使用用户专属 key)— 无需登录流程。在 Web 面板的 **API & MCP** 标签页中进行配置。
- **内置 Skills** — [`skills/`](skills/) 目录是使用 LangBot 的**唯一事实来源**:插件开发、核心开发、端到端测试、部署以及运行 LangBot / LangBot Space MCP 服务器。将您的智能体指向此目录,它就会知道如何进行构建。
- **AGENTS.md** — 每个代码仓库都提供了一个 [`AGENTS.md`](AGENTS.md)(软链接到 `CLAUDE.md`),描述了架构、约定以及 API 变更必须保持 MCP 服务器和 skills 同步的规则。
- **`llms.txt`** — 网站上发布了供 LLM 使用的、机器可读的项目上下文。
## 在线演示
**立即体验:** https://demo.langbot.dev/
- 邮箱:`demo@langbot.app`
- 密码:`langbot123456`
_注意:公开的演示环境。请勿输入敏感信息。_
## 贡献者
感谢所有让 LangBot 变得更好的[贡献者](https://github.com/langbot-app/LangBot/graphs/contributors):
标签:Agent平台, AI机器人, LLM集成, Python, 即时通讯, 子域名突变, 无后门, 请求拦截, 逆向工具