Last updated: May 2026
What Is Dify?
Dify is the open-source LLM application development platform that lets developers build AI agents, chatbots, RAG (retrieval-augmented generation) pipelines, and AI workflows without managing infrastructure. The product combines a visual workflow builder, RAG pipelines, prompt management, and deployment runtime in one stack. Dify serves over 200,000 developers and is one of the fastest-growing open-source AI projects.
The pitch is "LangChain plus a visual UI plus production deployment." Build an agent visually rather than coding chains. Plug in your data via built-in RAG. Deploy as an API endpoint or embed widget. The same project runs on the Dify cloud or self-hosted via Docker on your own infrastructure.
The product targets engineering teams building AI products, startups iterating on AI use cases, and enterprises wanting AI applications without vendor lock-in. Open source license means companies can self-host and modify code; cloud SaaS option offers managed hosting for teams that prefer not to manage infrastructure.
Try Dify Free Get started →How Dify Works
Create an app from four types: chatbot (conversational interface), agent (multi-step reasoning with tools), workflow (sequential or branching automation), text generation (prompt-based content creation). Each type has different capabilities; pick based on the use case.
Connect data sources for RAG. Upload PDFs, link to websites, sync from Notion, connect to databases. Dify chunks documents, embeds them, and retrieves relevant context during conversation. Vector database (built-in or external Pinecone/Weaviate) stores embeddings.
Configure model selection per app. Switch between OpenAI (GPT-5, GPT-4o), Anthropic (Claude 4), Google (Gemini 3), Meta Llama 4 (self-hosted), local models via Ollama. Multi-model approach means you can pick the best LLM for each use case based on cost, performance, or compliance.
The Studio is a visual builder for complex workflows. Drag in nodes for LLM calls, RAG retrieval, code execution (Python or JavaScript), HTTP requests, conditional branching, loops, and human-in-the-loop approval points. Test interactively with sample inputs; deploy when ready.
Deploy as REST API for application integration, embed widget for website chatbot, or web app for standalone access. Production-ready with monitoring, logging, version control, and rate limiting.
Dify Pricing in 2026
Sandbox: Free. 200 messages, 50 documents. Trial-grade.
Professional: $59/month annually. 5,000 messages, unlimited apps, priority support.
Team: $159/month annually. 10,000 messages, 5 team members, advanced features.
Enterprise: Custom pricing. SSO, on-prem, dedicated support, advanced security.
Self-hosted is free under the open-source license (no usage limits, you pay only for infrastructure and LLM costs).
See Dify Plans See plans →Where Dify Wins
- Open source: no vendor lock-in, self-hostable.
- Visual workflow builder: faster than coding LangChain pipelines.
- Multi-model support: switch between LLM providers per app.
- RAG built in: document upload and retrieval works out of the box.
- Production-ready: handles scaling, monitoring, version control.
Where It Falls Short
- Self-hosting takes ops work: Docker setup, monitoring, scaling all on you.
- Less polished than commercial tools: rough edges in the UI compared to LangSmith.
- Documentation gaps: open source means some features lack thorough guides.
- Smaller ecosystem than LangChain: fewer pre-built integrations.
Dify vs LangChain vs Flowise vs n8n
Dev tools, published pricing
| Tool | Pricing | Model |
|---|---|---|
| Capacity | Free (5 credits), $25/mo (Starter), $69/mo (Growth), $129/mo (Professional), $299/mo (Business) | Credits |
| Airia | AI orchestration platform, custom enterprise pricing | Subscription |
| UENI | Free website, $9.99/mo (Boost), $14.99/mo (Grow) | Freemium |
| Pagecloud | $20/mo (Starter), $34/mo (Business), $69/mo (Agency) | Subscription |
| Proton | Free, $5.49/mo (Mail Plus), $10.99/mo (Unlimited) | Freemium |
LangChain is the code-first framework. More flexibility, much more development time.
Flowise is the closest open-source competitor with similar visual builder. Smaller community.
n8n is workflow automation first with AI capability bolted on. Pick n8n if non-AI automation matters more.
Botpress targets conversational AI specifically.
Who Should Use Dify
Developers building AI products quickly: visual builder plus self-hostable runtime.
Startups iterating on AI use cases: rapid prototyping without infrastructure overhead.
Enterprises wanting self-hosted AI: open source license, on-prem deployment, no data leaving your environment.
Internal tools teams: build AI assistants for HR, IT, sales without procurement of new SaaS.
Skip it if: you only need a chatbot widget (use ChatGPT custom GPTs), you have deep LangChain expertise and prefer code, or your AI needs are simple enough for ChatGPT API direct.
How Dify works
Dify is an open-source platform for building LLM applications: agents, agentic workflows, and chatbots that draw on your own data, then publish as hosted web apps, API endpoints, embeds, or MCP-compatible tools. The main surface is a visual Workflow Studio where you assemble logic, retrieval, decisions, and tool calls out of blocks instead of writing orchestration code yourself. Alongside that it bundles a RAG stack and observability (logs, feedback, annotations, usage metrics), so the same build serves both the prototype and the production version.
The first step is creating a workspace and connecting models under Integrations, then Model Provider. Dify Cloud gives you built-in AI Credits for popular providers, so you can start without your own API key, or you can add your own provider keys for higher rate limits and direct billing. Keys and AI Credits can coexist with a configurable priority order. Only the workspace owner and admins can manage providers, and a key applies across the whole workspace.
From there you build in the Workflow Studio using more than 20 node types, including LLM, Agent, Knowledge Retrieval, Tool, HTTP Request and Code. You attach knowledge bases built through the Knowledge Pipeline, which handles extraction, cleaning, chunking and indexing of documents, websites and online sources, or you connect an external RAG system or third-party source instead. Tools, model providers, data sources and MCP integrations install from the Marketplace, and you can write custom plugins that are reusable across the workspace.
Publishing options are a hosted app, a REST API, an embed, or an MCP tool. There is also a difyctl CLI for running apps from a terminal or from CI/CD, and a Knowledge API for managing knowledge bases, documents, chunks, metadata and tags programmatically. Deployment itself comes in three shapes: managed cloud, self-hosted Community Edition via Docker Compose, or an enterprise/VPC deployment.
Where Dify wins
- Genuine deployment choice. Managed Cloud, a free open-source Community Edition on Docker Compose, or self-hosted/VPC Enterprise with SSO/SAML, RBAC and audit logs. The platform is SOC 2 Type II and ISO 27001 certified.
- No provider lock-in. You bring your own model keys per workspace, set the key-versus-credit priority, and install additional model providers, tools, data sources and MCP integrations from the Marketplace.
- RAG is first-class, not bolted on. The Knowledge Pipeline covers extraction, cleaning, chunking and indexing, and you can point at an external knowledge base or your own custom RAG system instead.
- It ships beyond the GUI. A REST API, a Knowledge API for documents, chunks, metadata and tags, difyctl for CI/CD, and a plugin framework for custom tools and models.
- The free Sandbox tier is real enough to evaluate on. 5 apps, 50 knowledge documents, 3,000 trigger events per month, and 30-day log history.
Where it falls short
- Sandbox is a demo, not a workload. 200 message credits per month, 1 team member, 50MB of knowledge storage, 10 knowledge requests per minute, a 5,000 per month API rate limit, and only 2 triggers per workflow.
- Seats are tight and the jump is steep. Professional ($590/year per workspace) caps at 3 team members and 5,000 message credits, and reaching 50 members means the Team plan at $1,590/year. Every plan is a single workspace.
- Load balancing across model keys is gated to the Professional and Team plans, so free and Community users hit provider rate limits with no failover.
- Community Edition is single-workspace and excludes the enterprise controls (SSO/SAML, RBAC, audit logs, commercial license), which are Enterprise-only at custom pricing.
- The supported-provider list is not published definitively in the docs, so you have to check the Marketplace or the in-app Integrations screen to confirm your model is covered.
Who should use Dify
Dify fits teams that want to build RAG chatbots and agentic workflows visually while keeping the option to self-host and to swap model providers. It suits engineering-adjacent product teams, and it suits anyone with data-residency constraints, since the Community Edition is a real Docker deployment rather than a stripped demo.
Skip it if you need many collaborators on a budget, because you get 3 seats until you pay $1,590/year. Skip it too if you want a single hosted per-seat SaaS without the workspace model, or if you want a turnkey no-code assistant that requires zero infrastructure thinking.
Frequently Asked Questions
Can I self-host Dify?
Yes. Docker Compose setup, full open-source code.
Which LLMs does Dify support?
OpenAI, Anthropic, Google Gemini, Meta Llama, Azure, local models via Ollama, and more.
How does RAG work?
Upload documents; Dify chunks and embeds them. Retrieves relevant chunks during conversation to ground LLM responses in your data.
Is the cloud version different from self-hosted?
Same features, different deployment. Cloud handles infrastructure; self-hosted gives full control.
Does it support vector databases?
Built-in vector store. Optional integrations with Pinecone, Weaviate, Milvus for larger deployments.