vLLM with Open WebUI

Open WebUI gives staff a chat interface over a self-hosted vLLM endpoint, and the work that matters is authentication on both services, network placement and sizing for concurrent interactive users.

On this page

How vLLM with Open WebUI gives staff a private chat interface

Staff want a chat tool, and the organization needs the prompts, documents and responses to stay in infrastructure it controls. Open WebUI connects to vLLM's OpenAI-compatible /v1 endpoints, so the chat interface runs in your environment and sends requests to a model server you operate. This page covers how to connect the two, how to put authentication in front of both, and how to size the pair for interactive users. vLLM is open source with no paid edition, so the cost sits in accelerator capacity, the surrounding infrastructure and the people who operate both services.

The integration itself is simple: Open WebUI needs the base URL of the vLLM server and the model name it serves. The harder decisions come after that. vLLM's own --api-key option does not cover every endpoint, and the vLLM security documentation recommends a reverse proxy that allowlists only the paths users need. Open WebUI offers SSO through OIDC and LDAP, role-based access control with groups, and API keys, so the design question is which identity source and which group model govern access to the chat interface and which governs direct calls to vLLM. Confirm that users cannot reach the model server around Open WebUI, and decide who may create API keys.

Sizing depends on concurrent interactive sessions, typical prompt and response length, and the model chosen, so it has to be measured rather than assumed. vLLM exposes Prometheus metrics at /metrics covering request counts, token throughput, latency and KV cache use, which give the evidence for that work. Open WebUI's scaling guide also requires PostgreSQL and shared Redis and file storage for multiple replicas, so a larger rollout adds stateful services to run. Ask your team or your partner to confirm the accelerator counts, storage and database sizing from a load test against your own user profile before you commit to hardware.

What you need before connecting Open WebUI to vLLM

Connecting Open WebUI to vLLM touches four things: the model server, the interface release, the database behind the interface and the network path between them. Settle each one before anyone signs in, because changes later affect every user's chats and settings.

A running vLLM server

Start the model with vllm serve and confirm that /v1/models and /v1/chat/completions answer from the host where Open WebUI will run. Chat completions only work when the model has a chat template or when you supply one with --chat-template, so test a short chat request before configuring the interface. Confirm the vLLM version against the current release list on GitHub, since minor releases ship about every two weeks and you should pin one version for the pilot.

Latest release in facts
v0.31.0
vLLM releases

Open WebUI release to pin

Pin an explicit Open WebUI image or package version instead of a floating tag. Open WebUI v0.12.3 was published on October 16, 2026, so test that release against your vLLM version before adopting it. Read the release notes for each upgrade, since the interface and its database schema change between versions and a rollback may not be simple.

Open WebUI releases

Install method

Choose one supported path: Docker or Docker Compose for a single host, Helm on Kubernetes, or pip with open-webui serve for a quick test. Single-host containers suit a pilot, while Kubernetes or Compose with separate services suits a shared deployment. Whichever you choose, keep the vLLM base URL and API key in configuration you manage, not typed into the interface by each user.

Open WebUI features

PostgreSQL for multiple instances

Plan PostgreSQL before running more than one Open WebUI instance. The scaling guide requires it instead of SQLite because SQLite does not handle concurrent writes from several processes well. Multiple replicas also need Redis for shared sessions and websocket state, and shared file storage so uploads and knowledge stay reachable from every replica. Ask your team who backs up and restores this database.

Scaling Open WebUI

Network paths and trust

Open WebUI must reach the vLLM endpoint over a network path you have approved, usually a private subnet or the same Docker or Kubernetes network. Confirm firewall rules, DNS names and whether the connection uses TLS. If you terminate TLS at a reverse proxy, issue the certificate for the name the interface uses and make sure Open WebUI trusts the internal certificate authority. Keep the vLLM server off public networks, since its own docs recommend allowlisting only user-facing endpoints at a proxy.

Certificates and secret handling

Decide where the vLLM API key and any TLS certificates live before deployment. Store them in your secrets manager or orchestrator secret store, then inject them as environment variables or mounted files. Rotate the key on a schedule you record, and remember that the vLLM --api-key option does not protect every endpoint, so it should sit alongside network controls rather than replace them.

Configuring the vLLM connection in Open WebUI

This sequence starts a vLLM server with an API key, registers its OpenAI-compatible endpoint in Open WebUI, and confirms that model listing and chat completions work from both sides before any staff user is onboarded.

  1. Confirm the vLLM server and network path

    The platform engineer confirms which host runs vLLM, which port it listens on, and that the Open WebUI container or host can reach it over the internal network. Keep the vLLM endpoint on a private network segment, since the vLLM security documentation expects nodes and services to sit behind network isolation rather than being exposed directly. Done means a test request from the Open WebUI host to the vLLM base URL returns an HTTP response, even if it is an authorization error at this stage.

  2. Start vLLM with an API key

    The engineer starts the server with vllm serve and the --api-key option so that endpoints under /v1 require a bearer token. The vLLM security documentation warns that this key does not protect every route, including /metrics and /health, so the key is a first layer only and a reverse proxy should later allowlist the user-facing paths. Store the key in your secrets manager and pass it to Open WebUI through its configuration rather than writing it into shared scripts. Done means an unauthenticated request to /v1/models is rejected and the same request with the key succeeds.

  3. Set a chat template where the model needs one

    Chat completions need a chat template. Many instruction-tuned models ship one with their tokenizer, but some do not, and the server will not serve the chat completions API without one. The engineer checks the model card and tokenizer files, and if no template is present, supplies one with the --chat-template option, taking it from the model's documented format and not from a guess. Done means a single chat completion request sent directly to /v1/chat/completions returns generated text instead of a template error.

  4. Verify the model list from the vLLM side

    Before touching Open WebUI, the engineer sends an authorized GET request to /v1/models with the API key and reads the returned model identifier. That identifier is the exact string Open WebUI must use, so record it in the change ticket. Done means the response lists the served model name, and the name matches what was passed when vLLM started. A mismatch here is the most common cause of an empty or broken model picker later.

  5. Add vLLM as an OpenAI-compatible connection

    An administrator signs in to Open WebUI with an admin account and adds an OpenAI-compatible connection in the admin connection settings. The base URL points to the vLLM server's /v1 path on the internal address, and the vLLM API key is entered as the connection key. Avoid using a shared personal account for this step, since the administrator's actions in the audit trail should be attributable. Done means the connection is saved without an error banner and Open WebUI reports that it reached the endpoint.

  6. Confirm the model appears in Open WebUI

    The administrator checks that the model identifier copied from the vLLM response appears in Open WebUI's model selector for a test user account, and that the model is enabled for the roles that should see it. Confirm this from a non-admin session, because admin views can show models that regular users cannot access. Done means the model is visible, selectable, and linked to the intended group or role.

  7. Run a test chat completion from each side

    The engineer sends a short test prompt through a direct request to /v1/chat/completions, then sends the same prompt through a new chat in Open WebUI. Both responses should come from the same model and complete without timeouts. Check the vLLM server logs and the /metrics output for a corresponding increase in request counts, which confirms the traffic really passed through vLLM. Done means the prompt returns text from both paths and the request appears in the server logs.

  8. Record the configuration and access rules

    The team records the base URL, the model identifier, the chat template source, the key storage location and the Open WebUI roles allowed to use the model in the runbook. Ask your security team to confirm which vLLM routes will be exposed to users and which will be blocked at a proxy, because the --api-key option alone does not cover every endpoint. Done means a second engineer can repeat the connection from the runbook and reach the same verified result.

How a staff request moves from browser to vLLM

A staff request starts in the browser, is sent to the sign-in provider for identity, then reaches Open WebUI on the user-facing side. Open WebUI calls the vLLM endpoint through a reverse proxy that allowlists only user-facing paths, and the vLLM server stays on the internal network. The metrics scraper reads /metrics from inside the trust boundary, so monitoring never needs to be exposed to users. Check each edge that crosses the boundary.

Request path from staff browser to vLLM, with the trust boundary between networks.

Choosing how staff sign in and how Open WebUI authenticates to vLLM

Staff reach Open WebUI through a browser, so the decision here is how their identities are verified and how their group membership reaches the application. Open WebUI documents single sign-on through OIDC and LDAP, and SCIM 2.0 for user and group provisioning, so the choice usually follows whichever directory your organization already treats as the source of truth. OIDC suits a central identity provider that handles MFA and conditional access, while LDAP suits teams whose accounts live in an existing directory and whose policies are already written against it.

  • OIDC for modern identity providers: Use it when a provider such as Keycloak, authentik or your corporate IdP already enforces MFA and session policy for other applications.
  • LDAP for directory-bound accounts: Use it when staff identities and group membership are maintained in a directory that other internal systems also query.
  • SCIM 2.0 for lifecycle: Provisioning keeps users and groups aligned with joiners and leavers, so removed staff lose access without a manual cleanup in Open WebUI.
  • Groups drive role-based access: Map directory groups to Open WebUI groups and per-resource permissions so model and knowledge access follows job function.
  • Local accounts as a fallback only: Confirm whether your deployment keeps a local administrator path and who holds it, since that path bypasses central MFA.

Before go-live, confirm the exact SSO and SCIM configuration keys and supported provider versions in the Open WebUI features documentation for your release, and test a deprovisioning case end to end.

Mapping identity groups and roles to Open WebUI and vLLM access

This table shows how identity provider groups flow into Open WebUI roles, how Open WebUI model access lines up with vLLM model names, and how the vLLM API key is held by a single service account. Read it top to bottom as the path a staff member's request takes, and confirm each claim name in your own identity provider before you write the mapping. The main takeaway is that vLLM's API key is a shared secret for the backend, so user-level control must live in Open WebUI and the proxy in front of vLLM.

Mapping pointWhat to configureWhat to confirm or watch for
Identity provider group claimPass a group claim from the OIDC or LDAP directory into Open WebUI at sign-inClaim names and group formats depend on the identity provider; confirm them in your environment before mapping
Open WebUI group membershipUse SCIM 2.0 or claim-based sync so each directory group maps to one Open WebUI groupConfirm whether your Open WebUI version provisions groups through SCIM, sign-in claims or both
Open WebUI role assignmentAssign roles such as admin, user and pending through role-based access control tied to groupsKeep administrator rights in a small, named group; review who can change model settings
Model access per groupGrant each Open WebUI group access only to the model entries it needsModel IDs in Open WebUI must match the names vLLM serves, including the value passed to --served-model-name
Connection to vLLMRegister the vLLM endpoint as an OpenAI-compatible provider in Open WebUIPoint the base URL at the proxy in front of vLLM, not at the raw vLLM port
vLLM API key holderOne service account key, stored as a secret and used only by Open WebUIDo not share this key with users; the vLLM --api-key option does not protect every endpoint
User identity at vLLMvLLM sees only the service account, so per-user attribution comes from Open WebUI logsConfirm that Open WebUI audit logging records user, model and time for each request
OffboardingRemoving a user from the directory group should revoke Open WebUI access and sessionsTest that a removed user cannot reach models through existing sessions or API keys

Securing both services so only staff reach the model

Open WebUI and vLLM each have their own access surface, and the model endpoint is the one most likely to be reached by mistake. The cards below cover the proxy rules, the endpoints that stay off user networks, identity and role settings, and the license terms that apply once the user count grows.

Allowlist only the /v1 routes

The vLLM --api-key option does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health, and the vLLM docs advise against relying on it alone. Put a reverse proxy in front of vLLM and allow only the /v1 paths that Open WebUI calls. Deny everything else by default, then test each denied path from a user network to confirm it returns an error.

vLLM security docs

Keep control endpoints off user networks

The /metrics, /health and /pause endpoints expose operational data or can stop serving, so they should be reachable only from monitoring hosts and administrators. Place the vLLM server on a network segment that Open WebUI can reach but staff workstations cannot. Confirm the segmentation with a request from a user subnet, and record which monitoring hosts are permitted to scrape metrics.

Require sign-in through the identity provider

Open WebUI documents SSO through OIDC and LDAP, and API keys are a separate credential that can bypass interactive sign-in if left open. Decide which login methods remain enabled, disable local sign-up for staff accounts, and review who holds API keys. Confirm with your identity team whether authenticator-app MFA can be enforced for every role, since MFA depends on how your identity setup is configured.

Open WebUI features

Limit administrator roles

Open WebUI provides role-based access control with groups and per-resource permissions, so administrative rights do not need to be granted broadly. Keep a short list of administrators, give model and knowledge management to named groups, and restrict who can change connection settings. Those settings hold the vLLM endpoint and key, so changes to them should be logged and reviewed.

Plan for the branding clause

Since v0.6.6, Open WebUI code is distributed under the Open WebUI License, which forbids altering or removing branding in deployments above 50 users in any rolling 30-day period unless the operator holds an enterprise license or written contributor permission. Count active users per rolling 30 days before rollout and decide early whether to keep the branding, buy an enterprise license or obtain written permission. Confirm the terms with the license text, since they govern your deployment.

Open WebUI License

Sizing vLLM for interactive users rather than batch jobs

Plan the vLLM capacity for interactive chat from concurrent users, not from total daily tokens. Chat through Open WebUI is latency sensitive: each user waits for the first token and then reads a stream, so a server that is fine for overnight batch jobs can feel slow with twenty people typing at once. Start by estimating how many users will be active at the same moment during a peak hour, how many of them will send a request at once, and how long a typical prompt and answer are for your staff. Open WebUI sends the conversation history with every turn, so long chats grow the prompt and the memory each request needs, and that growth is easy to underestimate.

Then measure what the server does under that load. vLLM exposes Prometheus-format metrics at /metrics, including request counts, token throughput, latency histograms and KV cache use. Watch the KV cache usage and the time-to-first-token and inter-token latency histograms while you replay a realistic mix of chats, because KV cache pressure is what usually forces requests to wait. Scrape these metrics from the vLLM server, not from Open WebUI, and keep the scrape endpoint off the staff network. The histogram buckets are configurable, so set them to cover the latency targets your users will judge the tool by.

GPU sizing and parallelism change the answer. Tensor parallelism splits one model across GPUs in a node and can make a larger model fit, but it adds communication on every token, so confirm the throughput and latency at your concurrency rather than assuming more GPUs means proportionally more users. Model size, precision, context length and the --max-model-len setting all determine how much KV cache remains for concurrent sessions. Ask your hardware and vLLM support contacts to confirm these interactions for your model and accelerator, and treat any sizing figure from a vendor or a blog as a starting point to test, not a commitment.

Common failures when Open WebUI and vLLM are joined

This table lists the failures teams most often hit when connecting Open WebUI to a vLLM endpoint and running both for staff. Each row gives the likely cause and the fix, so you can check your own setup against the list before users report problems. Read it as a pre-launch checklist as well as a troubleshooting reference.

FailureLikely causeFix
Chat completions fail for a modelThe model has no chat template, and vLLM needs one to serve the chat completions APIConfirm the model ships a chat template, or pass one with --chat-template when starting vllm serve, then retest a chat request
Open WebUI lists no models or returns 404The base URL in Open WebUI points at the wrong host, port or path, often missing the /v1 suffixSet the connection to the vLLM server's OpenAI-compatible base URL and test /v1/models from the Open WebUI host
Requests return 401 or 403The vLLM --api-key value is not sent in the Authorization header configured for the Open WebUI connectionStore the key in Open WebUI's connection settings, match it to the vLLM startup value, and confirm it is not stored as a stale copy
Users see errors after a second Open WebUI replica startsThe deployment uses SQLite, which does not handle concurrent writes from several processes wellMove Open WebUI to PostgreSQL before running more than one instance
Sessions drop or uploads disappear across replicasRedis is missing for shared sessions and websocket state, or file storage is local to one replicaAdd Redis as the shared state store and shared file storage reachable from every replica
vLLM endpoints reachable from outside the networkThe server is published directly, and --api-key does not cover endpoints such as /metrics, /pause or /invocationsPlace a reverse proxy in front of vLLM that allowlists only the endpoints users need, and keep vLLM on a private network
Slow or stalled responses under several usersCapacity was sized for one tester, with no measurement of concurrent interactive loadLoad test with realistic concurrent chats and watch vLLM's /metrics for queue depth and latency before opening access

Questions buyers ask before connecting Open WebUI to vLLM

What does it cost to connect Open WebUI to a self-hosted vLLM server?

The software is free to start with, but the cost comes from the parts you run: accelerator capacity for vLLM, the servers and storage for Open WebUI, PostgreSQL, Redis and shared file storage once you run several replicas, and the people who build and operate the stack. vLLM has no paid edition, and Open WebUI's enterprise license is quoted separately. The one-time costs are the build, the identity integration and the testing. The recurring costs are GPU hours or hardware upkeep, infrastructure, upgrades and support. Ask any partner for a quote that separates these lines and states what each one covers.

What drives the cost of this setup up or down?

Four things move the cost most:

  • Concurrent interactive users, which set how much GPU capacity vLLM needs for acceptable response times.
  • Replica count, since several Open WebUI replicas require PostgreSQL, Redis and shared file storage.
  • Identity scope, such as SSO through OIDC or LDAP, SCIM provisioning and MFA, each of which adds configuration and testing.
  • Document and retrieval features, which add a vector database and its storage, backups and access controls.

A single-instance pilot with local accounts is the smallest version of this work.

Can our own team connect Open WebUI to vLLM without a partner?

Often yes, if you have engineers who already run containers, reverse proxies and an identity provider. The connection itself is configuration: Open WebUI can use any OpenAI-compatible provider, so you point it at the vLLM endpoint. The harder work is the surrounding controls. vLLM's own --api-key option does not cover every endpoint, so you need a reverse proxy that allowlists only the paths users need, authentication in front of both services, and monitoring of vLLM's /metrics endpoint. A partner adds value mainly when you need that work documented and tested for a compliance review.

What does the work need from our team?

Plan for these inputs before the build starts:

  • A named owner for the GPU host, the vLLM version and the upgrade schedule, since vLLM ships minor releases about every two weeks.
  • An identity provider and a decision on SSO, group mapping and MFA.
  • Network placement for both services, with a rule that users reach only Open WebUI and the proxy, never the raw vLLM port.
  • Storage and database choices if you plan multiple replicas or document uploads.
  • Access to approve test users, sample prompts and acceptance criteria.

Without these inputs, most of the schedule slips on decisions rather than on configuration.

How long does a typical scoped engagement take?

No standard duration is published for this work, so the schedule should come from the written scope. It depends on the number of user groups, whether SSO and SCIM are in scope, the number of replicas, whether document retrieval is included, and how much testing and documentation your compliance team expects. Ask for a timeline with milestones for the environment, the vLLM connection, identity, testing and handover, and ask what is assumed about your existing infrastructure.

Does an Open WebUI enterprise license change the price?

Yes, if you need what it adds. Open WebUI's license terms forbid altering or removing its branding in deployments above 50 users in any rolling 30-day period, unless you hold an enterprise license or written contributor permission. Enterprise licenses also allow white-labeling and custom branding, with dedicated support options. Pricing is not published and is quoted after you contact Open WebUI's enterprise sales team with an expected seat count. Confirm the license position for your user count before the scope is signed, since it affects the budget line for the whole deployment.

What should we check before exposing the chat service to staff?

Confirm five things first. Users should authenticate at Open WebUI, and only the vLLM paths that Open WebUI uses should be reachable through the proxy. Administrative and metrics endpoints should stay on a private network. Open WebUI's role-based access control should map to your groups. Logging should cover sign-ins and administrative changes. Finally, the vLLM model must serve chat completions, which requires a chat template either bundled with the model or supplied with --chat-template. Test each item with real accounts before go-live.

How DeployOpen works on this

DeployOpen plans and deploys vLLM with Open WebUI inside your own infrastructure, so staff chat with models without traffic leaving your network. We start from written scope, build the connection and access layers in order, and hand over documentation and runbooks your team can operate.

How we scope

  • Confirm which vLLM endpoints Open WebUI will call and which model names staff will see.
  • Agree how SSO, SCIM provisioning and group roles map to your identity provider.
  • Size the user count, concurrent chat load and database and Redis needs before any build starts.

How we build

  • Connect Open WebUI to the vLLM OpenAI-compatible endpoint and verify chat completions for each model.
  • Place both services behind a reverse proxy that allowlists only the user-facing endpoints.
  • Configure PostgreSQL, shared file storage and Redis if you run multiple Open WebUI replicas.

How we hand over

  • Deliver the architecture, network placement and access-control documentation for both services.
  • Provide runbooks for adding models, rotating keys, updating images and reviewing audit records.
  • Walk your platform and security teams through the running system and the evidence it produces.

How we support

  • Support is fixed-scope at delivery, with ongoing support, upgrades and continuous testing available as a retainer.
  • Track Open WebUI and vLLM release changes so upgrades are planned against written scope.
  • Retest the access path and endpoint exposure after each upgrade or configuration change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.