liveBook · Manning

Open WebUI

As explained in Build Applications with Local AI Models on a Mac

Open WebUI is an open-source web interface for interacting with locally hosted language models and related services.

Open WebUI is a free, open-source web interface for chatting with models through Ollama. It provides a ready-made, ChatGPT-like experience with a model selector, conversation history, and image uploads. Unlike a chatbot you build in Streamlit, it gives you a finished interface without assembling the application yourself. section 16.2

A local Ollama backend does not by itself keep every operation local. Local processing also requires local embedding and document-processing settings and avoiding external APIs, web tools, and other cloud integrations. section 16.2

After signing in, you can use Open WebUI to:

  • Switch between Ollama models and search saved conversations. section 16.2.2
  • Upload PDFs and chat with them using retrieval-augmented generation (RAG), which brings document content into the conversation. section 16.2.2
  • Save preset system prompts, optionally share the interface with teammates, and export conversations as text or JSON. section 16.2.2

One way to start Open WebUI on a Mac is with Docker Desktop. Docker runs applications in containers: packaged, isolated environments containing the files and settings they need. Docker is a system-level tool that adds a background application, networking components, and storage, so this setup is optional. Install and open Docker Desktop, then wait until it reports that it is running. With a local Ollama server available, run: section 16.2.1

docker run -d -p 3000:8080 \
    --add-host=host.docker.internal:host-gateway \
    -v open-webui:/app/backend/data \
    --name open-webui \
    --restart always \
    ghcr.io/open-webui/open-webui:main

This command downloads and starts Open WebUI. The --add-host flag lets the container connect to the local Ollama server, while -v provides persistent storage for conversations. section 16.2.1

Open http://localhost:3000 and create the first local Open WebUI administrator account. This is separate from a Docker Desktop account. After login, Open WebUI automatically detects models downloaded in Ollama. If Docker cannot connect to its API or daemon, check that Docker Desktop is running. External authentication or cloud integrations, if configured, may exchange data with their services. section 16.2.1

How Build Applications with Local AI Models on a Mac covers it

How deep it goes
Walks through Docker startup, first login, model detection, and a common connection check; also surveys interface features.
Examples
Uses PDF question answering, saved prompt presets, and searchable conversations to illustrate everyday use.
What it assumes
Introduces Docker containers from zero, assumes a local Ollama server for the setup, and treats Docker installation as optional.
What you can do after
Operate/configure Open WebUI with Docker Desktop, sign in, and use downloaded Ollama models.
How it connects
Connects Open WebUI with Ollama, Docker, retrieval-augmented generation, and Streamlit.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Applications with Local AI Models on a Mac. The section links point to the parts of the book it draws on.