A private ChatGPT
A ChatGPT-style chat app that runs fully on your computer, even offline.
New to local AI? Read Start here first. It takes 5 minutes.
Your computer's memory
PC with a graphics card? Pick the card's memory (VRAM). Why?
Your computer runs this well.
- 1
Install Ollama
Ollama downloads AI models and runs them on your computer. Open the Terminal app and paste this. It may ask for your Mac password.
Or download the app from ollama.com/downloadcurl -fsSL https://ollama.com/install.sh | shYou should see: Run
ollama --version. It prints a version number. If it also says “could not connect”, open Ollama from your Applications folder, wait a few seconds, then go on. - 2
Download your model
This is the AI itself. It is one big file, so it takes a few minutes.
ollama pull gemma4:12bYou should see: The download finishes with “success”.
- 3
Say hi
Chat right in the Terminal to check it works.
Type a message. Type /bye to quit.ollama run gemma4:12bYou should see: The model answers you. That answer came from your own computer.
- 4
Add a ChatGPT-style window
Open WebUI gives you a chat app in your browser. It needs Homebrew (brew.sh) for Python.
brew install python@3.11python3.11 -m venv ~/.venvs/openwebui && source ~/.venvs/openwebui/bin/activatepip install open-webui
Keep this window open while you use itopen-webui serveYou should see: Open http://localhost:8080. Make a local account (it stays on your computer) and pick your model at the top.
It works. What now?
- Try it: paste a long email and ask “sum this up in 3 lines”. Ask it to rewrite a text so it sounds friendlier. Ask it to explain a hard idea step by step.
- See every model you have:
ollama list. - Try a different model: copy any
ollama runname from the Models page. - Update your model: run
ollama pull gemma4:12bagain. It only downloads what changed. - Free disk space:
ollama rm gemma4:12bdeletes a model you no longer use.
Something went wrong?
“could not connect to ollama app, is it running?”
Ollama is not running. Open Ollama from your Applications folder, or run ollama serve in a new Terminal window and leave it open.
“command not found: ollama”
Close the Terminal window and open a new one. If it still fails, run the install command again.
“model requires more system memory”
The model is too big for your memory. Pick a smaller memory size at the top of this page and use that model. Close other big apps too.
“file does not exist” when you download
The model name is wrong, or Ollama is too old. Copy the command again from this page. Then update Ollama: run the install command again.
It is very slow
Run ollama ps. PROCESSOR should say 100% GPU. If it shows CPU, the model does not fit in memory. Pick a smaller model.
The computer freezes, or the fan is loud
The model uses all your memory. Stop it with ollama stop gemma4:12b. Then use a smaller one.
“address already in use” when Open WebUI starts
Another app uses port 8080. Run open-webui serve --port 8081, then open http://localhost:8081.
No models in the list at the top of Open WebUI
Ollama is not running. Start it, then reload the page.
Good to know
- Check your free disk space first. You need room for the model (a bit less than the memory it needs) plus about 4 GB for Open WebUI.
- The first answer is slow while the model loads. On a 16 GB Mac it took about 1.5 minutes. After that it is quick.
- Open WebUI uses port 8080. Other local AI servers sometimes use it too.
How to remove it
ollama rm gemma4:12bRemoves the model filerm -rf ~/.venvs/openwebuiRemoves Open WebUIrm -rf ~/Library/Caches/pipRemoves about 1.5 GB of saved downloadscurl -fsSL https://insidethemachine.ai/install/chat.sh | bashirm https://insidethemachine.ai/install/chat.ps1 | iexWindows PowerShell (not run by us)Plan, check, undo
Add -s -- plan to print every step and run nothing, verify to only check, rollback --yes to undo. Checked: the commands were run end to end by us. Run end to end by hand on an Apple M4 Mac with 16 GB on 2026-10-15.
Run end to end on an Apple M4 Mac with 16 GB on 2026-10-15. For Windows and Linux, see the box above.