Skip to content

Self-host Ollama

updated Aug 2026prices checked · Jul 2026Install verified on Ubuntu 26.04 · Jul 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →

Lightweight local model runner and OpenAI-compatible API server for downloading and serving open LLMs on your own hardware, with optional NVIDIA/AMD GPU acceleration — CPU-only also works for smaller models.

Key facts

LicenseMIT
StackGo, C++
Min RAM8192 MB
Official imageyes
Difficulty
Our recommendation

Reach for Ollama when you want the simplest way to download and serve open LLMs on your own hardware — one command pulls a model and exposes an OpenAI-compatible API on port `11434`. It's the de facto local-model runtime and the easiest thing in this roster to start (difficulty 1). It's a backend, not a chat app: pair it with Open WebUI or LibreChat for a UI. If you also need image or voice models, LocalAI covers more model types.

Follow the Ollama deploy guide →

What you need

  • Any VPS with at least 8192 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + US
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install

Run these commands on your server:

# Ollama — official CPU container (add --gpus=all for NVIDIA)
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
docker exec -it ollama ollama run llama3.2  #  pull + chat with a model

What you take on

Ollama is a model server, and treating it like a finished product is where people trip:

non-negotiableIt's a runtime, not a server UI. Ollama gives you an API and a CLI (its macOS/Windows app adds a basic chat window, but a Linux server gets none) — you'll run a front end like Open WebUI on top, or drive it from your own code.
non-negotiableRAM is the real floor. The 8 GB minimum is for small quantized models; larger ones want far more, and CPU-only inference is slow — a GPU is what makes local models feel responsive, and that's the honest cost.
non-negotiableModels carry their own licences. Ollama itself is MIT, but each model you ollama pull has its own terms (Llama's community licence, Gemma's, and so on) — check them before any commercial use.

An alternative to

Head-to-head

More in AI Chat Interfaces

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.