> ## Content Index
> Fetch the complete content index at: https://inforeeo.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Dify for client projects: agent workflows, RAG, and the license
- URL: https://inforeeo.com/dify-ai-app-platform-2/
- Published: 2026-11-17T09:00:00.000Z
- Updated: 2026-11-23T14:54:47.000Z
- Description: Dify puts agent workflows, retrieval over client documents, model settings, and run logs in one console you can self-host. The license decides how many clients you can serve from one install.
- Author: reeo
- Tags: dify, ai-app-platform, n8n, open-webui, rag-pipelines, web-studio-tooling, AI & Automation, Technology, #Import 2026-11-26 15:49

Dify is a self-hosted console where you build an AI application on a visual canvas and publish it as a web page, an API, or an MCP server. One installation holds the workflow, the retrieval index built from your client's documents, the model configuration, and the run logs, so the prototype you demo in week one and the system you run in month six are the same object. For a studio shipping AI tools to clients, the questions are how many clients one install may serve, what keeps running after go live, and what a handover carries.

The repository is langgenius/dify, with 161,429 stars and 25,523 forks according to the GitHub API on 18 November 2026\. Its main language is Python, it was created on 12 April 2023, and its last push landed on 18 November 2026\. GitHub tags the license NOASSERTION, meaning no standard SPDX license: the file is a modified Apache 2.0 with extra conditions, and those conditions decide whether a per-client deployment is allowed. It is active too: 1.18.0 landed on 23 October 2026 and 1.20.0 on 18 November 2026, so any installation needs a maintenance plan the day you deploy it.

## What Dify calls itself, and what it gives you

The README calls it "an open-source LLM app development platform" and lists the parts: a visual workflow canvas, hundreds of models across dozens of providers, a prompt IDE, a RAG pipeline that pulls text out of PDFs and PPTs, agents with a sandbox of their own, log and annotation review, and an API for everything the console does. The README calls that Backend-as-a-Service, so your own front end can sit on top instead of the bundled web app.

The docs split apps into Workflow and Chatflow, plus three legacy types, Chatbot, Agent and Text Generator. Workflow runs single-turn and batch jobs, Chatflow runs one graph per conversation turn and keeps conversation variables. Both publish to a web app, an API or an MCP server. Everything sits in a workspace, Dify's isolation boundary and the unit the license counts.

![](https://inforeeo.com/content/images/2026/11/Dify-for-client-projects2.webp)

Dify for client projects

## The license is the section to read twice

The LICENSE file states that "Dify is licensed under a modified version of the Apache License 2.0, with the following additional conditions." Two conditions change a studio's plans. Multi-tenancy comes first: unless Dify authorizes it in writing, you may not use the source code to run a multi-tenant environment, and one tenant is one workspace, "a separated area for each tenant's data and configurations." Branding comes second: the LOGO and copyright information in the Dify console and in the published applications must stay, and the frontend is everything in the `web/` directory or the `web` Docker image. The rest follows Apache 2.0, and the file adds that the interactive design is protected by an appearance patent.

For a client project the rule is plain. Commercial use is allowed, including as the backend of your client's application, as long as branding stays. Several clients as separate areas of one installation is not allowed. A proposal that says white label needs a commercial license from the vendor.

## The problem in the room before you open the browser

The client wants an assistant over their contracts, or a form that drafts replies and escalates the awkward ones. They want something to look at Thursday and a launch before the quarter closes, and in the same call they ask who can see the documents. Then the follow-on work arrives: another branch, a stricter retrieval rule, and a support line that reaches you rather than a vendor.

A visual builder answers Thursday. Month six is harder, when you are the one maintaining the workflow, the document count has grown, and a graph assembled by clicking has become the specification. Dify's answer is the operational layer in the same console: logs, annotations, version history, and an export you can commit.

## One workspace per installation, and what that costs per client

The self-hosted docs make the workspace the unit everything belongs to: applications, knowledge bases, members, model configurations, integrations. One workspace is created at installation, with the admin email and password you set then. Multiple workspaces, described as "complete isolation between legal entities, regulatory environments, or client projects," are an Enterprise feature behind a contact-sales form. The page was last modified 29 July 2026.

Roles are four and fixed: Owner has full control and there is one per workspace, Admin adds member and model-provider management, Editor builds and deletes apps and knowledge bases, Normal uses published apps only. Custom roles are Enterprise.

So per client you run another installation or you buy a license, and one installation per client is the honest default, at the cost of N upgrade jobs, N backup regimes and N sets of credentials. The cloud plans point the same way, one workspace per plan, 3 members and 50 apps on Professional, 50 members and 200 apps on Team.

## Installing it on a machine you will keep

The README sets a low floor: 2 CPU cores, 4 GiB RAM, a running Docker daemon, Docker Compose v2.35.0 or later, and OpenSSL for the sandbox token. The install docs add Git and warn that a Mac Docker Desktop VM under 2 vCPUs and 8 GiB can fail installation.

From a release tag the path is short. Copy `.env.example` to `.env`, put a fresh 32-byte hex value into `DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN`, keep the default `COMPOSE_PROFILES`, run `docker compose up -d`, then open `http://localhost/install` to create the administrator account. Confirm with `docker compose ps --all`: the one-time `init_permissions` service exits with code 0 on a healthy start. Pin the version: resolving the newest release through the GitHub API fails with "Remote branch null not found" under rate limiting. An untagged clone also gives you deployment templates that track development while the Compose file pins release images. The source route needs Python 3.13, Node.js 24.22.1 or later, and pnpm 12.10.1.

## What you end up running, and maintaining

The default stack is not one container. It starts PostgreSQL, Weaviate as the vector store, Redis, nginx, the API, workers with the Beat scheduler, the plugin daemon, the code sandbox, and a WebSocket service under the `collaboration` profile. Other vector stores and a KnowledgeFS API are optional. Configuration sits in the root `.env`, in tracked `.defaults` files and in per-service overrides, and `docker compose restart` does not reload environment files while `up -d` does.

Upgrades are where the maintenance bill lands. The 1.20.0 notes require a new reverse-proxy rule for human-input callbacks and two new Celery queues for deployments that override queue lists, and they stop loading `envs/core-services/shared.env`. They also note that Langfuse Cloud retired its legacy ingestion endpoint on 16 November 2026, so an older build stops delivering traces. The FAQ says to copy the directory to a timestamped backup before upgrading, and the 1.18.0 guide lists what has to survive: the database, vector-store data, uploads, agent workspace storage, and every secret and env file.

## Handover: what an app package carries, and what it does not

Since 1.18.0 an app export produces an `.ifpkg` package, a ZIP holding the DSL file and the files the app needs; earlier exports were YAML alone. The docs put the boundary in the DSL: it covers nodes, prompts, variables and settings, and does not carry data such as logs or knowledge bases.

The export page lists what stays behind: linked knowledge bases, model and tool credentials, service API keys, logs and annotations, past versions, installed integrations though those reinstall in one click, MCP and Swagger tools, workflow tools, files an agent installed while working, trigger subscriptions, and contacts. Secret variables are optional, and including them writes the values into the package as plain text.

The package is the app, and the instance is the rest. A client taking over inherits an installation with a knowledge base to rebuild, API keys to re-enter, and their own model account. Roles decide the paperwork: exporting needs Editor or above, importing a package with workflow tools needs Owner or Admin, and importing into an existing app pushes its web app settings to the live page without publishing. Packages from 1.19.0 or later import only into 1.19.0 or later.

## How Dify compares with n8n and Open WebUI

|                                             | Dify                                                                                                                                                                | n8n                                                                                                                                                                         | Open WebUI                                                                                                                          |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| What it is, per its own README              | LLM app development platform combining AI workflow, RAG pipeline, agent capabilities, model management and observability                                            | Fair-code platform to build and deploy AI agents and workflows, with 1500-plus integrations                                                                                 | Extensible self-hosted platform built to run entirely offline, using Ollama or OpenAI-compatible APIs                               |
| License, and what it restricts              | Modified Apache 2.0: no multi-tenant service without written permission, where a tenant is one workspace, and no removing or changing the console logo or copyright | Sustainable Use License plus a separate Enterprise License for .ee files: internal business use or non-commercial use, and you may provide it to others only free of charge | Open WebUI License: branding must stay unless under 50 end users in a rolling 30 days, written permission, or an enterprise license |
| Where it runs                               | Self-hosted with Docker Compose, Kubernetes guidance in the repository, plus Dify Cloud and Dify Enterprise                                                         | Self-hosted Docker or its managed cloud, installed by script or a single Docker run                                                                                         | Python package, Docker images, and a desktop app for macOS, Windows and Linux                                                       |
| What it needs to run                        | 2 CPU cores, 4 GiB RAM, Docker Compose 2.35.0 or later, Git, OpenSSL                                                                                                | Docker; hardware minimums Not verified for this article                                                                                                                     | Python 3.12 for the pip route, or Docker; GPU for the cuda and ollama images                                                        |
| What you maintain afterwards                | PostgreSQL, Redis, a vector store, nginx, plugin daemon, code sandbox, worker queues, database migrations                                                           | A container and a data volume in the README command; the full production service list Not verified for this article                                                         | One container and a data volume, plus Ollama or an external model API                                                               |
| Community and support stated by the project | GitHub Discussions, Discord, issues, a cloud support address, Enterprise SLAs through a form                                                                        | A community forum, named as the support channel                                                                                                                             | GitHub issues and discussions, Reddit, Discord                                                                                      |
| Stars, forks, last push                     | 161,429 stars, 25,523 forks, pushed 2026-11-18 (GitHub API on 18 November 2026)                                                                                     | 210,896 stars, 61,561 forks, pushed 2026-11-18 (GitHub API on 18 November 2026)                                                                                             | 159,021 stars, 23,110 forks, pushed 2026-11-18 (GitHub API on 18 November 2026)                                                     |
| Best fit for a studio                       | A client-facing chat or workflow app with retrieval over the client's own documents, delivered as an installation you also run                                      | Automation that crosses systems the client already uses, where the workflow touches SaaS tools                                                                              | A private chat front end for models the client already runs in-house                                                                |

Four cells stay open: n8n's hosting requirements, n8n's production service list, and the paid tiers of both competitors, since I opened only Dify's pricing page. Dify Enterprise publishes no rate, so its cost stays qualitative. Close them against n8n's README and LICENSE.md and Open WebUI's README and LICENSE, all read 19 November 2026, plus both projects' hosting and pricing pages, before you put a support estimate in a proposal.

## What it costs, and what the pricing page does not settle

Dify Cloud publishes prices. The page read on 19 November 2026 shows Professional at $590 per workspace per year and Team at $1,590 per workspace per year, annual view, with a note that prices exclude taxes and that paying yearly saves 17 percent. The same page lists a Sandbox tier, and the plans bundle message credits for testing against OpenAI, Anthropic and Gemini models. Production model spend goes to your own API key.

The self-hosted Community Edition carries no license fee in the repository, and its price arrives as the two license conditions. Enterprise is quoted through a form with no published rate at the time of reading, so no Enterprise figure belongs in a client proposal. If your quote includes white-labeling or several tenants on one installation, get the vendor's terms in writing first.

## Failure modes the docs and the tracker already show

The GitHub issue search showed 641 open issues on 19 November 2026, and 1,446 open items counting pull requests. These are the ones that bite a studio.

Rate limiting turns into a lockout. The docs FAQ describes sign-in and password-reset emails failing for everyone at once, with "Too many emails have been sent from this IP address recently," behind Cloudflare or another proxy from 1.18.0 onward, because the bundled nginx sees only the proxy's address and every visitor shares its limits. The fix is a `real-ip.conf` in `docker/nginx/conf.d/` naming the trusted proxy.

Split hostnames drop sessions. Serve the UI from one subdomain and the API from another and the authentication cookie cannot reach both hosts: login looks fine and dies on the next request until you set `COOKIE_DOMAIN` and `NEXT_PUBLIC_COOKIE_DOMAIN`.

Older browsers block publishing. Issue #40720, open since 13 August 2026 against 1.16.1 self-hosted Docker, reports a chatflow that cannot be published in an older browser because of a WASM error, plus a "Syncing data" prompt that blocks the interface in a newer browser on that same offline installation. Test publishing on the client's own hardware.

Issue #45894 records that integer outputs from MCP and OpenAPI tools are missing from several variable allow-lists in the editor, with four related bugs behind it, so a code node must convert the value. Issue #36395 has asked since 19 May 2026 for message editing and regeneration in the Advanced Chat App API, the gap that matters if you build your own front end on Dify's API. Issue #30269 tracks a rewrite of the Flask backend, still open with 18 comments.

## A recipe for running Dify on one client project

1\. Install one instance per client from a pinned tag. Run `git clone --branch <version>`, copy the env template in `dify/docker`, then `docker compose up -d`. Check `docker compose ps --all`, confirm `http://localhost/install` completes, and commit the tag to the client's repository. 2\. Set the boundaries before go live. Put the console and app URLs in `envs/core-services/urls.env`, set `COOKIE_DOMAIN` if hostnames are split, and add `real-ip.conf` for your proxy. Then check `docker compose logs nginx`: new lines start with the visitor's own address rather than the proxy's. 3\. Load their documents and freeze the model choice. Build the knowledge base, run the retrieval test on the client's questions, and write down the embedding and reasoning models set in the workspace. Credentials stay in the workspace and never in a package. 4\. Export a package per release and prove the import. Take Export App from version history with secrets excluded, commit the `.ifpkg`, and import it into a second instance to confirm the app rebuilds with only the documented gaps. 5\. Write the runbook and test it once: the tag, where the database and vector store live, the backup command from the docs FAQ, and the restore steps. Run one restore on a spare VPS before sign-off.

## Who should not use Dify

Skip it when the client wants a chat box over models they run locally, since Open WebUI is a lighter install for that. Skip it when the work is automation across their SaaS stack, where n8n's integration count is the point. Skip it when the deliverable carries the client's brand, because the license keeps console branding in place. Skip it when they want several isolated tenants on one platform and nobody wants a commercial conversation with the vendor. Skip it if your team will not operate Postgres, Redis, a vector store and a queue.

## Questions the reader asks first

**Is Dify open source?** Partly. The LICENSE is a modified Apache 2.0 that allows commercial use but rules out a multi-tenant service without written permission and rules out changing the console branding.

**Can I run Dify for several clients on one installation?** Not without a commercial license. One tenant equals one workspace in the license, and the self-hosted docs create one workspace at installation and put multiple workspaces in Enterprise.

**What does a Dify handover include?** The instance, its configuration files, and the app package. The `.ifpkg` export carries nodes, prompts, variables and settings, and leaves knowledge bases, credentials, API keys, logs and past versions behind.

**What does self-hosting Dify take on a normal VPS?** Two CPU cores and 4 GiB RAM at minimum per the README, with Docker Compose 2.35.0 or later. Budget more once a knowledge base grows and workers run indexing jobs.

**Does Dify lock me into one model provider?** No. The README claims hundreds of models from dozens of providers, models are set per workspace, and a provider switch is a settings change. Availability in your region is not verified for this article.

**Should I choose Dify or n8n for a client automation project?** Dify when the client's staff will converse with the app over their own documents. n8n when the job is moving data between systems they already use, after reading n8n's Sustainable Use License, which allows internal use and free non-commercial distribution rather than paid resale.