How to Install Open WebUI and Run Your Own ChatGPT
An open-source, self-hosted chat interface for AI: a ChatGPT-style front end that runs on your own machine, connecting to local models through Ollama or to OpenAI-compatible APIs.
What is Open WebUI?
Open WebUI is an open-source, self-hosted chat interface for AI. It is published on GitHub as open-webui/open-webui. It gives you a friendly ChatGPT-style interface that runs on your own machine and connects to models running locally through Ollama, or to OpenAI-compatible APIs for local and cloud models. It supports multiple users and many features beyond plain chat, such as file handling and model management.
It is the front end for people who want to use AI on their own terms, with their own models and their own data.
What can you do with it?
- Chat with AI through a self-hosted interface
- Use models on your own machine with Ollama, or the OpenAI API
- Run it for many users, each with their own chats
- Keep your conversations on your own server
How to install Open WebUI
Installation is one command with pip, using Python 3.12. Open a terminal and run:
pip install open-webuiThen start the server:
open-webui serveThen open http://localhost:8080 in your browser. You can also install it with uv instead:
DATA_DIR=~/.open-webui uvx --python 3.12 open-webui@latest serveOr run it in 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:mainWith Docker, open http://localhost:3000 instead. There is also a native desktop app for macOS, Windows and Linux if you prefer not to use the terminal at all.
First steps after installing
Connect a model first. If you use Ollama, make sure it is running and the models you want are downloaded. If you use the OpenAI API, add your API key in the settings. Then start a chat and check that answers come back as expected. Create a second user account early if others will use the same server, so everyone has their own chat history.
Frequently asked questions
Is Open WebUI free? Yes. It is an open-source project on GitHub, and you can download and use it free of charge. Note that chatting needs a model: Ollama models run free on your own machine, while the OpenAI API is billed by usage.
Is it hard to install? No. One pip command installs it, and one more starts the server.
Does it work offline? Yes, with local models through Ollama it runs entirely offline.
Comments (0)