Skip to main content
Version: 1.14.x (Next)

Install Langflow

Langflow can be installed in multiple ways. Choose an option below to jump to the steps.

Install and run Langflow Desktop​

Langflow Desktop is a desktop version of Langflow that simplifies dependency management and upgrades. However, some features aren't available for Langflow Desktop, such as the Shareable Playground and Voice Mode.

Langflow Desktop requires macOS 13 or later.

  1. Navigate to Langflow Desktop.
  2. Click Download Langflow, enter your contact information, and then click Download.
  3. Mount and install the Langflow application.
  4. When the installation completes, open the Langflow application, and then create your first flow with the Quickstart.

For upgrade information, see the Release notes.

To manage dependencies in Langflow Desktop, see Install custom dependencies in Langflow Desktop.

Install and run Langflow with Docker​

You can use the Langflow Docker image to start a Langflow container. For more information, see Deploy Langflow on Docker.

  1. Install and start Docker.

  2. Pull the latest Langflow Docker image and start it:

    docker run -p 7860:7860 \
    -e LANGFLOW_AUTO_LOGIN=false \
    -e LANGFLOW_SUPERUSER_PASSWORD=SUPERUSER_PASSWORD \
    langflowai/langflow:latest

    Replace SUPERUSER_PASSWORD with a strong password for the Langflow superuser. The Docker image disables automatic login.

  3. To access Langflow, navigate to http://localhost:7860/.

  4. Sign in with the username langflow or your configured LANGFLOW_SUPERUSER.

    For more information, see LANGFLOW_AUTO_LOGIN.

  5. Create your first flow with the Quickstart.

Install and run the Langflow OSS Python package​

  1. Make sure you have the required dependencies and infrastructure:

    • Python version 3.10 to 3.14
    • uv
    • Sufficient infrastructure:
      • Minimum: Dual-core CPU and 2 GB RAM
      • Recommended: Multi-core CPU and at least 4 GB RAM
    • Browser:
      • Google Chrome is recommended but not required
  2. Create a virtual environment with uv.

    Need help with virtual environments?

    Virtual environments ensure Langflow is installed in an isolated, fresh environment. To create a new virtual environment, do the following.

    1. Navigate to where you want your virtual environment to be created, and then create it with uv:

      uv venv VENV_NAME

      Replace VENV_NAME with a name for your virtual environment.

    2. Start the virtual environment:

      source VENV_NAME/bin/activate

      Your shell's prompt changes to display that you're currently working in a virtual environment:

      (VENV_NAME) ➜ langflow git:(main) ✗
    3. To deactivate the virtual environment and return to your regular shell, type deactivate.

      When activated, the virtual environment temporarily modifies your PATH variable to prioritize packages installed within the virtual environment. To avoid conflicts with other projects, it's a good idea to deactivate your virtual environment when you're done working in it.

      To delete the virtual environment, type rm -rf VENV_NAME. This completely removes the virtual environment directory and its contents.

  3. In your virtual environment, install Langflow:

    uv pip install langflow

    This installs the runnable Langflow application and its curated provider extensions. To install the same UI and API without provider extensions, install langflow-base instead:

    uv pip install langflow-base

    Both packages use the langflow command. In Langflow 1.12, langflow-base does not provide a langflow-base executable.

  4. Set a superuser password. As of Langflow 1.13, official release packages disable automatic login.

    Create a .env file with the following values:

    LANGFLOW_AUTO_LOGIN=false
    LANGFLOW_SUPERUSER_PASSWORD=YOUR_SUPERUSER_PASSWORD

    Replace YOUR_SUPERUSER_PASSWORD with a strong password for the Langflow superuser.

  5. Start Langflow with the .env file. --env-file loads the file and overrides variables already set in the environment:

    uv run langflow run --env-file .env

    If LANGFLOW_SUPERUSER_PASSWORD is already exported in your environment, you can start Langflow with only uv run langflow run.

    It can take a few minutes for Langflow to start.

  6. To confirm that a local Langflow instance is running, navigate to the default Langflow URL http://127.0.0.1:7860.

  7. Sign in with the username langflow or your configured LANGFLOW_SUPERUSER.

    For more information, see LANGFLOW_AUTO_LOGIN.

  8. Create your first flow with the Quickstart.

Manage the Langflow OSS version​

Upgrading from Langflow 1.11.x

Use the 1.11.x upgrade procedure when moving an older full installation to 1.13. An in-place upgrade can leave incompatible provider packages installed. Neither --upgrade nor --force-reinstall removes packages that are no longer dependencies.

For other Python installations, upgrade Langflow to the latest version with uv pip install langflow -U. However, the Langflow team recommends taking steps to backup your existing installation before you upgrade Langflow. For more information, see Prepare to upgrade.

To install a specific version of the Langflow package, add the required version to the command, such as uv pip install langflow==1.4.22.

To reinstall Langflow and all of its dependencies, run uv pip install langflow --force-reinstall.

Upgrading from an auto-login installation

Langflow 1.13 disables auto-login by default. Before you upgrade an installation that signs in automatically, prepare the existing account for password sign-in. LANGFLOW_SUPERUSER_PASSWORD does not replace a password that was already generated for that account. If you already upgraded and can't sign in, see Recover access after upgrading. Don't delete or reinstall Langflow to regain access, because that can permanently remove your flows.

Upgrade from Langflow 1.11.x​

  1. While the old version is still running, prepare the existing account for password sign-in. Then stop all Langflow workers and back up the database, configuration, uploaded files, and knowledge storage. Keep the original Python environment and these backups until you have checked the new version.

  2. From your existing working directory, create a new environment in an unused directory and install the replacement version.

    uv venv --python 3.12 .venv-langflow-1.13
    uv pip install --python .venv-langflow-1.13 'langflow[bundles]==1.13.2'
    uv pip check --python .venv-langflow-1.13

    The bundles extra includes the optional provider packages omitted from the default installation. To test a release candidate, use its full version instead, such as 1.13.2rc1. Resolve any dependency conflicts before starting Langflow.

  3. Put your original instance settings in an environment file for the new process. If you already use a .env file, copy it and preserve its existing values. Keep the original LANGFLOW_CONFIG_DIR, LANGFLOW_KNOWLEDGE_BASES_DIR, and file-storage settings. Set LANGFLOW_DATABASE_URL explicitly to your existing external database URL or an absolute URL for your SQLite file. The default SQLite file can be inside the old Python environment. If so, copy it to a persistent directory outside both environments and point LANGFLOW_DATABASE_URL at that copy. Retain the original LANGFLOW_SECRET_KEY if set, or the generated secret_key file in the config directory. Use absolute storage paths and the same username and prepared password. Set LANGFLOW_AUTO_LOGIN=false in the new environment file.

  4. Start the replacement environment using that file.

    uv run --no-project --python .venv-langflow-1.13 python -m langflow run --env-file /absolute/path/to/langflow-upgrade.env

    Replace the environment file path with your actual path. Sign in as the existing user and check saved flows, credentials, files, and knowledge bases. Keep the old environment if any active database or storage path still points inside it. The first startup can migrate your database and local knowledge storage. Returning to 1.11.x afterward requires restoring the database and storage backups before starting the old environment.

Next steps​

Was this page helpful?

Support
Search