Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 166deaa

Browse files
authored
Merge pull request #165 from zouyonghe/docs/deerflow-agent-runner
docs: add DeerFlow agent runner documentation
2 parents d7c059a + 07c27df commit 166deaa

File tree

10 files changed

+129
-17
lines changed

10 files changed

+129
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ venv/
33
.DS_Store
44
node_modules/
55
.vitepress/cache
6-
*dist
6+
*dist

.vitepress/config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export default defineConfig({
153153
{ text: "Dify", link: "/agent-runners/dify" },
154154
{ text: "扣子 Coze", link: "/agent-runners/coze" },
155155
{ text: "阿里云百炼应用", link: "/agent-runners/dashscope" },
156+
{ text: "DeerFlow", link: "/agent-runners/deerflow" },
156157
]
157158
},
158159
],
@@ -393,6 +394,7 @@ export default defineConfig({
393394
{ text: "Dify", link: "/agent-runners/dify" },
394395
{ text: "Coze", link: "/agent-runners/coze" },
395396
{ text: "Alibaba Bailian", link: "/agent-runners/dashscope" },
397+
{ text: "DeerFlow", link: "/agent-runners/deerflow" },
396398
],
397399
},
398400
],

en/providers/agent-runners.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
An Agent Runner is the component in AstrBot that executes Agent capabilities and handles AI-related workflows.
66

7-
AstrBot includes a powerful built-in Agent Runner. You can also integrate third-party Agent Runner services like Dify, Coze, and Alibaba Bailian, or build your own.
7+
AstrBot includes a powerful built-in Agent Runner. You can also integrate third-party Agent Runner services like Dify, Coze, Alibaba Bailian, and DeerFlow, or build your own.
88

99
If you already have a model provider that handles single requests, you still need an execution layer for multi-turn conversations, tool calling, and orchestration. That is exactly what an Agent Runner does.
1010

@@ -16,3 +16,4 @@ For more details, see [Usage · Agent Runner](/en/use/agent-runner).
1616
- [Dify](/en/providers/agent-runners/dify)
1717
- [Coze](/en/providers/agent-runners/coze)
1818
- [Alibaba Bailian](/en/providers/agent-runners/dashscope)
19+
- [DeerFlow](/en/providers/agent-runners/deerflow)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Connect to DeerFlow
2+
3+
Starting from v4.19.2, AstrBot supports connecting to the [DeerFlow](https://github.com/bytedance/deer-flow) Agent Runner.
4+
5+
## Preparation: Deploy DeerFlow
6+
7+
If you have not deployed DeerFlow yet, please complete installation and startup by following the official DeerFlow documentation:
8+
9+
- [DeerFlow GitHub Repository](https://github.com/bytedance/deer-flow)
10+
- [DeerFlow Official Website](https://deerflow.tech/)
11+
- [DeerFlow Configuration Guide](https://github.com/bytedance/deer-flow/blob/main/backend/docs/CONFIGURATION.md)
12+
13+
Make sure DeerFlow is running properly and that AstrBot can reach the DeerFlow gateway. By default, the DeerFlow gateway address is `http://127.0.0.1:2026`.
14+
15+
> [!TIP]
16+
> - `API Base URL` must start with `http://` or `https://`.
17+
> - If AstrBot and DeerFlow run in different containers or on different hosts, replace `127.0.0.1` with the actual reachable LAN address, hostname, or domain of your DeerFlow service.
18+
19+
## Configure DeerFlow in AstrBot
20+
21+
In the WebUI, click "Model Provider" -> "Add Provider", select "Agent Runner", select "DeerFlow", and enter the DeerFlow configuration page.
22+
23+
Fill in the following fields:
24+
25+
- `API Base URL`: DeerFlow API gateway URL. Default: `http://127.0.0.1:2026`
26+
- `DeerFlow API Key`: Optional. Fill this if your DeerFlow gateway is protected by Bearer auth
27+
- `Authorization Header`: Optional. Custom Authorization header value. This takes precedence over `DeerFlow API Key`
28+
- `Assistant ID`: Maps to LangGraph `assistant_id`. Default: `lead_agent`
29+
- `Model name override`: Optional. Overrides the default model configured in DeerFlow
30+
- `Enable thinking mode`: Whether to enable DeerFlow thinking mode
31+
- `Enable plan mode`: Maps to DeerFlow `is_plan_mode`
32+
- `Enable subagent`: Maps to DeerFlow `subagent_enabled`
33+
- `Max concurrent subagents`: Maps to `max_concurrent_subagents`. Effective only when subagents are enabled. Default: `3`
34+
- `Recursion limit`: Maps to LangGraph `recursion_limit`. Default: `1000`
35+
36+
After filling in the configuration, click Save.
37+
38+
> [!TIP]
39+
> - If DeerFlow already has a default model configured on its side, you can leave `Model name override` empty.
40+
> - Only enable `plan mode` or `subagent` related options when the corresponding DeerFlow capabilities are already configured on the DeerFlow side.
41+
42+
## Select Agent Runner
43+
44+
Go to the Configuration page in the left sidebar, click "Agent Execution Method", select "DeerFlow", then select the ID of the DeerFlow Agent Runner you just created in the new configuration option below, and click "Save" in the bottom right corner to complete the configuration.
45+
46+
## Common Checks
47+
48+
If requests are not being executed through DeerFlow correctly, check the following first:
49+
50+
- whether the DeerFlow service is running properly
51+
- whether `API Base URL` is reachable from the AstrBot environment
52+
- whether the authentication settings are correct
53+
- whether `Assistant ID` matches an actual available assistant in DeerFlow

en/use/agent-runner.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
The Agent Runner is a component in AstrBot used to execute Agents.
44

5-
Starting from version v4.7.0, we have migrated three providers—Dify, Coze, and Alibaba Cloud Bailian Application—to the Agent Runner layer, reducing some conflicts with AstrBot's existing features. Rest assured, if you upgrade from an older version to v4.7.0, you don't need to take any action as AstrBot will automatically migrate for you.
5+
Starting from version v4.7.0, we have migrated three providers—Dify, Coze, and Alibaba Cloud Bailian Application—to the Agent Runner layer, reducing some conflicts with AstrBot's existing features. Rest assured, if you upgrade from an older version to v4.7.0, you don't need to take any action as AstrBot will automatically migrate for you. Later versions also added DeerFlow support as an Agent Runner provider.
66

7-
AstrBot currently has four built-in Agent Runners:
7+
AstrBot currently supports five Agent Runners:
88

99
- AstrBot Built-in Agent Runner
1010
- Dify Agent Runner
1111
- Coze Agent Runner
1212
- Alibaba Cloud Bailian Application Agent Runner
13+
- DeerFlow Agent Runner
1314

1415
By default, the AstrBot Built-in Agent Runner is the default runner.
1516

@@ -30,19 +31,19 @@ An Agent Runner is typically a `loop` that receives user intent, context, and en
3031

3132
![image](https://files.astrbot.app/docs/source/images/use/agent-runner/agent-arch.svg)
3233

33-
LLMOps platforms like Dify, Coze, and Bailian Application have this loop built-in. If you treat them as regular Chat Providers, it will conflict with AstrBot's built-in Agent Runner functionality.
34+
Platforms like Dify, Coze, Bailian Application, and DeerFlow have this loop built-in. If you treat them as regular Chat Providers, it will conflict with AstrBot's built-in Agent Runner functionality.
3435

3536
## Usage
3637

3738
By default, the AstrBot Built-in Agent Runner is the default runner. Using the default runner can already meet most needs, and you can use AstrBot's MCP, knowledge base, web search, and other features.
3839

39-
If you need to use the capabilities of LLMOps platforms like Dify, Coze, or Bailian Application, you can create an Agent Runner and select the corresponding provider.
40+
If you need to use the capabilities of platforms like Dify, Coze, Bailian Application, or DeerFlow, you can create an Agent Runner and select the corresponding provider.
4041

4142
## Creating an Agent Runner
4243

4344
![image](https://files.astrbot.app/docs/source/images/use/agent-runner/image-1.png)
4445

45-
In the WebUI, click "Model Provider" -> "Add Provider", select "Agent Runner", choose the LLMOps platform you want to connect to, and fill in the relevant information.
46+
In the WebUI, click "Model Provider" -> "Add Provider", select "Agent Runner", choose the platform or runner type you want to connect to, and fill in the relevant information.
4647

4748
## Changing the Default Agent Runner
4849

en/what-is-astrbot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This documentation is divided into the following sections:
1414

1515
- **Deployment**: multiple ways to quickly deploy AstrBot on local machines or cloud servers.
1616
- **Messaging Platform Integration**: integration guides for 18+ mainstream instant messaging platforms.
17-
- **AI Provider Integration**: connect to model providers, use AstrBot's built-in Agent Runner, or integrate third-party Agent Runner services such as Dify, Coze, and Alibaba Bailian.
17+
- **AI Provider Integration**: connect to model providers, use AstrBot's built-in Agent Runner, or integrate third-party Agent Runner services such as Dify, Coze, Alibaba Bailian, and DeerFlow.
1818
- **Usage Guides**: practical guides for features such as plugins, tool calling, knowledge base, MCP, Skills, and Agent sandbox.
1919

2020
## Quick Start

zh/providers/agent-runners.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Agent 执行器是 AstrBot 中用于执行 Agent 的组件,Agent 执行器负责了所有关于 AI 的功能。
66

7-
AstrBot 内置了**强大的** Agent 执行器,用户也可以选择接入第三方的 Agent 执行器服务,例如 Dify、Coze、阿里云百炼应用等,或者自己开发 Agent 执行器。
7+
AstrBot 内置了**强大的** Agent 执行器,用户也可以选择接入第三方的 Agent 执行器服务,例如 Dify、Coze、阿里云百炼应用、DeerFlow 等,或者自己开发 Agent 执行器。
88

99
想象一下,你现在已经有 AI 模型提供商,它接收你的单次请求,然后返回响应。你需要一个东西来调用这个 AI 模型提供商来实现多轮对话、工具调用等功能,这就是 Agent 执行器 的作用。
1010

@@ -15,4 +15,5 @@ AstrBot 内置了**强大的** Agent 执行器,用户也可以选择接入第
1515
- [内置 Agent 执行器](/providers/agent-runners/astrbot-agent-runner)
1616
- [Dify](/providers/agent-runners/dify)
1717
- [扣子 Coze](/providers/agent-runners/coze)
18-
- [阿里云百炼应用](/providers/agent-runners/dashscope)
18+
- [阿里云百炼应用](/providers/agent-runners/dashscope)
19+
- [DeerFlow](/providers/agent-runners/deerflow)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# 接入 DeerFlow
2+
3+
在 v4.19.2 及之后,AstrBot 支持接入 [DeerFlow](https://github.com/bytedance/deer-flow) Agent Runner。
4+
5+
## 预备工作:部署 DeerFlow
6+
7+
如果你还没有部署 DeerFlow,请先参考 DeerFlow 官方文档完成安装和启动:
8+
9+
- [DeerFlow GitHub 仓库](https://github.com/bytedance/deer-flow)
10+
- [DeerFlow 官方网站](https://deerflow.tech/)
11+
- [DeerFlow 配置文档](https://github.com/bytedance/deer-flow/blob/main/backend/docs/CONFIGURATION.md)
12+
13+
请确认 DeerFlow 已正常启动,并且 AstrBot 可以访问 DeerFlow 的网关地址。默认情况下,DeerFlow 网关地址为 `http://127.0.0.1:2026`
14+
15+
> [!TIP]
16+
> - `API Base URL` 必须以 `http://``https://` 开头。
17+
> - 如果 AstrBot 与 DeerFlow 运行在不同容器或主机上,请将 `127.0.0.1` 替换为 DeerFlow 实际可访问的内网地址、主机名或域名。
18+
19+
## 在 AstrBot 中配置 DeerFlow
20+
21+
在 WebUI 中,点击「模型提供商」->「新增提供商」,选择「Agent 执行器」,选择「DeerFlow」,进入 DeerFlow 的配置页面。
22+
23+
填写以下配置项:
24+
25+
- `API Base URL`:DeerFlow API 网关地址,默认为 `http://127.0.0.1:2026`
26+
- `DeerFlow API Key`:可选。若你的 DeerFlow 网关使用 Bearer 鉴权,可在此填写
27+
- `Authorization Header`:可选。自定义 Authorization 请求头,优先级高于 `DeerFlow API Key`
28+
- `Assistant ID`:对应 LangGraph 的 `assistant_id`,默认为 `lead_agent`
29+
- `模型名称覆盖`:可选。覆盖 DeerFlow 默认模型
30+
- `启用思考模式`:是否启用 DeerFlow 的思考模式
31+
- `启用计划模式`:对应 DeerFlow 的 `is_plan_mode`
32+
- `启用子智能体`:对应 DeerFlow 的 `subagent_enabled`
33+
- `子智能体最大并发数`:对应 `max_concurrent_subagents`,仅在启用子智能体时生效,默认 `3`
34+
- `递归深度上限`:对应 LangGraph 的 `recursion_limit`,默认 `1000`
35+
36+
填写完成后点击「保存」。
37+
38+
> [!TIP]
39+
> - 如果 DeerFlow 侧已经配置了默认模型,可以将 `模型名称覆盖` 留空。
40+
> - 只有在 DeerFlow 侧已经启用了相应能力时,才建议开启 `计划模式``子智能体` 相关选项。
41+
42+
## 选择 Agent 执行器
43+
44+
进入左边栏配置页面,点击「Agent 执行方式」,选择「DeerFlow」,然后在下方出现的新的配置项中选择你刚刚创建的 DeerFlow Agent 执行器提供商 ID,点击右下角「保存」,即可完成配置。
45+
46+
## 常见检查项
47+
48+
如果请求没有正常通过 DeerFlow 执行,请优先检查以下内容:
49+
50+
- DeerFlow 服务是否已经正常启动
51+
- `API Base URL` 是否能从 AstrBot 所在环境访问
52+
- 鉴权配置是否填写正确
53+
- `Assistant ID` 是否与 DeerFlow 中实际可用的 assistant 一致

zh/use/agent-runner.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
Agent 执行器是 AstrBot 中用于执行 Agent 的组件。
44

5-
在 v4.7.0 版本之后,我们将 Dify、Coze、阿里云百炼应用这三个提供商迁移到了 Agent 执行器层面,减少了与 AstrBot 目前功能的一些冲突。请放心,如果您从旧版本升级到 v4.7.0 版本,您无需进行任何操作,AstrBot 会自动为您迁移。
5+
在 v4.7.0 版本之后,我们将 Dify、Coze、阿里云百炼应用这三个提供商迁移到了 Agent 执行器层面,减少了与 AstrBot 目前功能的一些冲突。请放心,如果您从旧版本升级到 v4.7.0 版本,您无需进行任何操作,AstrBot 会自动为您迁移。此后,AstrBot 也新增了 DeerFlow Agent 执行器支持。
66

7-
AstrBot 目前内置了四种 Agent 执行器:
7+
AstrBot 目前支持五种 Agent 执行器:
88

99
- AstrBot 内置 Agent 执行器
1010
- Dify Agent 执行器
1111
- Coze Agent 执行器
1212
- 阿里云百炼应用 Agent 执行器
13+
- DeerFlow Agent 执行器
1314

1415
默认情况下,AstrBot 内置 Agent 执行器为默认执行器。
1516

@@ -30,22 +31,22 @@ Chat Provider 本质上是一个 `单轮补全接口`,输入 prompt + 历史
3031

3132
![image](https://files.astrbot.app/docs/source/images/use/agent-runner/agent-arch.svg)
3233

33-
Dify、Coze、百炼应用等 LLMOpes 平台已经内置了这个循环,如果把它们当成普通 Chat Provider,会和 AstrBot 的内置 Agent 执行器功能冲突。
34+
Dify、Coze、百炼应用、DeerFlow 等平台已经内置了这个循环,如果把它们当成普通 Chat Provider,会和 AstrBot 的内置 Agent 执行器功能冲突。
3435

3536
## 使用
3637

3738
默认情况下,AstrBot 内置 Agent 执行器为默认执行器。使用默认执行器已经可以满足大部分需求,并且可以使用 AstrBot 的 MCP、知识库、网页搜索等功能。
3839

39-
如果你需要使用 Dify、Coze、百炼应用等 LLMOpes 平台的能力,可以创建一个 Agent 执行器,并选择相应的提供商。
40+
如果你需要使用 Dify、Coze、百炼应用、DeerFlow 等平台的能力,可以创建一个 Agent 执行器,并选择相应的提供商。
4041

4142
## 创建 Agent 执行器
4243

4344
![image](https://files.astrbot.app/docs/source/images/use/agent-runner/image-1.png)
4445

45-
在 WebUI 中,点击「模型提供商」->「新增提供商」,选择「Agent 执行器」,选择你想接入的 LLMOpes 平台,填写相关信息即可。
46+
在 WebUI 中,点击「模型提供商」->「新增提供商」,选择「Agent 执行器」,选择你想接入的平台或执行器类型,填写相关信息即可。
4647

4748
## 更换默认 Agent 执行器
4849

4950
![image](https://files.astrbot.app/docs/source/images/use/agent-runner/image.png)
5051

51-
在 WebUI 中,点击「配置」->「Agent 执行方式」,将执行器类型更换为你刚刚创建的 Agent 执行器类型,然后选择 `XX Agent 执行器提供商 ID` 为你刚刚创建的 Agent 执行器提供商的 ID,点击保存即可。
52+
在 WebUI 中,点击「配置」->「Agent 执行方式」,将执行器类型更换为你刚刚创建的 Agent 执行器类型,然后选择 `XX Agent 执行器提供商 ID` 为你刚刚创建的 Agent 执行器提供商的 ID,点击保存即可。

zh/what-is-astrbot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AstrBot 是一个开源的一站式 Agentic 个人和群聊助手,可在 QQ、
1414

1515
- **部署**。我们提供多种方式帮助您把 AstrBot 快速部署到云服务器或本地机器上。
1616
- **消息平台接入**。我们提供 18+ 主流即时通讯软件的接入指南,帮助您把 AstrBot 连接到您喜欢的 IM 平台。
17-
- **AI 模型提供商接入**。我们支持各种 AI 模型提供商的接入,您可以选择使用 AstrBot 内置的 Agent 执行器,也可以接入第三方的 Agent 执行器服务,例如 Dify、Coze、阿里云百炼应用等,或者自己开发 Agent 执行器。
17+
- **AI 模型提供商接入**。我们支持各种 AI 模型提供商的接入,您可以选择使用 AstrBot 内置的 Agent 执行器,也可以接入第三方的 Agent 执行器服务,例如 Dify、Coze、阿里云百炼应用、DeerFlow 等,或者自己开发 Agent 执行器。
1818
- **使用指南**。我们提供了丰富的使用指南,帮助您充分利用 AstrBot 的各种功能,例如插件、工具调用、知识库、MCP、Skills、Agent 沙箱环境等。
1919

2020
## 快速开始

0 commit comments

Comments
 (0)