Pritam Writes

Your own ChatGPT, offline: Ollama + Open WebUI

Two pieces, ten minutes, and your chats never leave your machine.

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.

Open WebUI sign-in page
First visit: create the admin account. It is stored only on your machine.

Pick your model at the top, and chat.

Open WebUI chat screen with gemma4:31b selected
Ready to chat: pick a model from the dropdown (here gemma4:31b) and type away.

Settings worth one minute

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.

#ai #ollama #self-hosting