Skip to content
AIRepoHub

open-webui

by open-webui

Self-hosted chat interface for Ollama and OpenAI-compatible models.

Local LLMsProductivitySvelteCustom licenseApp
Stars
159,471
stars
Forks
23k
forks
Last push
today
Activity
Active
open-webui: quick start
# Run with Docker$ 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# Or with pip (Python 3.12)$ pip install open-webui
open-webui serve

Commands from the project's README. Run them after installing (see below).

Overview

Understand open-webui in 60 seconds

What it does
Open WebUI is a self-hosted, ChatGPT-style web interface for AI models. It connects to local models through Ollama or to any OpenAI-compatible API, and it is built to run entirely offline if you want.
The problem it solves
Local models usually come with only a command line, and cloud chat apps keep your conversations on someone else's servers. Open WebUI gives you a polished chat interface you host yourself, for local and cloud models alike.
Why choose it
Choose it for the most popular self-hosted chat UI for Ollama and OpenAI-compatible models. Its license requires keeping the Open WebUI branding.
Who should use it
  • Ollama users who want a web chat interface
  • Teams hosting a private AI chat
  • Privacy-minded users running offline
  • Developers comparing local and cloud models
Setup difficultyBeginner

You'll need:

  • Docker, or Python 3.12 with pip or uv
  • Ollama or an OpenAI-compatible API

How open-webui works

Open WebUI runs as a web app you open in your browser. Point it at Ollama for local models, or give it an OpenAI API key or any OpenAI-compatible endpoint for cloud and local models.

Docker images come in several flavours: main with local AI dependencies, slim using external services for embeddings and documents, cuda for NVIDIA acceleration, ollama with Ollama bundled, and dev. Options like OLLAMA_BASE_URL, OPENAI_API_KEY and HF_HUB_OFFLINE configure it.

There's also a native desktop app for macOS, Windows and Linux, and ecosystem projects for agent terminals and knowledge base sync. Code is under the Open WebUI License, which requires preserving the branding.

Features

Key features

Self-hosted chat

ChatGPT-style interface you run yourself.

Ollama and OpenAI-compatible

Local and cloud models.

Offline capable

Built to run entirely offline.

Several Docker images

main, slim, cuda, ollama and dev.

Desktop app

Native app for macOS, Windows and Linux.

Knowledge bases

Sync folders and wikis with oikb.

Strengths

  • Very popular, active project
  • Easy Docker or pip install
  • Works with local and cloud models
  • Can run fully offline

Limitations

  • License requires keeping Open WebUI branding
  • GPU acceleration needs the cuda image and NVIDIA Container Toolkit
  • Enterprise features are separate

Practical use cases

Private ChatGPT

Chat with local models through Ollama.

Team AI portal

Host one interface for several model providers.

Offline AI

Use AI on a machine with no internet.

Installation

Install open-webui

Based on official documentation

Commands come from Open WebUI's README. AIRepoHub hasn't run them yet. View source

Prerequisites

  • Docker or Python 3.12

Supported systems

  • Windows
  • macOS
  • Linux
  1. 1

    Start the container

    Add -e OLLAMA_BASE_URL=http://your-ollama-server:11434 to connect to Ollama on another server.

    Shell
    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
  2. 2

    Open it

    Go to http://localhost:3000.

  1. 1

    Install and start

    Needs Python 3.12. Then open http://localhost:8080.

    Shell
    pip install open-webuiopen-webui serve
  1. 1

    Run with uvx (macOS/Linux)

    Shell
    DATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serve
  1. 1

    Download the desktop app

    From the open-webui/desktop repository, for macOS, Windows and Linux.

Configuration and API keys

SettingWhat it's for
OLLAMA_BASE_URLOptionalConnect to Ollama on another server.
OPENAI_API_KEYOptionalYour OpenAI API key.
HF_HUB_OFFLINEOptionalSet to 1 to disable Hugging Face model downloads for offline use.
DATA_DIROptionalWhere Open WebUI stores its data when run with uvx.

First run

  1. 1

    Open the interface

    http://localhost:3000 for Docker or http://localhost:8080 for pip.

open-webui's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.

Your first project

Chat with local models through Ollama

Put a web chat interface in front of Ollama with Docker.

Before you start

  • Docker installed
  • Ollama installed with a model pulled
  1. 1

    Start Open WebUI

    Shell
    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
  2. 2

    Open http://localhost:3000

    Create your account and pick a model to chat with.

What to expect

Open WebUI runs in your browser and lists your models, with conversations stored in the open-webui volume.

Next steps

  • Add an OpenAI API key for cloud models
  • Try the cuda image for GPU acceleration
  • See the docs for Docker Compose and Kubernetes

Costs and requirements

What it costs to run

License
Open WebUI License; requires preserving the branding.Depends
Software
Free to self-host.Free
Cloud models
Billed by the providers you connect.Depends

Troubleshooting

Common setup issues

Can't connect to Ollama

See the troubleshooting guide; set OLLAMA_BASE_URL if Ollama runs on another server.

Source: README.md

GPU not used

Use the :cuda or :ollama image with --gpus all and the NVIDIA Container Toolkit.

Source: README.md

Updating

Follow the updating guide in the docs.

Source: README.md

Alternatives

Similar AI repositories