Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline. It supports various Large Language Model (LLM) runners, including Ollama and OpenAI-compatible APIs, with built-in inference engine for RAG. It provides a ChatGPT-style interface for interacting with local or cloud-based models. The project is actively developed with continuous updates.
pip install open-webuiNo compatibility data collected yet for this library.
Install Open WebUI via pip and then start the web server. The UI will typically be accessible at http://localhost:8080 (or http://localhost:3000 if using Docker without --network=host).
Use a specific version tag (e.g., `ghcr.io/open-webui/open-webui:v0.8.12`) instead of `:main` in Docker commands.
Set a persistent `WEBUI_SECRET_KEY` environment variable in your deployment environment.
Use `python=3.11` when creating virtual environments (e.g., `conda create -n open-webui python=3.11`) or ensure your system default is 3.11.
Add `--network=host` and `-e OLLAMA_BASE_URL=http://127.0.0.1:11434` to your `docker run` command.
Ensure `ENABLE_REALTIME_CHAT_SAVE` is set to `False` (or not set, as `False` is the default) in production environments.
Clear your browser cache (Ctrl+F5 or Cmd+Shift+R) after updating.
Review and restrict user permissions for 'Workspace → Tools' to trusted administrators.
Ensure Ollama is configured to listen on all network interfaces by setting `OLLAMA_HOST=0.0.0.0` in its environment variables and restarting it. When running Open WebUI in Docker, use the `--network=host` flag to allow the container to access the host's network, or configure `OLLAMA_BASE_URL` to `http://host.docker.internal:11434` and ensure `host.docker.internal` is resolvable within the Docker container (e.g., by adding `--add-host=host.docker.internal:host-gateway` to the `docker run` command).
First, ensure Ollama is running and has models pulled (run `ollama list` in your terminal). Verify that the `OLLAMA_BASE_URL` environment variable for Open WebUI is correctly set to the address where Ollama is accessible (e.g., `http://127.0.0.1:11434` or `http://host.docker.internal:11434` if in Docker). If running in Docker, ensure proper network configuration as described in the 'Connection refused' fix. Also, check Open WebUI's Admin Settings > Connections to confirm the Ollama Server URL is correct, and for non-admin users, ensure model access control is configured appropriately or temporarily set `BYPASS_MODEL_ACCESS_CONTROL` environment variable.
Reduce the size of the model being used, or free up system RAM. To determine the memory requirements of a model, you can run `ollama run <model_name>` in your terminal. If continuously encountering this, consider upgrading your system's RAM or using a machine with more memory. You can also adjust the `AIOHTTP_CLIENT_TIMEOUT` environment variable in Open WebUI to increase the timeout for slow responses, though this does not fix the underlying memory issue.