docs/versioned_docs/version-1.11.0/Lfx/lfx-install.mdx
import PartialExtensionBundleInstall from '@site/docs/_partial-extension-bundle-install.mdx';
LFX can be installed from PyPI, cloned from the Langflow repository, or run without installing using uvx.
If you have installed Langflow OSS version 1.6 or later, lfx is already included in your environment.
Create and activate a virtual environment:
uv venv lfx-venv
source lfx-venv/bin/activate
Install LFX:
uv pip install lfx
To install the latest nightly (pre-release) version:
uv pip install --pre lfx
Install the LFX engine and any provider extensions your flows need.
<PartialExtensionBundleInstall />To run LFX from source without a PyPI install:
Clone the Langflow repository:
git clone https://github.com/langflow-ai/langflow
Change directory to src/lfx:
cd langflow/src/lfx
Run lfx commands using uv run:
uv run lfx serve my-flow.json
Running uv run lfx from src/lfx installs the LFX engine only.
Bundle components will still need to be installed.
To use bundle components, see Install with bundle components, or run make init from the repository root to install the full Langflow development workspace.
Use uvx to run LFX in a temporary environment without a permanent install:
uvx lfx serve my-flow.json
uvx downloads and caches LFX automatically.
This is useful for one-off flow runs or CI pipelines where you do not want to manage a virtual environment.
After installing, confirm LFX is available:
lfx --version
To list available commands:
lfx --help