Code & DeveloperOpen source codelanggenius/dify

Dify: Open Source AI Repository & Self-Hosting Guide

Open-source LLMOps and AI agent workflow studio uniting drag-and-drop canvas orchestration, hybrid RAG document indexing, and REST API publishing.

GitHub Stars
162,404 stars
Repository License
Custom (see repo)
Last Push (UTC)
Dec 4, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/langgenius/dify.git
View on GitHubOfficial Website
Installcd docker && cp .env.example .env && docker compose up -d

Dify: Architecture & Practical Workflow

Dify pairs a Flask/Next.js orchestration control plane with vector stores (Qdrant, pgvector, Weaviate), prompt versioning, evaluation logs, and OpenAI/Ollama model routing—allowing teams to turn visual agent graphs into production APIs.

Recommended End-to-End Pipeline

Index technical documentation via Unstructured or Docling inside Dify Knowledge Bases, build a tool-calling support agent, and embed its widget on internal portals.

Runtime Target
Self-Hosted Docker / Cloud (GitHub)
Primary Users
AI Engineers, Startups, Product Teams
Code License
Custom (see repo)
Focus Topics
open-source, github, ai-agents, workflow-builder, rag

Quick Setup & Installation Steps

Platform target: Self-Hosted Docker / Cloud (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/langgenius/dify.git && cd dify`.
  2. 2Review the Custom (see repo) license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `cd docker && cp .env.example .env && docker compose up -d` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Index technical documentation via Unstructured or Docling inside Dify Knowledge Bases, build a tool-calling support agent, and embed its widget on internal portals.)

Hardware & VRAM Notes

Self-hosting full stack requires Docker Compose (~4GB+ RAM)

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Self-hosting full stack requires Docker Compose (~4GB+ RAM)

Runtime Target

Self-Hosted Docker / Cloud (GitHub)

Strengths & Best For

  • Visual drag-and-drop canvas for multi-step AI agent workflows
  • Built-in RAG document indexing, prompt IDE, and observability
  • Supports OpenAI, Gemini, Anthropic, Ollama, and custom models
  • Best suited for: AI Engineers, Startups, Product Teams

Limitations & Caveats

  • Self-hosting full stack requires Docker Compose (~4GB+ RAM)
  • Cloud hosted version has free sandbox caps; self-hosted deployments run without cloud sandbox caps
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Code)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Dify vs. Hosted Alternatives (Kilo Code & Cline (VS Code Extension))
FactorDify (Self-Hosted)Kilo CodeCline (VS Code Extension)
Execution & PrivacyRuns locally via Self-Hosted Docker / Cloud (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaCustom (see repo) code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitVisual drag-and-drop canvas for multi-step AI agent workflows; Built-in RAG document indexing, prompt IDE, and observabilityOpen-source VS Code AI coding agent unifying planning, orchestrator workflows, autocomplete, and multi-provider API routing.Free open-source AI coding agent for VS Code. Works with any LLM API.
Key Trade-offSelf-hosting full stack requires Docker Compose (~4GB+ RAM)Requires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Dify workflows.

More Open Source Code & Developer Repositories

Frequently Asked Questions

What does Dify do and how does it work?

Dify (langgenius/dify) is an open-source code & developer project with 162,404 stars on GitHub. Open-source LLMOps and AI agent workflow studio uniting drag-and-drop canvas orchestration, hybrid RAG document indexing, and REST API publishing. Dify pairs a Flask/Next.js orchestration control plane with vector stores (Qdrant, pgvector, Weaviate), prompt versioning, evaluation logs, and OpenAI/Ollama model routing—allowing teams to turn visual agent graphs into production APIs.

Is Dify free to self-host and use commercially?

Dify provides open source code licensed under Custom (see repo). Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Dify require?

Dify targets Self-Hosted Docker / Cloud (GitHub). Typical installation runs via `cd docker && cp .env.example .env && docker compose up -d`. Self-hosting full stack requires Docker Compose (~4GB+ RAM)

How does self-hosting Dify compare to hosted tools like Kilo Code?

Self-hosting Dify gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted Docker / Cloud (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Kilo Code (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Dify actively maintained and what workflow fits it best?

Repository metadata records 162,404 stars on GitHub with the latest recorded push on Dec 4, 2026. Index technical documentation via Unstructured or Docling inside Dify Knowledge Bases, build a tool-calling support agent, and embed its widget on internal portals.