Black Friday: Save 10% for life on all of our VPS plans, now through Cyber Monday

10% off on selected plans for as long as you keep the service · new orders · up to 10 uses per customer · ends Dec 1, 2026, 12:00 AM EST.

See plans
Guideschevron_rightServers

Servers · 8 min read · Updated

How to Self-Host Open WebUI with Ollama

To self-host Open WebUI with Ollama, install Docker on your server (and the NVIDIA driver and Container Toolkit if it has a GPU), then run the official ghcr.io/open-webui/open-webui:ollama image, which bundles both, with its port bound to the server itself. Open it through an SSH tunnel or behind Nginx with HTTPS, create the administrator account straight away, pull a model, and keep new sign-ups closed.

Our GPU Servers

GPU servers for Open WebUI and Ollama
PlanGPUTotal GPU memorySystem memoryPrice
Intel Core Ultra 9 285K w/ NVIDIA Tesla P4NVIDIA Tesla P4 · 8 GB8 GB192 GB$589.00/mo
NVIDIA DGX SparkNVIDIA DGX Spark · 128 GB128 GB128 GB$609.00/mo
AMD EPYC 7443P w/ NVIDIA RTX 3090NVIDIA RTX 3090 · 24 GB24 GB256 GB$659.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB192 GB$699.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 3050NVIDIA RTX 3050 · 6 GB6 GB256 GB$749.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB64 GB$789.00/mo
AMD Ryzen 9 9950X w/ NVIDIA RTX 5090NVIDIA RTX 5090 · 32 GB32 GB96 GB$829.00/mo
AMD Dual EPYC 7702 w/ NVIDIA RTX 5070NVIDIA RTX 5070 · 12 GB12 GB256 GB$859.00/mo
AMD EPYC 7702 w/ 4x NVIDIA RTX 30904× NVIDIA RTX 3090 · 24 GB each96 GB128 GB$929.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 16GB4× NVIDIA V100 · 16 GB each64 GB128 GB$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V100 32GB4× NVIDIA V100 · 32 GB each128 GB128 GB$1,059.00/mo
AMD EPYC 7443P w/ 4x NVIDIA V1004× NVIDIA V100—256 GB$1,189.00/mo
Intel Dual Xeon Platinum 8260 w/ 8x NVIDIA V1008× NVIDIA V100 · 32 GB each256 GB1 TB$1,319.00/mo
2x NVIDIA DGX Spark2× NVIDIA DGX Spark · 128 GB each256 GB256 GB$1,449.00/mo
AMD EPYC 9B14 w/ 2x NVIDIA RTX 50902× NVIDIA RTX 5090 · 32 GB each64 GB384 GB$2,639.00/mo
AMD EPYC 9355 w/ NVIDIA RTX PRO 6000NVIDIA RTX PRO 6000 · 96 GB96 GB768 GB$2,639.00/mo
AMD EPYC 9254 w/ 4x NVIDIA RTX 50904× NVIDIA RTX 5090 · 32 GB each128 GB384 GB$3,819.00/mo
Intel Dual Xeon Gold 6338N w/ 8x Intel Gaudi 28× Intel Gaudi 2 · 96 GB each768 GB1 TB$3,949.00/mo

The model has to fit in GPU memory to run at full speed; how much VRAM an LLM needs has the numbers for common sizes.

1. Prepare the Server

On Ubuntu 24.04, secure the server and install Docker. On a GPU server, also install the NVIDIA driver and Container Toolkit; without the toolkit, Docker cannot hand the GPU to the container.

2. Start Open WebUI and Ollama

openssl rand -hex 32        # copy the output for WEBUI_SECRET_KEY

docker run -d --name open-webui --restart always \
  --gpus=all \
  -p 127.0.0.1:3000:8080 \
  -v ollama:/root/.ollama \
  -v open-webui:/app/backend/data \
  -e WEBUI_SECRET_KEY=paste-the-key-here \
  ghcr.io/open-webui/open-webui:ollama

Leave out --gpus=all on a server without a GPU. Three details matter:

  • 127.0.0.1:3000 keeps the interface on the server itself. Docker publishes ports past ufw, so a plain 3000:8080 would put it on the internet (see why ufw does not block Docker ports).
  • The two volumes hold the models and every chat, user and setting. Never run it without them, and never delete them by accident: removing the volume removes everything.
  • A fixed WEBUI_SECRET_KEY: the docs say that without one, everyone is signed out each time the container is recreated.

3. Sign In and Add a Model

# on your own computer
ssh -L 3000:127.0.0.1:3000 [email protected]
# then open http://localhost:3000

Create your account at once: the first account becomes the administrator. Then download a model, either from the model selector in the interface or from the server:

docker exec -it open-webui ollama pull llama3.1:8b
docker exec -it open-webui ollama list

Pick the largest model that fits your GPU's memory with room to spare, and try a couple: quality and speed differ more between models than between settings.

4. Open It to Your Team With HTTPS

For more than one person, put it behind a domain with HTTPS. Point chat.example.com at the server and proxy it to 127.0.0.1:3000 with Nginx as in hosting a website on a VPS, keeping the WebSocket Upgrade headers, or add it as a host in Nginx Proxy Manager with Websockets Support on.

Before you do, open the Admin Panel's settings and make sure new sign-ups are off or set to need your approval, then add each person yourself.

Updates and Backups

Pull the same tag you run and recreate the container; the volumes keep everything:

docker rm -f open-webui
docker pull ghcr.io/open-webui/open-webui:ollama
# then run the same docker run command as in step 2

Back up the open-webui volume (chats and users) nightly; the ollama volume holds only models you can download again. To serve models to programs rather than people, see serving an LLM API with vLLM, to train your own model, see fine-tuning with Unsloth, and for AI agents that can use the same models, OpenClaw and Hermes Agent.

Common Questions

  • What is Open WebUI?

    A free, open-source chat interface for language models that you run yourself. It looks and works much like ChatGPT, with accounts, chat history, document uploads and model switching, and talks to Ollama for local models or to any OpenAI-compatible API.

  • Do I need a GPU?

    No, but it makes a large difference. A model that fits in GPU memory answers many times faster than the same model on the processor. On a CPU-only server, small models work and larger ones are slow; see running an LLM on a CPU server for what to expect.

  • Are my chats private?

    They stay on your server: Open WebUI stores chats, users and settings in its own Docker volume, and Ollama runs the model locally. Nothing is sent to an AI provider unless you add one as a connection yourself.

  • Can my team use it?

    Yes. Open WebUI has user accounts and roles, managed by the administrator. Keep new sign-ups off or pending approval, and add people yourself.

Plans and prices

GPU Servers

Dedicated servers with their own GPUs for private AI chat.

See all plans
  • Intel Core Ultra 9 285K w/ NVIDIA Tesla P4

    NVIDIA Tesla P4 · 8 GB GPU

    24 Cores · 192 GB RAM · 2x 3.84TB NVMe Gen4

    Los Angeles, CA (LA1) · 50 TB transfer · 25 Gbps

    $589.00/mo

  • NVIDIA DGX Spark

    NVIDIA DGX Spark · 128 GB GPU

    20 Cores · 128 GB RAM · 4TB NVMe Gen4

    Ogden, UT (UT1) · 50 TB transfer · 10 Gbps

    $609.00/mo

    Sold out
  • AMD EPYC 7443P w/ NVIDIA RTX 3090

    NVIDIA RTX 3090 · 24 GB GPU

    24 Cores · 256 GB RAM · 3.84TB NVMe

    Ogden, UT (UT1) · 100 TB transfer · 10 Gbps

    $659.00/mo

  • AMD Ryzen 9 9950X w/ NVIDIA RTX 3050

    NVIDIA RTX 3050 · 6 GB GPU

    16 Cores · 192 GB RAM · 2x 2 TB NVMe

    Ashburn, VA (ASH1) · Dallas, TX (TX3) · New York, NY (NY2) · Charlotte, NC (NC1) · Bend, OR (OR1) · Unmetered transfer · 1 Gbps

    $699.00/mo

Keep Reading

All guides