langflow
by langflow-ai
Visual builder for creating and deploying AI agents and workflows by connecting blocks instead of writing code.
- Stars
- 156,921 stars
- Forks
- 10k forks
- Last push
- today
- Activity
- Active
# Install Langflow$ uv pip install langflow -U# Start it (opens on port 7860)$ uv run langflow runCommands from the project's README. Run them after installing (see below).
Overview
Understand langflow in 60 seconds
- What it does
- Langflow is a visual builder for AI agents and workflows. You connect blocks for models, prompts, tools and data on a canvas, test them in a playground, and then serve the result as an API or an MCP tool.
- The problem it solves
- Wiring together language models, vector databases and tools in code takes time and is hard to iterate on. Langflow lets you build and test those flows visually while still being able to edit any component in Python.
- Why choose it
- Choose it if you want a visual canvas with real code underneath and built-in API and MCP serving. If you prefer to write everything in code, a plain Python framework may suit you better.
- Who should use it
- Developers prototyping AI agents and RAG apps quickly
- Teams that want a visual way to build and share AI workflows
- Builders who want to expose a workflow as an API or MCP server
- Python developers who want to customize components
- Setup difficulty
You'll need:
- Python 3.10 to 3.14
- uv, the recommended package manager
- Or: Docker, or Langflow Desktop for Windows and macOS
- API keys for whichever model providers you connect
How langflow works
Langflow gives you a canvas where each block is a component: a language model, a prompt, a vector store, a tool or an agent. You connect them into a flow and run it step by step in the interactive playground to see what each part does.
Every flow can be deployed as an API, exported as JSON for use in Python apps, or turned into an MCP server so other AI tools can call it. The README says it supports all major LLMs and vector databases, multi-agent orchestration, and observability through LangSmith, LangFuse and other integrations.
There are three ways to run it: Langflow Desktop for Windows and macOS with everything bundled, the Python package installed with uv, or the official Docker image. Release packages and Docker images require you to set an administrator password before starting.
Features
Key features
Visual builder
Drag, drop and connect components on a canvas to build agents and workflows.
Editable in Python
Open any component's source code and customize it in Python.
Interactive playground
Test flows immediately and step through them to refine results.
API and MCP server
Deploy any flow as an API or as an MCP server that other AI tools can use.
Multi-agent flows
Orchestrate several agents with conversation management and retrieval.
Observability
Connect LangSmith, LangFuse and other tools to trace what your flows do.
Strengths
- Fast way to prototype and iterate on AI workflows
- Visual editing without losing access to the code
- Flows become APIs or MCP tools with no extra work
- MIT licensed and can be deployed on major clouds
Limitations
- Complex flows can be harder to version and review than plain code
- You still pay for the model providers your flows call
- Recent releases require setting a superuser password before first run
Practical use cases
RAG chatbot
Connect a document loader, vector store and model to answer questions about your files.
Agent prototypes
Try different tools and prompts for an agent in the playground before writing production code.
Tools for other agents
Publish a flow as an MCP server so Claude or other MCP clients can call it.
Internal APIs
Deploy a flow as an API endpoint that your app calls.
Installation
Install langflow
Commands come from Langflow's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Python 3.10–3.14
- uv
Supported systems
- Windows
- macOS
- Linux
- 1
Install Langflow
From a fresh directory.
Shelluv pip install langflow -U - 2
Set an administrator password
Release packages disable automatic login. Set LANGFLOW_SUPERUSER_PASSWORD, then sign in as langflow.
Shellread -rsp "Langflow administrator password: " LANGFLOW_SUPERUSER_PASSWORD; echoexport LANGFLOW_SUPERUSER_PASSWORD - 3
Start Langflow
It starts at http://127.0.0.1:7860.
Shelluv run langflow run
- 1
Set a password and start the container
Official Docker images require authentication. Sign in as langflow with the password you entered.
Shellread -rsp "Langflow administrator password: " LANGFLOW_SUPERUSER_PASSWORD; echoexport LANGFLOW_SUPERUSER_PASSWORDdocker run -p 7860:7860 -e LANGFLOW_SUPERUSER_PASSWORD langflowai/langflow:latest
- 1
Download Langflow Desktop
Available for Windows and macOS with all dependencies included, so there's no Python setup. Download it from langflow.org/desktop.
Configuration and API keys
| Setting | What it's for |
|---|---|
LANGFLOW_SUPERUSER_PASSWORDRequired | Administrator password for release packages and Docker images, which disable automatic login. |
LANGFLOW_SUPERUSEROptional | Administrator username. Defaults to langflow. |
First run
- 1
Start Langflow
Shelluv run langflow run - 2
Open the editor
Go to http://127.0.0.1:7860 and sign in as langflow.
langflow's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Build and test your first flow
Get Langflow running locally and try a flow in the playground.
Before you start
- Python 3.10–3.14 and uv
- An API key for a model provider you want to use
- 1
Install
Shelluv pip install langflow -U - 2
Set the admin password and start
Shellread -rsp "Langflow administrator password: " LANGFLOW_SUPERUSER_PASSWORD; echoexport LANGFLOW_SUPERUSER_PASSWORDuv run langflow run - 3
Open http://127.0.0.1:7860
Sign in as langflow, create a flow, connect a model component and test it in the playground.
What to expect
Langflow opens in your browser, and you can build a flow and run it step by step in the playground.
Next steps
- Deploy the flow as an API or export it as JSON
- Turn the flow into an MCP server for other AI tools
- See the deployment guides at docs.langflow.org to host it
Costs and requirements
What it costs to run
- License
- MIT. Free to use, modify and use commercially.Free
- Software
- Free and open source to run locally or on your own servers.Free
- Model providers
- Hosted LLMs you connect are billed by those providers.Paid
- Hosting
- Deploying to a cloud costs whatever that cloud charges.Depends
Troubleshooting
Common setup issues
Langflow asks for a login you never set
Release packages and Docker images disable automatic login. Set LANGFLOW_SUPERUSER_PASSWORD before starting and sign in as langflow.
Install fails on your Python version
Langflow needs Python 3.10 to 3.14. Check your version and use uv, which the README recommends.
Upgrading from an older auto-login install
Follow the upgrade instructions in Langflow's authentication docs before switching defaults.
Alternatives
Similar AI repositories
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
AutoGPT
Significant-Gravitas
Platform for building, deploying and running autonomous AI agents.
langchain
langchain-ai
Framework for building LLM-powered applications and agents.
browser-use
browser-use
Python library that lets AI agents operate a real web browser.