~/ai_assets_directory_
AI Workflow verified · tested by us 155.0k stars
dify.workflow

Dify

Open-source LLM app development platform that combines a visual AI workflow canvas, RAG pipelines, agent tooling and model management in one workspace, for teams shipping production-ready AI apps.

Overview

Dify is an open-source platform for building LLM applications. It combines a visual AI workflow canvas, a RAG pipeline, agent capabilities (function calling or ReAct, with 50+ built-in tools), a Prompt IDE, model management across hundreds of providers, and LLMOps observability (via Opik, Langfuse or Arize Phoenix) in one workspace.

How it works

  1. Design a multi-step AI workflow on the visual canvas (prompt chains, conditionals, tool calls, retrieval steps).
  2. Wire in a RAG pipeline: ingest PDFs/PPTs/docs, chunk and index them, and retrieve context at query time.
  3. Attach agent capabilities so the app can call tools (Google Search, DALL·E, Stable Diffusion, WolframAlpha, or your own) using function calling or ReAct.
  4. Every app is automatically backed by an API, so it can be embedded in your own product (Backend-as-a-Service).
  5. Monitor production traffic and iterate on prompts/datasets using the built-in LLMOps dashboard.

Licensing note

Dify is not plain Apache-2.0: it ships under the Dify Open Source License, an Apache-2.0 base with two extra conditions. First, you may not operate a multi-tenant SaaS using the source code without a commercial license from LangGenius (one tenant equals one workspace). Second, you may not remove or modify the LOGO or copyright notices in the frontend (web/). Self-hosting Dify for your own business, including commercial use, is explicitly allowed; enterprise features have their own separate commercial license.

Examples

  • A RAG chatbot over internal company documents with citation and observability built in.
  • A multi-step customer-support agent that calls internal APIs as tools and escalates to a human when confidence is low.
  • Prototyping a prompt in the Prompt IDE, then promoting the same app to production via the auto-generated API.

Installation

You need Docker (with the Compose plugin) and Git. Dify is self-hosted, so there's no managed cloud account needed to try it.

  1. Clone the repo and move into the Docker setup:
    git clone https://github.com/langgenius/dify.git --depth 1
    cd dify/docker
    
  2. Copy the example environment file:
    cp .env.example .env
    
  3. Start the stack:
    docker compose up -d
    
  4. Open http://localhost/install in your browser and finish the setup wizard to create the admin account.
  5. In Settings, add a model provider (OpenAI, Anthropic, a local Ollama instance, or another supported provider) before you build your first app.

Keep the licensing note above in mind if you're planning to run Dify as a multi-tenant SaaS.

Related assets