Dify
Added Updated Copyable prompt below
Published Last verified Released
Our verdict
A strong option when you want a visual builder for agent workflows and RAG with team collaboration, without stitching frameworks together. Self-hosting gives you data control on a modest machine. Read the licence before building a product on it: it's Apache 2.0 with extra conditions, and running Dify as a multi-tenant service needs a commercial licence.
- Who it's for
- Small teams building internal A.I. apps
- Leverage
- Agent workflows and RAG without framework code
- Effort
- Medium
- Date added
What Dify does
Dify, from LangGenius, is an open-source platform for building LLM apps. It combines a visual canvas for workflows; a RAG pipeline that ingests PDFs, PowerPoint files and other common documents; agents that work in their own sandbox, running commands, installing software and handling files; a prompt IDE for comparing models; and support for hundreds of models, including any OpenAI-compatible API. It logs every app's runs and connects to observability tools such as Langfuse, Opik and Arize Phoenix. Every app comes with an API, so your product can call it. You can use Dify Cloud, self-host the Community Edition with Docker Compose, or buy Dify Enterprise for SSO, RBAC and support SLAs.
How builders use Dify
- Try it on your own machine: with at least 2 CPU cores and 4 GiB of RAM, copy docker/.env.example to .env, paste the output of openssl rand -hex 32 into it as the agent sandbox token (the exact variable is in the quick start below), run docker compose up -d and open http://localhost/install.
- Build an internal docs Q&A: upload your docs to a knowledge base, connect it to a chat app and run hit tests to check what retrieval returns.
- Give an agent tools from the Dify Marketplace, MCP servers or your own APIs, then publish it as a chat app or use it as one step in a workflow.
- Call the published app from your backend through its API, and send traces to Langfuse to debug slow or wrong answers.
Dify Cloud plans at a glance
From dify.ai/pricing on annual billing, taxes excluded. Message credits let you try hosted models; when they run out you add your own API key.
| Plan | Price | What you get |
|---|---|---|
| Sandbox | Free | 200 message credits, 1 member, 5 apps, 50 knowledge documents, 50 MB storage, 30 days of logs |
| Professional | $590 per workspace per year | 5,000 message credits a month, 3 members, 50 apps, 500 documents, 5 GB storage |
| Team | $1,590 per workspace per year | 10,000 message credits a month, 50 members, 200 apps, 1,000 documents, 20 GB storage |
| Community Edition | Free, self-hosted | All core features in the public repository, single workspace, under the Dify Open Source License |
What the licence allows
- Dify uses a modified Apache 2.0 licence. Commercial use is allowed, including as a backend for other applications or as an internal development platform.
- You need a commercial licence to run a multi-tenant service from the source code, where one tenant means one workspace.
- If you use Dify's frontend, you can't remove or change the logo or copyright information in the console or apps.
- Contributors agree that LangGenius can make the licence stricter or looser, and that their code can be used commercially.
Dify: limits and gotchas
- Offering Dify to several customers as a hosted service needs a commercial licence, so check the terms before building a SaaS on it.
- Self-hosting runs a set of services through Docker Compose, and you handle upgrades yourself, keeping your .env and following the upgrade notes.
- The free Sandbox is for trying things out: 200 message credits in total, 5 apps, 10 knowledge requests a minute and 5,000 API calls a month.
- Knowledge request limits are strict. Go over the per-minute limit and dataset changes and uploads are paused for the next minute.
- SSO, RBAC, multiple workspaces and support SLAs are Enterprise features.
- A visual canvas is quick to change but harder to code-review and unit-test than a workflow written in code.
Dify compared with other tools here
- n8n: self-hostable workflow automation with A.I. agent nodes. Pick it when the job is moving data between SaaS tools; pick Dify when you're building the A.I. app itself.
- LangGraph: a code-first framework for agent graphs, for when you want logic in version control with tests.
- Mastra: a TypeScript framework for agents and workflows that sits next to a Next.js app.
- Make AI Agents: agents inside Make's no-code scenarios, with Make's app connections as tools.
- Langfuse: open-source tracing and evaluation that Dify can send its runs to.
When to pick Dify
- Pick Dify for internal chat, RAG or workflow apps that a small team can build visually and call from its product through an API.
- Pick the self-hosted Community Edition when data has to stay on your servers and a single workspace is enough.
- Pick LangGraph or Mastra instead if the app is mostly custom logic that needs code review and tests, and n8n if it's mainly app-to-app automation.
Copy this: Self-host quick start
# Official source: github.com/langgenius/dify (needs Docker Compose v2.35.0+ and OpenSSL)
git clone https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env
openssl rand -hex 32
# paste the value into .env as DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN
docker compose up -d
docker compose ps --all
# then open http://localhost/install
# (the one-time init_permissions service should exit with code 0)
# Upgrading later: keep your .env and follow docker/README.mdDify questions
Is Dify free?
The self-hosted Community Edition is free under the Dify Open Source License, and Dify Cloud has a free Sandbox plan with 200 message credits. Paid cloud plans start at $590 per workspace per year on annual billing.
Can I use Dify commercially?
Yes, including as a backend for your own applications. A commercial licence is needed to run a multi-tenant service, or to remove Dify's logo and copyright from the frontend.
What do I need to self-host Dify?
A machine with at least 2 CPU cores and 4 GiB of RAM, Docker with Docker Compose v2.35.0 or later, and OpenSSL.
Does Dify support MCP?
Yes. Dify agents can use tools from MCP servers, alongside Dify Marketplace tools and your own APIs.
Related discoveries
See the newest picks →- ToolMulti-Step Agent Setups
Hermes Agent: a free, self-hosted agent with skills, cron and a Kanban board
Nous Research's MIT-licensed agent that runs on your server, keeps memory and skills, runs scheduled jobs and coordinates work on a built-in Kanban board.
NewEffort: MediumPrompt#Local / BYO model#Open source
- ToolMulti-Step Agent Setups
CLI Agent Orchestrator: one supervisor, many coding CLIs
AWS Labs' Apache-2.0 tool that lets a supervisor agent hand work to Claude Code, Codex, Kiro, Cursor CLI and other coding CLIs, each in its own tmux session.
NewEffort: MediumPrompt#Local / BYO model#Open source
Get the best new A.I. picks in your inbox
The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.