Self-hosting Langfuse on-premises or in an air-gapped network

A practical plan for running self-hosted Langfuse with no dependency on outside services, covering storage, identity, model endpoints, telemetry, and mirrored images and charts.

On this page

Self-hosting Langfuse on-premises or in an air-gapped network: when it is needed

A regulated team needs a self-hosted Langfuse on-premises or in an air-gapped network when LLM traces, prompts and evaluation data must stay inside a boundary with no internet route. The MIT-licensed open source version runs the same codebase as Langfuse Cloud and carries no feature limits, so the decision is about where the platform runs, not which edition to buy. A deployment is made of Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage. Every one of these components must resolve, pull and store data inside the network, because a single dependency that reaches outside will break the isolation the team is trying to prove.

Start by inventorying those dependencies against your environment rather than against the reference architecture. Confirm which container images, Helm charts or Terraform modules you will pull, how the S3-compatible store is provided, where email and identity come from, and whether any SDK or model connection calls a public endpoint. Plan a mirror for each artifact before the install, and confirm with the Langfuse documentation which release you are targeting, since the Langfuse self-hosting documentation describes the component set your architecture must cover.

Be clear with the security and procurement teams about which features you will use. Some governance capabilities, including audit logs, data retention policies, server-side data masking, project-level RBAC and the SCIM provisioning API, require an Enterprise license key. The Langfuse license key documentation lists them, and the license check itself needs a path your isolated network may not provide. Ask the vendor how key validation works in an offline setting and whether it affects the deployment, before you commit the control design to it.

How the deployment method changes the air-gap work

Docker Compose on one VM is the lightest path, and Langfuse documents it for testing only, with no high availability. In an isolated network, the work is mostly pre-staging. The Compose file references images for Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and an S3-compatible store, so each image must reach the host through an internal registry or a transferred archive. The host also needs its operating system packages, container engine and Compose plugin staged from an internal mirror.

  • Images: pull and verify each image tag named in the Compose file, then load it or push it to an internal registry the VM can reach.
  • OS and runtime packages: stage operating system updates, the container engine and the Compose plugin from an internal package mirror, at the versions your change process approves.
  • Data stores: PostgreSQL, ClickHouse, the cache and the object store all run on the same VM, so their volumes need disk sized for expected ingestion and their images need the same staging.
  • Secrets: generate every secret locally and keep the environment file out of version control, since no outside service is needed to create them.

Confirm that the VM can be rebuilt from your staged artifacts alone. A single host is also a single point of failure, so your backup of its volumes is the main recovery path.

Configuration options for an isolated Langfuse deployment

This table compares the main choices for running Langfuse without outside services, including object storage, identity, model endpoints, telemetry and data stores. Read each row for when the option fits and what it commits your team to operate, then decide which combination your network and support model can sustain.

DecisionOptionWhen it fitsWhat it commits the team to
Blob storageMinIOYou need an S3-compatible store inside the boundary and accept the supportability risk of the archived community repositories.Running a store whose community repositories are archived and whose community binaries are no longer published, so you must build from source, patch it yourself and confirm license obligations under AGPLv3.
Blob storageSeaweedFSYou want an S3-compatible store inside the boundary and have a current, maintained release path you can verify.Confirming the S3 API surface Langfuse uses, path-style access, credentials and lifecycle rules, and owning upgrades and backups of the store.
IdentityKeycloakYour organization already runs Keycloak or wants a self-hosted OIDC provider with directory federation inside the boundary.Operating the identity provider, its database, certificates and user lifecycle, plus wiring Langfuse's OIDC client and SSO enforcement by email domain.
Identityauthentik or generic OIDCYou already run authentik or another OIDC provider that your security team reviews.Confirming the provider appears in Langfuse's supported SSO list or that generic OIDC settings work, and keeping the provider patched inside the network.
Model endpointsvLLMTeams need an OpenAI-compatible inference server on accelerators they control and will point Langfuse tracing at local models.Accelerator capacity, model licensing and compatibility checks, and offline documentation settings for air-gapped hosts. Confirm the vLLM version against your model list.
Model endpointsOllamaYou need a simpler local model runtime for smaller models or evaluation workloads on standard hardware.Model storage and mirroring into the isolated network, plus confirming that evaluators and playground calls reach only internal addresses.
TelemetryDisabledYour policy forbids any outbound usage data, including from an isolated network with a proxy or egress filter.Setting the self-hosted telemetry switch for OSS deployments and verifying with network logs that nothing leaves the boundary. Confirm this against current Langfuse telemetry documentation.
TelemetryKept onYour Enterprise deployment relies on license telemetry, and the egress path is approved and documented.Allowing the specific license and usage destinations through the firewall, and recording them in your data flow inventory and security review.
Data storesBundled in the Helm chartA test or small pilot cluster where speed of setup matters more than independent lifecycle management.Accepting bundled PostgreSQL, ClickHouse and Redis or Valkey lifecycle, plus a chart v1 to v2 step before upgrading to Langfuse v4.
Data storesExternal, self-managedProduction isolation where backups, patching and recovery must follow your own database standards.Sizing, backups, restores and upgrades for PostgreSQL, ClickHouse and Redis or Valkey, all inside your boundary and verified by your own runbooks.

How the parts of an isolated Langfuse deployment connect

The diagram starts with users and OTEL-instrumented applications inside the boundary. Their requests reach Langfuse Web, which serves the UI and APIs, while Langfuse Worker handles asynchronous event processing against PostgreSQL, ClickHouse, Redis or Valkey and internal S3-compatible storage. Sign-in goes to the internal identity provider, and model calls go to local endpoints. The only path for software into the boundary is the mirrored registry and chart repository. Check that no node has an outbound edge to the internet.

Data and sign-in paths inside a Langfuse deployment with no outside network.

Sequence for building an offline Langfuse deployment

This sequence takes a self-hosted Langfuse instance from version selection to verified traces inside a network with no outside connections. Each step produces a artifact or check that the next step depends on, so problems surface before the deployment is built.

  1. Confirm the Langfuse version and data store requirements

    Choose the Langfuse version first, because it sets the data store versions you must mirror. Check the latest release on the Langfuse GitHub releases page and read the upgrade guide for your starting version. For a v4 deployment, the v3 to v4 guide requires ClickHouse 25.12 or later (26.4 recommended), PostgreSQL 15 or later and Redis 7.0 or later. If you use the Helm chart with bundled data stores, note the chart v1 to v2 step the guide calls out. Done when you have a written version matrix covering Langfuse, the chart or Compose files, PostgreSQL, Redis or Valkey, ClickHouse and blob storage, signed off by the platform owner.

  2. Build the offline artifact set

    Pull every container image, Helm chart or Compose file, and data store package from a connected staging environment, and copy them to an internal registry or transfer media your security team approves. Include Langfuse Web and Worker images, the chart or Compose files at the pinned versions, and the packages for PostgreSQL, Redis or Valkey, ClickHouse and your S3-compatible storage. Record each artifact with its name, version and digest in a manifest. Done when a clean machine inside the isolated network can list and pull every item in the manifest without reaching the internet.

  3. Verify integrity before crossing the boundary

    Check every artifact against its published checksum or signature before it enters the isolated network, and record the result in the manifest. This is the control that supports software integrity and authenticity checks in procurement and supply chain processes, which matter most for regulated bulk-power or critical infrastructure environments. Scan the images with the scanner your organization already approves. Done when each manifest line has a verified hash, a scan result and an approver, and rejected items are logged with a reason.

  4. Deploy the data stores and object storage

    Install PostgreSQL, Redis or Valkey, ClickHouse and an S3-compatible object store from the internal registry or local packages, using the versions in your matrix. Apply the sizing minimums from the Langfuse scaling guide: 2 CPU and 4 GiB for PostgreSQL, 1 CPU and 1.5 GiB for Redis or Valkey, and 2 CPU and 8 GiB for ClickHouse, with at least 16 GiB of ClickHouse memory for larger deployments. Create the Langfuse buckets and credentials. Done when each service accepts connections from the Langfuse network segment, and a test write and read succeeds on the object store.

  5. Configure SSO and disable password sign-in if required

    Connect Langfuse to your internal identity provider using one of the supported Auth.js providers or generic OIDC, and confirm the callback URL matches the internal hostname. If your policy requires it, disable password sign-in or enforce SSO for your email domains. Keep one break-glass administrator path documented and tested before disabling anything else. Done when a test user signs in through the internal identity provider, a user outside the policy is refused, and the break-glass path has been tested once.

  6. Point model connections at local endpoints

    Configure any LLM-as-a-judge or playground model connections to internal endpoints, such as a local inference server or an approved gateway, and remove any reference to external model providers. Confirm that the SDKs and applications sending traces also use internal endpoints for their own model calls. Done when a test evaluation runs against a local model endpoint and network logs show no outbound request to an external provider.

  7. Disable telemetry and confirm no outbound calls

    Turn off usage telemetry according to the self-hosted telemetry documentation for your edition, and confirm the setting is applied after a restart. Then test egress from the Langfuse containers with a firewall rule or a network capture that blocks outside destinations. Done when the containers start and serve the UI with all outbound traffic blocked, and the telemetry setting is recorded in your configuration baseline.

  8. Run health checks and send test traces

    Confirm Langfuse Web and Worker report healthy, and that PostgreSQL, ClickHouse, Redis or Valkey and object storage are reachable from both. Then send traces from an application instrumented with the Langfuse SDK or OpenTelemetry to the /api/public/otel endpoint. Check that the traces appear in the UI with correct timestamps, that the worker processes them, and that media or exports write to the internal bucket. Done when a trace from a test application is visible in the UI, and the check results are filed with the deployment record.

Security and supply chain controls for the isolated network

An isolated Langfuse deployment moves trust across a boundary every time a package, image or chart is carried in, and every time someone reaches in to administer it. The cards below cover the controls a regulated team should design before go-live, so that the compliance and security reviewers can trace each one to evidence in their own environment.

Verify every carried artifact

Each container image, Helm chart, package and model file that crosses the boundary needs a recorded source, a checksum or signature check, and a sign-off before it is mirrored internally. The NERC CIP-013-2 supply chain requirement, in general terms, asks utilities to address how vendor software and patches are verified for integrity and authenticity. Ask Langfuse and each upstream vendor how they publish signatures or digests, and keep the verification logs with your change records.

CIP-013-2 text

Route vendor access through an intermediate system

If a vendor needs remote access for support, NERC CIP-005-7 expects Interactive Remote Access to in-scope systems to pass through an Intermediate System with encryption and multi-factor authentication. The standard also expects methods to detect and disable active vendor sessions. Confirm whether your Langfuse host is in scope for your classification before you design the path, and decide who can open a session and how it is ended.

CIP-005-7 text

Keep secrets out of images

Database passwords, the NextAuth secret, encryption keys and object storage credentials should be injected at runtime from your secrets store, not baked into images or committed to chart values files. Review every image you mirror for embedded configuration, and rotate the Langfuse and PostgreSQL credentials on a schedule you can document. Confirm with Langfuse which environment variables hold secrets in your chosen deployment method.

Enforce SSO by email domain

Langfuse can disable password sign-in and enforce SSO for specified email domains, using providers such as Keycloak, Okta or Entra ID. Set this up before users are onboarded so that local accounts do not become a second sign-in path outside your identity controls. Test the enforcement with an account from each domain, and document which break-glass accounts remain, who holds them and how their use is recorded.

Langfuse SSO docs

Plan audit logging on Enterprise features

Audit logs are one of the self-hosted features that require an Enterprise license key, so an open source deployment should not assume that administrative actions are recorded in the way your auditors expect. Decide early whether your control set needs that license, and if it does, request the Enterprise quote with the audit log requirement written into scope. If you stay on the open source edition, document how you record administrative changes through your infrastructure logs instead.

License key docs

Run patch intake through controlled media

Updates and security fixes arrive from outside, so each release should pass through a documented intake step: download, verify, scan, record and then import into the isolated network on approved media. Plan this around the Langfuse release cadence and its upgrade guidance, including the database migrations that run at startup. Assign an owner for the intake log and set a review step before anything is promoted to production.

How upgrades work when nothing can be downloaded

Within a major version, Langfuse updates are designed to be non-disruptive, and database migrations run automatically when the application starts. That automation assumes the container images, and any charts or Terraform modules you deploy from, can be pulled at upgrade time. In an air-gapped network, that step has to be planned by hand. Each upgrade needs a complete new artifact set (Langfuse Web and Worker images, the Helm chart or deployment templates if you use them, and the versions of PostgreSQL, Redis or Valkey, and ClickHouse that the release requires) staged across the boundary, checked against the release notes, and recorded in your change log before anyone touches production.

Major upgrades are a different exercise. The v3 to v4 guide, linked from the Langfuse upgrade documentation, requires ClickHouse 25.12 or later (26.4 recommended), PostgreSQL 15 or later and Redis 7.0 or later, and it moves the platform to an observations-first ClickHouse data model with about 3x ClickHouse disk headroom advised when historic data is backfilled. Confirm these minimums against the guide for your target version before you stage anything, because an air-gapped mirror that is missing one prerequisite can stall the upgrade mid-change. If you use the Helm chart with bundled data stores, the chart must move from v1 to v2 before Langfuse moves to v4, so that step belongs in the same artifact plan.

The GitHub releases page lists v4.63.0 as the latest release, published October 16, 2026. Treat that as a reference point, not as your target. Your artifact set should name the exact version you are moving to, and your SDK clients need to match it: the Python SDK v5 and JS/TS SDK v6 require Langfuse v4.59.0 or later. Run the full upgrade against a non-production copy restored from a recent backup, with ClickHouse disk headroom measured in that copy, and keep the rollback path (the previous image tags and a tested database restore) in the same package.

Questions buyers ask before an air-gapped Langfuse project

What drives the effort and cost of an offline Langfuse build?

The biggest drivers are how many artifacts must cross the isolated boundary, how many external dependencies the stack has to be rewired away from, and how many environments must be proven before production. Langfuse runs Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage, so each of those needs an internal source for its images, packages and storage. Other cost drivers include whether you choose a single VM or Kubernetes, whether you use bundled or external data stores, how many identity and model connections must be wired to internal endpoints, and how much verification you require for every package carried across. Ask for a quote that lists each component, each internal dependency and each sign-off step separately.

Can our own team build an air-gapped Langfuse without outside help?

Yes, if your team already runs the platform layers involved and can test restores and upgrades on its own. The core Langfuse codebase is MIT licensed and self-hosted deployments use the same codebase as Langfuse Cloud, so no license key is needed for the core features. The harder parts are usually offline mirroring of images and charts, internal blob storage, SSO wiring and a repeatable upgrade path, because Langfuse v3 to v4 requires ClickHouse 25.12 or later, PostgreSQL 15 or later and Redis 7.0 or later. Check whether your team has done these steps before, who owns each layer after go-live, and whether you have a staging environment that mirrors production.

How long does an air-gapped Langfuse project take?

Duration depends on the written scope and on your environment, so no fixed figure applies to every project. The main variables are how many layers must be built offline, how quickly internal teams can provide registries, storage, identity details and model endpoints, and how many approval rounds your security and compliance teams require before production. A single VM build with internal images and an internal identity provider is a different scope from a Kubernetes build with separate ingestion and user interface deployments. Ask for a timeline that names the dependencies on your side and the review gates, and confirm the start date depends on access to your staging network.

What does the work need from our team?

Expect to provide access and decisions early, because an offline build cannot be finished from outside your network. Typical inputs include network access to a staging environment, an internal container and package registry, the details of your identity provider such as its OIDC settings and the domains to enforce SSO for, the internal model endpoints Langfuse should connect to, the S3-compatible storage and email relay you will run, and named approvers for each artifact that crosses the boundary. Artifacts such as images, Helm charts and packages should be checked against your supply chain procurement process before they are carried in. Confirm who signs off on each of these items and how quickly they can respond.

Do we need an Enterprise license for an air-gapped Langfuse?

No. The core Langfuse features and APIs are available in the MIT-licensed open source version without limits, so an air-gapped deployment can run without a license key. Some governance features need an Enterprise license key, including project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking, UI customization, the org management API with SCIM and the instance management API. If your review requires audit logs, retention or masking, confirm those requirements early and check the license key documentation and the Self-Hosted Enterprise plan before finalizing scope, since the Enterprise plan also adds support terms.

What does ongoing support cover after go-live?

Ongoing support covers the work that keeps the offline stack current and provable, and it is usually sold as a retainer agreed in writing. Common items include reviewing and mirroring new Langfuse releases, planning and testing upgrades, checking restores, maintaining internal images and charts, and retesting after configuration changes. Langfuse says updates within a major version are non-disruptive and apply database migrations at startup, while major upgrades follow dedicated guides, so the retainer should name which upgrade work is included. Vendor support is separate: the Self-Hosted Enterprise plan adds a named support engineer and an SLA, so confirm which party answers which issue before you sign.

Will our air-gapped Langfuse meet our compliance review?

DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work. For an offline build, reviewers usually ask how images and packages were verified before crossing the boundary, how access is controlled, how data is retained and masked, how backups are tested and how telemetry is turned off. Telemetry can be disabled for open source deployments, so document that setting as part of the evidence. Agree the evidence list with your assessor before the build starts.

How DeployOpen scopes and delivers an isolated Langfuse deployment

DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including cloud accounts, data centers and air-gapped networks. DeployOpen is a Chainscore Labs company. For an isolated Langfuse deployment, that means the work covers the whole dependency set in your network: the Langfuse Web and Worker containers, PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage, plus the internal identity provider, local model endpoints, image and chart mirroring and telemetry settings described on this page. Nothing in the delivered system depends on a DeployOpen-hosted service.

Most engagements are fixed-scope. Before work starts, the written scope sets out which components are in, which network zones and accounts they run in, which identity provider and model endpoints are connected, and what deliverables and timelines apply. A quote follows from that scope, so the cost drivers are the ones you can see in it: the number of environments, the number of integrations, whether the air-gapped transfer process must be designed from scratch, and how much documentation and evidence is expected. Ask for the quote to list one-time build work separately from any recurring retainer for ongoing support, upgrades and continuous testing.

DeployOpen prepares systems, configuration and evidence that your compliance and security teams, and the independent auditors or certification bodies they work with, can review. DeployOpen does not issue audit reports, attestations or certifications, so confirm early which assessment applies to your environment and which evidence that assessor will request. Agree in the scope who owns the evidence package, who signs off the deployment and how the retainer covers changes after an assessment finds gaps.

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.