# Run Open WebUI with vLLM on a cloud GPU

To run Open WebUI with vLLM on a cloud GPU, vLLM serves an open-weight model through an OpenAI-compatible API and Open WebUI connects to that API as a browser chat interface; on NVIDIA Brev, the Open WebUI + vLLM Launchable starts both on one NVIDIA L40S 48GB GPU.

Updated: 2026-12-03

Published: 2026-11-16

## What do Open WebUI and vLLM each do?

vLLM is a model server. It provides an HTTP server that implements the OpenAI Completions API and Chat API, so any OpenAI-style client can send it requests ([vLLM OpenAI-compatible server](https://docs.vllm.ai/en/stable/serving/online_serving/openai_compatible_server/)).

Open WebUI (also written open-webui or OpenWebUI) is the browser chat interface. It does not run the model itself. The [vLLM Open WebUI guide](https://docs.vllm.ai/en/stable/deployment/frameworks/open-webui.html) connects the two by pointing Open WebUI's `OPENAI_API_BASE_URL` setting at the vLLM server, for example `http://0.0.0.0:8000/v1`, after starting vLLM with `vllm serve <model> --host 0.0.0.0 --port 8000`.

Open WebUI can also sit in front of Ollama instead of vLLM. To choose between the two model servers, read [Ollama vs vLLM](https://www.9owls.com/compare/ollama-vs-vllm/) or see the [Ollama + Open WebUI Launchable](https://www.9owls.com/launchables/ollama-open-webui/). For more chat and serving stacks, see [chat and model serving](https://www.9owls.com/topics/chat-and-model-serving/).

## How do vLLM and Open WebUI run together in Docker Compose?

The Launchable runs them as two Compose services on one instance, as of 2026-11-28:

| Component | Image | Role | Port | What persists |
|---|---|---|---|---|
| Open WebUI v0.13.3 | `ghcr.io/open-webui/open-webui:v0.13.3` | Browser chat interface | `8080` | Chats after stop and start: not yet tested; removed on delete |
| vLLM v0.33.0 | `vllm/vllm-openai:v0.33.0` | Serves `Qwen/Qwen3-8B` through an OpenAI-compatible API | Bound to the instance, not exposed publicly | Model cache survived stop and start in our 2026-12-03 test; removed on delete |

Two Open WebUI settings in the Compose file connect it to vLLM:

- `OPENAI_API_BASE_URL` is `http://vllm:8000/v1`, the vLLM service's address on the Compose network.
- `ENABLE_OLLAMA_API` is `false`, so Open WebUI does not look for an Ollama server.

## Do I need a GPU to run vLLM with Open WebUI?

Open WebUI does not need one: it is the chat interface and does not run the model. vLLM does the model work, and this Launchable gives it one NVIDIA L40S 48GB GPU.

| Setting | Default (as of 2026-11-28) |
|---|---|
| Model | `Qwen/Qwen3-8B` |
| GPU | 1x NVIDIA L40S 48GB |
| Instance type | AWS `g6e.xlarge` (default being switched from Crusoe `l40s-48gb.1x` on 2026-12-03) |
| Disk | 128 GiB |
| Price | about $2.23/hr for AWS g6e.xlarge (Brev CLI, 2026-12-03) |

A model's weights need about its parameter count times the bytes per weight. In 16-bit weights, an 8B model needs about 16 GB for the weights alone (1 GB = 1e9 bytes). The rest of the GPU memory holds the KV cache for active requests. To weigh the NVIDIA L40S against the NVIDIA L4, read [NVIDIA L4 vs L40S for LLM inference](https://www.9owls.com/compare/nvidia-l4-vs-l40s-for-llm-inference/).

## Can Open WebUI connect to multiple vLLM instances?

Yes. The [Open WebUI connection guide](https://docs.openwebui.com/getting-started/quick-start/connect-a-provider) says you can connect local model servers and cloud APIs to the same Open WebUI instance, with one connection per provider, added under Admin Settings, then Connections. Each vLLM server gets its own connection with its URL and API key.

- One connection per vLLM server, each pointing at that server's `/v1` address.
- Each connection has its own on and off switch ([Open WebUI: OpenAI-compatible servers](https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-openai-compatible/)).
- Two vLLM servers on one GPU each need their own memory share; see [the cache-blocks error](https://www.9owls.com/guides/vllm-cache-blocks-memory-error/).

## Can I run Open WebUI without Ollama?

Yes. Open WebUI connects to any server that implements the OpenAI-compatible API, according to [Open WebUI: OpenAI-compatible servers](https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-openai-compatible/). vLLM is one of them. This Launchable runs Open WebUI with vLLM only and sets `ENABLE_OLLAMA_API` to `false` (Compose file, read 2026-11-28).

## What did our test of Open WebUI with vLLM show?

We tested this Launchable on 2026-12-03 with `Qwen/Qwen3-8B`, vLLM v0.33.0 and Open WebUI v0.13.3: once on AWS `g6e.xlarge` with one NVIDIA L40S, and once on GCP `g2-standard-8` with one NVIDIA L4, which is not a default type. Each was one run on one day. Throughput is output tokens per second in total across parallel requests, measured on the instance with 256 output tokens per request.

| Check | AWS g6e.xlarge, 1x NVIDIA L40S | GCP g2-standard-8, 1x NVIDIA L4 |
|---|---|---|
| Time from launch to first chat answer | 20 min 07 s | 23 min 27 s |
| GPU memory in use while serving | 40331 of 46068 MiB | 19440 of 23034 MiB |
| Throughput, 1 / 4 / 8 parallel requests | 45.6 / 170.8 / 339.5 tokens/s | 16.7 / 63.0 / 124.9 tokens/s |
| Price while running (2026-12-03) | about $2.23/hr | $1.16/hr |

In our NVIDIA L4 test, vLLM ran with `--max-model-len 16384` and `--gpu-memory-utilization 0.90`. The model weights took 15.27 GiB, and the longest context vLLM accepted was 20,080 tokens.

Our earlier test of the sibling [Nemotron Chat Launchable](https://www.9owls.com/launchables/nemotron-chat/), which runs an NVIDIA Nemotron model with the same pairing on AWS g6e.xlarge with one NVIDIA L40S, recorded these values on 2026-11-15:

| Check | Recorded value (Nemotron Chat Launchable, 2026-11-15) |
|---|---|
| Instance | AWS g6e.xlarge, 1x NVIDIA L40S |
| Healthy after create | 17.5 minutes |
| Open WebUI health | `{"status":true}` |
| GPU memory in use | 40781 of 46068 MiB |
| Stop and start | Passed on the third start attempt; the first was refused while the instance was still stopping |
| After start | Model cache kept, Open WebUI healthy, chat answered |

Our 2026-12-03 test of this Launchable on GCP g2-standard-8 went differently after a stop and start. The section below explains what happened.

## How do I launch it and open the chat UI on NVIDIA Brev?

A Launchable is a reproducible, shareable environment configuration on NVIDIA Brev ([NVIDIA Brev Launchables](https://docs.nvidia.com/brev/latest/concepts/launchables.md)). For the full concept, read [what is a Brev Launchable?](https://www.9owls.com/guides/what-is-a-brev-launchable/)

1. Deploy the [Open WebUI + vLLM Launchable](https://www.9owls.com/launchables/open-webui-vllm/); the general flow is in [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/).
2. Open the instance details page in the NVIDIA Brev console and select the Access tab, which lists the connection information for exposed ports ([Brev console reference](https://docs.nvidia.com/brev/latest/guides/console-reference.md)).
3. Open Open WebUI on port `8080`.
4. Complete the browser authentication that the tunnel asks for on first access.
5. To call the vLLM API from your own machine, forward its port with the `brev` CLI, as described in [serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/).

## What survives a stop?

> **Warning:** The model cache in `/home/ubuntu/workspace` survived a stop and start in our 2026-12-03 test. On GCP g2-standard-8, a non-default type, the containers did not restart by themselves: run `sudo systemctl start docker-compose.service` after Start. The restarted service used the default model and an empty `HF_TOKEN`, so set a non-default model again after a restart. We have not yet tested whether chats survive a stop and start. Everything is removed when the instance is deleted.

On NVIDIA Brev, the three instance actions behave as follows ([Brev GPU instances](https://docs.nvidia.com/brev/latest/concepts/gpu-instances.md)):

- Stop releases the GPU and preserves data in `/home/ubuntu/workspace`; `/tmp` does not persist.
- Start tries to provision the same GPU type in the same provider and region and fails if capacity is unavailable.
- Delete removes the instance and all data and cannot be undone.

For the console and CLI steps, read [how to stop and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/).

## Where do I start?

- Deploy the [Open WebUI + vLLM Launchable](https://www.9owls.com/launchables/open-webui-vllm/).
- For an NVIDIA Nemotron model behind Open WebUI and vLLM, see the [Nemotron Chat Launchable](https://www.9owls.com/launchables/nemotron-chat/) and [serve NVIDIA Nemotron with vLLM](https://www.9owls.com/guides/serve-nvidia-nemotron-with-vllm/).
- If vLLM stops with `No available memory for the cache blocks`, read [what we saw on a shared GPU](https://www.9owls.com/guides/vllm-cache-blocks-memory-error/).
- For short answers about Launchables, read the [Brev Launchables FAQ](https://www.9owls.com/faq/brev-launchable-basics/).

## Built your own vLLM stack? Can NightKeeper package it as a Launchable?

NightKeeper packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running. Point NightKeeper at your repository, review the pull request whose GitHub Actions workflow smoke-tests the stack on a fresh NVIDIA Brev instance, then create the Launchable in the Brev console with the settings NightKeeper provides. Your Brev API key stays in your repository's GitHub secrets. NightKeeper never sees it.

[Create your Launchable](https://www.9owls.com/nightkeeper/start/) or [read about NightKeeper](https://www.9owls.com/nightkeeper/).

## Sources: where do these facts come from?

- [vLLM OpenAI-compatible server](https://docs.vllm.ai/en/stable/serving/online_serving/openai_compatible_server/), read 2026-11-16
- [vLLM Open WebUI guide](https://docs.vllm.ai/en/stable/deployment/frameworks/open-webui.html), read 2026-11-16
- [Open WebUI connection guide](https://docs.openwebui.com/getting-started/quick-start/connect-a-provider), read 2026-11-28
- [Open WebUI: OpenAI-compatible servers](https://docs.openwebui.com/getting-started/quick-start/connect-a-provider/starting-with-openai-compatible/), read 2026-11-28
- [NVIDIA Brev Launchables](https://docs.nvidia.com/brev/latest/concepts/launchables.md), read 2026-11-16
- [Brev console reference](https://docs.nvidia.com/brev/latest/guides/console-reference.md), read 2026-11-16
- [Brev GPU instances](https://docs.nvidia.com/brev/latest/concepts/gpu-instances.md), read 2026-11-16
- 9owls fresh-deploy test records for this Launchable on AWS g6e.xlarge and GCP g2-standard-8, 2026-12-03
- 9owls fresh-deploy test record for the Nemotron Chat Launchable, 2026-11-15

## How was this page made?

9owls published this page. The versions, defaults and price come from the Launchable's own records, with the dates shown. The test values come from our fresh-deploy tests of this Launchable on 2026-12-03 and of the Nemotron Chat Launchable on 2026-11-15. The Open WebUI and vLLM facts come from their own documentation, read on the dates in the list above. Found an error? Tell us on the [company page](https://www.9owls.com/company/#contact).

What changed on 2026-11-28: added the Compose layout, answers on GPU need, several vLLM servers and running without Ollama, our recorded test values, the dated price and the link to the cache-blocks error page.

What changed on 2026-12-03: added our tests of this Launchable on AWS g6e.xlarge and GCP g2-standard-8, corrected what survives a stop and start, and updated the default instance type and price.

## Related pages

- [Open WebUI + vLLM](https://www.9owls.com/launchables/open-webui-vllm/)
- [Serve an OpenAI-compatible API with vLLM](https://www.9owls.com/guides/serve-an-openai-compatible-api-with-vllm/)
- [Ollama vs vLLM](https://www.9owls.com/compare/ollama-vs-vllm/)
- [Stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/)
- [Chat and model serving](https://www.9owls.com/topics/chat-and-model-serving/)
- [Nemotron Chat with Open WebUI and vLLM](https://www.9owls.com/launchables/nemotron-chat/)
- [vLLM No available memory for the cache blocks on a shared GPU](https://www.9owls.com/guides/vllm-cache-blocks-memory-error/)

[All guides](https://www.9owls.com/guides/)
