Your own ChatGPT, offline: Ollama + Open WebUI
Two pieces, ten minutes, and your chats never leave your machine.
- Ollama downloads and runs the model.
- Open WebUI gives you a ChatGPT-style chat window in your browser.
1. Install Ollama
Mac or Windows: download the app from ollama.com.
Linux:
curl -fsSL https://ollama.com/install.sh | sh
2. Get a model
ollama run gemma4:e4b
The first run downloads the model (about 7 GB), then opens a chat in the terminal. Type /bye to leave.
Low on memory? Try llama3.2:3b instead. Browse more at ollama.com/library.
3. Add the chat window
With Docker installed:
docker run -d --name open-webui --restart always \
-p 127.0.0.1:3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
ghcr.io/open-webui/open-webui:main
Open http://localhost:3000 and create the first account. It becomes the admin, and it stays on your machine.
Pick your model at the top, and chat.
Settings worth one minute
- Context length: set it to 16k–32k in Ollama's settings. The default can be much bigger and holds a lot of memory. On my test, going from 256k to 64k freed 14 GB.
- Cloud: off. Keeps every prompt on your computer.
- Expose Ollama to the network: off, unless you really want other devices to use it.
- Ollama unloads the model after 5 idle minutes and gives the memory back.
What to expect
A GPU makes the biggest difference. A 4 GB laptop GPU ran llama3.2:3b 2.4× faster than a 12-core server with no GPU. Small models (3–8B) feel like a normal chat. Big ones (27B+) need a lot of memory and get slow fast.
That's it: a private assistant, no subscription, works offline.
Need help setting this up on your own machine or for your team? Get in touch.