# Dify

CreateWithAI Hub page: https://createwithaihub.com/open-source/dify
Latest version of this file: https://createwithaihub.com/open-source/dify.md

- Type: Library · Category: Libraries & Open Source
- Publisher: LangGenius, Inc.
- Pricing: Free plan plus paid plans
- Runs on: Web, Docker / self-hosted

Source-available LLM app platform with a visual workflow canvas, RAG pipeline, agents and APIs; self-host or use Dify Cloud.

Dify is an LLM application development platform with a visual canvas for AI workflows, a RAG pipeline for document ingestion and retrieval, agents with their own sandbox, a prompt IDE, model management and observability. Every app it builds also gets an API, so Dify can act as a backend for your own software. It supports hundreds of models from dozens of providers and connects tools from its marketplace, MCP servers or your own APIs. The Community Edition is self-hosted with Docker Compose; Dify Cloud and Enterprise are paid offerings.

Useful for: Building a document Q&A chatbot or an approval workflow on a visual canvas and calling it from your own app through Dify's API.

## Key features

- Visual workflow canvas for AI apps
- RAG pipeline with extraction from PDFs, PPTs and other formats
- Agents with a sandbox, skills, marketplace tools and MCP servers
- Support for hundreds of proprietary and open-source models
- Prompt IDE, logs and observability integrations (Opik, Langfuse, Arize Phoenix)
- API for every app (backend-as-a-service)

## Connection

- Language: Python, TypeScript / JS
- Focus: LLM orchestration

## Before you start

- Docker and Docker Compose v2.35.0+
- OpenSSL
- 2+ CPU cores and 4+ GiB RAM

## Install steps from the official documentation

Docker Compose (from the repository root):

```
cd docker
cp .env.example .env
openssl rand -hex 32   # set DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN in .env
docker compose up -d
```

## Limitations

- License is a modified Apache 2.0: running a multi-tenant service needs written permission, and the frontend logo/copyright must not be removed
- Self-hosting needs at least 2 CPU cores and 4 GiB RAM, Docker and Docker Compose v2.35+
- Dify Cloud's free Sandbox plan is limited to 200 message credits and 5 apps

## Official links

- Website: https://dify.ai
- Source repository: https://github.com/langgenius/dify
- Documentation: https://docs.dify.ai
- Source: https://github.com/langgenius/dify (README: description, quick start and system requirements, key features incl. MCP, cloud/self-host/enterprise options; LICENSE: modified Apache 2.0 with multi-tenant and logo conditions)
- Source: https://dify.ai/pricing (Dify Cloud Sandbox free (200 message credits, 5 apps), Professional $590/workspace/year, Team $1,590/workspace/year; self-hosted Community edition free)
- Source: https://github.com/langgenius/dify/blob/main/api/pyproject.toml (Backend in Python 3.13 with Flask)
- Source: https://github.com/langgenius/dify/blob/main/web/README.md (Frontend is a Next.js application (TypeScript))
