skillfed

lfx

Langflow Executor - A lightweight CLI tool for executing and serving Langflow AI flows

lfx v1.11.3 113.4K downloads/30d#12,343 on PyPI
License unclear Active released

What it is and what it does

LFX is a standalone executor for Langflow flows that runs them without the full Langflow application or persistent database. It reads flow definitions from JSON files and either serves them as FastAPI endpoints or executes them directly from the command line, streaming results to stdout. The tool uses a no-op database interface for all stateful operations, meaning flows run purely in memory—any operations that would normally persist to langflow.db (saving flows, storing messages, managing users) will not retain data across invocations.

The package integrates LangChain, FastAPI, and document processing libraries to support a wide range of flow components. It's designed for lightweight deployment scenarios where you want to run pre-built flows without the overhead of the full Langflow server, but it trades persistence for that simplicity. If your flows depend on saved state, user management, or message history from the database, LFX is not a fit; if they're stateless or memory-only, it's a minimal alternative.

Use it for:

  • Deploy a pre-built Langflow flow as a lightweight FastAPI microservice without running a full Langflow server.
  • Execute a Langflow flow locally from the command line for testing or batch processing without database setup.
  • Run flows in ephemeral environments (CI/CD, containers, serverless) where persistent state is not needed.
  • Integrate a Langflow flow into an existing Python application as a library when the full Langflow package is too heavy.
  • Serve multiple flows as stateless API endpoints for inference-only workloads.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

LFX is a lightweight command-line tool that executes Langflow AI flows from JSON files without requiring the full Langflow package, serving them as stateless FastAPI endpoints or running them locally.

Yes, if your flows are stateless or memory-only and you want to avoid the overhead of a full Langflow server. The low install friction and active maintenance make it a reasonable choice for lightweight deployment. However, verify the license terms first, and confirm that your flows do not depend on persistent state (saved flows, message history, user management) before committing to it.

Install

lfx on PyPI

pip

pip install lfx

uv

uv add lfx

poetry

poetry add lfx

Installing lfx

Before you install

Low install friction with a pure Python wheel. Active maintenance with a release 3 days ago. The 49 runtime dependencies are substantial but typical for a framework that integrates LangChain, FastAPI, and document processing; most are already common in AI/LLM workflows.

License in practice

License treatment is unclear—no SPDX identifier or raw license text is available in the metadata. You should verify the actual license terms before using this in production or proprietary work.

Quickstart

pip install lfx
lfx serve flow.json
# or
lfx run flow.json "input text"

Requires Python 3.10 or later (and <3.15). Flow components may require additional dependencies beyond LFX itself; the tool will report missing dependencies at runtime.

Verify before relying

  • Actual license terms (SPDX and raw license text are both absent from metadata)
  • Whether stateless operation and no-op database fully satisfy your flow's persistence requirements
  • Which component dependencies beyond the 49 listed runtime deps your specific flows will need

Package facts

License not declared (unclear)
Python support supports the current Python release (<3.15,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 49 — a2wsgi, ag-ui-protocol, aiofile, aiofiles, asyncer, beautifulsoup4, cachetools, chardet, cryptography, defusedxml, docstring-parser, emoji, fastapi, filelock, gunicorn, httpx, json-repair, langchain-classic, langchain-core, langchain, langflow-sdk, loguru, markitdown, mcp, nanoid, networkx, openpyxl, orjson, pandas, passlib
Maintenance actively maintained — 3 days since the last release
First released
Downloads 113,394/month — #12,343 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: lfx-1.11.3-py3-none-any.whl

Tags

langflow flow executorlightweight langflow runnerstateless flow executionlangflow cli toolflow json runnerlangflow api serverlangflow without database
langflow-executorstateless-flowsllm-deployment

More Artificial Intelligence packages