Skip to content

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 ​

  1. Verify Ollama is running: Visit http://localhost:11434 in your browser. You should see:

    Ollama is running
  2. Pull the Open WebUI Docker image:

    bash
    docker pull ghcr.io/open-webui/open-webui:main
  3. Run the container:

    bash
    docker 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:8080 maps the container’s port 8080 to your machine’s port 3000
    • -v open-webui:/app/backend/data creates a Docker volume to persist data
    • --add-host=host.docker.internal:host-gateway allows Open WebUI to reach Ollama running on your host
    • --name open-webui assigns a name to the running container
  4. Access the WebUI: Open your browser and visit:

    http://localhost:3000

Testing the Integration with Ollama ​

  1. Make sure you have an Ollama model installed (e.g., llama3.2). You can pull it with:

    bash
    ollama pull llama3.2
  2. In the Open WebUI interface, select or configure Ollama as the model backend.

  3. 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:

    bash
    docker stop open-webui
  • To restart it:

    bash
    docker 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:

👉 Open WebUI Documentation