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.
| Term | Open Source License (source code) | Self-hosted Community edition | Self-hosted Enterprise edition |
|---|---|---|---|
| Internal and commercial use | Commercial use is permitted, including as a backend service or as an application development platform for enterprises | Free to run inside your organization, limited to a single workspace | Adds a commercial license and professional support, sold by quote |
| Multi-tenant operation | Not permitted without written authorization from Dify, where one tenant is one workspace | Not permitted, because the edition is limited to one workspace | Multiple workspaces are included, and multi-tenant use needs Dify's written authorization |
| Logo and copyright in the console | Removing or modifying the console logo or copyright information is not permitted when using the frontend | Logo and copyright must remain in the console and apps | Confirm in your contract whether any logo change is covered |
| Backend-only use without frontend | The logo restriction does not apply where Dify is used without its frontend | Confirm with Dify whether this carve-out fits your setup | Confirm with Dify whether this carve-out fits your setup |
| Commercial license authorization | Not included; separate written authorization is needed for multi-tenant operation | Not included | Listed as an Enterprise item on the pricing page |
| Price basis | No fee under the license text | Free, according to the pricing page | Custom priced and not published; request a written quote |
| Dify Cloud plans (not license costs) | Not applicable | Dify Cloud Professional is listed at 590 US dollars per year on the pricing page | Dify 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.
Embedding Dify inside a product means Dify's apps or APIs become a component of software your staff or customers use. The question is whether your product exposes Dify as a multi-tenant environment. If each customer gets its own separated workspace on infrastructure you run, you are operating a multi-tenant environment and need written authorization from Dify. If the product calls Dify as a backend for a single organization's own apps, the situation is closer to internal use, although the license still applies to how the console and frontend appear.
- Tenant boundary: Map every customer or business unit to a workspace and check whether any of them are separated tenants under the license definition.
- Frontend visibility: If end users see the Dify console or the frontend, the logo and copyright must stay intact.
- Backend use: Using Dify only as a backend service for other applications is named as a commercial use in the license, and the restriction on multi-tenant operation still applies.
- Ownership of the build: Record which components you modify, since modified source keeps the same license conditions.
Before approval, ask Dify in writing whether your architecture requires authorization and confirm the answer against the license text and the current pricing page.
Offering Dify as a hosted service to other companies is the path that most directly triggers the multi-tenant restriction. Each external company you host is a tenant, and the license forbids operating the source code as a multi-tenant environment without written authorization from Dify. The Community edition does not cover this use. A commercial license authorization, which the pricing page places under Enterprise, is the expected route, and it should be negotiated before any customer is onboarded.
- Written authorization: Obtain Dify's written approval before launch, since the license makes it a condition of multi-tenant operation.
- Tenant definition: Treat each customer workspace as a tenant and plan isolation accordingly.
- Logo removal: Any white-label plan must keep the console logo and copyright unless the commercial terms say otherwise.
- Contributor code: Contributed code may be used by the producer for commercial purposes, which does not change your own obligations but is part of the overall terms.
Before committing to a hosted model, confirm the scope, price and term of the commercial authorization in writing with Dify, because no public price list covers this use.
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.
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 textMulti-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
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 plansHosting 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
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.
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 docsSecurity 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.
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.

