Does the Langfuse license allow commercial use for free?
Yes, commercial use of the core Langfuse code is free under the MIT Expat license, with no usage limits. Everything in the repository outside the ee/, web/src/ee/ and worker/src/ee/ directories is MIT licensed, and the same applies to packages/shared/src/server/ee/ under the file-level terms in the LICENSE file. Production use of the code inside those enterprise directories is a different matter: it requires an agreement with the vendor and a valid Langfuse Enterprise License. Procurement, legal and engineering leads should read this section first, because the answer decides whether a self-hosted rollout needs a commercial contract at all, and which features it depends on.
Legal teams should check the copyright line in both files. The LICENSE and ee/LICENSE files each carry "Copyright (c) 2023-2026 ClickHouse, Inc." The Enterprise license states that agreements may be made with either Langfuse GmbH or ClickHouse, Inc., so the counterparty in any order form or contract should be confirmed in writing before signature. Ask the vendor which entity will sign, which agreement governs the license key, and whether the terms cover your legal entity and any affiliates that will run the instance.
Engineering and architecture teams should not infer scope from the feature list alone. Several governance features, including data retention policies, audit logs and SCIM provisioning, need a license key, as the features section explains. The practical check is to map every module you plan to enable against the directories above before the build starts, and to record that mapping with the project's license review. Teams that plan to modify enterprise code should note that the Enterprise license allows copying and modification for development and testing without a subscription, but modified versions used in production still need a valid Enterprise License. Ask counsel to confirm how that applies to your build pipeline, your internal forks and any patches you intend to publish.
Which code is MIT and which falls under the Enterprise license
This table compares the code areas of the Langfuse repository side by side, showing what each license allows for production use, development and testing, and modification. Read each row as a code area, then check the license key column to see which features still need a valid Enterprise License before production use. The main takeaway is that the MIT default and the open-source features carry no usage limits, while the ee/ directories need an agreement and a key for production.
| Code area | License and production use | Development, testing and modification |
|---|---|---|
| Default code (MIT Expat) | Free to use in production, including commercial products, with no usage limits on core features and APIs | Free to use, copy, modify, merge, publish, distribute, sublicense and sell, provided the copyright and permission notice are kept |
| ee/ directory | Production use only with an agreement you comply with and a valid Langfuse Enterprise License | Copy and modify for development and testing without a subscription |
| web/src/ee/ directory | Falls under ee/LICENSE, so production use requires a valid Enterprise License | Modify and publish patches, but modified versions may only run with a valid Enterprise License |
| worker/src/ee/ directory | Falls under ee/LICENSE, so production use requires a valid Enterprise License | Copy and modify for development and testing; redistribution beyond the grant is not permitted |
| packages/shared/src/server/ee/ directory | Falls under ee/LICENSE, so production use requires a valid Enterprise License | Same terms as the other ee/ areas; confirm the exact scope of any fork with your counsel |
| Third-party components | Keep their original licenses, which can differ from MIT and from ee/LICENSE | Check each component's own license file before redistributing or shipping it |
| Enterprise features gated by a license key | Features such as SCIM, audit logs and data retention policies need a valid license key in production | Confirm with the vendor whether a development or test key is needed for your environment |
What the MIT license lets you do with Langfuse
The MIT license is the part of the Langfuse licensing that most organizations need to understand first. It grants the right to use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software. The only condition is that the copyright and permission notice stays with the code. In practice, your team can run the software internally, change it, and redistribute it without asking Langfuse for a subscription. The Langfuse open source documentation says the same thing in plainer terms: users can fork, extend and ship the open source code, including inside commercial products. Keep the notice in any copy you distribute, and check the LICENSE file in the repository you deploy so you are working from the version that matches your build.
Self-hosted Langfuse and Langfuse Cloud run the same codebase, so the MIT terms apply to the code your organization actually operates. If you build a container image from the MIT-licensed directories, deploy it in your own cloud account, and modify it for internal use, the MIT grant covers those steps. Your obligations are narrow: preserve the notices, and treat any third-party components according to their own licenses, which the Langfuse LICENSE file says remain in force. Two points need a decision before rollout. First, record which Git commit or release tag you deploy, so you can show which license text applied to that build. Second, confirm with your legal team whether your internal patches or forks will be shared outside the organization, because that decision affects which notices and enterprise terms you must carry forward.
What the Enterprise license permits without a subscription
The Enterprise license allows you to copy and modify the enterprise software for development and testing purposes without requiring a subscription. This is the activity most teams need first, because engineers build integrations, try out features and run test environments before anything reaches users. Those steps do not require a paid agreement under the license terms.
- Local and lab builds: Engineers can copy the ee/ code and run it on workstations or lab hosts to learn the product and prototype changes.
- Test environments: Staging or QA instances used to validate upgrades, integrations and configuration can run the enterprise code without a subscription, for development and testing purposes.
- Modification for testing: You can change enterprise code while building and testing, provided the work stays within development and testing.
- Boundary to watch: A test environment that starts serving real users or real trace data is no longer development and testing, so it falls under the production rules.
Before relying on this, confirm with your legal or procurement team exactly which of your environments count as development and testing, and document that boundary so engineers do not promote a test instance into production by accident.
Running the ee/ code in production is a different activity. The license allows production use only if you have agreed to and comply with the applicable agreement and hold a valid Langfuse Enterprise License. Using enterprise features in a live deployment therefore depends on your contractual position, not only on having downloaded the code.
- Agreement first: Production use requires that you have agreed to the applicable terms with the licensor.
- Valid license: A valid Langfuse Enterprise License must be in place for the production deployment.
- Scope of the production rule: The rule applies to the enterprise code under the ee/ directories, which is separate from the MIT-licensed core.
- Feature gating: Some enterprise features are also gated by a license key check at runtime, so the operational state of the key matters as well as the paper agreement.
- Ongoing condition: The right depends on continued compliance with the agreement, so renewals and changes in scope need to be tracked.
Ask the vendor which agreement applies to your organization, who the contracting entity is, and what happens to production use if the license lapses. Confirm those answers in writing before go-live.
The license lets you modify the enterprise software and publish patches, but modified versions may only be used with a valid Enterprise License. Changing the code does not remove the licensing condition, and the modification right is narrower than it may appear. Publishing a patch is permitted, while running your modified build is still tied to the license.
- Modification is allowed: You can change enterprise code, for example to fix a problem you have hit or to adapt behavior for your environment.
- Patches can be published: The license permits publishing patches, so a fix can go back to the project under the license terms.
- Modified builds need a license: Any modified version you run in production still needs a valid Enterprise License.
- Track your changes: Keep a record of every modification, including which build it ended up in, so upgrades and audits can account for it.
- Upgrade impact: Custom changes to enterprise code can conflict with future releases, which adds effort to every upgrade.
Before starting a code change, decide whether it belongs in your own configuration, in an integration outside the ee/ code, or in a patch. Confirm with the vendor how your modifications will be supported and whether they affect your support commitments.
The enterprise license forbids copying, merging, publishing, distributing, sublicensing or selling the software beyond what it expressly grants. This applies to the ee/ code, and it is the reverse of the broad rights the MIT license gives the core. If your plan involves giving enterprise code to customers, partners, contractors or affiliates, or building a product or service that includes it, the answer depends on terms outside the default permissions.
- No resale of enterprise code: You cannot sell the enterprise software as such under the default permissions.
- No sublicensing: Passing rights to third parties is not granted by default.
- Contractors and affiliates: Sharing enterprise code with an outside implementation partner or group company should be checked against the license scope before it happens.
- Hosting for others: Running the enterprise code as a service for other organizations is a distribution question that needs explicit confirmation.
- MIT code is different: Core code under MIT can be used, modified and sold, so the split between the two licenses matters when you design a product.
If you plan any form of redistribution or hosting for third parties, ask the vendor in writing whether that use is covered, and keep open source components and enterprise components separate in your architecture and documentation.
Which self-hosted features need an Enterprise license key
The MIT codebase and the Enterprise code share one repository, so the license key decides which features run. The cards below group the features that stay locked until a key is set, and the commercial license question that follows from them.
Project roles and protected prompt labels
Project-level RBAC roles let you separate who can view, edit and administer each project, and protected prompt labels restrict who can move a prompt version into a production label. Both need an Enterprise license key on a self-hosted instance. Confirm which roles your teams need and who may promote prompts before you decide whether the key is required for your rollout.
License key docsData retention policies and audit logs
Retention policies set how long trace data is kept, and audit logs record administrative actions. The open source docs say a commercial license is needed when you self-host only for audit logging and data retention policies. Check your retention requirements and audit evidence needs against this before assuming the open source edition covers them.
Server-side data masking and UI customization
Server-side data masking redacts sensitive content before it is stored or shown, and UI customization changes the interface for your organization. Both are gated by the license key. If personal data may reach LLM traces, decide whether masking must run on the server rather than in the client SDK, and confirm this with the feature list for your version.
Organization creators and SCIM provisioning
Organization creators control who can create new organizations on the instance, and the org management API with SCIM automates user provisioning from your identity provider. Both need a license key. Plan how accounts will be created and removed, and whether your identity provider will drive that process through SCIM.
License key docsInstance management API
The instance management API lets administrators manage the whole self-hosted instance through code rather than the interface. It is one of the gated features, so automation that depends on it needs a valid key. Confirm which administrative tasks your automation performs and test them against the key configuration in a non-production instance.
The key gates features, not the code
The license key is a check in the same codebase, not a separate build. Langfuse's open source docs say the Enterprise Edition packages are isolated and gated by that check. Confirm with the vendor how the key is set in your deployment, and record which features each environment has enabled.
Open source docsWhen a commercial license is needed and when it is not
Internal use of MIT code needs no subscription. Everything outside the ee/, web/src/ee/, worker/src/ee/ and packages/shared/src/server/ee/ directories is available under the MIT Expat license, and that includes the core tracing, prompt management and evaluation features. You can run a self-hosted Langfuse on your own infrastructure, modify it, and ship it inside a commercial product without a Langfuse subscription. The MIT grant carries one condition: the copyright and permission notice must stay in the copies you distribute. Keep that notice in any fork or internal build you maintain.
Enterprise-gated features in production need an agreement and a license key. Several governance features sit in the Enterprise code, including project-level RBAC roles, data retention policies, audit logs, SCIM provisioning and the instance management API. Running any of them in production requires an agreement with Langfuse GmbH or ClickHouse, Inc. and a valid Enterprise License key. Check your planned feature list against the Langfuse license key documentation before go-live, because the decision turns on which features you enable, not on how many users you have.
Development and testing of Enterprise code need no subscription. The Enterprise license allows you to copy and modify the enterprise software for development and testing without a subscription. Modified versions may only be used with a valid Enterprise License, so a patched build cannot move into production on that basis. Pricing for the Self-Hosted Enterprise plan is custom and not published, so the written agreement is the source for which features, environments and support levels are covered. Ask the vendor to confirm in writing whether a staging environment counts as production under that agreement.
What the licenses require you to keep and comply with
The MIT and Enterprise terms place different duties on you depending on which directories your build uses. The four obligations below cover what you must preserve, what you must hold before production use, and what the Enterprise terms forbid.
Keep the MIT notice
The MIT license grants broad rights to use, copy, modify, merge, publish, distribute, sublicense and sell the code, but only on condition that the copyright and permission notice stays intact. If you fork Langfuse, bundle it in a product or redistribute container images, the copyright line and license text must travel with the code. Check that your build pipeline, container images and internal documentation carry the Langfuse LICENSE text and the ClickHouse, Inc. copyright line. Confirm how your organization handles attribution notices before the first release.
Langfuse LICENSE fileHold a license before production
Code under the ee/ directories is governed by the Enterprise license, which allows production use only if you have agreed to and comply with the applicable agreement and hold a valid Langfuse Enterprise License. Copying and modifying that code for development and testing does not require a subscription. Decide early which directories your deployment runs in production, and confirm with Langfuse whether your agreement covers the features you enable, such as SCIM, audit logging or data retention policies.
Enterprise license textRespect third-party licenses
The LICENSE file states that third-party components keep their original licenses. Your Langfuse deployment also pulls in other software such as PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible storage, each with its own terms. Langfuse's MIT grant does not relicense these components. Build an inventory of the components in your image and dependency tree, record each license, and confirm that your use of each one fits your organization's policy.
Limit enterprise code redistribution
The Enterprise license lets you modify the enterprise software and publish patches, but modified versions may only be used with a valid Enterprise License. It forbids copying, merging, publishing, distributing, sublicensing or selling the software beyond what it expressly grants. Practically, an internal patch to an ee/ file should stay inside your licensed environment. Ask your legal team to review any plan to share patched enterprise code with partners, vendors or other business units before it leaves the organization.
What to collect before legal signs off on Langfuse
This sequence gives legal and procurement a dated, version-specific record of which Langfuse code is MIT, which is Enterprise licensed, and what your organization needs to sign. It ends with a written file that can be re-checked at every upgrade.
Pull the license files at the deployed version
Your engineering lead downloads the LICENSE file and the ee/LICENSE file from the Langfuse repository at the exact tag or commit you plan to deploy, not from a cached copy or the default branch. Store both files alongside the build manifest so the license text matches the code. The step is done when the two files are saved with the version identifier written in the filename or the record.
Map each directory to its license
Your engineering lead lists every directory your build uses and marks it against the license file. The root LICENSE covers the MIT Expat terms for most of the repository. The ee/LICENSE file covers the ee/, web/src/ee/, worker/src/ee/ and packages/shared/src/server/ee/ directories, and third-party components keep their original licenses. The step is done when each directory in your build has one license entry, and any third-party component you add is listed separately.
List the Enterprise-gated features you need
Your platform owner and security lead compare the intended feature set with the features that require an Enterprise license key, such as project-level RBAC, protected prompt labels, data retention policies, audit logs, server-side data masking, UI customization, SCIM provisioning and the instance management API. Each feature gets a yes or no with a named owner who needs it. The step is done when the list is attached to the request for legal review.
Confirm which uses need a commercial agreement
Legal reads the ee/LICENSE terms against your planned use. The Enterprise license permits copying and modifying the enterprise code for development and testing without a subscription, but production use of that code requires an agreed applicable agreement and a valid Enterprise License. Legal records whether each environment is development, testing or production. The step is done when the environment-by-environment answer is written down.
Request the Enterprise agreement and confirm the contracting entity
Procurement asks Langfuse for the Enterprise agreement and confirms which entity signs it. The Enterprise license states that agreements may be made with Langfuse GmbH or ClickHouse, Inc., and the copyright line names ClickHouse, Inc. Legal checks the entity name, the signing authority and the governing terms against internal policy. The step is done when a signed or agreed draft names one contracting entity and the scope matches the feature list from the previous step.
Record the version and date reviewed
Legal or the compliance lead writes a short review record that states the Langfuse version, the commit or tag, the date each license file was read, the reviewer, the directory-to-license map and the agreement reference. Ask the vendor to confirm the version if the record is built from a release other than the one you intend to run. The step is done when the record is filed with the change request and the deployment ticket.
Re-read the license files on every upgrade
Before any upgrade, the engineering lead repeats the pull and the directory map against the new version, and legal confirms that the Enterprise terms and feature list have not changed in a way that affects your use. License files are versioned, so a review of an earlier release does not cover a later one. The step is done when a new review record exists for the target version and is linked from the upgrade plan.
Where license assumptions break in production
The Langfuse license split is simple on paper but easy to misapply once a platform team moves from a test cluster to production. Each card below describes a common assumption, what the license text actually says, and what to check before the deployment goes live.
Assuming the whole repository is MIT
The MIT Expat license covers most of the Langfuse repository, but content under the ee/, web/src/ee/, worker/src/ee/ and packages/shared/src/server/ee/ directories is licensed under the separate ee/LICENSE. Treating the repository as one license means the gated code can be copied or shipped under terms it does not grant. Before you build an image, list which directories your build includes and which license governs each one.
Read the LICENSE fileRunning modified enterprise code unlicensed
The Enterprise license lets you modify the enterprise software and publish patches, but it says modified versions may only be used with a valid Enterprise License. A team that patches an ee/ module for its own needs and runs it in production without that license is outside the grant. Check with your legal team before any internal patch to gated code reaches a production environment.
Enabling gated features without a key
The MIT code has no usage limits, but project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking, SCIM and the instance management API need an Enterprise license key on self-hosted deployments. Setting these up on a free install, or assuming a feature is open because the open source docs are free, leads to a compliance gap. Inventory the features your controls depend on and confirm each one against the license key documentation.
License key docsTreating development rights as production rights
The Enterprise license lets you copy and modify the enterprise software for development and testing without a subscription. That permission stops at the test environment. Production use of the enterprise code requires an agreement with the vendor and a valid Langfuse Enterprise License. Keep staging and production on separate license decisions, and record which environment each enterprise build serves.
Redistributing forks of gated code
MIT allows you to fork, extend and ship the open source code, including in commercial products. The Enterprise license forbids copying, merging, publishing, distributing or sublicensing the enterprise software beyond what it expressly grants. A fork that includes ee/ directories cannot be handed to customers, partners or other business units as if it were MIT. Before distributing a derivative product, separate the MIT code from the gated code and confirm the license for each part.
Questions legal and procurement ask about the Langfuse license
Is Langfuse free to use commercially?
Yes, for the core product. The Langfuse repository is MIT Expat licensed everywhere except the directories covered by the Enterprise license, and the MIT terms do not limit commercial use. Langfuse states that all core features and APIs are available in the MIT-licensed open source version without limits, and that self-hosted deployments run the same codebase as Langfuse Cloud. Your legal team should still confirm that the features you plan to use sit outside the enterprise directories. The features that need a license key are listed in the Langfuse license key documentation, and using them in production without a valid key falls under the Enterprise terms, not MIT. Read the Langfuse LICENSE file alongside the Enterprise terms before you sign off.
Can we embed Langfuse in a product we sell?
The MIT license permits this for the open source code. The license grants the right to use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software, provided the copyright and permission notice stay in place. Langfuse's open source documentation says users can fork, extend and ship the open source code, including in commercial products. The restriction that matters is the enterprise code. Under the Enterprise license, you may not copy, merge, publish, distribute, sublicense or sell the enterprise software beyond what that license expressly grants. Before you ship a product that bundles or redistributes Langfuse, have counsel map which files you distribute and confirm that none of them come from the ee/, web/src/ee/, worker/src/ee/ or packages/shared/src/server/ee/ paths.
Can we run enterprise code in development without paying?
Yes. The Langfuse Enterprise license states that you may copy and modify the enterprise software for development and testing purposes without requiring a subscription. That permission covers development and testing only. Production use of the enterprise code requires that you have agreed to and comply with the applicable agreement and hold a valid Langfuse Enterprise License. A common pattern in review is an engineering team that runs a test instance with enterprise features switched on, then a production instance that must be licensed before go-live. Ask procurement to confirm where your non-production environments sit and whether any staging copy holds real trace data, because that can turn a test environment into a production use question.
What exactly does a valid Enterprise License unlock?
A valid license key unlocks the Enterprise Edition modules that the self-hosted product gates behind a license key check. Langfuse's documentation lists project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking, UI customization, organization creators, the org management API with SCIM, and the instance management API. Langfuse's open source docs also say a commercial license is needed when you self-host only for modules such as SCIM, audit logging and data retention policies. The license also governs modified versions: you may modify the enterprise software and publish patches, but a modified version may only be used with a valid Enterprise License. Ask the vendor for the written list of entitled modules and the term that applies to each one, because the list in the public docs can change between releases.
Who signs the Enterprise agreement?
The Enterprise license text says agreements may be made with Langfuse GmbH or ClickHouse, Inc. Both entities appear in the license, and both carry the copyright line 'Copyright (c) 2023-2026 ClickHouse, Inc.' on the LICENSE and ee/LICENSE files. Confirm the contracting entity during procurement, check the tax and data processing terms that come with it, and make sure the signatory has authority for your organization. The contracting entity determines which terms, invoicing and support commitments apply to your deployment, so do not assume the license text alone sets the commercial relationship. Price and scope are set in the written agreement, not in the license file, so ask for the order form and the support terms in the same document.
What do we need to confirm ourselves before approval?
Several points depend on your environment and your contract, so confirm them before you approve. First, list every directory and build artifact you will deploy or distribute, and check which fall under ee/ or the other enterprise paths. Second, decide which Enterprise features you need, because only those require a key in production. Third, confirm whether any staging or test copy will hold production data. Fourth, ask the vendor for the Enterprise agreement, the contracting entity and the written scope of any support or SLA. Fifth, have counsel review the copyright notice obligations if you redistribute the software. Finally, record the license key setup and who holds it, so a lapsed or missing key does not silently change how your production instance behaves. DeployOpen can help plan and document these checks as part of a fixed-scope engagement, with scope agreed in writing before work starts.
Does the license decide our Langfuse support or pricing?
No. The license determines what you may use and under which terms, but it does not set the price or the support level. Langfuse's self-hosted pricing page lists a free open source plan and a custom-priced Self-Hosted Enterprise plan that adds a named support engineer, solutions architect access and a support SLA. Those commitments come from the commercial agreement and the written order, so the cost is recurring only if your agreement makes it so. Ask for the price basis, the term length, renewal conditions and what happens if the subscription lapses. DeployOpen does not publish prices and gives a quote only after the written scope is agreed.
How to verify these license claims yourself
Do not rely on this page alone. Before you approve a Langfuse deployment, read the LICENSE file and the ee/LICENSE file at the exact release tag you plan to deploy, not at the default branch. Confirm that the repository's MIT Expat text covers everything outside the ee/, web/src/ee/, worker/src/ee/ and packages/shared/src/server/ee/ directories, and that the Enterprise terms apply only inside those paths. Keep a copy of both files with the tag and commit hash in your change record, so your legal and security reviewers can see exactly what text you relied on.
Next, compare the license text with Langfuse's own open source documentation, which describes the MIT-licensed capabilities as having no usage limits and says the code may be forked, extended and shipped in commercial products. Where the two sources differ, the license file governs and the difference is a question for Langfuse. Also check which features in your planned configuration need a license key. The license key documentation lists project-level RBAC, data retention, audit logs, SCIM and similar modules, so map each one you need against the Enterprise terms before the design is signed off.
The license files this page relies on were read in November 2026. Licenses and their Enterprise terms can change between releases, and Langfuse's agreements may be made with either Langfuse GmbH or ClickHouse, Inc. Before you rely on any Enterprise permission, such as copying the code for development and testing, ask Langfuse to confirm the current terms in writing and identify the contracting entity. Record the confirmation with the date and the version you intend to run, and repeat the check before each major upgrade.
How DeployOpen scopes a Langfuse deployment in your infrastructure
DeployOpen starts from the license boundary: which Langfuse code is MIT and which directories fall under the Enterprise license. We then scope the deployment around your own infrastructure, your license decisions and the Enterprise features you actually need. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- Map which Langfuse features you need and whether each one falls under the MIT code or the Enterprise license key.
- Confirm with your legal team whether a Langfuse Enterprise License is required for your intended production use.
- Record the infrastructure target, including cloud account, data center or air-gapped network, in the written scope.
How we build
- Deploy Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible storage in your environment.
- Configure a license key only for the modules that require one, and keep the open source configuration separate where possible.
- Test ingestion, SDK connectivity and backup restores in a non-production environment before cut-over.
How we hand over
- Deliver a written record of the license position, the deployed components and the Enterprise features enabled.
- Document how the key is set, how it is rotated and which teams may use the Enterprise modules.
- Walk your operators through upgrade and backup runbooks so your team can run the platform after handover.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement.
- Review license scope again when you add Enterprise modules, change how the code is modified or distribute it.
- Coordinate with your legal and procurement teams on questions about the Langfuse Enterprise agreement itself.

