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. 发展时间线

时间事件来源等级
2023LangGenius 成立;langgenius/dify 开源A
2025-02-28v1.0.0:引入插件系统,把模型与工具从内核解耦;上线 Dify MarketplaceA
2025-06-05GitHub stars 突破 100,000A(官方公告)
2025-07v1.6.0:MCP 双向支持(client + server),HTTP MCP,协议版本 2025-03-26B
2025 年内Knowledge Pipeline 把 RAG 的 ETL 路径搬到画布B
2026-03-09Series Pre-A $30M,HSG 领投,报道估值约 $180MA
2026-04-29v1.14.0:协同编辑、human-in-the-loop、MCP 改进B
2026-05-19v1.14.2B
2026-07-01v1.15.0:difyctl 命令行客户端(终端 / CI 运行应用与工作流);引导与编辑器重构B
2026-07-17v1.16.0:Dify Agent(Beta)——运行在 Linux 沙箱中的 shell-based agent,带 Skills 打包;发布说明明确警告仅应对可信、非恶意用户开放B
2026-07-28v1.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. 名词解释

术语英文/缩写释义
DifyDify开源 LLM 应用开发平台,整合智能体工作流、RAG 管线、模型管理、可观测性与插件市场
WorkflowWorkflow面向自动化与批处理的可视化画布,每次输入跑一次并返回结果;节点含 LLM 调用、知识检索、代码执行、HTTP 请求、条件分支、工具调用
ChatflowChatflow特殊的工作流:每一轮对话都触发一次,维护会话变量、记忆与流式输出
Agent AppAgent独立会话助手形态,自主拆解任务、选择工具、循环直到完成;支持 ReAct 或 Function Calling 策略,50+ 内置工具
Agent NodeAgent Node嵌在 Workflow 中的一个节点,把智能体行为变成更大图里的一个确定性步骤;官方推荐用于生产多智能体系统
KnowledgeKnowledge / 知识库RAG 底座:摄入 → 分块 → 向量化 → 索引 → 检索 → 重排
Knowledge PipelineKnowledge Pipeline把 RAG 的 ETL 路径(解析、清洗、分块、富化、向量化)搬到可视化画布上,每步可配置
ChunkingChunking分块策略:Dify 提供固定大小分块、段落分块与父子分块三种
Parent-child Chunking父子分块Dify 的差异化能力:先切父块再切子块,子块精确匹配、命中后返回父块提供完整上下文
RerankRerank / 重排检索后的二次排序,提高命中质量
Human Input NodeHuman Inputv1.13.0 引入的节点:运行中暂停等待人工审核,可批准 / 拒绝 / 升级,可编辑变量,可配置超时(默认 3 天)走兜底分支
PluginPluginv1.0.0 起把模型与工具从内核解耦为插件,从 Marketplace 安装
MarketplaceDify Marketplace模型供应商、工具、数据源与 MCP 集成的安装市场,团队可复用已审批的插件
WorkspaceWorkspace租户单元:单个实例可承载多个 Workspace,每个有独立成员、知识库、应用与配置
Message CreditCreditsDify Cloud 的计量单位,按消息额度计费
difyctldifyctlv1.15.0 引入的命令行客户端,可从终端或 CI 运行应用与工作流
Dify AgentDify Agentv1.16.0 Beta:运行在 Linux 沙箱中的 shell-based 智能体,带 Skills 打包
BaaSBackend-as-a-ServiceDify 的每个能力都通过 API 暴露,可嵌入既有业务逻辑
AnnotationAnnotation对应用运行的标注,可反哺为改进数据集

3. 功能说明

3.1. 四类应用形态

形态触发方式适用场景
Chat Assistant多轮对话客服、问答
Text Completion单次输入产出补全、生成
Agent对话 + 自主工具循环需要自主拆解任务
Workflow / Chatflow画布编排复杂多节点逻辑

3.2. Workflow 与 Chatflow 的分工

这是 Dify 最容易被误解的一对概念,官方口径如下:

维度WorkflowChatflow
触发每次输入跑一次每一轮对话都触发一次
状态无会话状态维护会话变量与记忆
输出一次性返回结果支持流式输出
典型场景翻译、数据分析、内容生成、邮件自动化聊天机器人、多轮问答

选型口诀:做聊天机器人选 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 的分层架构

Dify 自托管技术栈(分层架构) 信息截止 2026-09-12 · 示意:基于本文分析绘制 入口层 nginx 反向代理 入口 · 统一转发 前端层 Next.js 控制台 Web UI · 管理面板 · 聊天组件 API 层 Flask API 服务 业务逻辑 · API 端点 Worker 层 · 异步任务(本图重点) Python RQ Worker 文档解析 · 索引构建 · 大文件处理 数据层 PostgreSQL 应用数据 · 用户 · 对话历史 Redis 缓存 · 任务队列 · 会话 Weaviate 向量存储 · RAG 检索 请求转发 前端调用 API 入队异步任务 数据读写 结构解读:异步 Worker 架构是关键差异化——PDF 解析、向量索引等耗时操作在后台队列完成,不阻塞 API。

数据来源:基于本文分析绘制的示意图。

4.1 部署形态

形态说明关键差异
Dify Cloud官方托管零基础设施;功能通常比自托管早一个发布周期;按 credits 计费
自托管 CommunityDocker 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.jsWeb UI、管理面板、聊天组件
API 服务Python(Flask)业务逻辑、API 端点
WorkerPython RQ异步任务(文档解析、索引构建)
数据库PostgreSQL应用数据、用户、对话历史
缓存 / 队列Redis缓存、任务队列、会话管理
向量库Weaviate(默认,可选 Qdrant / Milvus / PGVector)默认向量存储
沙箱代码执行
反向代理nginx入口

异步 Worker 架构是关键差异化:所有耗时操作(PDF 解析、向量索引、大文件处理)都在后台队列完成,不阻塞 API

生产建议:替换专用向量库集群(Qdrant / Milvus)、使用外部 PostgreSQL、改用 S3 兼容存储、nginx + HTTPS。

4.3 一次 Chatflow 请求的处理流

  1. 用户消息进入,加载会话变量与记忆;
  2. 若含知识检索节点:查询重写 → 向量 / 关键词 / 混合检索 → 重排 → 注入上下文;
  3. 路由到对应模型(工作流内可按节点选择不同模型);
  4. 若含 Agent Node:在该节点内做 ReAct / Function Calling 循环,可调用 50+ 内置工具或外部 MCP 服务器;
  5. 若含 Human Input 节点:暂停并等待审核(可编辑变量、可走分支、可超时兜底);
  6. 条件分支 / 并行 / 迭代节点按画布语义执行;
  7. 流式输出至 Web 应用或 API;
  8. 写入日志与用量数据,供后续标注与优化。

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 治理与安全层

治理能力CommunityEnterprise
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. 优势

  1. RAG 最强:本组中产品化最完整的检索管线,父子分块 + 重排 + Knowledge Pipeline。
  2. 低代码门槛最低:非工程角色可参与构建,公民开发能力强。
  3. 六层均有可交付能力:本组中唯一 L1~L6 全覆盖的平台(L6 需 Enterprise)。
  4. MCP 双向:既能调用外部生态,也能把自身能力发布为 MCP 工具。
  5. Human Input 节点:设计期固定暂停点,适配受监管行业。
  6. 自托管无按消息计费:数据自控 + 成本可控。
  7. 生态规模大:155K+ GitHub stars,140 万台机器运行(厂商口径)。

7.2. 劣势

  1. 许可非 OSI:禁止多租户托管商用与移除 logo,基于其做 SaaS 需商业授权。
  2. L4 弱:无运行级检查点与工件版本,长任务崩溃无法续跑。
  3. L5 不完整:无原生 Golden Dataset / 回归集,评估靠标注与外挂。
  4. 画布表达力有限:复杂逻辑退化为面条式连线,可维护性下降。
  5. L6 分层明显:SSO / RBAC / 审计 / 合规全在 Enterprise,社区版基本没有。
  6. Dify Agent 风险:Beta 版本官方明确警告仅对可信用户开放。
  7. 组织变动风险:研发团队从 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 / 审计是否在预算内;研发团队缩减后你的关键依赖是否有兜底。

信息缺口声明

  1. 公司总部:第三方来源分别标注 San Francisco 与 New York,未能统一,标 。
  2. 最新版本与发布节奏:v1.16.1(2026-07-28)来自第三方核对,未与官方 release feed 逐条比对,标 。
  3. GitHub star 数:官方站 155K+ 与第三方 138K / 153K+ 存在时点与口径差异,引用时须注明统计时点。
  4. Enterprise 定价:第三方提到 AWS Marketplace 上有 $150,000 / 12 个月的说法,未获官方确认,标 。
  5. 客户效果量化数据:全部官网客户表述均无可量化指标,未做补全。
  6. 裁员背景:研发团队由 40 人降至 15 人(2026)为项目已核实硬数据,但其具体原因、涉及范围与对产品路线的影响未检索到官方说明,标 。
  7. ARR 数据:第三方估算约 $3M ARR,未见官方披露,标 。
  8. Knowledge Pipeline 的数据源清单:来自第三方整理,未与官方文档逐项核对。

8. 参考资料

  1. Dify 官方网站 — LangGenius, Inc.。https://dify.ai/
  2. Dify — AI Wiki(融资、版本、功能与许可证说明)。https://aiwiki.ai/wiki/dify
  3. Dify — Open-Source LLMOps Platform With Visual Workflow Builder — Hivebook(版本核对与许可证条款原文摘录)。https://hivebook.wiki/wiki/dify-open-source-llmops-platform-with-visual-workflow-builder
  4. 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
  5. Dify: Build LLM Apps Visually — Open-Source Guide (2026) — Diego Rodriguez(部署命令、技术栈、许可证条款)。https://www.diego-rodriguez.work/blog/dify-llm-app-builder-2026-guide
  6. Dify in Practice: Full-Stack Low-Code Platform from RAG to Agent Workflows — AgentList(分块策略、部署架构、多租户)。https://www.agentlist.top/en/articles/dify-ai-platform-practice
  7. Dify — EveryDev.ai(能力矩阵、部署模型、企业采纳信号)。https://www.everydev.ai/tools/dify
  8. LangGenius, Inc. 公司概况 — ToolJunction(融资与估值)。https://www.tooljunction.io/ai-tools/dify-ai/company
  9. 项目参数卡 v1.0(Agent Platform 定义与六层能力模型)— 本项目内部基准文件。
  10. 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

ItemContentConfidence
DeveloperLangGenius, Inc. (founders: Luyu Zhang (CEO), John Wang)High
Founded / Open-sourced2023; GitHub repo langgenius/difyHigh (version and HQ figures conflict; see below)
HeadquartersThird-party sources differ: some label San Francisco, some label New YorkLow, conflicting; marked [To be verified]
Open-source formSource availableHigh
LicenseDify 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.0High (LICENSE file)
GitHub sizeOfficial 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 versionThird-party verified: v1.16.1 (2026-07-28); release cadence weekly to biweeklyMedium-high, versions change fast; marked [To be verified]
FundingSeed (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.5MHigh
Team changesR&D team reduced from 40 to 15 people (2026)High (verified project hard data)
Deployment formDify Cloud (managed) / self-hosted Community / Enterprise (VPC or on-premises)High (official)
PricingSandbox 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 quoteMedium-high (third-party compiled, consistent with official site)
Minimum deployment requirementsDocker + Docker Compose v2.24.0+, CPU ≥ 2 cores, memory ≥ 4 GiB (8 GiB recommended for Docker Desktop)High (official README)

1.3. Development Timeline

TimeEventSource level
2023LangGenius founded; langgenius/dify open-sourcedA
2025-02-28v1.0.0: introduced the plugin system, decoupling models and tools from the core; launched Dify MarketplaceA
2025-06-05GitHub stars passed 100,000A (official announcement)
2025-07v1.6.0: bidirectional MCP support (client + server), HTTP MCP, protocol version 2025-03-26B
Within 2025Knowledge Pipeline moved the RAG ETL path onto the canvasB
2026-03-09Series Pre-A $30M, led by HSG, reported valuation around $180MA
2026-04-29v1.14.0: collaborative editing, human-in-the-loop, MCP improvementsB
2026-05-19v1.14.2B
2026-07-01v1.15.0: difyctl command-line client (run apps and workflows from terminal / CI); onboarding and editor refactorB
2026-07-17v1.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 usersB
2026-07-28v1.16.1 (current): bug and security fixes, multi-select tool inputs, workflow node locate, agent DSL exportB
Within 2026R&D team reduced from 40 to 15 peopleVerified 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 dimensionAgent Framework (LangGraph / ADK)Agent Platform (Dify)
Delivery formCode libraryWeb console + API
UsersEngineersEngineers + product / operations / business
Includes UINo (ADK's Dev UI is for debugging only)Yes
Includes tenancyNoYes (multi-tenant Workspace)
Includes billingNoYes (credits)
Includes publishingNoYes (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

TermEnglish / AbbreviationDefinition
DifyDifyOpen-source LLM application development platform integrating agent workflows, RAG pipelines, model management, observability, and a plugin marketplace
WorkflowWorkflowVisual 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
ChatflowChatflowA special workflow: triggered on every turn of a conversation, maintaining session variables, memory, and streaming output
Agent AppAgentStandalone 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 NodeAgent NodeA node embedded in a Workflow that turns agent behavior into a deterministic step within a larger graph; officially recommended for production multi-agent systems
KnowledgeKnowledge / knowledge baseRAG foundation: ingestion → chunking → vectorization → indexing → retrieval → reranking
Knowledge PipelineKnowledge PipelineMoves the RAG ETL path (parsing, cleaning, chunking, enrichment, vectorization) onto a visual canvas, each step configurable
ChunkingChunkingChunking strategies: Dify offers fixed-size chunking, paragraph chunking, and parent-child chunking
Parent-child ChunkingParent-child chunkingDify'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
RerankRerank / rerankingSecondary reordering after retrieval to improve hit quality
Human Input NodeHuman InputNode 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
PluginPluginSince v1.0.0, models and tools are decoupled from the core as plugins, installed from the Marketplace
MarketplaceDify MarketplaceInstallation market for model providers, tools, data sources, and MCP integrations; teams can reuse approved plugins
WorkspaceWorkspaceTenant unit: a single instance can host multiple Workspaces, each with independent members, knowledge bases, apps, and configuration
Message CreditCreditsDify Cloud's metering unit, billed by message allowance
difyctldifyctlCommand-line client introduced in v1.15.0; runs apps and workflows from the terminal or CI
Dify AgentDify Agentv1.16.0 Beta: a shell-based agent running in a Linux sandbox, packaged with Skills
BaaSBackend-as-a-ServiceEvery Dify capability is exposed via API and can be embedded into existing business logic
AnnotationAnnotationAnnotating app runs; can feed back into improved datasets

3. Feature Overview

3.1. Four Application Forms

FormTriggerUse cases
Chat AssistantMulti-turn conversationCustomer service, Q&A
Text CompletionSingle-input outputCompletion, generation
AgentConversation + autonomous tool loopTasks needing autonomous decomposition
Workflow / ChatflowCanvas orchestrationComplex 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:

DimensionWorkflowChatflow
TriggerRuns once per inputTriggered on every turn of a conversation
StateNo session stateMaintains session variables and memory
OutputSingle result returnedSupports streaming output
Typical scenariosTranslation, data analysis, content generation, email automationChatbots, 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:

StrategyHow it worksBest for
Fixed-size chunkingSplits by token count, with overlapping windowsSimple text, news
Paragraph chunkingSplits by line breaks / headingsStructured documents (manuals, papers)
Parent-child chunkingSplits parent chunks first, then child chunks; on a child hit, the parent is returnedLong-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

ApproachFormBest forOfficial recommendation
Agent AppStandalone conversational assistant, ReAct or Function Calling, 50+ built-in toolsQuick validation, single-responsibility assistants
Agent NodeA deterministic step embedded in a WorkflowProduction multi-agent systemsRecommended

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 的分层架构

Dify 自托管技术栈(分层架构) 信息截止 2026-09-12 · 示意:基于本文分析绘制 入口层 nginx 反向代理 入口 · 统一转发 前端层 Next.js 控制台 Web UI · 管理面板 · 聊天组件 API 层 Flask API 服务 业务逻辑 · API 端点 Worker 层 · 异步任务(本图重点) Python RQ Worker 文档解析 · 索引构建 · 大文件处理 数据层 PostgreSQL 应用数据 · 用户 · 对话历史 Redis 缓存 · 任务队列 · 会话 Weaviate 向量存储 · RAG 检索 请求转发 前端调用 API 入队异步任务 数据读写 结构解读:异步 Worker 架构是关键差异化——PDF 解析、向量索引等耗时操作在后台队列完成,不阻塞 API。

数据来源:基于本文分析绘制的示意图。

4.1 Deployment Forms

FormDescriptionKey differences
Dify CloudOfficially hostedZero infrastructure; features usually arrive one release cycle earlier than self-hosted; billed by credits
Self-hosted CommunityDocker Compose / KubernetesData stays in your own infrastructure; no per-message billing; features roughly 100% aligned with Cloud
EnterpriseOn-premises / VPC / public cloudAdds 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:

ComponentTech stackResponsibility
Frontend consoleNext.jsWeb UI, admin panel, chat components
API servicePython (Flask)Business logic, API endpoints
WorkerPython RQAsync tasks (document parsing, index building)
DatabasePostgreSQLApp data, users, conversation history
Cache / queueRedisCache, task queue, session management
Vector storeWeaviate (default; optional Qdrant / Milvus / PGVector)Default vector storage
SandboxCode execution
Reverse proxynginxEntry 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

  1. The user message enters; session variables and memory are loaded;
  2. If a knowledge retrieval node is present: query rewriting → vector / keyword / hybrid retrieval → reranking → context injection;
  3. Routing to the corresponding model (different models may be selected per node within the workflow);
  4. If an Agent Node is present: run the ReAct / Function Calling loop within that node, calling 50+ built-in tools or external MCP servers;
  5. If a Human Input node is present: pause and wait for review (variables can be edited, branches or timeout fallback can be used);
  6. Conditional branch / parallel / iteration nodes execute according to canvas semantics;
  7. Streaming output to the Web app or API;
  8. Logs and usage data are written for subsequent annotation and optimization.

5. Harness Design

5.1. Six-Layer Capability Overview

LayerNameStrengthBasis for judgment
L1Context engineeringStrongRAG is a first-class citizen; three chunking strategies + reranking; visualized Knowledge Pipeline; per-model routing within workflows
L2Tools and executionStrong50+ built-in tools + plugin marketplace + bidirectional MCP + code execution sandbox + Dify Agent (Beta) Linux sandbox
L3Orchestration and controlStrongVisual canvas (branch / parallel / iteration / condition) + Chatflow + Agent Node + Human Input node
L4Memory and stateMedium-strongChatflow session variables and memory, conversation history; weak artifact and checkpoint management
L5Evaluation and observabilityMedium-strongLogs, annotation feedback, latency and usage analysis, token debugger; no native Golden Dataset / regression-set mechanism
L6Governance and securityMedium-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

CapabilityCarrierStrength
Session variablesChatflow custom session variablesMedium-strong
Conversation memoryChatflow built-in memoryMedium-strong
Conversation historyPostgreSQL persistenceMedium-strong
Artifact managementNo dedicated mechanismWeak
Checkpoints / recoveryNoneMissing

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 capabilityCommunityEnterprise
SSO / SAMLNoYes
RBACNoYes
Audit logsNoYes
VPC isolationNaturally isolated when self-hostedYes
SOC 2 Type IINoYes
ISO 27001NoYes
Compliance licensingNoYes
Dedicated CSM + 24/7 supportNoYes
Data residencyControlled by self-hostingControlled

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

TensionManifestation on this platformMitigation
Flexibility ↔ predictabilityLow-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 AppUse Workflow + Human Input to fix pause points on critical paths; demote autonomous loops to a single node
Openness ↔ governanceBidirectional 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 sameOnly install approved plugins; open Dify Agent only to trusted users; use RBAC + audit logs in Enterprise
Cost ↔ depthCloud bills on message credits, and deep agent chains burn through them quickly; self-hosting shifts the cost to operationsPer-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

  1. Strongest RAG: the most fully productized retrieval pipeline in this group, with parent-child chunking + reranking + Knowledge Pipeline.
  2. Lowest low-code barrier: non-engineering roles can participate in building, with strong citizen development capability.
  3. Deliverable capability across all six layers: the only platform in this group covering L1~L6 (L6 requires Enterprise).
  4. Bidirectional MCP: can call the external ecosystem and publish its own capabilities as MCP tools.
  5. Human Input node: design-time-fixed pause points, suited to regulated industries.
  6. Self-hosting with no per-message billing: data self-control + controllable cost.
  7. Large ecosystem: 155K+ GitHub stars, running on 1.4 million machines (vendor figures).

7.2. Weaknesses

  1. License not OSI: prohibits multi-tenant commercial hosting and logo removal; building SaaS on top of it requires a commercial license.
  2. Weak L4: no run-level checkpoints or artifact versioning; long tasks cannot resume after a crash.
  3. Incomplete L5: no native Golden Dataset / regression set; evaluation relies on annotation and external tools.
  4. Limited canvas expressiveness: complex logic degenerates into spaghetti wiring, reducing maintainability.
  5. Pronounced L6 tiering: SSO / RBAC / audit / compliance all live in Enterprise; the Community edition has essentially none.
  6. Dify Agent risk: the Beta version's official warning limits it to trusted users only.
  7. Organizational change risk: R&D team reduced from 40 to 15 people (2026).

7.3. Applicable Boundaries

ScenarioApplicable?Reason
Knowledge-base Q&A / document assistantHighly applicableMost fully productized RAG
Customer-service copilot / internal Q&AApplicableChatflow + multi-channel publishing
Prototype validation requiring business-role participationHighly applicableLowest low-code barrier
Regulated industries (legal / compliance / medical triage)Applicable (Enterprise)Human Input node + RBAC + audit
Long-running, resumable tasksNot applicableNo checkpoints or resumption
Complex control-flow regression assertionsNot applicableUse a code-graph framework instead
Planning multi-tenant SaaS on top of the source codeRequires a commercial licenseExplicitly 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

  1. Company headquarters: third-party sources respectively label San Francisco and New York, unresolved; marked [To be verified].
  2. 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].
  3. 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.
  4. Enterprise pricing: third parties mention a $150,000 / 12 months figure on AWS Marketplace, not officially confirmed; marked [To be verified].
  5. Quantified customer-effect data: none of the official-site customer statements include quantifiable metrics; not filled in.
  6. 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].
  7. ARR data: third parties estimate about $3M ARR, with no official disclosure; marked [To be verified].
  8. Knowledge Pipeline data-source list: compiled from third-party sources, not checked item-by-item against official documentation.

8. References

  1. Dify official website — LangGenius, Inc. https://dify.ai/
  2. Dify — AI Wiki (funding, versions, features, and license notes). https://aiwiki.ai/wiki/dify
  3. 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
  4. 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
  5. 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
  6. 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
  7. Dify — EveryDev.ai (capability matrix, deployment models, enterprise adoption signals). https://www.everydev.ai/tools/dify
  8. LangGenius, Inc. company profile — ToolJunction (funding and valuation). https://www.tooljunction.io/ai-tools/dify-ai/company
  9. Project parameter card v1.0 (Agent Platform definition and six-layer capability model) — this project's internal baseline document.
  10. R01-overview research report (three-layer distinction of Framework / Harness / Platform) — this project's internal research report.