Self-hosted Langflow: Docker, Kubernetes and production requirements

Self-hosted Langflow is supported in the open-source MIT build on Docker and Kubernetes, with no paid edition needed for the documented deployment paths. Production adds external PostgreSQL, Redis for multiple workers and your own network and identity controls, and air-gapped operation must be confirmed before approval.

On this page

Can Langflow be self-hosted on our own infrastructure?

The MIT-licensed open-source build of Langflow supports self-hosting through Docker and Kubernetes, and no paid edition is needed for those documented paths. Air-gapped operation and compliance certifications are not documented for self-hosted use, so confirm both with the vendor or IBM before approval. For an approver, the decisive question is where each part runs. Docker deployments use the langflowai/langflow image on port 7860, and Kubernetes deployments use the official Helm charts repository, so your platform team can check both against its standard build pattern. Start with the Langflow deployment overview to see the self-managed options it lists.

Meeting the requirement means the whole running system stays in your cloud accounts, data centers or networks: the Langflow app, its database, the background workers and the network paths between them. Flows, stored credentials and any data a flow touches live wherever you deploy it. Make the checklist concrete by naming the account or cluster for each component, then listing every outbound call a flow makes. A flow that calls a hosted model sends prompts outside your boundary even when Langflow itself runs on your servers, so the approver should see those destinations written down. Also name the team that will apply upgrades, since Langflow releases arrive roughly weekly.

A working install and a production install differ in several settings. The default database is SQLite, and the Kubernetes guide recommends external PostgreSQL for production. Setting LANGFLOW_DEPLOYMENT_PROFILE=prod makes Langflow check at startup for PostgreSQL, external object storage, a secret key and pgVector, and it stops booting if a required check fails. Several workers need Redis 6 or later for the job queue, configured with LANGFLOW_JOB_QUEUE_TYPE=redis and LANGFLOW_REDIS_QUEUE_URL. Official packages and images require LANGFLOW_SUPERUSER_PASSWORD and disable auto-login by default, so confirm nobody has re-enabled it. The Kubernetes guide lists runtime minimums of 2Gi RAM and 1 CPU per instance with 3 replicas, which you should test against your own load in staging first. The Kubernetes architecture and best practices guide covers the full set.

Which self-hosting options are built in, paid or outside components

This table sorts each self-hosting element of Langflow by whether the open-source project includes it, whether your team must provide it, or whether IBM sells it separately. Read the status column first: built in means the open-source code or image includes it, you provide means your team runs it, and paid separately or not documented means you need a written answer from the vendor before you plan around it. The main takeaway is that a production setup needs your own PostgreSQL, object storage and, for several workers, Redis, even though the Langflow code is MIT licensed.

CapabilityEdition or offeringStatus
Docker image on port 7860Open-source image, MIT licensedBuilt in
Self-managed remote server deploymentDocker with Caddy, or Nginx with Let's Encrypt, listed as self-managed optionsYou provide
Kubernetes IDE and headless Runtime deploymentsOfficial Helm charts repository on GitHubBuilt in
LANGFLOW_DEPLOYMENT_PROFILE=prod startup checksOpen-source setting that stops startup if a required check failsBuilt in
External PostgreSQL, pgVector and object storagePostgreSQL is recommended for production; the prod profile checks for all threeYou provide
Redis 6 or later for the multi-worker job queueExternal component, configured with LANGFLOW_JOB_QUEUE_TYPE=redisYou provide
IBM Langflow CloudIBM-hosted service, so self-hosting does not apply; no tier or price on IBM's product pageNot documented
IBM Elite SupportSeparate IBM offering, formerly LUNA supportPaid separately
Air-gapped operation, certifications or BAA for self-hostingNot described for self-hosted use; confirm with IBM or the Langflow projectNot documented

How self-hosted Langflow is built for production

A self-hosted Langflow install is a small set of parts, and the production profile decides whether those parts are allowed to start together. The default install runs as a single container from the langflowai/langflow image, which serves the application on port 7860. On Kubernetes, you choose between two shapes. The IDE deployment runs the visual editor alongside the API, so builders can design and test flows in place. The headless Runtime deployment serves only the API, which suits environments where published flows are called but not edited. Decide the shape for each environment before you write manifests, because the two expose different surfaces and need different access rules. The Kubernetes architecture and best practices guide is the next read for the component layout.

Storage is where the default install and production part ways. SQLite is the default database, which suits a trial but is not what the Kubernetes guide recommends for production, where external PostgreSQL is the expected layout. Setting LANGFLOW_DEPLOYMENT_PROFILE=prod turns on startup checks for PostgreSQL, external object storage, a secret key and the pgVector extension. If a required check fails, Langflow stops booting instead of running with a weaker setup. Treat that refusal as the control working. Before the first rollout, confirm that each dependency is provisioned, backed up and reachable from the pods, because the startup checks do not verify backup schedules or retention. Ask your platform team who owns each of these services and what recovery targets they must meet.

Choosing a self-hosted Langflow deployment path

The path starts at the hosting target. A single host or remote server runs the Langflow Docker image, with a reverse proxy such as Caddy or Nginx in front of it. Kubernetes splits into an IDE deployment (editor plus API) or a headless Runtime deployment that serves only the API. Both routes then need external PostgreSQL and object storage, and the prod profile checks run at startup. Setting LANGFLOW_DEPLOYMENT_PROFILE=prod makes Langflow stop booting if a required check fails, so confirm each dependency first. Add Redis once more than one worker runs, then place TLS and the network boundary in front of the service.

Deployment path from hosting target through Redis to the network boundary.

Decisions to make before a self-hosted Langflow rollout

Six decisions shape a self-hosted Langflow rollout, and several depend on each other. The hosting target sets how much your team operates, the database and Redis choices set where data and jobs live, and the network and version choices decide who reaches the instance and how it changes. Settle them in this order before you write any deployment files.

Hosting target and platform

Langflow's deployment overview lists Docker, a remote server running Docker with Caddy, Nginx with Let's Encrypt, and Kubernetes as self-managed options. A single host is the shortest path to a working instance, but it is one machine to patch, back up and restore. Kubernetes adds replicas and rolling upgrades, and it adds cluster operations your team must own. Choose the target first, because the database, worker and TLS decisions below depend on it. Confirm that your platform team already runs the target you pick.

Deployment overview

IDE or Runtime deployment

The Kubernetes guide describes two shapes. An IDE deployment runs the visual editor with the API, so builders design and test flows inside the cluster. A headless Runtime deployment serves only the API, which suits flows that are already built and called by other systems. Assign each shape a named owner and an access path before you write Helm values, because builders need editor access, while systems that only call a flow usually do not. Confirm with the official Helm charts repository which values set each shape for your release line.

Database and object storage

The Kubernetes guide recommends external PostgreSQL over the default SQLite for production. Setting LANGFLOW_DEPLOYMENT_PROFILE=prod makes Langflow check at startup for PostgreSQL, external object storage, a secret key and pgVector, and it stops booting if a required check fails. Your team must provision all four before the first start. Decide who owns each store, where its backups live and which region holds flow data and stored files. Confirm the PostgreSQL version and pgVector setup against the docs for your release line.

Kubernetes guide

Worker count and Redis

Running several workers needs Redis 6 or later for the job queue, enabled with LANGFLOW_JOB_QUEUE_TYPE=redis and LANGFLOW_REDIS_QUEUE_URL. Redis then becomes a shared service you must run, monitor and recover, and an outage there affects every worker that depends on it. Set the worker count from the availability you need, and size each Runtime instance against the Kubernetes guide, which lists 2Gi RAM and 1 CPU per instance with 3 replicas. Test a worker restart and a Redis restart before go-live.

Multi-worker docs

Network boundary and TLS entry

The Langflow Docker image serves on port 7860, which belongs behind a reverse proxy that terminates TLS. Official packages and images require a superuser password set through LANGFLOW_SUPERUSER_PASSWORD and disable auto-login by default, so store that secret in your vault and check that the proxy adds no login bypass. Document which networks reach the editor, the API and the database. The Langflow security page states that it does not enforce isolation between users within a single process, so network controls cannot stand in for separation between teams.

Security docs

Version line and upgrade cadence

The docs list the 1.9.x through 1.13.x lines and a 1.14.x Next line. Releases arrive roughly weekly, and as of December 2026 the GitHub releases page lists 1.13.4 as latest, dated 24 November. Choose a line your team can keep current, and decide whether production follows a stable line or the Next line. Each upgrade changes the image and may change the database schema, so pin the tag, read the release notes and rehearse the upgrade on a copy of your data.

Releases page

How the self-hosting answer changes by environment

A single team on one server usually runs the langflowai/langflow Docker image and serves it on port 7860 behind a reverse proxy. The Langflow deployment overview lists Docker, a remote server with Docker and Caddy, and Nginx with Let's Encrypt as self-managed options for this model. Where flows, credentials or user accounts would be costly to lose, plan an external PostgreSQL instance, since the default SQLite database lives on the host.

  • Image and port: Pin a specific image tag and publish port 7860 only to the network that needs it.
  • Superuser password: Set LANGFLOW_SUPERUSER_PASSWORD before the first start, because official images require it and disable auto-login by default.
  • Database: Plan external PostgreSQL for any data you cannot rebuild, and back it up on your normal schedule.
  • Proxy and TLS: Terminate TLS at Caddy or Nginx, and confirm who can reach the login page from outside your office network.
  • Restore test: Restore the database to a separate host and confirm that flows and users come back.

Check that your team can apply a new Langflow release inside your change window, since releases arrive roughly weekly.

Gaps in self-hosted Langflow and how teams usually cover them

These five gaps sit between the default install and a production system that a security or compliance team can review. Each one is a decision your organization owns, either by building the missing piece or by writing the boundary into its operating model. The cards below name the usual cover for each gap.

Air-gapped installs

Langflow's documentation does not describe an air-gapped mode. Installing into a disconnected network depends on how the container image and every Python dependency reach it, so list both before work starts. Confirm with Langflow whether an offline bundle exists for your target version. If none does, plan a mirrored container registry and an internal package index, then test a clean install with outbound access blocked.

Deployment overview

Certifications and BAA coverage

The Langflow docs and the IBM product page state no certifications or business associate agreement for self-hosted use. Compliance therefore depends on your deployment: the access controls, logging, encryption, change management and backups that you configure and operate. An independent auditor or certification body assesses those controls and issues any report. Ask IBM in writing what, if anything, covers a self-hosted instance before you rely on a support contract for evidence.

IBM Langflow page

Isolation between users

The Langflow security documentation states that Langflow does not enforce isolation between users within a single process. Anyone sharing one instance shares one trust zone, whatever roles or authorization plugin you add. Keep a separate deployment for each trust boundary, each with its own database, secrets and identity configuration. The sibling multi-tenant page explains what isolation Langflow does provide and where the split usually falls.

Langflow security docs

Backup and high availability

The Kubernetes guide recommends external PostgreSQL over the default SQLite, and the production profile checks for external object storage at startup. Both stores then become components you run, so backups, point-in-time recovery, failover and restore testing fall to your team. Plan a backup schedule, a restore drill and a failover design for each store, and name an owner for each before go-live. Confirm that your backup tooling supports the PostgreSQL and object storage products you choose.

Kubernetes best practices

Release cadence and upgrades

Langflow's GitHub releases arrive roughly weekly, so an unpinned image can change under you within a month. The docs version selector lists lines from 1.9.x through 1.13.x, plus a 1.14.x Next line. Pin a version line in your Docker tags or Helm values, read each release's notes, and run a test upgrade against a copy of your database before anything moves to production. Ask how long each line receives fixes before you commit to it.

Release history

Order of work for a production self-hosted Langflow install

The sequence moves from hosting and network decisions to a pinned, tested version. Each step names the check that must pass before the next one starts, so the production instance is built on proven dependencies.

  1. Confirm the hosting target and network boundary

    Choose one self-managed option from the Langflow deployment overview: Docker, a remote server with Docker and Caddy, Nginx with Let's Encrypt, or Kubernetes. On Kubernetes, decide between the IDE deployment, which serves the editor and API, and the headless Runtime deployment, which serves only the API. Document which networks may reach the Langflow port, which may reach the database and Redis, and which outbound model provider calls leave your environment. This step is done when the change record names the host, the network zones and the allowed flows, and your network team has reviewed them.

  2. Provision PostgreSQL, object storage and pgVector

    The Kubernetes guide recommends external PostgreSQL in place of the default SQLite, so provision the database before the first start. Create external object storage for Langflow files, and confirm that the pgVector extension is available on the database server, either installed by your team or offered by your managed service. Have the database team run a test query against the extension, and confirm the Langflow host can reach the database over an encrypted connection. This step is done when a test connection succeeds, the extension check passes, and a test object writes to the bucket and reads back.

  3. Set up Redis for multiple workers

    Skip this step if you plan a single worker. For more than one worker, install Redis 6 or later for the job queue, then set LANGFLOW_JOB_QUEUE_TYPE to redis and LANGFLOW_REDIS_QUEUE_URL to your Redis address. Confirm whether your Redis service requires authentication and encryption in transit, and store the connection URL in your secrets manager. The multi-worker guide's Docker Compose example uses PostgreSQL 16, which can serve as a reference when you match versions in a test build. This step is done when the server reports version 6 or later, each worker connects to the same queue, and a test flow submitted through one worker completes.

  4. Run the prod profile in a test environment

    Set LANGFLOW_DEPLOYMENT_PROFILE to prod in a non-production environment that mirrors your production database, object storage and Redis settings. At startup, Langflow checks for PostgreSQL, external object storage, a secret key and pgVector, and it stops booting if a required check fails. Treat a failed start as a finding: correct the configuration, start again and keep the check enabled. The Kubernetes architecture and best practices guide describes these expectations in more detail. This step is done when the logs show every startup check passing and an HTTP request reaches the service on the expected port, 7860 for the default Docker image.

  5. Lock the superuser password and confirm auto-login is off

    Set LANGFLOW_SUPERUSER_PASSWORD from your secrets manager, and keep it out of Compose files and Helm values committed to source control. Official packages and images require this password and disable auto-login by default, so confirm the running instance does not sign anonymous visitors in. Send a request without credentials, which should be refused, and then sign in with the configured password, which should succeed. Record who holds the password and how it is rotated. This step is done when both tests give the expected result and the rotation owner is named in the change record.

  6. Put TLS and a reverse proxy in front

    Place a reverse proxy in front of Langflow. The deployment overview lists Caddy on a remote server and Nginx with Let's Encrypt as self-managed options, and on Kubernetes you would use the ingress or gateway your platform team already operates. Terminate TLS at the proxy, redirect plain HTTP to HTTPS, and allow only the proxy to reach the Langflow port. Confirm that the certificate chain validates from a client outside the network, and that a direct connection to the application port from outside is refused. This step is done when the HTTPS endpoint answers, the HTTP request redirects, and the direct port test fails from outside.

  7. Pin the version and rehearse an upgrade

    Pin the Langflow release in your change record, as an image tag or package version, and deploy only that version. Langflow publishes releases roughly weekly, so an unpinned install can change without a review. Restore a recent backup of the database and object storage into a test environment, then run the upgrade there first. The docs version selector lists a 1.14.x Next line, which should be treated as a separate decision with its own test. This step is done when the version is pinned in the change record, the backups restore cleanly, and the upgraded test instance passes the startup checks and the login tests.

What a security reviewer asks to see for a self-hosted Langflow deployment

This table lists the evidence a security reviewer typically requests for a self-hosted Langflow deployment, where each item comes from, and what to confirm before the review. Most items come from your own configuration and run records, while the Langflow documentation sets the defaults and startup checks you should compare against. The main takeaway is that the vendor documents state no certifications or BAA for self-hosted use, so compliance evidence has to come from your own controls.

Reviewer requestWhere the evidence comes fromWhat to confirm
Deployment architecture diagramYour diagram, built from the documented components: app, PostgreSQL, Redis, object storage and ingressWhich deployment path you chose (Docker, Compose or Kubernetes), and whether IDE and headless Runtime deployments are separated
Database and storage locationYour PostgreSQL and object storage settings, with hosts, regions and encryption at restNo production component falls back to the default SQLite file, and access to both stores follows your policy
Startup checks under the prod profileStartup log from a run with LANGFLOW_DEPLOYMENT_PROFILE=prod setPostgreSQL, external object storage, secret key and pgVector checks all pass before the service accepts traffic
Superuser and auto-login settingsYour configuration, compared with the documented defaults: a superuser password is required and auto-login is offPassword comes from your secret store and follows your rotation policy, and auto-login stays disabled in the running configuration
Pinned version and upgrade recordYour change records, checked against the GitHub releases page for each version you ranImage tag is pinned, release notes were reviewed, and upgrades were tested first. Releases arrive roughly weekly, so set a review cadence.
Network exposure and TLSYour ingress configuration, TLS certificate setup and firewall rules for the Langflow portUsers reach only the ingress, TLS terminates there, and port 7860 is reachable only from the ingress path
Backup and restore testsYour backup runbook and dated restore test results for PostgreSQL and object storageA restored instance runs existing flows, and the secret key used by the deployment is backed up separately under access control
Vendor statements on certifications or air-gapped useVendor documents: the Langflow docs and the IBM product page, which state no certifications or BAA for self-hosted useAsk the vendor in writing for any self-hosting certification or air-gapped support statement before the review

Questions buyers ask before approving self-hosted Langflow

What does self-hosting Langflow cost beyond the free software?

The Langflow code is MIT-licensed, so the software itself carries no license fee for self-hosting. The organization still pays for the infrastructure it runs: compute for the Langflow app and any workers, a PostgreSQL database, Redis if you run multiple workers, and object storage for a production Kubernetes setup. Staff time for installing, patching and operating the platform is also a recurring cost. Infrastructure and staff costs recur, while the initial build is one-time. IBM Elite Support is a separate offering and is priced separately, so request a written quote from IBM if you want vendor support. In your own quote comparison, list each component, its owner and whether it is one-time or recurring.

What makes a self-hosted Langflow deployment take longer?

Scope drives the timeline more than the software does, so agree any duration in writing against a defined scope. The biggest factors are the number of environments, since development, test and production each need their own database, secrets and access setup. Identity integration with your SSO provider adds design and testing work, and an air-gapped delivery adds steps for mirroring container images and packages offline. Your team's existing skills also matter. A team that already runs Kubernetes and PostgreSQL will move faster than one learning both during the project. Ask the provider to split the work into phases, each with named deliverables and acceptance checks.

Can our own team deploy Langflow without an outside partner?

Yes, if your team already has Kubernetes, PostgreSQL and identity skills. The Kubernetes architecture and best practices guide and the official Helm charts repository give you a documented starting point. Your team still needs to set the production controls, including external PostgreSQL in place of the default SQLite, a superuser password, and the production startup profile that checks required services. The common gaps appear in identity integration, where Langflow supports external OIDC tokens and other SSO options may need a separate plugin, and in ongoing upgrades, since releases arrive roughly every week. Bring in a partner for the steps your team has not run before, and record who owns each step in writing.

Do Langflow or IBM provide SOC 2, ISO 27001 or a HIPAA BAA for self-hosting?

Neither the Langflow documentation nor IBM's Langflow product page describes certifications or a business associate agreement for self-hosted use. Compliance depends on how you deploy and operate the platform, including access control, encryption, logging, backups, network placement and vendor terms. An independent auditor or certification body issues any audit report, attestation or certification. DeployOpen prepares systems, controls and evidence for that assessment but does not issue reports or certifications. Ask your assessor to review your own control set against the Langflow deployment, and ask IBM in writing whether any agreement covers your use if you buy Elite Support.

How should we handle Langflow releases that arrive roughly every week?

Set a fixed review window, pin the version you run, and move each upgrade through a test environment before production. The GitHub releases page shows a roughly weekly cadence, with 1.13.2 on 10 November, 1.13.3 on 17 November and 1.13.4 on 24 November, so a slow patch cycle can leave you several releases behind. Read the release notes before you change the image tag, and keep a rollback plan that covers your database changes, since a schema change may not reverse cleanly. Decide who approves an upgrade and how much test time each one needs. That work recurs for as long as you run the platform, so include it in your cost estimate. Ask your provider whether upgrades are covered by a retainer or quoted per release.

What should our written quote for a Langflow deployment include?

A quote should list the scope, the environments, the deliverables and the timeline, all agreed in writing before work starts. DeployOpen works on fixed-scope engagements, and the quote follows from that written scope. Ask for these items to be stated:

  • The deployment targets, such as Docker, Kubernetes or both, and the number of environments
  • Identity work, including the SSO provider and whether it uses external OIDC or a separate plugin
  • Data services, including PostgreSQL, Redis for multiple workers and object storage, with an owner for each
  • Any air-gapped or network restrictions and how images and packages reach the environment
  • Backup, monitoring and handover documentation
  • Acceptance criteria and the due date for each deliverable

Also ask which items are one-time and which recur, such as retainers for upgrades and support.

Which settings should engineers check before a production Langflow go-live?

Confirm the production profile, external PostgreSQL, secret handling and the superuser password before traffic arrives. Setting LANGFLOW_DEPLOYMENT_PROFILE to prod makes Langflow check at startup for PostgreSQL, external object storage, a secret key and pgVector, and it stops booting if a required check fails. Official packages and images require LANGFLOW_SUPERUSER_PASSWORD and disable auto-login by default, so verify that no environment still uses a default credential. If you run multiple workers, Redis 6 or later handles the job queue when LANGFLOW_JOB_QUEUE_TYPE is set to redis and LANGFLOW_REDIS_QUEUE_URL is provided. The security page states that Langflow does not enforce isolation between users within a single process, so plan tenant separation outside the application.

How DeployOpen deploys and supports self-hosted Langflow

DeployOpen plans, implements, hardens, documents and supports self-hosted Langflow inside your own cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, with the deployment target, database, workers and identity setup agreed in writing before work starts. Ongoing support, upgrades and testing can follow as a retainer.

How we scope

  • The written scope names the Docker, remote server or Kubernetes target and any IDE or headless Runtime split.
  • Scope covers PostgreSQL in place of the default SQLite, object storage, and Redis if you run several workers.
  • Identity is scoped up front: OIDC through external authentication, and any SSO or RBAC plugins you decide to add.

How we build

  • Build the database, Redis queue and secrets first, then set LANGFLOW_DEPLOYMENT_PROFILE=prod for startup checks.
  • Configure the superuser password and keep auto-login disabled, as the official images ship by default.
  • Test the Compose or Helm setup in staging, covering login, job queue and restart behavior before cutover.

How we hand over

  • Deliver the Kubernetes manifests or Helm values, Compose files and environment variable inventory as versioned code.
  • Document the runbook for upgrades, backups of PostgreSQL and any object storage, and restore steps.
  • Provide the evidence your security and compliance teams need to review access, logging and data handling settings.

How we support

  • Retainers cover upgrades, Langflow release tracking, patch rollouts and continuous testing.
  • Releases arrive roughly weekly, so the retainer plan should state how often each upgrade is reviewed and tested.
  • Ask how security testing of flows that call tools or agents is scoped and retested after each change.

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.