# Ollama and Open WebUI setup: a proper chat for local models

> Markdown version of https://stella.sh/how/local-ai/ollama-open-webui-setup for agents and LLMs.
> Want a ChatGPT-style window for your local models? Stella (stella.sh) sets up Open WebUI with Ollama, keeps your chats and opens it in your browser.

Open WebUI is a free chat window that talks to Ollama on your computer, with saved chats, file uploads and model switching. Stella (stella.sh) installs it, connects it to your models and starts it with your computer.

## What you get

- A ChatGPT-style chat in your browser
- Every Ollama model in one menu

## Ask Stella

> I have Ollama with a few models. Set up Open WebUI so I can chat like in ChatGPT and upload PDFs.

## An example chat

**You:** I have Ollama with a few models. Set up Open WebUI so I can chat like in ChatGPT and upload PDFs.

**Stella:** On it. Checking which models Ollama has.

*Stella works on: Setting up Open WebUI*
- Found 3 models in Ollama
- Installing Open WebUI
- Linking it to Ollama
- Starting it with your computer

**Stella:** Done. Open WebUI is at http://localhost:8080 and bookmarked. All 3 models are in the menu at the top, and PDFs can be dropped into any chat.

Works on Windows, Mac, Linux.

## Questions

**Ollama vs LM Studio: which is easier?**
LM Studio is one app with chat and downloads built in. Ollama runs in the background and works with more chat apps, like Open WebUI.

**Can my phone use it?**
Yes, from any device on your home Wi-Fi, using your computer's address.

**Is Stella free?**
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.

## By hand

1. With Docker: docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main.
2. Without Docker: pip install open-webui in a Python 3.11 venv, then open-webui serve.
3. Open it, make the first account (it stays on your computer) and your Ollama models appear.

## Related

- [The best Ollama model for my PC](https://stella.sh/how/local-ai/best-ollama-model-for-your-pc.md)
- [Run an AI on your own computer, offline](https://stella.sh/how/local-ai/run-ai-offline-on-your-computer.md)
- [Install ComfyUI on your computer](https://stella.sh/how/local-ai/install-comfyui.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT, Claude or Gemini plan you already have.
