Dify
1. 介绍
1.1. 平台定位
Dify 是由 LangGenius, Inc. 开发的开源 LLM 应用开发平台。它的核心主张是:把智能体工作流、RAG 管线、模型管理、可观测性与插件市场整合进同一个协作工作区,让团队从原型走到生产而无需重建技术栈。
在参数卡的六层模型与概念边界下,Dify 是 Agent Platform——Harness 的产品化封装:它在 L1~L3 之上叠加了 UI、租户、计费与发布能力,这是它与 LangGraph、Claude Agent SDK、ADK 等 Framework 类方案最本质的区别。
一个便于记忆的类比常被引用:如果说 WordPress 让建站大众化,Dify 正在对 LLM 应用开发做同样的事——把「写代码」变成「在画布上拖拽」。
1.2. 基本信息卡
| 项目 | 内容 | 置信度 |
|---|---|---|
| 开发商 | LangGenius, Inc.(创始人:Luyu Zhang(CEO)、John Wang) | 高 |
| 创立 / 开源 | 2023 年;GitHub 仓库 langgenius/dify | 高(版本与总部口径存在冲突,见下) |
| 总部 | 第三方口径不一:有来源标 San Francisco,有来源标 New York | 低,口径冲突,标 |
| 开源形态 | 源码可得(Source-available) | 高 |
| 许可证 | Dify Open Source License——基于 Apache 2.0 的修改版,附加两条限制:① 未经书面许可不得用源码运营多租户托管服务(一个租户 = 一个 workspace);② 不得移除或修改控制台与应用前端的 logo 与版权信息。非 OSI 批准许可,不是可替换的纯 Apache-2.0 | 高(LICENSE 文件) |
| GitHub 规模 | 官方站点口径 155K+ stars;第三方口径:100K(2025-06-05)→ 138K(2026-04)→ 153K+(2026-08-22) | 中高,口径随时间变化,引用时需注明时点 |
| 最新版本 | 第三方核对:v1.16.1(2026-07-28);发布节奏每周至每两周 | 中高,版本变化快,标 |
| 融资 | Seed(2023-06,未披露,Delian Capital / FutureX Capital);Series Pre-A $30M(2026-03-09,HSG(原红杉中国)领投,GL Ventures、Alt-Alpha Capital、5Y Capital、Mizuho Leaguer Investment、NYX Ventures 参投),报道估值约 $180M;Crunchbase 累计约 $41.5M | 高 |
| 团队变动 | 研发团队从 40 人降至 15 人(2026 年) | 高(项目已核实硬数据) |
| 部署形态 | Dify Cloud(托管)/ 自托管 Community / Enterprise(VPC 或本地) | 高(官方) |
| 定价 | Sandbox 免费(200 message credits、1 名成员、5 个应用、50 份文档);Professional $59 / 月(5,000 credits / 月);Team $159 / 月(10,000 credits / 月);年付省约 17%;Enterprise 自定义报价 | 中高(第三方整理,与官网口径一致) |
| 最低部署要求 | Docker + Docker Compose v2.24.0+,CPU ≥ 2 核,内存 ≥ 4 GiB(Docker Desktop 建议 8 GiB) | 高(官方 README) |
1.3. 发展时间线
| 时间 | 事件 | 来源等级 |
|---|---|---|
| 2023 | LangGenius 成立;langgenius/dify 开源 | A |
| 2025-02-28 | v1.0.0:引入插件系统,把模型与工具从内核解耦;上线 Dify Marketplace | A |
| 2025-06-05 | GitHub stars 突破 100,000 | A(官方公告) |
| 2025-07 | v1.6.0:MCP 双向支持(client + server),HTTP MCP,协议版本 2025-03-26 | B |
| 2025 年内 | Knowledge Pipeline 把 RAG 的 ETL 路径搬到画布 | B |
| 2026-03-09 | Series Pre-A $30M,HSG 领投,报道估值约 $180M | A |
| 2026-04-29 | v1.14.0:协同编辑、human-in-the-loop、MCP 改进 | B |
| 2026-05-19 | v1.14.2 | B |
| 2026-07-01 | v1.15.0:difyctl 命令行客户端(终端 / CI 运行应用与工作流);引导与编辑器重构 | B |
| 2026-07-17 | v1.16.0:Dify Agent(Beta)——运行在 Linux 沙箱中的 shell-based agent,带 Skills 打包;发布说明明确警告仅应对可信、非恶意用户开放 | B |
| 2026-07-28 | v1.16.1(当前):缺陷与安全修复、多选工具输入、工作流节点定位、agent DSL 导出 | B |
| 2026 年内 | 研发团队从 40 人缩减至 15 人 | 项目硬数据 |
1.4. 在 AI Harness 体系中的位置
按参数卡边界表,Dify 明确落在 Agent Platform 一格:
| 对照维度 | Agent Framework(LangGraph / ADK) | Agent Platform(Dify) |
|---|---|---|
| 交付形态 | 代码库 | Web 控制台 + API |
| 使用者 | 工程师 | 工程师 + 产品 / 运营 / 业务 |
| 是否含 UI | 否(ADK 的 Dev UI 仅调试) | 是 |
| 是否含租户 | 否 | 是(Workspace 多租户) |
| 是否含计费 | 否 | 是(credits) |
| 是否含发布 | 否 | 是(Web App / API / 嵌入 / MCP) |
关键判断:Dify 是本组中唯一同时具备 L1~L6 六层可交付能力的平台,代价是在每一层的深度上都比专精方案浅。
2. 名词解释
| 术语 | 英文/缩写 | 释义 |
|---|---|---|
| Dify | Dify | 开源 LLM 应用开发平台,整合智能体工作流、RAG 管线、模型管理、可观测性与插件市场 |
| Workflow | Workflow | 面向自动化与批处理的可视化画布,每次输入跑一次并返回结果;节点含 LLM 调用、知识检索、代码执行、HTTP 请求、条件分支、工具调用 |
| Chatflow | Chatflow | 特殊的工作流:每一轮对话都触发一次,维护会话变量、记忆与流式输出 |
| Agent App | Agent | 独立会话助手形态,自主拆解任务、选择工具、循环直到完成;支持 ReAct 或 Function Calling 策略,50+ 内置工具 |
| Agent Node | Agent Node | 嵌在 Workflow 中的一个节点,把智能体行为变成更大图里的一个确定性步骤;官方推荐用于生产多智能体系统 |
| Knowledge | Knowledge / 知识库 | RAG 底座:摄入 → 分块 → 向量化 → 索引 → 检索 → 重排 |
| Knowledge Pipeline | Knowledge Pipeline | 把 RAG 的 ETL 路径(解析、清洗、分块、富化、向量化)搬到可视化画布上,每步可配置 |
| Chunking | Chunking | 分块策略:Dify 提供固定大小分块、段落分块与父子分块三种 |
| Parent-child Chunking | 父子分块 | Dify 的差异化能力:先切父块再切子块,子块精确匹配、命中后返回父块提供完整上下文 |
| Rerank | Rerank / 重排 | 检索后的二次排序,提高命中质量 |
| Human Input Node | Human Input | v1.13.0 引入的节点:运行中暂停等待人工审核,可批准 / 拒绝 / 升级,可编辑变量,可配置超时(默认 3 天)走兜底分支 |
| Plugin | Plugin | v1.0.0 起把模型与工具从内核解耦为插件,从 Marketplace 安装 |
| Marketplace | Dify Marketplace | 模型供应商、工具、数据源与 MCP 集成的安装市场,团队可复用已审批的插件 |
| Workspace | Workspace | 租户单元:单个实例可承载多个 Workspace,每个有独立成员、知识库、应用与配置 |
| Message Credit | Credits | Dify Cloud 的计量单位,按消息额度计费 |
| difyctl | difyctl | v1.15.0 引入的命令行客户端,可从终端或 CI 运行应用与工作流 |
| Dify Agent | Dify Agent | v1.16.0 Beta:运行在 Linux 沙箱中的 shell-based 智能体,带 Skills 打包 |
| BaaS | Backend-as-a-Service | Dify 的每个能力都通过 API 暴露,可嵌入既有业务逻辑 |
| Annotation | Annotation | 对应用运行的标注,可反哺为改进数据集 |
3. 功能说明
3.1. 四类应用形态
| 形态 | 触发方式 | 适用场景 |
|---|---|---|
| Chat Assistant | 多轮对话 | 客服、问答 |
| Text Completion | 单次输入产出 | 补全、生成 |
| Agent | 对话 + 自主工具循环 | 需要自主拆解任务 |
| Workflow / Chatflow | 画布编排 | 复杂多节点逻辑 |
3.2. Workflow 与 Chatflow 的分工
这是 Dify 最容易被误解的一对概念,官方口径如下:
| 维度 | Workflow | Chatflow |
|---|---|---|
| 触发 | 每次输入跑一次 | 每一轮对话都触发一次 |
| 状态 | 无会话状态 | 维护会话变量与记忆 |
| 输出 | 一次性返回结果 | 支持流式输出 |
| 典型场景 | 翻译、数据分析、内容生成、邮件自动化 | 聊天机器人、多轮问答 |
选型口诀:做聊天机器人选 Chatflow,做异步批处理选 Workflow。
3.3. 知识库与 RAG 管线
RAG 被公认为 Dify 最强的能力,其完整管线为:文档摄入 → 分块 → 向量化 → 索引 → 检索 → 重排。
三种分块策略对比:
| 策略 | 原理 | 适用 |
|---|---|---|
| 固定大小分块 | 按 token 数切分,带重叠窗口 | 简单文本、新闻 |
| 段落分块 | 按换行 / 标题切分 | 结构化文档(手册、论文) |
| 父子分块 | 先切父块再切子块,子块命中返回父块 | 长文档问答、技术支持文档 |
父子分块是 Dify 的差异化点:子块负责精确匹配,父块负责提供完整上下文——例如命中代码片段(子块)时返回完整函数定义(父块)。
支持的输入源:PDF、TXT、Markdown、JSON、DOCX、XLSX、CSV、HTML;内置网页爬虫(输入 URL 即可);Notion / Confluence API 同步;Knowledge API 批量写入;扫描 PDF 支持 OCR 预处理。
Knowledge Pipeline 进一步把 RAG 的 ETL 搬到画布,每一步(解析、清洗、分块、富化、向量化)成为可配置节点,数据源覆盖 Google Drive、Notion、Confluence、AWS S3、Slack。
3.4. Agent 的两种构建方式
| 方式 | 形态 | 适用 | 官方建议 |
|---|---|---|---|
| Agent App | 独立会话助手,ReAct 或 Function Calling,50+ 内置工具 | 快速验证、单一职责助手 | — |
| Agent Node | 嵌在 Workflow 中的一个确定性步骤 | 生产多智能体系统 | 推荐 |
这个建议值得注意:Dify 官方并不推荐把生产多智能体系统建在「自主 Agent App」上,而是推荐把智能体行为降格为工作流中的一个节点。这与整个 AI Harness 的核心精神一致——用确定性容器装住不确定性内核。
3.5. MCP 双向能力
自 v1.6.0(2025-07)起,Dify 支持 MCP 的双向能力:
- 作为 MCP Client:Dify 内的智能体可直接调用任意外部 MCP 服务器(官方示例:Linear、Notion、Zapier),使用基于 HTTP 的 MCP(协议版本 2025-03-26),取代逐个服务写集成;
- 作为 MCP Server:任意 Dify 应用(Chatflow、Workflow、Agent)都可发布为 MCP 服务器,被 Claude Desktop、Cursor 或任意 MCP 客户端调用。
后者的战略含义更大:Dify 从「智能体构建工具」变成了「其他生态智能体的工具提供者」。
3.6. Human Input 节点
v1.13.0 引入,是 Dify 面向受监管行业的关键能力:
- 运行中的工作流可暂停等待人工审核;
- 审核者通过 Web 应用或邮件响应;
- 可在工作流继续前编辑变量;
- 可通过可配置按钮路由到不同分支(批准 / 拒绝 / 升级);
- 可配置超时(默认 3 天),超时走兜底分支。
与 LangGraph 的 interrupt 相比,Human Input 节点更结构化:暂停点在设计期定义,而不是运行期任意节点。对法务审阅、合规检查、医疗分诊等场景,这一差异是决定性的。
3.7. 插件与模型层
- v1.0.0 起,模型与工具从内核解耦为插件,从 Marketplace 安装;
- 支持数百个专有与开源模型:GPT、Claude、Gemini、Mistral、Llama、DeepSeek、通义千问等,以及任意 OpenAI 兼容端点;Ollama 与 Xinference 自托管模型为一等公民;
- 可在单个工作流内混用模型:把廉价任务路由给小模型,把复杂推理路由给前沿模型。这本身就是一种成本治理手段。
3.8. 可观测与发布
- 可观测:应用日志、性能分析、标注反哺数据集、延迟与用量数据;调试器对 LLM token 用量有更好的可视化;可集成 Langfuse、Opik、Arize Phoenix。
- 发布:每个应用可发布为托管 Web 应用、API 端点、网页嵌入组件,或 MCP 兼容工具。
4. 平台架构
图 4-1|Dify 自托管技术栈:从前端到异步 Worker 的分层架构
数据来源:基于本文分析绘制的示意图。
4.1 部署形态
| 形态 | 说明 | 关键差异 |
|---|---|---|
| Dify Cloud | 官方托管 | 零基础设施;功能通常比自托管早一个发布周期;按 credits 计费 |
| 自托管 Community | Docker Compose / Kubernetes | 数据留在自有基础设施;无按消息计费;功能与 Cloud 大致 100% 对齐 |
| Enterprise | 本地 / VPC / 公有云 | 增加 SSO / SAML、RBAC、审计日志、VPC 隔离、专属 CSM 与 24/7 支持;SOC 2 Type II + ISO 27001 |
4.2 自托管技术栈
官方 Docker Compose 会拉起一整套服务,最低 2 核 CPU + 4 GiB 内存:
| 组件 | 技术栈 | 职责 |
|---|---|---|
| 前端控制台 | Next.js | Web UI、管理面板、聊天组件 |
| API 服务 | Python(Flask) | 业务逻辑、API 端点 |
| Worker | Python RQ | 异步任务(文档解析、索引构建) |
| 数据库 | PostgreSQL | 应用数据、用户、对话历史 |
| 缓存 / 队列 | Redis | 缓存、任务队列、会话管理 |
| 向量库 | Weaviate(默认,可选 Qdrant / Milvus / PGVector) | 默认向量存储 |
| 沙箱 | — | 代码执行 |
| 反向代理 | nginx | 入口 |
异步 Worker 架构是关键差异化:所有耗时操作(PDF 解析、向量索引、大文件处理)都在后台队列完成,不阻塞 API。
生产建议:替换专用向量库集群(Qdrant / Milvus)、使用外部 PostgreSQL、改用 S3 兼容存储、nginx + HTTPS。
4.3 一次 Chatflow 请求的处理流
- 用户消息进入,加载会话变量与记忆;
- 若含知识检索节点:查询重写 → 向量 / 关键词 / 混合检索 → 重排 → 注入上下文;
- 路由到对应模型(工作流内可按节点选择不同模型);
- 若含 Agent Node:在该节点内做 ReAct / Function Calling 循环,可调用 50+ 内置工具或外部 MCP 服务器;
- 若含 Human Input 节点:暂停并等待审核(可编辑变量、可走分支、可超时兜底);
- 条件分支 / 并行 / 迭代节点按画布语义执行;
- 流式输出至 Web 应用或 API;
- 写入日志与用量数据,供后续标注与优化。
5. Harness 设计
5.1. 六层能力总览
| 层 | 名称 | 实现强度 | 判断依据 |
|---|---|---|---|
| L1 | 上下文工程 | 强 | RAG 为一等公民;三种分块策略 + 重排;Knowledge Pipeline 可视化;工作流内模型路由 |
| L2 | 工具与执行 | 强 | 50+ 内置工具 + 插件市场 + MCP 双向 + 代码执行沙箱 + Dify Agent(Beta)Linux 沙箱 |
| L3 | 编排与控制 | 强 | 可视化画布(分支 / 并行 / 迭代 / 条件)+ Chatflow + Agent Node + Human Input 节点 |
| L4 | 记忆与状态 | 中强 | Chatflow 会话变量与记忆、对话历史;工件与检查点管理弱 |
| L5 | 评估与观测 | 中强 | 日志、标注反哺、延迟与用量分析、token 调试器;无原生 Golden Dataset / 回归集机制 |
| L6 | 治理与安全 | 中强(Enterprise)/ 弱(Community) | Enterprise 提供 SSO / SAML、RBAC、审计日志、SOC 2 Type II、ISO 27001;社区版基本缺失 |
5.2. L1 上下文工程层
Dify 的 L1 是本组中产品化做得最完整的一层,因为它把检索工程变成了可视化配置:
- 三种分块策略可选,父子分块是差异化能力;
- 检索方式覆盖向量、关键词 / BM25 与混合,可选重排;
- Knowledge Pipeline 让 ETL 每步可见可调;
- 工作流内模型路由本身也是上下文工程的一部分——把不同复杂度的上下文交给不同档位的模型。
短板:
- 无上下文压缩(Compaction)原语;
- 无渐进式披露(对比 Claude Agent SDK 的 Skills;Dify Agent Beta 才开始引入 Skills 打包);
- 检索进上下文后的排序与裁剪策略仍较固定。
5.3. L2 工具与执行层
- 内置工具:50+,含 Google Search、DALL·E、Stable Diffusion、WolframAlpha 等;
- 插件市场:模型供应商、工具、数据源、MCP 集成统一安装,团队可复用已审批的插件(这本身是治理动作);
- MCP 双向:既可调用外部,也可被外部调用;
- 沙箱:代码执行沙箱;v1.16.0 的 Dify Agent(Beta)运行在 Linux 沙箱中。
需要重点提示的风险:Dify Agent Beta 的发布说明明确警告,只应对可信、非恶意用户开放。这是 shell-based agent 的固有风险,也是 L2 层「能力越强、攻击面越大」的直接体现。
5.4. L3 编排与控制层
灵活性 ↔ 可预测性的张力,Dify 处在中间偏可预测的位置:
- 画布是显式图,控制流可见——这一点接近 LangGraph;
- 但表达力弱于代码图:复杂条件逻辑在画布上容易退化为「面条式连线」;
- 提供迭代节点与并行节点,但循环语义不如 LangGraph 的 Pregel 式执行严谨;
- Human Input 节点把暂停点设计期固定,可预测性高于 LangGraph 的任意节点 interrupt,但灵活性更低。
官方推荐「用 Agent Node 而非 Agent App 构建生产多智能体系统」,本质上是在这条张力轴上主动选择可预测性一端。
5.5. L4 记忆与状态层
| 能力 | 载体 | 强度 |
|---|---|---|
| 会话变量 | Chatflow 自定义会话变量 | 中强 |
| 对话记忆 | Chatflow 内置记忆 | 中强 |
| 对话历史 | PostgreSQL 持久化 | 中强 |
| 工件管理 | 无专门机制 | 弱 |
| 检查点 / 恢复 | 无 | 缺失 |
对比参照:LangGraph 有 Checkpoint + Thread + Time Travel;ADK 有 Session + Memory + Artifact(带版本)。Dify 在本层只有「会话级」能力,没有运行级检查点与工件版本管理。这意味着长任务崩溃后无法从中间续跑。
5.6. L5 评估与观测层
已有的:
- 应用日志与性能分析;
- 标注(Annotation)反哺为改进数据集——这是从生产数据回流到优化闭环的朴素实现;
- 延迟与用量数据;
- LLM token 用量调试器(公开评测认为优于同类);
- 可集成 Langfuse、Opik、Arize Phoenix 等第三方观测工具。
缺失的:
- 无原生 Golden Dataset / 回归集机制(标注可部分替代,但不是同一回事);
- 无自动化的「每次发布跑一遍回归集并卡阈值」的工作流;
- 无 A/B 与在线指标体系。
因此判断为「中强」——观测够用,评估需外挂或靠人工标注。
5.7. L6 治理与安全层
| 治理能力 | Community | Enterprise |
|---|---|---|
| SSO / SAML | 无 | 有 |
| RBAC | 无 | 有 |
| 审计日志 | 无 | 有 |
| VPC 隔离 | 自托管天然隔离 | 有 |
| SOC 2 Type II | 无 | 有 |
| ISO 27001 | 无 | 有 |
| 合规牌照 | 无 | 有 |
| 专属 CSM + 24/7 支持 | 无 | 有 |
| 数据驻留 | 自托管自控 | 自控 |
此外还有一条许可层面的治理:Dify Open Source License 禁止未经书面许可运营多租户托管服务、禁止移除前端 logo 与版权信息。这不是技术护栏,却是本平台最硬的一道商业边界——想基于 Dify 源码做多租户 SaaS 商业化,必须先取得商业授权。
5.8. 三条内在张力的具体表现
| 张力 | 在本平台的体现 | 缓解手段 |
|---|---|---|
| 灵活性 ↔ 可预测性 | 低代码换上手快:画布显式但表达力有限,复杂逻辑退化为面条式连线;官方主动推荐 Agent Node 而非自主 Agent App | 关键链路用 Workflow + Human Input 固定暂停点;把自主循环降格为单个节点 |
| 开放性 ↔ 治理 | MCP 双向:作为 server 把能力开放给外部生态,作为 client 引入外部攻击面;插件市场第三方插件同此 | 只安装已审批插件;Dify Agent 仅对可信用户开放;Enterprise 用 RBAC + 审计日志 |
| 成本 ↔ 深度 | Cloud 按 message credits 计费,深度智能体链路消耗快;自托管则把成本转移到运维 | 工作流内模型路由(廉价任务用小模型);自托管消除按消息计费;关注 ARR 与 credits 消耗比 |
6. 实际案例
以下客户 testimonial 均出自 Dify 官网公开发布,属厂商引用的客户表述,未经独立验证,且均未包含可量化效果指标。
案例一:Volvo Cars(AI & Data APAC 负责人)
"In this climate of perpetual beta, tools enabling rapid validation aren't just helpful, they're existential. For Volvo Cars, strategically navigating this AI frontier, this is where Dify delivers indispensable value."
含义解读:价值点在于快速验证能力,而非深度定制能力。
案例二:RICOH(事业部总经理)
"What makes Dify stand out is its ability to democratize AI agent development. By combining powerful AI/ML capabilities on a no-code platform, its rapid deployment and intuitive interface make it highly accessible even for beginners, significantly accelerating citizen development."
含义解读:核心价值是 citizen development(公民开发)——让非工程角色参与智能体建设。
案例三:ETS 类评估产品公司
"Dify's intuitive interface allows our teams to rapidly design and deploy complex natural language processing pipelines, enabling us to improve the quality of our assessment products while reducing cost and time to market."
含义解读:指向上市时间与成本下降,但未给出具体百分比。
官网列出的其他客户标识:Maersk、Adobe、Google、Panasonic、PayPal、Lilly、Thermo Fisher Scientific、MITRE、Mercedes-Benz、Novartis、Deloitte、McDonald's、AIA、Volkswagen、CTC、KPMG、Volvo、RICOH、ETS、Anker 等。需注意:品牌 logo 展示不等于效果背书,也不代表部署规模。
厂商自报规模数据(未独立验证):280+ 企业客户;Dify 运行在 140 万台以上机器、175 个以上国家与地区;500 万次以上下载;平台上运行超过 100 万个应用。上述均为厂商公布口径,本文件照录并标注,不作为结论依据。
未检索到公开量化数据的部分:截至检索日期 2026-09-12,未检索到任何 Dify 客户案例的成本下降百分比、任务成功率、人力替代率或 ROI 数据,此处如实标注,不做补全。
风险提示(需纳入选型评估):2026 年,Dify 研发团队从 40 人缩减至 15 人。这是一个明确的组织变动信号,评估长期依赖时需考虑其对版本节奏与企业支持能力的影响。该数据为项目已核实硬数据,其具体背景与影响范围未做进一步检索。
7. 总结
7.1. 优势
- RAG 最强:本组中产品化最完整的检索管线,父子分块 + 重排 + Knowledge Pipeline。
- 低代码门槛最低:非工程角色可参与构建,公民开发能力强。
- 六层均有可交付能力:本组中唯一 L1~L6 全覆盖的平台(L6 需 Enterprise)。
- MCP 双向:既能调用外部生态,也能把自身能力发布为 MCP 工具。
- Human Input 节点:设计期固定暂停点,适配受监管行业。
- 自托管无按消息计费:数据自控 + 成本可控。
- 生态规模大:155K+ GitHub stars,140 万台机器运行(厂商口径)。
7.2. 劣势
- 许可非 OSI:禁止多租户托管商用与移除 logo,基于其做 SaaS 需商业授权。
- L4 弱:无运行级检查点与工件版本,长任务崩溃无法续跑。
- L5 不完整:无原生 Golden Dataset / 回归集,评估靠标注与外挂。
- 画布表达力有限:复杂逻辑退化为面条式连线,可维护性下降。
- L6 分层明显:SSO / RBAC / 审计 / 合规全在 Enterprise,社区版基本没有。
- Dify Agent 风险:Beta 版本官方明确警告仅对可信用户开放。
- 组织变动风险:研发团队从 40 人降至 15 人(2026)。
7.3. 适用边界
| 场景 | 是否适用 | 理由 |
|---|---|---|
| 知识库问答 / 文档助手 | 最适用 | RAG 产品化最完整 |
| 客服 copilot / 内部 Q&A | 适用 | Chatflow + 多渠道发布 |
| 需要业务人员参与的原型验证 | 最适用 | 低代码门槛最低 |
| 受监管行业(法务 / 合规 / 医疗分诊) | 适用(Enterprise) | Human Input 节点 + RBAC + 审计 |
| 需要长时间可恢复的长任务 | 不适用 | 无检查点与续跑 |
| 需要复杂控制流回归断言 | 不适用 | 应改用代码图框架 |
| 计划基于源码做多租户 SaaS | 需商业授权 | 许可条款明确禁止 |
7.4. 选型建议
- 与 LangGraph 的取舍是同一根轴的两端:Dify 用深度换上手速度,LangGraph 用上手成本换控制力。团队若无强平台工程能力,Dify 的性价比明显更高。
- 与 Coze(详见
06-coze.md)同属 Agent Platform,差异在于:Dify 开源可私有化、全球生态更大;Coze 背靠字节生态与国内渠道分发。 - 与 n8n(详见
07-n8n.md)的取舍:80% 是 AI 选 Dify,80% 是管道集成选 n8n。 - 采用前必须确认三件事:许可条款是否允许你的商业模式;Enterprise 的 SSO / 审计是否在预算内;研发团队缩减后你的关键依赖是否有兜底。
信息缺口声明
- 公司总部:第三方来源分别标注 San Francisco 与 New York,未能统一,标 。
- 最新版本与发布节奏:v1.16.1(2026-07-28)来自第三方核对,未与官方 release feed 逐条比对,标 。
- GitHub star 数:官方站 155K+ 与第三方 138K / 153K+ 存在时点与口径差异,引用时须注明统计时点。
- Enterprise 定价:第三方提到 AWS Marketplace 上有 $150,000 / 12 个月的说法,未获官方确认,标 。
- 客户效果量化数据:全部官网客户表述均无可量化指标,未做补全。
- 裁员背景:研发团队由 40 人降至 15 人(2026)为项目已核实硬数据,但其具体原因、涉及范围与对产品路线的影响未检索到官方说明,标 。
- ARR 数据:第三方估算约 $3M ARR,未见官方披露,标 。
- Knowledge Pipeline 的数据源清单:来自第三方整理,未与官方文档逐项核对。
8. 参考资料
- Dify 官方网站 — LangGenius, Inc.。https://dify.ai/
- Dify — AI Wiki(融资、版本、功能与许可证说明)。https://aiwiki.ai/wiki/dify
- Dify — Open-Source LLMOps Platform With Visual Workflow Builder — Hivebook(版本核对与许可证条款原文摘录)。https://hivebook.wiki/wiki/dify-open-source-llmops-platform-with-visual-workflow-builder
- Dify Review — Open-Source AI Workflow Platform With MCP, RAG, and Multi-Agent Orchestration — ChatForest(MCP 双向、Human Input 节点、2026 更新)。https://chatforest.com/reviews/dify-open-source-ai-workflow-agent-platform-review
- Dify: Build LLM Apps Visually — Open-Source Guide (2026) — Diego Rodriguez(部署命令、技术栈、许可证条款)。https://www.diego-rodriguez.work/blog/dify-llm-app-builder-2026-guide
- Dify in Practice: Full-Stack Low-Code Platform from RAG to Agent Workflows — AgentList(分块策略、部署架构、多租户)。https://www.agentlist.top/en/articles/dify-ai-platform-practice
- Dify — EveryDev.ai(能力矩阵、部署模型、企业采纳信号)。https://www.everydev.ai/tools/dify
- LangGenius, Inc. 公司概况 — ToolJunction(融资与估值)。https://www.tooljunction.io/ai-tools/dify-ai/company
- 项目参数卡 v1.0(Agent Platform 定义与六层能力模型)— 本项目内部基准文件。
- R01-概述检索报告(Framework / Harness / Platform 三层区分)— 本项目内部检索报告。
Dify
1. Introduction
1.1. Platform Positioning
Dify is an open-source LLM application development platform built by LangGenius, Inc. Its core proposition is: integrating agent workflows, RAG pipelines, model management, observability, and a plugin marketplace into a single collaborative workspace, letting teams go from prototype to production without rebuilding their tech stack.
Within the six-layer model and conceptual boundaries of the parameter card, Dify is an Agent Platform — Harness's productized wrapper: it layers UI, tenancy, billing, and publishing on top of L1~L3. This is the most fundamental difference between it and Framework-class solutions such as LangGraph, Claude Agent SDK, and ADK.
A memorable analogy is often cited: if WordPress democratized website building, Dify is doing the same for LLM application development — turning "writing code" into "dragging and dropping on a canvas."
1.2. Basic Information Card
| Item | Content | Confidence |
|---|---|---|
| Developer | LangGenius, Inc. (founders: Luyu Zhang (CEO), John Wang) | High |
| Founded / Open-sourced | 2023; GitHub repo langgenius/dify | High (version and HQ figures conflict; see below) |
| Headquarters | Third-party sources differ: some label San Francisco, some label New York | Low, conflicting; marked [To be verified] |
| Open-source form | Source available | High |
| License | Dify Open Source License — a modified Apache 2.0 adding two restrictions: ① operating a multi-tenant hosted service from the source without written permission is prohibited (one tenant = one workspace); ② removing or modifying the console and app front-end logos and copyright notices is prohibited. Not an OSI-approved license; not a drop-in pure Apache-2.0 | High (LICENSE file) |
| GitHub size | Official site figure 155K+ stars; third-party figures: 100K (2025-06-05) → 138K (2026-04) → 153K+ (2026-08-22) | Medium-high, figures change over time; cite the date when referencing |
| Latest version | Third-party verified: v1.16.1 (2026-07-28); release cadence weekly to biweekly | Medium-high, versions change fast; marked [To be verified] |
| Funding | Seed (2023-06, undisclosed, Delian Capital / FutureX Capital); Series Pre-A $30M (2026-03-09, led by HSG (formerly Sequoia China), with GL Ventures, Alt-Alpha Capital, 5Y Capital, Mizuho Leaguer Investment, NYX Ventures), reported valuation around $180M; Crunchbase cumulative about $41.5M | High |
| Team changes | R&D team reduced from 40 to 15 people (2026) | High (verified project hard data) |
| Deployment form | Dify Cloud (managed) / self-hosted Community / Enterprise (VPC or on-premises) | High (official) |
| Pricing | Sandbox free (200 message credits, 1 member, 5 apps, 50 documents); Professional $59 / month (5,000 credits / month); Team $159 / month (10,000 credits / month); annual billing saves about 17%; Enterprise custom quote | Medium-high (third-party compiled, consistent with official site) |
| Minimum deployment requirements | Docker + Docker Compose v2.24.0+, CPU ≥ 2 cores, memory ≥ 4 GiB (8 GiB recommended for Docker Desktop) | High (official README) |
1.3. Development Timeline
| Time | Event | Source level |
|---|---|---|
| 2023 | LangGenius founded; langgenius/dify open-sourced | A |
| 2025-02-28 | v1.0.0: introduced the plugin system, decoupling models and tools from the core; launched Dify Marketplace | A |
| 2025-06-05 | GitHub stars passed 100,000 | A (official announcement) |
| 2025-07 | v1.6.0: bidirectional MCP support (client + server), HTTP MCP, protocol version 2025-03-26 | B |
| Within 2025 | Knowledge Pipeline moved the RAG ETL path onto the canvas | B |
| 2026-03-09 | Series Pre-A $30M, led by HSG, reported valuation around $180M | A |
| 2026-04-29 | v1.14.0: collaborative editing, human-in-the-loop, MCP improvements | B |
| 2026-05-19 | v1.14.2 | B |
| 2026-07-01 | v1.15.0: difyctl command-line client (run apps and workflows from terminal / CI); onboarding and editor refactor | B |
| 2026-07-17 | v1.16.0: Dify Agent (Beta) — a shell-based agent running in a Linux sandbox, packaged with Skills; release notes explicitly warn that it should only be opened to trusted, non-malicious users | B |
| 2026-07-28 | v1.16.1 (current): bug and security fixes, multi-select tool inputs, workflow node locate, agent DSL export | B |
| Within 2026 | R&D team reduced from 40 to 15 people | Verified project hard data |
1.4. Position in the AI Harness System
Per the parameter-card boundary table, Dify clearly falls into the Agent Platform cell:
| Comparison dimension | Agent Framework (LangGraph / ADK) | Agent Platform (Dify) |
|---|---|---|
| Delivery form | Code library | Web console + API |
| Users | Engineers | Engineers + product / operations / business |
| Includes UI | No (ADK's Dev UI is for debugging only) | Yes |
| Includes tenancy | No | Yes (multi-tenant Workspace) |
| Includes billing | No | Yes (credits) |
| Includes publishing | No | Yes (Web App / API / embedding / MCP) |
Key judgment: Dify is the only platform in this group with deliverable capabilities across all six layers L1~L6, at the cost of being shallower than specialized solutions at each layer.
2. Glossary
| Term | English / Abbreviation | Definition |
|---|---|---|
| Dify | Dify | Open-source LLM application development platform integrating agent workflows, RAG pipelines, model management, observability, and a plugin marketplace |
| Workflow | Workflow | Visual canvas for automation and batch processing; runs once per input and returns a result; nodes include LLM calls, knowledge retrieval, code execution, HTTP requests, conditional branches, and tool calls |
| Chatflow | Chatflow | A special workflow: triggered on every turn of a conversation, maintaining session variables, memory, and streaming output |
| Agent App | Agent | Standalone conversational assistant form that autonomously decomposes tasks, selects tools, and loops until completion; supports ReAct or Function Calling strategies with 50+ built-in tools |
| Agent Node | Agent Node | A node embedded in a Workflow that turns agent behavior into a deterministic step within a larger graph; officially recommended for production multi-agent systems |
| Knowledge | Knowledge / knowledge base | RAG foundation: ingestion → chunking → vectorization → indexing → retrieval → reranking |
| Knowledge Pipeline | Knowledge Pipeline | Moves the RAG ETL path (parsing, cleaning, chunking, enrichment, vectorization) onto a visual canvas, each step configurable |
| Chunking | Chunking | Chunking strategies: Dify offers fixed-size chunking, paragraph chunking, and parent-child chunking |
| Parent-child Chunking | Parent-child chunking | Dify's differentiator: split parent chunks first, then child chunks; child chunks match precisely, and on a hit the parent chunk is returned to provide full context |
| Rerank | Rerank / reranking | Secondary reordering after retrieval to improve hit quality |
| Human Input Node | Human Input | Node introduced in v1.13.0: pauses during execution to wait for human review, can approve / reject / escalate, edit variables, and is configurable with a timeout (default 3 days) that routes to a fallback branch |
| Plugin | Plugin | Since v1.0.0, models and tools are decoupled from the core as plugins, installed from the Marketplace |
| Marketplace | Dify Marketplace | Installation market for model providers, tools, data sources, and MCP integrations; teams can reuse approved plugins |
| Workspace | Workspace | Tenant unit: a single instance can host multiple Workspaces, each with independent members, knowledge bases, apps, and configuration |
| Message Credit | Credits | Dify Cloud's metering unit, billed by message allowance |
| difyctl | difyctl | Command-line client introduced in v1.15.0; runs apps and workflows from the terminal or CI |
| Dify Agent | Dify Agent | v1.16.0 Beta: a shell-based agent running in a Linux sandbox, packaged with Skills |
| BaaS | Backend-as-a-Service | Every Dify capability is exposed via API and can be embedded into existing business logic |
| Annotation | Annotation | Annotating app runs; can feed back into improved datasets |
3. Feature Overview
3.1. Four Application Forms
| Form | Trigger | Use cases |
|---|---|---|
| Chat Assistant | Multi-turn conversation | Customer service, Q&A |
| Text Completion | Single-input output | Completion, generation |
| Agent | Conversation + autonomous tool loop | Tasks needing autonomous decomposition |
| Workflow / Chatflow | Canvas orchestration | Complex multi-node logic |
3.2. Division of Labor Between Workflow and Chatflow
This is the pair of concepts most often misunderstood in Dify; the official explanation follows:
| Dimension | Workflow | Chatflow |
|---|---|---|
| Trigger | Runs once per input | Triggered on every turn of a conversation |
| State | No session state | Maintains session variables and memory |
| Output | Single result returned | Supports streaming output |
| Typical scenarios | Translation, data analysis, content generation, email automation | Chatbots, multi-turn Q&A |
Selection rule of thumb: choose Chatflow for chatbots and Workflow for asynchronous batch processing.
3.3. Knowledge Base and RAG Pipeline
RAG is widely regarded as Dify's strongest capability; its complete pipeline is: document ingestion → chunking → vectorization → indexing → retrieval → reranking.
Comparison of three chunking strategies:
| Strategy | How it works | Best for |
|---|---|---|
| Fixed-size chunking | Splits by token count, with overlapping windows | Simple text, news |
| Paragraph chunking | Splits by line breaks / headings | Structured documents (manuals, papers) |
| Parent-child chunking | Splits parent chunks first, then child chunks; on a child hit, the parent is returned | Long-document Q&A, technical support documents |
Parent-child chunking is Dify's differentiator: child chunks handle precise matching, while parent chunks provide the full context — for example, when a code snippet (child chunk) is hit, the complete function definition (parent chunk) is returned.
Supported input sources: PDF, TXT, Markdown, JSON, DOCX, XLSX, CSV, HTML; built-in web crawler (enter a URL); Notion / Confluence API sync; Knowledge API batch writes; OCR preprocessing for scanned PDFs.
Knowledge Pipeline further moves RAG's ETL onto the canvas: each step (parsing, cleaning, chunking, enrichment, vectorization) becomes a configurable node, with data sources covering Google Drive, Notion, Confluence, AWS S3, and Slack.
3.4. The Two Ways to Build an Agent
| Approach | Form | Best for | Official recommendation |
|---|---|---|---|
| Agent App | Standalone conversational assistant, ReAct or Function Calling, 50+ built-in tools | Quick validation, single-responsibility assistants | — |
| Agent Node | A deterministic step embedded in a Workflow | Production multi-agent systems | Recommended |
This recommendation is worth noting: Dify does not officially recommend building production multi-agent systems on "autonomous Agent Apps," but rather recommends demoting agent behavior to a single node within a workflow. This aligns with the core spirit of AI Harness — containing an uncertain core with a deterministic container.
3.5. Bidirectional MCP Capability
Since v1.6.0 (2025-07), Dify supports bidirectional MCP capability:
- As an MCP Client: agents inside Dify can directly call any external MCP server (official examples: Linear, Notion, Zapier), using HTTP-based MCP (protocol version 2025-03-26), replacing per-service integration code;
- As an MCP Server: any Dify application (Chatflow, Workflow, Agent) can be published as an MCP server, called by Claude Desktop, Cursor, or any MCP client.
The strategic implication of the latter is greater: Dify shifts from a "agent-building tool" to "a tool provider for agents in other ecosystems."
3.6. The Human Input Node
Introduced in v1.13.0, it is a key capability of Dify for regulated industries:
- A running workflow can pause to wait for human review;
- Reviewers respond via the Web app or email;
- Variables can be edited before the workflow continues;
- It can route to different branches via configurable buttons (approve / reject / escalate);
- A timeout is configurable (default 3 days); on timeout it takes the fallback branch.
Compared with LangGraph's interrupt, the Human Input node is more structured: pause points are defined at design time, rather than at arbitrary nodes at runtime. For scenarios such as legal review, compliance checks, and medical triage, this difference is decisive.
3.7. Plugin and Model Layer
- Since v1.0.0, models and tools are decoupled from the core as plugins, installed from the Marketplace;
- Supports hundreds of proprietary and open-source models: GPT, Claude, Gemini, Mistral, Llama, DeepSeek, Qwen, and more, as well as any OpenAI-compatible endpoint; self-hosted Ollama and Xinference models are first-class citizens;
- Models can be mixed within a single workflow: route cheap tasks to small models and complex reasoning to frontier models. This itself is a form of cost governance.
3.8. Observability and Publishing
- Observability: app logs, performance analysis, annotation feedback into datasets, latency and usage data; the debugger has better visualization of LLM token usage; can integrate Langfuse, Opik, Arize Phoenix.
- Publishing: each app can be published as a hosted Web app, an API endpoint, a web embedding component, or an MCP-compatible tool.
4. Platform Architecture
图 4-1|Dify 自托管技术栈:从前端到异步 Worker 的分层架构
数据来源:基于本文分析绘制的示意图。
4.1 Deployment Forms
| Form | Description | Key differences |
|---|---|---|
| Dify Cloud | Officially hosted | Zero infrastructure; features usually arrive one release cycle earlier than self-hosted; billed by credits |
| Self-hosted Community | Docker Compose / Kubernetes | Data stays in your own infrastructure; no per-message billing; features roughly 100% aligned with Cloud |
| Enterprise | On-premises / VPC / public cloud | Adds SSO / SAML, RBAC, audit logs, VPC isolation, dedicated CSM and 24/7 support; SOC 2 Type II + ISO 27001 |
4.2 Self-Hosted Technology Stack
The official Docker Compose spins up a full set of services, with a minimum of 2 CPU cores + 4 GiB memory:
| Component | Tech stack | Responsibility |
|---|---|---|
| Frontend console | Next.js | Web UI, admin panel, chat components |
| API service | Python (Flask) | Business logic, API endpoints |
| Worker | Python RQ | Async tasks (document parsing, index building) |
| Database | PostgreSQL | App data, users, conversation history |
| Cache / queue | Redis | Cache, task queue, session management |
| Vector store | Weaviate (default; optional Qdrant / Milvus / PGVector) | Default vector storage |
| Sandbox | — | Code execution |
| Reverse proxy | nginx | Entry point |
The async Worker architecture is the key differentiator: all time-consuming operations (PDF parsing, vector indexing, large file processing) run in background queues and do not block the API.
Production recommendations: replace with a dedicated vector-database cluster (Qdrant / Milvus), use external PostgreSQL, switch to S3-compatible storage, and use nginx + HTTPS.
4.3 Processing Flow of a Chatflow Request
- The user message enters; session variables and memory are loaded;
- If a knowledge retrieval node is present: query rewriting → vector / keyword / hybrid retrieval → reranking → context injection;
- Routing to the corresponding model (different models may be selected per node within the workflow);
- If an Agent Node is present: run the ReAct / Function Calling loop within that node, calling 50+ built-in tools or external MCP servers;
- If a Human Input node is present: pause and wait for review (variables can be edited, branches or timeout fallback can be used);
- Conditional branch / parallel / iteration nodes execute according to canvas semantics;
- Streaming output to the Web app or API;
- Logs and usage data are written for subsequent annotation and optimization.
5. Harness Design
5.1. Six-Layer Capability Overview
| Layer | Name | Strength | Basis for judgment |
|---|---|---|---|
| L1 | Context engineering | Strong | RAG is a first-class citizen; three chunking strategies + reranking; visualized Knowledge Pipeline; per-model routing within workflows |
| L2 | Tools and execution | Strong | 50+ built-in tools + plugin marketplace + bidirectional MCP + code execution sandbox + Dify Agent (Beta) Linux sandbox |
| L3 | Orchestration and control | Strong | Visual canvas (branch / parallel / iteration / condition) + Chatflow + Agent Node + Human Input node |
| L4 | Memory and state | Medium-strong | Chatflow session variables and memory, conversation history; weak artifact and checkpoint management |
| L5 | Evaluation and observability | Medium-strong | Logs, annotation feedback, latency and usage analysis, token debugger; no native Golden Dataset / regression-set mechanism |
| L6 | Governance and security | Medium-strong (Enterprise) / weak (Community) | Enterprise provides SSO / SAML, RBAC, audit logs, SOC 2 Type II, ISO 27001; largely absent in the Community edition |
5.2. L1 Context Engineering Layer
Dify's L1 is the most fully productized layer within this group, because it turns retrieval engineering into visual configuration:
- Three chunking strategies are available, with parent-child chunking being the differentiator;
- Retrieval methods cover vector, keyword / BM25, and hybrid, with optional reranking;
- Knowledge Pipeline makes every ETL step visible and tunable;
- Per-model routing within workflows is itself part of context engineering — handing contexts of different complexity to models of different tiers.
Shortcomings:
- No context compaction primitive;
- No progressive disclosure (contrast Claude Agent SDK's Skills; Dify Agent Beta is just beginning to introduce Skills packaging);
- Sorting and trimming strategy after retrieval into context is still fairly fixed.
5.3. L2 Tools and Execution Layer
- Built-in tools: 50+, including Google Search, DALL·E, Stable Diffusion, WolframAlpha, and more;
- Plugin marketplace: model providers, tools, data sources, and MCP integrations installed uniformly; teams can reuse approved plugins (itself a governance action);
- Bidirectional MCP: can call external services and be called externally;
- Sandbox: code execution sandbox; the v1.16.0 Dify Agent (Beta) runs in a Linux sandbox.
A risk that must be highlighted: the Dify Agent Beta release notes explicitly warn that it should only be opened to trusted, non-malicious users. This is the inherent risk of a shell-based agent and a direct manifestation of the L2-layer principle "the more powerful the capability, the larger the attack surface."
5.4. L3 Orchestration and Control Layer
On the tension between flexibility ↔ predictability, Dify sits on the more-predictable side:
- The canvas is an explicit graph and control flow is visible — close to LangGraph in this respect;
- But it is less expressive than a code graph: complex conditional logic on a canvas easily degenerates into "spaghetti wiring";
- Iteration and parallel nodes are provided, but loop semantics are less rigorous than LangGraph's Pregel-style execution;
- The Human Input node fixes pause points at design time, making predictability higher than LangGraph's arbitrary-node interrupt, but with lower flexibility.
The official recommendation to "build production multi-agent systems with Agent Node rather than Agent App" is essentially a deliberate choice of the predictability end of this tension axis.
5.5. L4 Memory and State Layer
| Capability | Carrier | Strength |
|---|---|---|
| Session variables | Chatflow custom session variables | Medium-strong |
| Conversation memory | Chatflow built-in memory | Medium-strong |
| Conversation history | PostgreSQL persistence | Medium-strong |
| Artifact management | No dedicated mechanism | Weak |
| Checkpoints / recovery | None | Missing |
For comparison: LangGraph has Checkpoint + Thread + Time Travel; ADK has Session + Memory + Artifact (versioned). Dify only has "session-level" capability in this layer, with no run-level checkpoints or artifact versioning. This means long tasks cannot be resumed from the middle after a crash.
5.6. L5 Evaluation and Observability Layer
What exists:
- App logs and performance analysis;
- Annotation feeding back into improved datasets — a simple implementation of flowing production data back into the optimization loop;
- Latency and usage data;
- LLM token usage debugger (public reviews consider it superior to comparable tools);
- Can integrate third-party observability tools such as Langfuse, Opik, Arize Phoenix.
What is missing:
- No native Golden Dataset / regression-set mechanism (annotation partially substitutes, but is not the same thing);
- No automated workflow to "run the regression set and gate on thresholds with every release";
- No A/B and online metrics system.
Hence the "medium-strong" judgment — observability is sufficient, while evaluation requires external tools or manual annotation.
5.7. L6 Governance and Security Layer
| Governance capability | Community | Enterprise |
|---|---|---|
| SSO / SAML | No | Yes |
| RBAC | No | Yes |
| Audit logs | No | Yes |
| VPC isolation | Naturally isolated when self-hosted | Yes |
| SOC 2 Type II | No | Yes |
| ISO 27001 | No | Yes |
| Compliance licensing | No | Yes |
| Dedicated CSM + 24/7 support | No | Yes |
| Data residency | Controlled by self-hosting | Controlled |
There is also a license-level governance rule: the Dify Open Source License prohibits operating a multi-tenant hosted service without written permission and prohibits removing the front-end logos and copyright notices. This is not a technical guardrail, but it is the hardest business boundary of this platform — to commercialize multi-tenant SaaS on top of Dify's source code, you must first obtain a commercial license.
5.8. Concrete Manifestations of the Three Inherent Tensions
| Tension | Manifestation on this platform | Mitigation |
|---|---|---|
| Flexibility ↔ predictability | Low-code trades for fast onboarding: the canvas is explicit but limited in expressiveness, and complex logic degenerates into spaghetti wiring; the official stance proactively recommends Agent Node over autonomous Agent App | Use Workflow + Human Input to fix pause points on critical paths; demote autonomous loops to a single node |
| Openness ↔ governance | Bidirectional MCP: as a server it opens capabilities to the external ecosystem, as a client it introduces an external attack surface; third-party plugins in the marketplace are the same | Only install approved plugins; open Dify Agent only to trusted users; use RBAC + audit logs in Enterprise |
| Cost ↔ depth | Cloud bills on message credits, and deep agent chains burn through them quickly; self-hosting shifts the cost to operations | Per-model routing within workflows (cheap tasks to small models); self-hosting eliminates per-message billing; watch the ARR-to-credits-consumption ratio |
6. Real-World Cases
The following customer testimonials are all published publicly by Dify's official website; they are customer statements cited by the vendor, not independently verified, and none include quantifiable effect metrics.
Case 1: Volvo Cars (Head of AI & Data APAC)
"In this climate of perpetual beta, tools enabling rapid validation aren't just helpful, they're existential. For Volvo Cars, strategically navigating this AI frontier, this is where Dify delivers indispensable value."
Interpretation: the value lies in rapid validation capability, rather than deep customization.
Case 2: RICOH (General Manager of a Business Division)
"What makes Dify stand out is its ability to democratize AI agent development. By combining powerful AI/ML capabilities on a no-code platform, its rapid deployment and intuitive interface make it highly accessible even for beginners, significantly accelerating citizen development."
Interpretation: the core value is citizen development — enabling non-engineering roles to participate in building agents.
Case 3: ETS, an assessment products company
"Dify's intuitive interface allows our teams to rapidly design and deploy complex natural language processing pipelines, enabling us to improve the quality of our assessment products while reducing cost and time to market."
Interpretation: points to reduced time to market and cost, but no specific percentages are given.
Other customer logos listed on the official site: Maersk, Adobe, Google, Panasonic, PayPal, Lilly, Thermo Fisher Scientific, MITRE, Mercedes-Benz, Novartis, Deloitte, McDonald's, AIA, Volkswagen, CTC, KPMG, Volvo, RICOH, ETS, Anker, and more. Note: displaying a brand logo is not an endorsement of effectiveness, nor does it represent deployment scale.
Vendor-reported scale figures (not independently verified): 280+ enterprise customers; Dify runs on over 1.4 million machines in more than 175 countries and regions; over 5 million downloads; more than 1 million apps running on the platform. All of the above are vendor-published figures; this document records and labels them as-is, and they are not to be used as the basis for conclusions.
Part for which no public quantitative data was found: as of the search date 2026-09-12, no cost-reduction percentages, task success rates, labor substitution rates, or ROI data were found for any Dify customer case; this is stated truthfully here and not filled in.
Risk note (to be included in selection evaluation): in 2026, Dify's R&D team shrank from 40 to 15 people. This is a clear signal of organizational change; when evaluating long-term dependence, its impact on release cadence and enterprise support capability must be considered. This figure is verified project hard data; its specific background and scope of impact were not further researched.
7. Summary
7.1. Strengths
- Strongest RAG: the most fully productized retrieval pipeline in this group, with parent-child chunking + reranking + Knowledge Pipeline.
- Lowest low-code barrier: non-engineering roles can participate in building, with strong citizen development capability.
- Deliverable capability across all six layers: the only platform in this group covering L1~L6 (L6 requires Enterprise).
- Bidirectional MCP: can call the external ecosystem and publish its own capabilities as MCP tools.
- Human Input node: design-time-fixed pause points, suited to regulated industries.
- Self-hosting with no per-message billing: data self-control + controllable cost.
- Large ecosystem: 155K+ GitHub stars, running on 1.4 million machines (vendor figures).
7.2. Weaknesses
- License not OSI: prohibits multi-tenant commercial hosting and logo removal; building SaaS on top of it requires a commercial license.
- Weak L4: no run-level checkpoints or artifact versioning; long tasks cannot resume after a crash.
- Incomplete L5: no native Golden Dataset / regression set; evaluation relies on annotation and external tools.
- Limited canvas expressiveness: complex logic degenerates into spaghetti wiring, reducing maintainability.
- Pronounced L6 tiering: SSO / RBAC / audit / compliance all live in Enterprise; the Community edition has essentially none.
- Dify Agent risk: the Beta version's official warning limits it to trusted users only.
- Organizational change risk: R&D team reduced from 40 to 15 people (2026).
7.3. Applicable Boundaries
| Scenario | Applicable? | Reason |
|---|---|---|
| Knowledge-base Q&A / document assistant | Highly applicable | Most fully productized RAG |
| Customer-service copilot / internal Q&A | Applicable | Chatflow + multi-channel publishing |
| Prototype validation requiring business-role participation | Highly applicable | Lowest low-code barrier |
| Regulated industries (legal / compliance / medical triage) | Applicable (Enterprise) | Human Input node + RBAC + audit |
| Long-running, resumable tasks | Not applicable | No checkpoints or resumption |
| Complex control-flow regression assertions | Not applicable | Use a code-graph framework instead |
| Planning multi-tenant SaaS on top of the source code | Requires a commercial license | Explicitly prohibited by license terms |
7.4. Selection Recommendations
- The trade-off with LangGraph is two ends of the same axis: Dify trades depth for speed of onboarding; LangGraph trades onboarding cost for control. For teams without strong platform engineering capability, Dify offers clearly better value for money.
- Like Coze (see
06-coze.md), it belongs to the Agent Platform category; the difference is: Dify is open source and can be privatized with a larger global ecosystem, whereas Coze relies on ByteDance's ecosystem and domestic channel distribution. - The trade-off with n8n (see
07-n8n.md): choose Dify when it's 80% AI, and n8n when it's 80% pipeline integration. - Three things must be confirmed before adoption: whether the license terms permit your business model; whether Enterprise SSO / audit fits your budget; whether your critical dependencies have a fallback after the R&D team contraction.
Information Gap Statement
- Company headquarters: third-party sources respectively label San Francisco and New York, unresolved; marked
[To be verified]. - Latest version and release cadence: v1.16.1 (2026-07-28) comes from third-party verification, not compared item-by-item with the official release feed; marked
[To be verified]. - GitHub star count: the official site's 155K+ and third-party 138K / 153K+ differ by timing and methodology; the statistical date must be noted when referencing.
- Enterprise pricing: third parties mention a $150,000 / 12 months figure on AWS Marketplace, not officially confirmed; marked
[To be verified]. - Quantified customer-effect data: none of the official-site customer statements include quantifiable metrics; not filled in.
- Layoff background: the R&D team's drop from 40 to 15 people (2026) is verified project hard data, but its specific causes, scope, and impact on the product roadmap have no official explanation; marked
[To be verified]. - ARR data: third parties estimate about $3M ARR, with no official disclosure; marked
[To be verified]. - Knowledge Pipeline data-source list: compiled from third-party sources, not checked item-by-item against official documentation.
8. References
- Dify official website — LangGenius, Inc. https://dify.ai/
- Dify — AI Wiki (funding, versions, features, and license notes). https://aiwiki.ai/wiki/dify
- Dify — Open-Source LLMOps Platform With Visual Workflow Builder — Hivebook (version verification and license terms excerpts). https://hivebook.wiki/wiki/dify-open-source-llmops-platform-with-visual-workflow-builder
- Dify Review — Open-Source AI Workflow Platform With MCP, RAG, and Multi-Agent Orchestration — ChatForest (bidirectional MCP, Human Input node, 2026 updates). https://chatforest.com/reviews/dify-open-source-ai-workflow-agent-platform-review
- Dify: Build LLM Apps Visually — Open-Source Guide (2026) — Diego Rodriguez (deployment commands, tech stack, license terms). https://www.diego-rodriguez.work/blog/dify-llm-app-builder-2026-guide
- Dify in Practice: Full-Stack Low-Code Platform from RAG to Agent Workflows — AgentList (chunking strategies, deployment architecture, multi-tenancy). https://www.agentlist.top/en/articles/dify-ai-platform-practice
- Dify — EveryDev.ai (capability matrix, deployment models, enterprise adoption signals). https://www.everydev.ai/tools/dify
- LangGenius, Inc. company profile — ToolJunction (funding and valuation). https://www.tooljunction.io/ai-tools/dify-ai/company
- Project parameter card v1.0 (Agent Platform definition and six-layer capability model) — this project's internal baseline document.
- R01-overview research report (three-layer distinction of Framework / Harness / Platform) — this project's internal research report.