Langflow is a visual builder for AI agents and workflows: you drag components onto a canvas and wire them together instead of writing the plumbing by hand. Its official Ollama bundle adds an enhanced Ollama component with provider-specific parameters, and basic Ollama support is available in all Langflow installations through the core Language Model component. Connect it to your locally running Ollama server and the flow runs on your own machine, with no API key.
Start Langflow
Langflow needs Python 3.10 to 3.14 and uv. The install guide gives the Python package install as:
uv pip install langflow
Then start it with:
uv run langflow run
Langflow starts at http://127.0.0.1:7860. Official release packages disable automatic login, so set a superuser password first and sign in with the username langflow. If you installed lfx directly instead of Langflow, the Ollama bundle is not included: install it separately with uv pip install lfx-ollama, restart Langflow, and confirm it loaded with lfx extension list.
Connect the Ollama component
The Ollama bundle page gives the connection as numbered steps. Add the Ollama component to your flow, and in the Base URL field enter the address of your locally running Ollama server. The default base URL is http://127.0.0.1:11434; this value is set as the OLLAMA_HOST environment variable in Ollama. Once the connection is established, select a model in the Model Name field, such as llama3.2:latest, and click Refresh to refresh the server’s list of models. You can also set temperature or max tokens in the component inspection panel.
The component has two outputs, and picking the right one is the step most beginners miss. Language model components can output either a Model Response (Message) or a Language Model (LanguageModel). Use the Language Model output when you want to use an Ollama model as the LLM for another LLM-driven component, such as an Agent or Smart Transform component. The bundle page’s example uses LanguageModel output to use an Ollama model as the LLM for an Agent component. A second component, Ollama Embeddings, generates embeddings with an Ollama embedding model such as all-minilm:latest, using the same default base URL.
Try it: four checks from install to reply
| Check | What you should see | What it means |
|---|---|---|
| Langflow opens | http://127.0.0.1:7860 shows Langflow after sign-in |
Langflow is running |
| Model listed | The Ollama component at Base URL http://127.0.0.1:11434 lists llama3.2:latest after Refresh |
Langflow can reach your local Ollama server |
| Flow wired | The Ollama component’s Language Model output connects to an Agent component | The agent will use your local model |
| Reply | Asking “Why is the sky blue?” in the Playground returns an answer about the sky | The flow works end to end |
Expected result. We checked the Langflow Ollama bundle page, which gives the Base URL, model selection, Refresh step, and the two outputs, and the Langflow install guide, which gives the uv install and run commands and the 127.0.0.1:7860 address. We did not install Langflow, connect Ollama, or build a flow on this machine.
Limits
Ollama must be running before you click Refresh, or the model list stays empty. If you see the error model requires more system memory than is available, your machine does not have enough RAM to load the selected model: try a smaller model, or run Ollama on a machine with more available memory. The Model Response output answers a question directly, while the Language Model output feeds another component, so a flow that chats needs the first and a flow that drives an agent needs the second. This guide covers one plain text-generation flow only; a retrieval flow with the Ollama Embeddings component, text chunks, and a vector store is a separate build. We did not test any of this ourselves.
Sources
- Langflow Documentation — Ollama bundle — Ollama and Ollama Embeddings components, default Base URL http://127.0.0.1:11434, Model Name llama3.2:latest, Refresh, Model Response and Language Model outputs
- Langflow Documentation — Install Langflow — uv pip install langflow, uv run langflow run, http://127.0.0.1:7860, superuser sign-in, lfx-ollama bundle install
- Ollama FAQ — the server binds 127.0.0.1 port 11434 by default
