Dify license: commercial use and multi-tenant rules

The Dify Open Source License permits commercial and internal use of self-hosted Dify. Two uses need written authorization from Dify: operating a multi-tenant service and removing the console logo or copyright.

On this page

Can you use Dify commercially under its open source license?

The Dify Open Source License, a modified Apache License 2.0, permits commercial and internal use, including running Dify as a backend service for other applications or as an application development platform for enterprises. Two specific uses need written authorization from Dify: operating the source code as a multi-tenant environment, and removing or modifying the logo or copyright information in the Dify console. Procurement, legal and engineering leads should read the rest of this page before a rollout, because each of those two conditions depends on a definition that is easy to misread.

Legal should confirm the license text itself, which is the Dify Open Source License on GitHub, and compare it with the Apache License 2.0 for everything the Dify terms do not replace. Engineering should note that the logo restriction applies only when the Dify frontend is used, and that the license defines the frontend as the components in the web/ directory when running from source, or the web image when running with Docker. Procurement should ask whether an internal deployment for one organization, a customer-facing product built on Dify, or a hosted service for other companies is the plan, since that answer decides whether a commercial license is needed.

Before you rely on this reading, confirm with Dify in writing how your intended architecture maps to the license, especially if you plan to give several business units or customers their own separate areas inside one installation. Record the answer in the project file with the license version you reviewed. The Dify pricing page lists commercial license authorization and multiple workspaces as Enterprise items, so the cost question and the license question should be raised together.

Which license terms apply to each Dify edition

This table compares the Dify Open Source License, the self-hosted Community edition and the self-hosted Enterprise edition on use, restrictions and commercial authorization. Read each row against your planned use, especially whether you would run Dify for more than one tenant or remove the console logo. Enterprise pricing is custom and not published, so the cost rows show only the published Cloud plan prices, which are not license costs.

TermOpen Source License (source code)Self-hosted Community editionSelf-hosted Enterprise edition
Internal and commercial useCommercial use is permitted, including as a backend service or as an application development platform for enterprisesFree to run inside your organization, limited to a single workspaceAdds a commercial license and professional support, sold by quote
Multi-tenant operationNot permitted without written authorization from Dify, where one tenant is one workspaceNot permitted, because the edition is limited to one workspaceMultiple workspaces are included, and multi-tenant use needs Dify's written authorization
Logo and copyright in the consoleRemoving or modifying the console logo or copyright information is not permitted when using the frontendLogo and copyright must remain in the console and appsConfirm in your contract whether any logo change is covered
Backend-only use without frontendThe logo restriction does not apply where Dify is used without its frontendConfirm with Dify whether this carve-out fits your setupConfirm with Dify whether this carve-out fits your setup
Commercial license authorizationNot included; separate written authorization is needed for multi-tenant operationNot includedListed as an Enterprise item on the pricing page
Price basisNo fee under the license textFree, according to the pricing pageCustom priced and not published; request a written quote
Dify Cloud plans (not license costs)Not applicableDify Cloud Professional is listed at 590 US dollars per year on the pricing pageDify Cloud Team is listed at 1,590 US dollars per year on the pricing page

What counts as a tenant under the Dify license

The multi-tenant rule turns on one definition: under the Dify Open Source License, one tenant is one workspace, meaning a separated area for each tenant's data and configurations. The license bars using the Dify source code to operate a multi-tenant environment unless Dify authorizes it in writing. So the question is not how many users you have but whether you run one Dify instance that holds several separated workspaces for parties outside your organization. If you do, you need written authorization from Dify before you go live, and the Dify Open Source License text is the reference for the exact wording.

Illustrative example: an internal platform team runs one self-hosted Dify instance with a workspace for each of its business units, such as claims, underwriting and customer service. All the workspaces belong to the same company and the users are its employees, so the instance is used internally. A second case: a software vendor runs one Dify instance and creates a separate workspace for each customer company, giving those customers their own apps, knowledge bases and settings. The second case is a multi-tenant service under the license, while the first is internal use. Map your own setup to these two patterns, including who owns the workspaces, who pays for the instance and whether outside parties can log in.

Confirm your exact model with legal counsel before you deploy, and do not rely on this summary. Check edge cases the license wording may not settle on its face, such as a partner who manages workspaces for a client, a managed service you resell, a sandbox or demo instance shared with prospects, and internal workspaces that hold data for affiliated companies. If any of these apply, record the question, the answer and any written authorization from Dify in your architecture file so that later changes to the workspace model are reviewed against the same rule.

Which license path fits internal use, a product or a hosted service

Running Dify for your own employees inside one organization is the situation the Dify Open Source License most clearly allows. The license permits commercial use, and the multi-tenant restriction only applies when the source code operates a multi-tenant environment, where one tenant is one workspace. A single organization using one workspace for its own teams does not operate a multi-tenant environment, so the commercial license authorization is not triggered by that use alone. The self-hosted Community edition, which is limited to a single workspace, fits this path.

  • Workspace count: Keep all internal teams in one workspace. Creating a second workspace moves the deployment toward the multi-workspace setup that the pricing page lists as Enterprise-only.
  • Logo and copyright: Do not remove or modify the logo or copyright information in the Dify console when your staff use the frontend.
  • Upstream terms: Model providers, plugins and connected data sources carry their own terms, which this license does not change.
  • Internal customers: Confirm that staff from partner or affiliated companies who use Dify are not functionally separate tenants.

Before approval, confirm with counsel that your planned use stays inside one workspace and that no external party gains access to a multi-tenant environment you operate.

When the logo removal condition applies

The logo condition is the second of the two restrictions that can push a team toward a commercial license. It applies when you use the Dify frontend and you remove or modify the logo or copyright information in the Dify console or in the applications it produces. The license ties the restriction to the frontend specifically, so the question for your team is not whether Dify runs in your environment but whether the interface your users see has been changed in a way that touches that branding.

The license defines the frontend as all components in the web/ directory when you run Dify from source code, or the web image when you run Dify with Docker. A team that builds its own frontend from the repository, or swaps the web image for a custom build, is working with the frontend as defined. A team that only runs the API, worker and other backend services and serves its own interface against the Dify APIs is not using the frontend in that sense. Confirm which containers or directories your deployment actually runs and whether any of them were rebuilt or patched.

The restriction does not apply to uses of Dify that do not involve its frontend. Before you plan any theming, white-labeling or embedded delivery, have your engineering and product leads write down which components they run, how end users reach the application, and where the logo and copyright text appear. Then ask counsel to review that inventory against the license text. Note that the license also says the interactive design is protected by an appearance patent, so visual copies of the interface are a separate question to raise with counsel.

How to get written authorization before you deploy

This sequence tests your intended use against the two conditions in the Dify Open Source License, settles the tenant and branding questions, and ends with either a Community deployment you can run without further approval or a written request to Dify for authorization or a commercial license. Each step closes with a record you can keep for your legal and procurement files.

  1. Describe the intended use in writing

    Before any installation, the product owner and legal counsel write a short description of how the Dify deployment will be used: who signs in, which applications they reach, whether end customers or partners will use Dify-built apps, and whether Dify will sit behind a product you sell. Include whether Dify will act as a backend service for other applications, since the license names that as a commercial use it permits. Done means the description is signed off by the business owner and stored with the project record, ready for the checks that follow.

  2. Test the use against the multi-tenant condition

    Ask the security or platform lead to compare the description with the license definition of a tenant, which is one workspace that provides a separated area for each tenant's data and configurations. If the design would run one Dify source code instance to serve several separate customers, organizations or business units as isolated workspaces, the multi-tenant condition applies and written authorization from Dify is needed before deployment. Internal teams sharing one company's Dify is a different question, so record the reasoning either way. Done means a written finding that names the tenant model and states whether the condition is triggered.

  3. Test the use against the logo and copyright condition

    Have the brand or marketing owner review whether the Dify console or applications will be shown to users with the logo or copyright information removed or changed. The condition covers the frontend, meaning the web/ directory when running from source or the web image when running with Docker. Backend-only use that does not involve the frontend is not covered by this restriction. If you plan white-label screens, custom branding in the console, or embedded apps that hide the Dify notice, record that as a trigger. Done means a written finding on branding changes, with the frontend components named.

  4. Confirm tenant count and branding plan

    Produce a short count of the workspaces you expect to run in the first year and the screens users will see, then confirm the figures with the teams that own them. Note that the free Community edition is limited to a single workspace, so any plan involving more than one workspace must be reviewed against the Enterprise options. Attach the branding decision and the workspace count to the record from the earlier steps. Done means one reviewed document that lists workspaces, owners, user audiences and branding changes.

  5. Decide whether Community covers the need

    If neither condition is triggered, the Dify Open Source License permits commercial and internal use, so the self-hosted Community edition may be enough. If a condition is triggered, the Community edition alone does not cover that use, and the choice becomes between a written authorization from Dify and the Enterprise commercial license. Pricing for Enterprise is custom and not published on the pricing page, so ask for a quote based on the written scope from steps one to four. Done means a decision record that states Community, written authorization or Enterprise, with the reason.

  6. Request authorization or the commercial license from Dify

    If a condition applies, send Dify a written request that describes the intended use, the tenant model, the branding plan and the deployment footprint, then ask for the authorization in writing or for an Enterprise quote. Ask the vendor to confirm in writing which edition, scope and terms apply. Do not start a multi-tenant or branding-changed rollout until the reply is in hand. Done means a signed or dated written response from Dify is filed with the project record. Activating an Enterprise license after purchase is covered on its own page.

  7. File the approval and recheck on change

    Store the intended-use description, the findings, the decision record and the vendor response together, and assign an owner to review them whenever the workspace count, user audience, branding or hosting model changes. Also check the license file again at each upgrade, since the terms are part of the source you are deploying. Done means the file is accessible to legal, procurement and the platform team, and the review date and owner are recorded.

What the license requires of your organization

The Dify Open Source License is a modified Apache License 2.0, so most obligations come from Apache terms and only two conditions are Dify-specific. The cards below separate what you inherit from Apache, what the additional conditions restrict, and what you should confirm with counsel before you deploy.

Apache terms still apply

Outside Dify's additional conditions, all rights and restrictions follow the Apache License 2.0. That covers redistribution, modification and patent terms. Before you fork, patch or ship Dify source inside your own products, have counsel read the full Apache obligations in the license text, including how license notices travel with redistributed code.

Read the license text

Multi-tenant condition

You may not use the source code to operate a multi-tenant environment without written authorization from Dify. The license defines one tenant as one workspace. If you plan to offer Dify to outside customers, or to separate business units that each need their own isolated workspace, treat that as a licensing question before the build starts.

Logo and copyright condition

When you use Dify's frontend, do not remove or modify the logo or copyright information in the Dify console or applications. The restriction applies to the frontend, defined as the components in the web/ directory when running from source, or the web image when running with Docker. Uses that do not involve the frontend are not covered by this condition.

Copyright notice

The license carries the notice (c) 2025 LangGenius, Inc. Keep that notice intact in any copy or derivative you distribute, and record which Dify version you deployed so your change log matches the license text that applied to that release.

Appearance patent on interactive design

The license notes that the interactive design of the product is protected by an appearance patent. The license grant covers the code, not the visual design. If you plan to copy the console's interface design into a product of your own, ask counsel whether that use is permitted before you build it.

Contributor terms

Contributors agree that the producer may adjust the open-source agreement to be more strict or relaxed, and that contributed code may be used commercially, including in its cloud business. If your team contributes patches upstream, check these terms with counsel, since your contributions fall under them and the license can change in future releases.

What the contributor terms mean for a buyer

The contributor terms in the Dify Open Source License mean that the version you adopt today may not be the version that governs your use later. Contributors agree that the producer can adjust the open-source agreement to be more strict or more relaxed as it sees fit. A buyer cannot treat the license as fixed for the life of a deployment, so the first control is a record of the exact license text you relied on when you adopted Dify, along with the Dify release it came with.

The same terms say contributed code may be used for commercial purposes, including the producer's cloud business operations. For a buyer, this means Dify Cloud is a commercial service built on the same codebase, and contributions from outside the company can flow into that business. It does not change what your internal deployment may do under the license, but it is a reason to read each release's license file rather than assume the terms are unchanged. Keep a dated copy of the LICENSE file for each version you run, and compare it against the new release before every upgrade.

Confirm with Dify, in writing, how license changes are communicated: whether changes appear in release notes, a changelog, a notice to registered users or only in the repository, and how much notice a change receives before it applies to existing deployments. Ask whether a change could affect versions you have already deployed or only later releases. Also ask how a commercial authorization, if you need one, would be recorded against your version. Add license review to the upgrade checklist so that each move to a new minor release includes a diff of the license and a decision signed off by legal or procurement.

What you pay for and what you still run yourself

The Dify Community edition is free to use, but the license conditions and the operating work sit with your organization. Several cost items have no published figure, so the cards below separate what is priced from what depends on your environment and your team.

Community software at no license fee

The self-hosted Community edition is listed as free and is limited to a single workspace. Commercial and internal use is permitted under the Dify Open Source License, but running Dify as a multi-tenant service needs written authorization. Check whether your planned use keeps everything inside one workspace before you budget around the free tier. The free tier covers one workspace, not multiple tenants.

Community scope
1 workspace
Dify pricing page

Enterprise license and support quote

The self-hosted Enterprise edition is custom priced and adds SSO, multiple workspaces, advanced security, a commercial license and professional support. No public figure is published, so the quote depends on the scope you agree. Ask for the license terms, the support terms and whether the price recurs annually. Ask the vendor how the commercial license authorization is written and what it covers.

Compare plans

Hosting in your own infrastructure

You pay for the servers, storage, network and cloud accounts that run Dify, along with any external PostgreSQL, Redis, object storage and vector database you choose. The Docker Compose stack needs at least 2 CPU cores and 4 GB of RAM, while Enterprise on Kubernetes has higher requirements. Model provider usage is billed separately by each provider. Ask your team to size these costs from your expected load.

Minimum CPU
2 cores
Docker Compose docs

Upgrades and release review

Minor releases arrive roughly monthly, and each upgrade needs a read of the release notes and the upgrade guide for the target version. Upgrades also require checking .env.example for new variables. Staff time for this review recurs for the life of the deployment, and it grows when a release changes the architecture or the vector store client. Plan a test environment so upgrades do not land first in production.

Dify releases on GitHub

Backups before every upgrade

Dify's Docker Compose guidance recommends a backup before every upgrade. Your backup covers the metadata database, file storage and the vector store, and each has its own restore path. Storage and retention for backups are your cost, and they scale with the knowledge base size and the number of apps. Test a restore before you rely on the backup, because an untested backup gives no assurance during an incident.

Docker Compose docs

Security configuration and staff time

You own the security settings, including SECRET_KEY, which signs session cookies and JWTs and encrypts OAuth credentials. Changing it after deployment logs out all users, so set it before launch and store it in a secrets manager. Staff time for configuration, monitoring, access reviews and incident response has no published figure. Estimate it by listing the roles that will run Dify and the hours each role spends each month.

Environment variables

Questions procurement and legal ask about the Dify license

Is internal use of Dify free under the Dify Open Source License?

Yes, internal use is covered by the license without a commercial agreement, as far as the supplied license terms go. The license says Dify may be used commercially, including as a backend service for other applications or as an application development platform for enterprises. Your legal team should still read the full Dify Open Source License text because all terms outside the two additional conditions follow the Apache License 2.0. Confirm the reading with Dify in writing if your counsel wants a vendor position on your specific use.

When does Dify require a commercial license?

A commercial license is needed when you use the Dify source code to operate a multi-tenant environment without written authorization from Dify. The license defines one tenant as one workspace, which is a separated area for each tenant's data and configurations. The second trigger is removing or modifying the logo or copyright information in the Dify console or applications, which applies when you use the frontend. Dify's pricing page lists commercial license authorization as an Enterprise item, so ask Dify for the Enterprise quote if either condition applies to your plan.

What counts as a tenant under the Dify license?

Under the license, a tenant is one workspace, meaning a separated area holding one tenant's data and configurations. Running several internal teams in separate workspaces on one instance is a question your counsel should map to the definition, because each workspace is a tenant in the license's terms. The Community edition is limited to a single workspace, and multiple workspaces are listed as an Enterprise feature. Describe your intended workspace layout in writing before you ask Dify to confirm it.

Can we remove the Dify logo or change the copyright notice?

Not when you use the frontend. The license says that when using Dify's frontend, you may not remove or modify the logo or copyright information in the Dify console or applications. The frontend means all components in the web/ directory when running from source, or the web image when running Dify with Docker. The restriction does not apply to uses of Dify that do not involve its frontend, so an API-only integration is a different case to review. Ask Dify to confirm how branding applies to your planned use.

Can the Dify license change after we adopt it?

The license text says contributors agree that the producer can adjust the open-source agreement to be more strict or relaxed as deemed necessary. Procurement should therefore record the license version you reviewed and the date of review, and watch for changes in the LICENSE file of the langgenius/dify repository. Releases arrive roughly monthly, so review the license with each major upgrade. Ask Dify whether a future change would apply to versions you already run, and keep that answer in your file.

Do contributed code and the interface design carry extra terms?

Yes, two points deserve review. The license says contributed code may be used for commercial purposes, including its cloud business operations. It also notes that the interactive design of the product is protected by an appearance patent. Legal should confirm how the patent note affects copying the console design into your own products, since the license text alone does not settle that. Put any custom interface work in your scope and ask Dify to confirm the position in writing.

What can we do without outside help, and when do we need Dify?

Your team can read the license, run the Community edition for internal use within one workspace, and check the terms against your intended setup without any vendor. You need Dify, or a commercial agreement with Dify, when you plan multiple workspaces, multi-tenant operation, or logo removal in the console. Enterprise pricing is custom, so the commercial license cost comes only from a written quote from Dify based on your scope. An implementation partner can help you design the workspace layout, but it cannot grant a license.

How DeployOpen scopes a Dify deployment under your license

DeployOpen reads the Dify Open Source License against your actual use before any build starts, including whether your deployment serves one workspace or several tenants. We then plan the deployment, configuration and documentation around the conditions that apply to your organization.

How we scope

  • Written scope records which Dify workspaces, business units and external users the deployment will serve.
  • We map each planned use against the multi-tenant rule and the logo and copyright condition before design begins.
  • Scope states whether a commercial license from Dify is needed, and what evidence of that authorization you should hold.

How we build

  • We configure the deployment so tenant boundaries match the workspace definition used in the license.
  • Console branding is kept intact, and any frontend changes are reviewed against the license's frontend definition.
  • Build records the Dify version, source or image used, and the license conditions each component is tested against.

How we hand over

  • Handover includes a written license position covering each planned use, reviewed with your legal and procurement teams.
  • Documentation lists workspace layout, tenant boundaries and the owner responsible for license decisions.
  • We confirm with you which questions still need Dify's written answer before go-live, such as any multi-tenant plans.

How we support

  • Ongoing support and upgrades are available as a retainer, which covers re-checking the license when use changes.
  • Changes to tenant structure, branding or deployment model trigger a review before they reach production.
  • Engagements are fixed-scope, so any new license question is added to a written scope before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.