Open WebUI Installation Guide
Open WebUI is a user-friendly, web-based interface designed to interact with local large language models (LLMs). It provides an accessible chat-like environment to run and manage AI models on your own machine.
This guide provides a quick way to install Open WebUI using Docker, ensuring that the Ollama server is accessible for seamless integration. While there are other installation methods available, Docker is the recommended approach for most users due to its simplicity and portability.
Prerequisites
- Docker installed on your system
- Ollama installed and running on your machine (verify at
http://localhost:11434) - Basic knowledge of running Docker commands
Installation Steps
Verify Ollama is running: Visit http://localhost:11434 in your browser. You should see:
Ollama is runningPull the Open WebUI Docker image:
bashdocker pull ghcr.io/open-webui/open-webui:mainRun the container:
bashdocker run -d \ -p 3000:8080 \ -v open-webui:/app/backend/data \ --add-host=host.docker.internal:host-gateway \ --name open-webui \ ghcr.io/open-webui/open-webui:main-p 3000:8080maps the container’s port 8080 to your machine’s port 3000-v open-webui:/app/backend/datacreates a Docker volume to persist data--add-host=host.docker.internal:host-gatewayallows Open WebUI to reach Ollama running on your host--name open-webuiassigns a name to the running container
Access the WebUI: Open your browser and visit:
http://localhost:3000
Testing the Integration with Ollama
Make sure you have an Ollama model installed (e.g.,
llama3.2). You can pull it with:bashollama pull llama3.2In the Open WebUI interface, select or configure Ollama as the model backend.
Start a chat and run a simple test query such as:
Hello, are you connected?If everything is set up correctly, Open WebUI will forward the request to the Ollama server and return a response.
Notes
Ensure the Ollama server stays running in the background so Open WebUI can connect to it.
To stop the container:
bashdocker stop open-webuiTo restart it:
bashdocker start open-webui
More Installation Options
Open WebUI can also be installed through other methods such as direct installation or alternative container runtimes. For full details, visit the official documentation: