Skip to content

Dify.ai

Self-hosted platform for building LLM apps, agents and RAG workflows on a visual canvas

Permissive (OSI) · Apache-2.0 OR Commons-Clause AI-native
  • Self-hosted

Listed by , founder & editor

83

Health

Thriving

Overview

Stars

161,818

Last commit

today

Nov 2026

Repository age

3 years

since Apr 2023

Latest version

1.20.0

Nov 2026

Contributors

–

25 active in 90 days

Releases

23

last 12 months

Language

Python

Dify is an open-source platform for building LLM applications. You design AI workflows on a visual canvas, build RAG pipelines, and create agents that run in their own sandbox. It also includes a prompt IDE, model management and logging for monitoring app performance. Observability integrations include Opik, Langfuse and Arize Phoenix.

It connects to hundreds of proprietary and open-source models, including GPT, Mistral, Llama3 and any OpenAI API-compatible model. Agents can use tools from the Dify Marketplace, MCP servers or your own APIs. Every app also gets an API, so you can call it from your own code.

You self-host with Docker Compose on a machine with at least 2 CPU cores and 4 GiB of RAM. A hosted Dify Cloud is also offered. The project is written mainly in Python, with a Next.js front end. Its license is Apache 2.0 with added conditions.

It fits teams wanting a self-controlled alternative to hosted AI app builders.

Who it's for

Teams prototyping LLM apps without much code

The visual workflow canvas and prompt IDE cover building and testing in one place.

Skip if: You prefer to write everything in code with a library such as a plain SDK.

Companies with data-control requirements

You can self-host with Docker Compose and choose which models to connect.

Skip if: You cannot run and maintain a multi-service Docker deployment.

Developers adding AI features to existing products

Each app is exposed through an API.

Skip if: You only need a single prompt call with no orchestration.

The problem it solves

Building an LLM app usually means stitching together model access, document retrieval, agents and monitoring yourself. Dify bundles these into one platform you can run on your own servers.

Strengths

  • Visual workflow canvas with RAG pipeline and agents
  • Supports hundreds of models, including OpenAI-compatible ones
  • Agents can use MCP servers, Marketplace tools and custom APIs
  • Every app comes with an API
  • 23 releases in the last year, 31 recent contributors

Trade-offs

  • Needs at least 2 CPU cores and 4 GiB RAM
  • License is Apache 2.0 with extra conditions, so read the terms
  • Docker Compose stack has several services to maintain
  • Setup requires generating and setting a sandbox auth token

Self-host Dify.ai

Self-hostable
Yes
Minimum RAM
4 GB
Hosted plan
Available · pricing

Quick start

cd docker
cp .env.example .env
openssl rand -hex 32

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Can I self-host Dify?

Yes. Run it with Docker Compose, then open the install page to finish setup.

Is there a hosted version?

Yes. Dify Cloud is offered so you can try it without managing a server.

What are the system requirements?

At least 2 CPU cores and 4 GiB of RAM.

Which models work?

Hundreds of models, including GPT, Mistral, Llama3 and any OpenAI API-compatible model.

Similar tools in AI agent frameworks

ZeroClaw

AI agent frameworks

Single-binary personal AI agent that runs on your machine with your own keys or local

34k 5.1k today Thriving Apache-2.0

deepseek-harness

AI agent frameworks

Plugin-based AI agent harness for documents, spreadsheets, code and scheduled tasks

286k 36k 2 days ago Active MIT

Hermes Agent

AI agent frameworks

MIT-licensed framework for building and running AI agents

265k MIT

edict

AI agent frameworks

Multi-agent AI orchestration with a review step and a Kanban dashboard, on OpenClaw

17k 1.8k 7 months ago Dormant MIT

AutoGPT

AI agent frameworks

AI agent platform with named specialist agents, self-hosted or hosted, under a

188k 46k 3 days ago Thriving PolyForm-Shield-1.0.0

Eigent

AI agent frameworks

Desktop multi-agent workforce that runs on your machine with browser and terminal tools

16k 1.9k yesterday Thriving Apache-2.0

Replaces Claude Cowork