Self-host Ollama
AI Chat InterfacesLightweight 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
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.
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
Install with Docker Compose
Save this as compose.yml and run docker compose up -d:
# 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 modelWhat you take on
Ollama is a model server, and treating it like a finished product is where people trip: