Mindket

Dify

Newversion 2 · updated
Star161k

Overview

LangGenius’s open-source platform for building LLM apps: visual workflows, RAG, model management and agents with a sandbox. Its difyctl tool and skill let Claude Code, Codex, Cursor and other agents build and run the apps.

Dify is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.

At a glance

Runs in
  • Dify Cloud: hosted by LangGenius, nothing to install, with a free Sandbox plan
  • Community Edition: self-hosted with Docker Compose, or run from source
  • Dify Enterprise: for organizations that need self-hosting, SSO, RBAC and support SLAs, through LangGenius’s sales form
  • Claude Code: the difyctl skill, in ~/.claude/skills
Start with
git clone --branch "$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name)" https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env

Platform

DockerContainer
Claude CodeCoding agent
CodexCoding agent
CursorCode editor
Gemini CLICoding agent
GitHub CopilotCoding agent

And 2 more in Where to use it

About

What it is

Dify is an open-source platform for building LLM apps, made by LangGenius. On one visual canvas you join model calls, knowledge retrieval, code and branching into a Workflow or a Chatflow. The same workspace holds model management, RAG pipelines, agents that work in a sandbox of their own, and logs for watching an app in production. Every app comes with an API. This listing is Mindket’s setup notes. They cover running Dify yourself and letting a coding agent build and run your apps through Dify’s command-line tool.

  1. You add a model provider
  2. You build a Workflow, a Chatflow or an Agent
  3. You publish it as a web app, an API or an MCP server
  4. Logs record what each run did

Who it suits

Developers and small teams who want to build agent and RAG apps on a visual canvas instead of wiring each piece by hand. So do teams that need to host the platform on their own servers, since the docs say Dify runs anywhere Docker runs.

Who uses it, and how
IndustryWho uses itHow they use itExample
Customer supportSupport leads and developersBuild a chat assistant that looks things up and answersA support lead builds an Agent that looks things up and answers, then publishes it as a web app.
Reports and data workAnalysts and developersRun a Workflow from start to finish, by hand or on a scheduleAn analyst builds a Workflow for report generation and adds a schedule Trigger to run it.
ResearchResearchers and writersGive an Agent the job of gathering sources and summarizing themA researcher chats with an Agent that gathers sources and writes the summary.
Developer toolingDevelopers who use coding agentsLet the agent build and run apps through difyctl, or call an app as an MCP toolA developer publishes an app as an MCP server, and Cursor lists it as a tool.

Skip it if you plan to run it as a shared service for several customers. The license bars a multi-tenant setup unless LangGenius authorizes it in writing.

Where to use it

Dify is a web app, so you build in a browser, on LangGenius’s hosted Cloud or on a server you run. Coding agents reach your apps through a command-line tool called difyctl.

  • Dify Cloud: hosted by LangGenius, nothing to install, with a free Sandbox plan
  • Community Edition: self-hosted with Docker Compose, or run from source
  • Dify Enterprise: for organizations that need self-hosting, SSO, RBAC and support SLAs, through LangGenius’s sales form
  • Claude Code: the difyctl skill, in ~/.claude/skills
  • Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and most other agents: the same skill, in ~/.agents/skills
  • Claude Desktop and Cursor: a Dify app published as an MCP server

How to set it up

Get it saves a zip of Mindket’s setup notes in your downloads folder, with each route’s steps from LangGenius’s README and docs. The main self-hosted route is Docker Compose.

What you need first
NeedDetail
A machineAt least 2 CPU cores and 4 GiB of RAM
DockerDocker with a running daemon, and Docker Compose v2.35.0 or later
macOS10.14 or later, Docker Desktop with its VM set to at least 2 virtual CPUs and 8 GiB of memory
WindowsDocker Desktop with WSL 2 enabled, with the code and data in the Linux file system
OpenSSLMakes the token for the agent sandbox
git, curl and jqThe docs page’s clone line uses all three
A model providerAt least one, set up in the console. On a self-hosted server you add its API key
  1. Clone the repository at its latest release.
  2. Copy .env.example to .env in dify/docker.
  3. Put a new token in .env. Make it with openssl and set it as DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN. Keep the default COMPOSE_PROFILES.
  4. Start the services and check them.
  5. Make the admin account in the browser. It is at http://localhost/install. Then add a model provider with its key in Integrations.
git clone --branch "$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name)" https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env
openssl rand -hex 32
docker compose up -d
docker compose ps --all

The one-time init_permissions service exits with code 0. That is expected. To let a coding agent work with your apps, install difyctl and sign in, then give your agent the skill. A self-hosted server must run Dify 1.18.0 or later, with OPENAPI_ENABLED and ENABLE_OAUTH_BEARER both set to true. The installer below is for macOS and Linux, on x64 and arm64. It checks the download’s checksum and installs to ~/.local/bin/difyctl.

curl -fsSL https://raw.githubusercontent.com/langgenius/dify/main/cli/scripts/install-cli.sh | sh
difyctl login --server https://dify.example.com
difyctl install skills ~/.claude/skills

On Windows, x64 only, the installer is a PowerShell line.

irm https://raw.githubusercontent.com/langgenius/dify/main/cli/scripts/install.ps1 | iex

For Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and most other agents, the skill goes in ~/.agents/skills. For any other agent, look up its skills folder in its documentation.

difyctl install skills ~/.agents/skills

How to use it

In the console you build a Workflow, a Chatflow or an Agent. A Workflow and a Chatflow share one canvas where you connect nodes that each do a step, such as calling a model, retrieving knowledge, running code or branching on a condition.

Workflow and Chatflow
AppHow it runsStarts withEnds with
WorkflowOnce, start to finish: an input goes through the flow and a result comes backUser Input or a TriggerAn Output node, which is optional
ChatflowUsers chat, and each message runs the flow before a reply is madeUser InputAn Answer node, which is required

An Agent works another way. You set it up once and use it two ways: on its own as a chat app, or as a step inside a workflow. It works in a sandbox of its own, where it runs commands and reads and writes files. The Agent is in beta, and it is on by default on Docker Compose.

From a terminal, list your apps, or describe a job to help and it names the matching commands. Only apps with Service API access turned on are listed.

difyctl get console_app
difyctl help publish app

Example

You self-host Dify on your laptop and want Claude Code to see your apps. You sign in against your server. Pass the address you open Dify at in your browser. For a local server on http://, add --insecure. It applies to every later command until you sign in again without it, so keep it to local development. The server needs OPENAPI_ENABLED and ENABLE_OAUTH_BEARER set to true first.

difyctl login --server https://dify.example.com
difyctl get console_app

The terminal prints a code. On the Authorize difyctl page, you enter the code and click Continue within 15 minutes, then check the account and the workspace and click Authorize. The list that follows holds the apps whose Service API access is on. Once the skill is installed, you can ask the agent to build, run or update them.

For newcomers and experts

If you are new. A model provider is the company or server whose AI model your app calls. Every Dify app needs at least one model provider. On a self-hosted server you add the provider’s key, which bills your account with that provider. On Dify Cloud, the docs say you can use your AI credits or connect your own provider accounts and keys. Most of the canvas work is drag, connect and configure, with code only where your logic needs it. If you would rather not run Docker, Dify Cloud skips the install.

For experts. COMPOSE_PROFILES picks the bundled database, vector store and WebSocket API. The default is weaviate,postgresql,collaboration. DB_TYPE or VECTOR_STORE with a matching profile swaps them, and a new database does not migrate existing data.

Where a setting goes
WhatWhere it goes
COMPOSE_PROFILES, published ports, volume pathsRoot .env, because service env files cannot change them
A service setting, such as nginx’s upload limitA copy of its .defaults file in envs/, usually saved as .env
PLUGIN_DAEMON_KEY and PLUGIN_DIFY_INNER_API_KEYRoot .env, one shared value for every service

Root .env beats a service .env, which beats the tracked defaults. Run docker compose up -d after an edit, because docker compose restart does not reload environment variables. Editing the plugin keys only in a service file can cause HTTP 401 responses. Behind Cloudflare or another proxy, everyone can share one rate limit until nginx is told which proxy to trust. From source, the API needs uv and runs on port 5001, and the web service needs Node.js 24.22.1 or later and PNPM 12.

Good to know

On a self-hosted install, these paths reach outside your server.

  • License: the Dify Open Source License, which GitHub lists as Other. It is Apache 2.0 with added conditions. A multi-tenant service needs LangGenius’s written authorization, and the logo and copyright in the frontend must stay. Contributed code may be used commercially, its cloud business included, and the rest follows Apache 2.0. Read the LICENSE file before you run it for customers
  • Model providers: a key grants workspace-wide model access and bills the provider account behind it. Only the workspace owner and admins can manage providers
  • Outbound calls: the console checks updates.dify.ai for new versions, and an empty CHECK_UPDATE_URL turns that off. Plugins come from marketplace.dify.ai, which is checked for plugin upgrades every 15 minutes by default, and unsigned packages are refused by default. Compose leaves Next.js telemetry on until NEXT_TELEMETRY_DISABLED is 1, and Weaviate telemetry stays on until WEAVIATE_DISABLE_TELEMETRY is true
  • Agent security: the new Agent is in beta, and Dify says its runtime is not a hardened boundary between users who do not trust each other. For production, replace DIFY_AGENT_SERVER_SECRET_KEY and DIFY_AGENT_API_TOKEN with your own random values
  • Production: the Docker guide says to replace the bundled credentials and set up HTTPS and trusted proxies first
  • difyctl: it acts as the account you approve and runs each command without asking, so keep your agent’s own approval for shell commands on. A sign-in lasts 14 days. Add model keys in Dify yourself, since anything typed to the agent passes through its model
  • MCP server URL: it holds credentials, so treat it like an API key and regenerate it if it leaks
  • Not run: Mindket read the docs and did not run the commands. The pages give no uninstall steps

README and files

README

Dify: setup notes

This kit holds setup notes only. Mindket wrote them. Dify itself, its Docker images and its command-line tool come from LangGenius's own repository: https://github.com/langgenius/dify

These notes are not made or endorsed by LangGenius. Its README calls Dify "an open-source LLM app development platform". The documentation starts at https://docs.dify.ai

The notes come from the README and the documentation pages named in each file. They were not checked against the source code, and Mindket did not run the commands.

License

Dify uses its own license, the Dify Open Source License. GitHub lists it as "Other", with no SPDX identifier. The LICENSE file (https://github.com/langgenius/dify/blob/HEAD/LICENSE) says Dify "is licensed under a modified version of the Apache License 2.0, with the following additional conditions".

  • Commercial use: the file says Dify may be used commercially, "including as a backend service for other applications or as an application development platform for enterprises". It names two conditions below, and says that where they apply "a commercial license must be obtained from the producer".
  • Multi-tenant service: "Unless explicitly authorized by Dify in writing, you may not use the Dify source code to operate a multi-tenant environment." One tenant is one workspace.
  • Logo and copyright: in using Dify's frontend, you may not remove or modify the logo or copyright information in the Dify console or applications. The file says this does not apply to uses that do not involve the frontend, which it defines as the web/ directory or the "web" image.
  • Contributors: the producer "can adjust the open-source agreement to be more strict or relaxed as deemed necessary", and contributed code "may be used for commercial purposes, including but not limited to its cloud business operations".
  • Everything else: "all other rights and restrictions follow the Apache License 2.0". The file also says "The interactive design of this product is protected by appearance patent."

These notes do not interpret the license. If you plan to run Dify for other customers or ship a modified version, read the file and ask LangGenius.

What the notes cover

Dify is a web platform with a server behind it. The README and docs give these ways to run or reach it:

  • setup/docker-compose.md: Docker Compose, the route the README calls the easiest. It starts the whole stack.
  • setup/cloud-and-other-deployments.md: Dify Cloud, which LangGenius hosts, Dify Enterprise, and the deployment routes the repository's advanced setup page lists.
  • setup/local-source-code.md: running the API, the worker and the web service from source.
  • setup/models-and-first-app.md: adding a model provider, and what a Workflow, a Chatflow and an Agent are.
  • setup/difyctl.md: installing difyctl, the command-line tool, and signing in.
  • setup/claude-code.md: giving Claude Code the difyctl skill.
  • setup/codex-cursor-and-other-agents.md: the same for Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and other agents.
  • setup/mcp-server.md: publishing a Dify app as an MCP server for Claude Desktop and Cursor.

What you need first

Main install commands

The Compose route needs the source code first, so clone it. The Docker Compose docs page gives this line, which finds the latest release tag through the GitHub API. It needs git, curl and jq.

git clone --branch "$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name)" https://github.com/langgenius/dify.git

Then the README runs these from the repository root:

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

Open .env and set DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN to the generated value. Keep the default COMPOSE_PROFILES value. Then, from the same docker directory:

docker compose up -d
docker compose ps --all

Open http://localhost/install to finish the first setup. The one-time init_permissions service is expected to exit with code 0.

Sources: https://github.com/langgenius/dify/blob/HEAD/README.md and https://docs.dify.ai/en/self-host/deploy/quick-start/docker-compose

Per-platform notes

Each file names the page its steps and commands came from. Where the README and a docs page disagree, the file says so.

Update or remove

The Compose docs page says upgrade steps vary between releases, so read the upgrade guide for your target version on the Releases page. After an upgrade, compare each .env.example with its matching .env for new or changed variables. The FAQ page says to back up before upgrading, and gives this line to copy the dify folder:

cp -r dify "dify.bak.$(date +%Y%m%d%H%M%S)"

Sources: https://docs.dify.ai/en/self-host/deploy/quick-start/docker-compose and https://docs.dify.ai/en/self-host/deploy/quick-start/faqs

The pages used here give no uninstall steps.

Usage data and outbound connections

The model providers page warns that an API key gives workspace-wide model access and bills the provider account behind it. Source: https://docs.dify.ai/en/self-host/use-dify/workspace/model-providers

The environments page lists these connections for a self-hosted Dify. Source: https://docs.dify.ai/en/self-host/deploy/configuration/environments

  • CHECK_UPDATE_URL defaults to https://updates.dify.ai. The console checks it for newer versions, and an empty value turns the check off.
  • MARKETPLACE_ENABLED defaults to true and MARKETPLACE_API_URL to https://marketplace.dify.ai. Plugins come from there, and FORCE_VERIFYING_SIGNATURE defaults to true, so unsigned plugin packages are refused.
  • NEXT_TELEMETRY_DISABLED defaults to 0. The page says the Compose stack leaves Next.js's anonymous telemetry on unless you set it to 1.
  • WEAVIATE_DISABLE_TELEMETRY defaults to false, so Weaviate's telemetry is on unless you set it to true.
  • ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK defaults to true: the marketplace is checked for newer plugin versions every 15 minutes.
  • The Sentry DSN settings default to empty, and the page says an empty API_SENTRY_DSN disables Sentry for the backend. OpenTelemetry stays off until ENABLE_OTEL is true.

Sources

Files
README.md  8 KB
setup/claude-code.md  3 KB
setup/cloud-and-other-deployments.md  4 KB
setup/codex-cursor-and-other-agents.md  2 KB
setup/difyctl.md  11 KB
setup/docker-compose.md  11 KB
setup/local-source-code.md  6 KB
setup/mcp-server.md  2 KB
setup/models-and-first-app.md  6 KB

9 files, 51 KB, downloaded as a zip.

What’s new

  • Version 2 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • Version 1 · 2026-11-03

Compare with similar

Listed GitHub projects in the same category that share the most topics with this one.

ProductStarsActivityLanguageLicenseLast change
Dify This page160,579————
SimShares agentic-workflow · low-code · automation30,071——Apache-2.0—
RufloShares agentic-framework · agentic-workflow · agentic-ai81,187——MIT—
OpenHands Agent CanvasShares gpt · agent · llm92,839——MIT—
Agent Development Kit (ADK) for GoShares genai · llm · ai8,945ActiveGoApache-2.0
CopilotKitShares agent · agentic-ai · ai38,557ActiveTypeScriptMIT
Numbers as Mindket last read them, from 2026-11-07 to 2026-11-08. Activity is read from each project’s last change on GitHub: Active within 30 days, Quiet within 180, Stale after that.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

shadyshadowOpenAI announcing agent builder toolkitLooks like n8n and https://github.com/langgenius/dify/, but came out 1 year later / not open-sourceEUVD Bot🚨 EUVD-2026-92852 📊 7.1/10 🏢 langgenius 📝 Dify is an open-source LLM app development platform. Prior to 1.16.0, the PUT /console/api/apps/<app_id>/server endpoint in api/controllers/conso... 🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-92852 #cybersecurity #infosec #cve #euvd2 likes@zhangcheng0688今天把收藏夹里的「Dify」从 0 讲到 1(角度:是什么)。 【是什么】开源 LLM 应用开发平台:可视化编排 Agent、工作流与 RAG,可云端/VPC/自托管。 公开信号:GitHub 公开星标约 160689(2026-11-09 API 快照) 入口:https://t.co/zwZZpl0uly 【痛点】很多团队不是缺模型,而是缺一条能验收的落地路径:谁上传知识、谁审批回复、出了错谁签字。工具如果只停留在聊天 Demo,进不了制造/贸易/电商的值班表。 【怎么装/怎么开】官方推荐 Docker Compose 一键起;也可上 https://t.co/Gz1reIe8lX…shadyshadowOpen-Source Agentic AIIf you are looking for agentic workflows but want an open-source, local-docker-running alternative to OpenAI's Agentkit, check out https://github.com/langgenius/dify/サードニュース@相互フォロー100%企業のAI内製化を支援するDifyエンジニア育成プロジェクトが始動 #東京都 #中央区 #AIエージェント #Dify #LangGenius LangGenius、パーソルクロステクノロジー、JTPの3社が協力し、100名のDifyエンジニア育成へ向けた新たな支援プログラムを発表しました。AIエージェントの内製化を進める企業にとって大きな前進です。2 likes@zhangcheng0688【0→1】Dify是什么:开源 LLM 应用开发平台:可视化编排 Agent、工作流与 RAG,可云端/VPC/自托管。 公开★约160689(11-09 API)。入口 https://t.co/4fNsQOnR8pcowpigNew tools for building agentsHere's a fairly comprehensive list: https://github.com/slavakurilyak/awesome-ai-agents CrewAI is a popular VC-backed one, but two that I think are kind of interesting in the open source space are: https://github.com/i-am-bee/beeai-framework https://github.com/lastmile-ai/mcp-agent ... However I…GitHub Trending JS/TS📦 langgenius / dify ⭐ 158,134 (+71) 🗒 TypeScript Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.1 like@nexus_ai_newsDify is a collaborative AI platform for building agentic workflows and RAG pipelines. It lets teams prototype and deploy in the cloud, VPC or self-hosted, saving hours of stack rebuilding for automation builders. https://t.co/gEV9dncStUomidhAsk HN: What RAG setup gets me 95% of the way there?Try dify (https://github.com/langgenius/dify)EUVD Bot🚨 EUVD-2026-92866 📊 8.3/10 🏢 langgenius 📝 Dify is an open-source LLM app development platform. Prior to 1.13.0, the /console/api/remote-files/upload endpoint in api/controllers/web/remote_files... 🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-92866 #cybersecurity #infosec #cve #euvd1 like@launch_llama14 open source AI repos you can build a business on: 1. Vercel AI SDK 2. Open WebUI 3. Dify 4. Flowise 5. Langflow (my personal fav) 6. RAGFlow 7. Mem0 8. Lobe Chat 9. Khoj 10. Ollama 11. Browser Use 12. Firecrawl 13. n8n 14. Vercel AI Chatbot Links in the reply 👇

Searched

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar projects

See all in Developer

Sim

simstudioai · Kit

Sim Studio’s workspace for building, deploying and managing AI agents and workflows, with an Apache 2.0 core. Use Sim Cloud, self-host with Docker or run the M…

New30.1k

Ruflo

ruvnet · Kit

ruvnet’s free, MIT-licensed layer that adds agent swarms, shared memory, a console and an MCP server to Claude Code and Codex. It was called Claude Flow. The s…

New81.2k

Hermes Agent

NousResearch · Kit

Nous Research’s open source agent that you run in a terminal, in a desktop app or from a chat app. It keeps memory, writes skills from experience, runs schedul…

New261k