Back to directory

AI & Machine Learning · AI Development Platforms

Dify

Visual platform for building and operating agentic AI applications

Dify is an open-source platform for building, deploying, and operating LLM applications, RAG systems, and agentic workflows. LangGenius maintains it, offering Dify Cloud and a self-hosted Community Edition. Its modified Apache 2.0 license permits commercial use, while unauthorized multi-tenant deployments require a commercial license. These options support different deployment preferences for teams evaluating hosted and self-managed use.

Key facts

License
Dify Open Source License, modified Apache-2.0
Main language
Python, TypeScript
Maintainer
LangGenius, Inc.
First released
2023
Latest release
v1.17.1, September 10, 2026
GitHub stars
159k, October 2026
Hosted option
Dify Cloud from free Sandbox, Professional $590 per workspace/year

What Dify is

Dify was founded in March 2023 by Luyu Zhang, who remains its founder and CEO, and is maintained by LangGenius. The GitHub repository describes an open-source LLM application platform combining workflows, RAG pipelines, agents, model management, observability, and APIs. The repository listed 159,167 stars and more than 1,100 contributions from its leading contributors. In March 2026, Dify announced a $30 million Series Pre-A round led by HSG, with participation from GL Ventures, Alt-Alpha Capital, 5Y Capital, Mizuho Leaguer Investment, and NYX Ventures. The company said Dify ran on more than 1.4 million machines and served more than 2,000 teams and 280 enterprises, including Maersk, ETS, Anker Innovations, and Novartis. Those figures come from company announcements.

How it works

Dify centers application development on a visual workflow canvas. A user selects a model provider, writes prompts, defines variables, and connects nodes for model calls, code, HTTP requests, conditions, iteration, loops, tools, and human input. Knowledge bases accept local files, website data, and Notion content, then expose passages to chat applications or workflow nodes. Agent applications can use tools, knowledge, Skills, MCP servers, and sandbox execution. Finished applications can be published as web apps, embedded interfaces, APIs, or MCP servers. Run history, logs, dashboards, annotations, and integrations with LangSmith, Langfuse, Opik, W&B Weave, Arize, and Phoenix support inspection after deployment. The typical workflow is build, test, connect data and models, publish, inspect runs, then revise prompts, datasets, or routing.

Architecture and recent releases

The repository includes Python and TypeScript alongside JavaScript, Go, shell, Dockerfile, and frontend assets, with Next.js listed among its topics. Docker Compose is the documented quick start, while source deployment and advanced platform guides cover other operating patterns. A standard installation uses PostgreSQL, Redis, object storage, and vector storage, with environment variables controlling configuration. Model providers include proprietary, open-source, self-hosted, and OpenAI API-compatible models, according to the README. The v1.17.1 release on September 10, 2026 added dataset-scoped knowledge-base API keys, marketplace creator profiles, keyboard movement for workflow nodes, and configurable Markdown field-name limits. It also warned that bundled Weaviate installations must follow a staged upgrade from 1.27.0 to 1.39.2.

License and pricing

Dify uses a modified Apache License 2.0 called the Dify Open Source License. The published terms allow commercial use, including using Dify as a backend or enterprise application platform. They prohibit unauthorized multi-tenant operation when separate workspaces represent separate tenants, and they restrict removing or changing Dify logo and copyright information in the frontend. Community Edition is free when the deployment follows those terms. Dify Cloud lists a free Sandbox, Professional at $590 per workspace per year, and Team at $1,590 per workspace per year. Enterprise pricing is custom and includes commercial license authorization, multiple workspaces, SSO, support, security controls, official updates, and maintenance. Cloud reduces infrastructure work, while Community Edition leaves operation with the customer.

Limitations and how it compares

Dify’s main tradeoff is the amount of infrastructure and licensing detail required around a visual builder. Self-hosted operators manage databases, object storage, vector data, credentials, backups, upgrades, access controls, and model-provider exposure. Flowise is an open-source alternative with a visual node editor, while Dify combines that model with knowledge bases, publishing, APIs, workspace administration, and run monitoring. Langflow is another open-source alternative that suits teams seeking a Python-oriented visual application builder. Botpress is a proprietary alternative with a commercial control plane, while Dify offers source access and self-hosting under conditional terms. Pick Dify when RAG, agent workflows, publishing, and deployment choice outweigh a preference for permissive licensing or a smaller installation.

Main features

  • Visual Workflows. Connect model, code, HTTP, condition, iteration, loop, tool, and human-input nodes on a visual canvas.
  • RAG Knowledge Bases. Import files, Notion data, and website content, then retrieve indexed passages inside applications and workflow runs.
  • Agent Builder. Create agents with prompts, tools, knowledge, Skills, MCP servers, and sandbox execution for open-ended tasks.
  • Model Management. Configure proprietary, open-source, self-hosted, and OpenAI-compatible model providers for applications, workflow nodes, integrations, and configurable automation environments.
  • Application Publishing. Publish chat, workflow, and agent applications as web apps, embedded interfaces, APIs, or MCP servers.
  • Run Observability. Inspect logs, run history, traces, token usage, latency, annotations, outputs, and failures carefully after deployment to support thorough review and understanding.

Self-hosting Dify

Dify Community Edition supports Docker Compose, source deployment, and advanced deployment patterns documented for self-hosted installations. The quick start requires Docker and Docker Compose v2.24.0 or later. A standard deployment uses PostgreSQL, Redis, object storage, and vector storage, with environment variables controlling configuration. The README lists at least two CPU cores and 4 GiB RAM. Operators should back up databases, uploaded files, and vector data before upgrades. Release v1.17.1 requires bundled Weaviate users to follow a staged path from 1.27.0 to 1.39.2. Operators remain responsible for secrets, access controls, patching, migrations, and backups.

Strengths

  • Visual workflows let teams assemble model applications without implementing every service from code.
  • Self-hosting keeps application data, uploaded documents, credentials, and logs on infrastructure selected by the operator.
  • RAG, agents, APIs, publishing, and run inspection share one workspace.
  • The repository has 159k stars and an active release stream.

Drawbacks

  • The license requires authorization for unauthorized multi-tenant service and restricts frontend branding changes.
  • Self-hosted deployments require databases, queues, storage, vector search, backups, and upgrade work.
  • Cloud plans impose workspace, application, document, storage, and message-credit limits.

What teams replace with it

Teams usually evaluate Dify when they want to move off OpenAI Assistants.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Dify

Frequently asked questions

Is Dify free?

Dify Community Edition can be self-hosted for free when the deployment follows the Dify Open Source License. Dify Cloud has a free Sandbox plan with usage limits, while Professional costs $590 per workspace per year and Team costs $1,590 per workspace per year. Enterprise pricing is custom and includes commercial authorization, multiple workspaces, SSO, support, and additional controls.

Can a business use Dify commercially?

Yes. The published modified Apache 2.0 terms allow commercial use, including using Dify as a backend or application platform. Unauthorized multi-tenant operation is the main restriction: separate customer workspaces representing separate tenants require written authorization and a commercial license. The license also restricts removing or changing logo and copyright information in the Dify frontend.

How do I self-host Dify?

The documented quick start uses Docker Compose, with Docker and Docker Compose v2.24.0 or later. A standard deployment includes PostgreSQL, Redis, object storage, and vector storage. The README lists two CPU cores and 4 GiB RAM as minimum requirements. Operators configure environment variables, preserve databases and uploaded files, and follow release-specific migration instructions, including staged Weaviate upgrades.

How does Dify compare with Flowise?

Both provide visual construction for LLM applications and workflows. Dify combines workflows with knowledge bases, application publishing, model management, agents, APIs, and workspace operations. Flowise is an open-source alternative centered on visual node composition. Dify fits teams needing integrated RAG, publishing, and run monitoring, while Flowise may fit teams seeking a smaller visual builder.

Is Dify private when self-hosted?

Self-hosting places Dify application data, uploaded documents, credentials, and logs on infrastructure controlled by the operator instead of Dify Cloud infrastructure. Privacy still depends on model-provider settings, network exposure, secrets management, backups, access controls, and patching. Enterprise adds SSO, security controls, audit and compliance features, official maintenance, and technical support.

Similar projects to compare

Sources

Last updated 2026-10-22.