← 全部工具 ← All Tools 🎮 小游戏
🤖 AI 智能体 AI Agent 🌟 GitHub 约 15.9 万 Star(2026-10 核实)· LangGenius 出品 workflow rag llm-apps open-source self-hosted dify

Dify – 开源 LLM 应用开发平台 2026:可视化 Workflow + RAG + Agent,生产级 AI 应用一条龙

LangGenius 出品的开源 LLM 应用开发平台:可视化 Workflow 编排、RAG 知识库、Agent、模型管理与可观测性合为一体,Docker Compose 一条命令自托管;modified Apache 2.0 许可证,许可证细节先读再用LangGenius's open-source LLM app development platform: visual workflow orchestration, RAG knowledge bases, agents, model management and observability in one stack — self-host with a single Docker Compose command; ships under a modified Apache 2.0 license, so read the license details first

访问官网 ↗ Visit Official Site ↗ ⚖️ Compare
分类Category
AI 工具AI Tools
ai-tools
开源状态Open Source
开源(modified Apache 2.0)
开源,GitHub 约 15.9 万 Star(2026-10 核实);许可证含多租户/转售限制Open source · GitHub ~159k stars (checked 2026-10); license has multi-tenant/resale restrictions
许可证License
自托管免费 / Cloud 付费
社区版免费自托管,Dify Cloud 按工作区收费Community edition free to self-host; Dify Cloud billed per workspace
标签Tags
workflow, rag, llm-apps, open-source, self-hosted, dify
6 个标签tags total

Dify 是什么?What Is Dify?

Dify(dify.ai,由 LangGenius 出品)是目前 GitHub 上星数最高的 LLM 应用开发平台之一:把 Workflow 可视化编排、RAG 知识库、Agent、模型管理与可观测性装进同一个平台,而不是让团队自己把 LangChain 脚本、前端和部署拼起来。截至 2026 年 10 月,其仓库 langgenius/dify 约有 15.9 万 Star,是开源 AI 智能体平台这个品类里的事实标准之一。Dify (dify.ai, by LangGenius) is one of the most-starred LLM app development platforms on GitHub: it folds visual workflow orchestration, RAG knowledge bases, agents, model management, and observability into a single platform instead of making teams stitch together LangChain scripts, frontends, and deployments themselves. As of October 2026, its repository langgenius/dify holds roughly 159k stars, making it a de-facto standard in the open-source AI agent platform category.

它的核心卖点是「从原型到生产不用换栈」:Workflow Studio 是拖拽式画布,提示词、检索、工具调用、决策逻辑全部可视化;工作流可以导出为 YAML 进 Git 做版本管理,改动可追踪、可 diff;后端 Python + PostgreSQL,前端 Next.js;Docker Compose 一条命令部署,Kubernetes 环境有官方 Helm chart;内置 Langfuse、Opik 等追踪后端对接,看得见每一次执行的延迟、Token 消耗和错误率。Its core promise is "move from prototype to production without rebuilding the stack": Workflow Studio is a drag-and-drop canvas where prompts, retrieval, tool calls, and decision logic are all visible; workflows can be exported as YAML and versioned in Git, so changes stay traceable and diffable; the backend is Python + PostgreSQL with a Next.js frontend; deployment is a single Docker Compose command, with official Helm charts for Kubernetes; and built-in tracing integrations (Langfuse, Opik) expose latency, token usage, and error rates for every execution.

许可与价格要分开看。许可证是 modified Apache 2.0——修改条款是关键:单工作区自托管免费,但多租户/商业转售场景受限,需要商业授权,部署前务必读一遍 LICENSE。Dify Cloud 则按工作区分档:Sandbox 免费档、Professional 约 $59/工作区/月、Team 约 $159/工作区/月(2026-10 核实,以官网为准)。License and pricing need separate attention. The license is a modified Apache 2.0 — the modification is the point: self-hosting for a single workspace is free, but multi-tenant/commercial-resale scenarios are restricted and need a commercial license, so read the LICENSE file before deploying. Dify Cloud is billed per workspace: a free Sandbox tier, Professional at about $59/workspace/month, and Team at about $159/workspace/month (checked October 2026; see the official site for current prices).

⚠️ 许可证提醒:Dify 不是纯 Apache 2.0,而是 modified Apache 2.0——「修改」部分限制了多租户和商业转售。自己公司内部用、单工作区自托管没问题;要拿它给客户做托管服务,先谈商业授权。License alert: Dify is not plain Apache 2.0 — it is a modified Apache 2.0 whose modification restricts multi-tenant and commercial resale. Internal single-workspace self-hosting is fine; if you plan to offer it as a hosted service to customers, get a commercial license first.

Dify 是「开源 AI 应用平台」这个品类的答案本身:它把智能体从 Demo 带到生产真正卡住的地方——提示词版本、检索管线、模型切换、可观测性——全部产品化了。15.9 万 Star 不是虚的,生态教程和复用模式都跟得上。但它也不是无脑选:modified Apache 2.0 的转售限制意味着你想基于它做 SaaS 得先过法务这一关;而且它的抽象偏「应用平台」,喜欢自己掌控编排细节的团队可能会觉得它有点「重」。选型建议很直接:要自托管、要长期维护、要中文生态,Dify 是第一顺位;要最轻量的可视化 Agent 画布,再去看 Langflow / Flowise。

Dify is the category answer for "open-source AI app platform": it productizes exactly where agents stall between demo and production — prompt versioning, retrieval pipelines, model switching, observability. The ~159k stars are real, and the ecosystem of tutorials and reusable patterns keeps up. But it is not a no-brainer: the modified Apache 2.0 resale restriction means a legal check before building SaaS on it, and its abstraction leans "application platform" — teams that want fine-grained orchestration control may find it heavy. The selection advice is blunt: for self-hosting, long-term maintenance, and a Chinese-language ecosystem, Dify is the first choice; for the lightest visual agent canvas, look at Langflow / Flowise instead.

— 中国吧 AI Tools Hub Editorial Team

谁适合使用Dify?Who Should Use Dify?

✓ 适合以下场景Good Fit For

  • 需要自托管、数据不出内网的企业级 LLM 应用Enterprise LLM apps that must be self-hosted with data staying in-house
  • 想把 RAG + Agent + 工作流装进同一个平台的团队Teams that want RAG, agents, and workflows in one platform
  • 希望工作流可版本管理、可审计的生产环境Production setups where workflows must be versioned and auditable

✕ 不适合以下场景Not Ideal For

  • 打算基于它做多租户 SaaS 转售——许可证限制先过法务Building multi-tenant SaaS resale on top of it — clear the license with legal first
  • 只要一个最轻量的 Agent 画布,不想被平台抽象「管住」Teams wanting the lightest agent canvas without platform abstraction overhead

Dify 快速开始Getting Started with Dify

1. 先读许可证:确认你的使用场景不在 modified Apache 2.0 的多租户/转售限制内Read the license first: confirm your scenario is outside the multi-tenant/resale restriction of the modified Apache 2.0
2. Docker Compose 一条命令自托管,或直接用 Dify Cloud Sandbox 免费档试水Self-host with one Docker Compose command, or trial the free Dify Cloud Sandbox tier
3. 在 Workflow Studio 里拖出第一个 RAG 问答流:接知识库 → 挂模型 → 发布为 API 或聊天应用Drag your first RAG Q&A flow in Workflow Studio: attach a knowledge base → pick a model → publish as API or chat app
💡 小技巧:从第一天就把工作流导出为 YAML 进 Git——Dify 的版本化能力是它相对 Coze 这类纯 SaaS 平台最大的生产优势。Tip: export workflows as YAML into Git from day one — Dify's versioning is its biggest production advantage over pure-SaaS platforms like Coze.

核心功能Key Features

  • 🧩
    Workflow Studio 可视化编排Workflow Studio Visual Orchestration — 拖拽式画布编排提示词、检索、工具调用与决策逻辑,工作流可导出 YAML 进 Git 版本管理。Drag-and-drop canvas for prompts, retrieval, tool calls, and decision logic — workflows export as YAML for Git versioning.
  • 📚
    RAG 知识库管线RAG Knowledge Pipelines — 文档解析、切分、向量化、检索一条龙,支持多种向量数据库与重排策略。End-to-end document parsing, chunking, embedding, and retrieval with multiple vector DBs and reranking options.
  • 🤖
    Agent 与工具生态Agents & Tool Ecosystem — 内置 Agent 推理框架与工具调用能力,对接数百种模型供应商与 MCP 工具。Built-in agent reasoning with tool calling, plus hundreds of model providers and MCP tool integrations.
  • 🖥️
    一条命令自托管One-Command Self-Hosting — Docker Compose 一键起全套服务(含 PostgreSQL、Redis),Kubernetes 有官方 Helm chart 支持横向扩展。Docker Compose brings up the full stack (PostgreSQL, Redis included); official Helm charts scale it on Kubernetes.
  • 📊
    可观测性与模型管理Observability & Model Management — 多模型路由、用量统计、执行追踪(对接 Langfuse / Opik),生产问题可定位、可复盘。Multi-model routing, usage stats, and execution tracing (Langfuse / Opik integrations) — production issues stay diagnosable.

优缺点Pros & Cons

✓ 适合以下场景Good Fit For

  • 约 15.9 万 Star 的生态:教程、模板、问题排查资源丰富~159k-star ecosystem: abundant tutorials, templates, and troubleshooting resources
  • 从原型到生产同一套栈,不用推倒重来Same stack from prototype to production — no rebuild needed
  • 工作流 YAML 版本化,变更可审计、可回滚YAML-versioned workflows: changes are auditable and roll-backable
  • 自托管免费,数据主权完全在自己手里Free self-hosting with full data sovereignty

✕ 不适合以下场景Not Ideal For

  • modified Apache 2.0 限制多租户/商业转售,想做 SaaS 先谈授权Modified Apache 2.0 restricts multi-tenant/commercial resale — get a license before building SaaS
  • 平台抽象偏「重」,极简主义团队可能觉得束缚Platform abstraction runs heavy — minimalists may feel constrained
  • Cloud 版按工作区计费,工作区一多成本上升快Cloud bills per workspace, so costs climb fast with many workspaces

应用场景Use Cases

人们使用Dify的常见场景:Popular ways people use Dify.

📚 企业知识库问答Enterprise Knowledge Q&A

把内部文档、制度手册做成 RAG 问答应用,员工自助查询,支持权限隔离。Turn internal docs and policy manuals into RAG Q&A apps for self-service lookups, with access isolation.

🎧 智能客服Intelligent Customer Service

工作流里串起意图识别、知识检索、人工转接,客服机器人 7×24 在线。Chain intent detection, knowledge retrieval, and human handoff in one workflow for 24/7 service bots.

✍️ 内容生产流水线Content Production Pipelines

提示词 + 检索 + 审核节点组成可复用的内容生成流,营销团队直接调用 API。Reusable content-generation flows of prompts, retrieval, and review nodes — marketing teams call them via API.

🔌 Agent API 底座Agent API Backend

把搭好的 Agent 发布成标准化 API,给自家 App、小程序或内部系统调用。Publish built agents as standard APIs for your own apps, mini-programs, or internal systems.

相似 AI 工具Similar AI Tools

如果Dify不符合你的需求,可以看看这些热门 AI 工具:If Dify doesn't fit your needs, here are other popular AI tools you might consider:

常见问题Frequently Asked Questions

Dify 真的是开源的吗?Is Dify really open source? ▼
是,但要看修改条款:Dify 采用 modified Apache 2.0 许可证,单工作区自托管免费,但多租户/商业转售受限,需要商业授权。部署前请查看 langgenius/dify 仓库的 LICENSE 文件。Yes, but read the modification: Dify ships under a modified Apache 2.0 license. Self-hosting for a single workspace is free, but the modification restricts multi-tenant and commercial resale use cases — those require a commercial license. Check the LICENSE file in the langgenius/dify repository before deploying.
Dify Cloud 怎么收费?How much does Dify Cloud cost? ▼
2026 年 10 月核实:Dify Cloud 提供免费 Sandbox 档($0,200 消息额度)、Professional $59/工作区/月、Team $159/工作区/月。价格以官网为准。As checked in October 2026: Dify Cloud offers a free Sandbox tier ($0, 200 message credits), Professional at $59 per workspace per month, and Team at $159 per workspace per month. Confirm current prices on the official site.
如何自托管 Dify?How do I self-host Dify? ▼
Docker Compose 一条命令部署(PostgreSQL、Redis 等组件一并打包);Kubernetes 有官方 Helm chart。工作流可导出为 YAML 进 Git 做版本管理,改动可追踪、可 diff。One command with Docker Compose (PostgreSQL, Redis and the web services come bundled); official Helm charts are available for Kubernetes. Workflows can be exported as YAML and versioned in Git, so changes stay traceable and diffable.
Dify 和 Coze、FastGPT 怎么选?Dify vs Coze vs FastGPT — which should I choose? ▼
需要持续维护、可自托管的生产级 LLM 应用平台选 Dify;扣子的开源版 coze-studio 自 2026-02 起停更,且 2026 年产品转向让老用户资产「搁浅」;FastGPT 仍是专注知识库问答的可靠自托管选择。Choose Dify if you need an actively maintained, self-hostable platform for production LLM apps. Coze's open-source coze-studio has had no release since 2026-02 and its 2026 product pivots stranded legacy user assets; FastGPT remains a solid self-hosted alternative focused on knowledge-base Q&A.
此页面对你有帮助吗? Was this page helpful?