When Open WebUI with pip on virtual machines fits
A platform team that cannot run containers can still host Open WebUI on virtual machines. The pip install open-webui followed by open-webui serve route is one of the official install methods, so the software itself is not the obstacle. What changes the requirements is how many instances serve users at the same time. A single VM with one open-webui serve process, a locally attached SSD or NVMe volume for the data directory, and a small, stable user base can run on the default SQLite database. The scaling guide accepts SQLite in that narrow case, but only when the database file sits on local storage rather than network storage, and it is not a path for a shared company deployment that expects growth.
Shared state becomes mandatory as soon as the auto-scaling group runs more than one instance. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. It also needs Redis for sessions, websocket connections and application state, and shared file storage so uploads and knowledge stay reachable from every instance. Confirm with your own design whether instances scale out and in during business hours, because a scale-in event that removes a node holding in-flight websocket connections will drop those sessions unless Redis holds the state.
Before you commit to VMs, check three things with your team. First, decide whether the scaling group is needed at all, or whether a fixed pair of VMs behind a load balancer meets the load profile. Second, confirm that the vector store you plan to use is external, because the scaling guide warns that the default ChromaDB will crash in multi-process setups. Third, confirm how your identity and session policy works, since without Redis, signing out does not revoke tokens and they remain valid until they expire, by default after 4 weeks. If those answers point to several instances, plan PostgreSQL, Redis, shared storage and an external vector database as part of the same design.
How VMs, PostgreSQL, Redis and storage connect
The diagram starts at the load balancer, which sends each user request to one of several VMs in the auto-scaling group, each running open-webui serve under systemd. Every VM reads and writes the same PostgreSQL database and Redis instance, and shares file storage for uploads and knowledge, so any replica can serve any user. An external vector database replaces the default ChromaDB, and model provider endpoints sit outside the boundary. Check that Redis is reachable from every VM, because without it sign-out does not revoke tokens.
Shared state lives outside the VMs, so replicas can be added or removed.
Which configuration fits which VM layout
This table compares three ways to run open-webui serve on virtual machines: one VM with SQLite on local SSD or NVMe, one VM with PostgreSQL, and an auto-scaling group with shared state. Read each row against your user count, your availability target and the failure mode you can tolerate, then choose the simplest layout that covers all three.
| Layout | Fits when | Requires | Main failure mode |
|---|---|---|---|
| Single VM, SQLite on local SSD or NVMe | One replica for evaluation, a pilot or a small team, with the database file on locally attached storage | Database file on local SSD or NVMe, not network storage, plus local backups of the data directory and secret key | Loss of the VM or its disk takes the instance down, and restoring from backup means downtime; network-attached SQLite files risk corruption |
| Single VM, PostgreSQL | One replica for a larger team that needs a database with proper backups and independent sizing | PostgreSQL reachable from the VM, tested backups, persistent data directory for uploads, and a pinned secret key | The VM is still a single point of failure, and a misconfigured connection string or migration can stop logins for everyone |
| Auto-scaling group with PostgreSQL, Redis and shared storage | Several replicas are required for capacity or availability and the team can operate shared services | PostgreSQL, Redis for sessions, websocket and application state, shared file storage, and an external vector database, with identical configuration on every instance | Without Redis, sign-out does not revoke tokens; the default ChromaDB can crash under multiple workers; scaling out without shared storage makes uploads unreachable from some replicas |
| Reconfiguration before scaling | You plan to move from one VM to several, or to add a second worker process | Migration from SQLite to PostgreSQL, a move of files to shared storage and an external vector store configured before the second instance starts | Skipping the migration leaves data split across instances, and a rolling restart can start replicas that disagree on settings |
Setting up the VM image and systemd service
This sequence turns a base Linux VM into a repeatable Open WebUI image that starts under systemd, connects to shared PostgreSQL, Redis, storage and an external vector database, and passes a health check before it joins the auto-scaling group. The result is an image or cloud-init recipe that produces identical instances every time.
Pin the Open WebUI version
Choose the exact release you will run before installing anything. The latest release supplied for this page is v0.12.3, published on the project's GitHub releases page on October 16, 2026, following v0.12.0 on October 10 and v0.11.0 in July. Record the version in your build pipeline so every instance installs the same package. Confirm the release notes and any upgrade steps on the GitHub releases page before you pin it, and confirm the license that applies to that version. Done means the chosen version is written into your image definition or cloud-init file and nowhere else is it left floating.
Create the Python environment
On the base VM, create a dedicated service account and a virtual environment owned by that account, outside any user home directory. Use a Python version that the pinned Open WebUI release supports, and confirm that version in the release documentation before you build. Keep the environment in a fixed path such as an application directory so the systemd unit can reference it without ambiguity. Done means the environment activates, the service account cannot log in interactively, and the interpreter version matches what you recorded in step one.
Install open-webui with pip
Inside the environment, install the pinned release with pip using the exact version string, then confirm the entry point exists. The official pip method is pip install open-webui followed by open-webui serve, so the build should use the same command the service will run. Store the resolved dependency list as a lock or constraints file in your build artifacts, so a later rebuild cannot pull in different transitive packages. Done means the open-webui command runs, reports the pinned version, and the constraints file is saved with the image build record.
Point the environment at shared services
Configure the instance with environment variables that reference the shared PostgreSQL database, the Redis store, the shared file storage path and an external vector database. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, Redis for shared sessions, websocket connections and application state, and shared file storage so uploads and knowledge reach every replica. The guide also warns that the default ChromaDB crashes in multi-process setups, so the vector store must be external. Keep credentials out of the image and load them at boot from your secrets manager. Done means a test connection from the VM to each service succeeds with the service account.
Write the systemd unit
Create a unit file that runs open-webui serve from the environment, under the service account, with the environment file loaded and automatic restart enabled. Set the working directory and make sure the storage mount is present before the service starts, so the process never writes to a local path that other replicas cannot see. Enable the unit so it starts on boot, then start it once manually. Done means systemctl status reports the unit as active, the logs show the application listening, and a restart leaves the service healthy.
Bake the image or configure cloud-init
Decide whether instances start from a baked machine image or from cloud-init user data that installs the pinned version at boot. A baked image starts faster and gives every instance identical bits, but needs a rebuild pipeline for each release. Cloud-init keeps the base image small but makes each new instance depend on package downloads during boot, so the auto-scaling group must tolerate slower startup. Either way, put the systemd unit and the pinned version in the same versioned artifact. Confirm with your platform team how the group replaces instances during an upgrade. Done means one versioned artifact produces every instance in the group.
Check health on each new instance
Before the group routes traffic to a new instance, confirm that the service is running and that it reaches the shared dependencies. Query the Open WebUI health endpoint on the instance, check that the service logs show successful database and Redis connections, and confirm that a test upload writes to shared storage and is readable from a second instance. Verify that a sign-out on one instance revokes the session on another, which only works when Redis is in place, since without Redis tokens stay valid until they expire, by default after 4 weeks. Done means the instance passes all four checks and the load balancer marks it healthy.
Security and operational controls for VM fleets
A pip-installed Open WebUI fleet on virtual machines depends on a small set of shared controls: credentials, network placement, identity, logs and backups, and how instances leave the group. Each card below covers one of them, and together they determine whether replacing an instance is routine or quietly logs users out or loses uploads.
Secret key and database credentials
Every replica must run with the same secret key, or sessions issued by one instance will not validate on another. Keep the key and the PostgreSQL password in an environment file owned by root, readable only by the service account, and referenced from the systemd unit with EnvironmentFile=. Confirm that the key is set explicitly rather than generated per host, and rotate credentials through the file so the unit definition never contains a secret. Ask whether your secrets manager can render that file at boot.
Network placement of data services
PostgreSQL, Redis and shared storage should sit on a private subnet that only the Open WebUI instances and administrative bastions can reach. Open WebUI replicas should not have a public address, and the load balancer should be the only inbound path. Verify that security groups or firewall rules allow Redis and PostgreSQL ports only from the application subnet, and that outbound model traffic leaves through a controlled egress route you can log.
SSO and role-based access
Configure OIDC or LDAP and SCIM 2.0 provisioning before users arrive, so group membership drives access rather than manual accounts. Set the default role for new sign-ups deliberately, restrict who can create models and tools, and decide which groups can reach administrative settings. Check the configuration on a test replica first, because a misconfigured identity provider on an auto-scaled fleet affects every instance at once.
Open WebUI featuresLogging and backups
Send systemd journal output and Open WebUI application logs to a central collector, because instances in a scaling group are short-lived and local logs disappear with them. Back up the PostgreSQL database on its own schedule, and test restores rather than assuming them. Confirm where uploads and knowledge files are kept, since a backup that omits the shared file store cannot restore a working knowledge base.
Session revocation with Redis
Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Shared Redis is therefore a security control as well as a scaling requirement. Confirm that Redis is reachable from every instance, that its persistence and authentication settings match your policy, and that a Redis outage is part of your incident runbook, since sign-out behavior and websocket state depend on it.
Scaling Open WebUIScale-in and instance replacement
Scale-in can terminate an instance while users hold websocket connections or while a file is mid-upload. Set a drain period on the load balancer, avoid storing uploads or knowledge on instance disks, and confirm that replacement instances pick up the same secret key and environment file. Test a forced termination during an active chat and an upload, and record what users see so the behavior is known before production traffic depends on it.
Rolling out upgrades across an auto-scaling group
Replace instances rather than upgrading them in place. On a pip-based virtual machine, the temptation is to run pip install --upgrade open-webui on each host and restart the open-webui systemd unit. In an auto-scaling group that approach drifts quickly, because each instance keeps its own Python environment, its own cached packages and its own history of partial upgrades. Build a new machine image or launch template that pins the target version, start new instances from it, pass health checks against the shared PostgreSQL, Redis and file storage, and then drain and terminate the old instances. Keep the previous image available so you can roll back by launching instances from it.
Every replica must run the same version at all times. During a rolling replacement, old and new instances will briefly serve the same users, so confirm with the upgrade notes for the target release that the database schema changes and session handling are compatible across the two versions before you start. Pin the exact version in your image build, record it in your change log, and check that all instances report the same version after the rollout completes. Ask your team to confirm how migrations run on first startup, since a new instance that migrates a shared database can affect older instances still running.
Read the release notes for every version between your current release and the target before you roll out. Releases are published on the project's GitHub releases page, and the most recent examples supplied are v0.11.0 in July, v0.12.0 on October 10 and v0.12.3 on October 16, so a jump across several versions covers several sets of changes. Check the license as well: code from v0.6.6 onward is distributed under the Open WebUI License, which restricts altering branding in deployments above 50 users in any rolling 30-day period, and the license terms apply to every replica you launch. Confirm the terms with your legal or procurement team before you scale a deployment past that threshold.
Limits to confirm in your environment
Running Open WebUI from pip on VMs puts more of the design on your side than a container image does. The cards below cover the places where a default, a dependency or a threshold can break a setup that worked in a test, and what to confirm before you commit to a build.
Vector store must be external
The scaling guide warns that the default ChromaDB will crash in multi-process setups, so running several workers or replicas requires an external vector database. Decide which store you will run, such as PGVector on the shared PostgreSQL or Qdrant, before the systemd units are written. Confirm that the store is reachable from every VM in the scaling group and that each worker is configured to use it.
Scaling guidePip dependencies on your OS
The pip install path pulls a large Python dependency tree, and that tree depends on the Python version and system libraries on each image. Confirm the Python version your base image ships, pin it in the image build, and test the install on the exact OS release your auto-scaling group uses. A build that works on a developer laptop can fail on a hardened VM image.
Websocket survival at the load balancer
Streaming responses and live session state depend on websocket connections that stay open through the load balancer. Check the idle and request timeouts on your load balancer and any proxy in front of it, and confirm that the upgrade headers pass through. A timeout shorter than a long model response will cut conversations mid-answer, and the failure can look like a model fault to users.
Network storage for the file path
Uploads and knowledge files must be reachable from every replica, so the file path usually sits on shared storage. Measure the latency and throughput of the mounted storage under concurrent uploads and retrieval, because slow shared storage shows up as slow document processing. Do not place the SQLite database on network storage, since the scaling guide allows SQLite only on locally attached SSD or NVMe for single-replica use.
The 50-user branding threshold
Under the Open WebUI License, deployments that exceed 50 users in any rolling 30-day period may not alter or remove Open WebUI branding unless the operator holds an enterprise license or written contributor permission. Count active users per rolling window, not only seats, and decide before rollout whether branding changes are needed. Enterprise licenses are quoted after contacting enterprise sales with an expected seat count.
License termsLoad tests in your own environment
Published guidance describes the architecture but cannot predict how your model servers, network, storage and identity provider behave under your user pattern. Run load tests that mirror real chat length, concurrent streaming sessions, uploads and retrieval queries against the full VM stack. Record connection pool usage, token revocation behavior after sign-out, and failure modes, then repeat the test after each Open WebUI upgrade.
Questions buyers ask before choosing VMs or a partner
What drives the cost of a VM build for Open WebUI?
The cost follows the number of components you must build and test: application VMs in the auto-scaling group, a PostgreSQL service, a Redis service, shared file storage, an external vector database, the reverse proxy and the systemd, image and configuration automation that ties them together. Each component adds build time and test cases. Your own team pays for internal hours, while a partner bills against a written scope. Ask any quote to list each component separately, the environments covered (dev, test, production), and the testing included, such as failover and restart checks.
How long does a VM build take, and what changes the answer?
Duration depends on scope rather than on a fixed number. The main drivers are how many of the shared services already exist, how much of the identity and network approval work is done before the build starts, whether the team needs to build the VM image pipeline from scratch, and how much testing the client requires before go-live. Existing PostgreSQL, Redis and object storage shorten the schedule. Approval cycles in your change process often take longer than the technical work, so ask for a timeline that shows those dependencies separately.
What access does the work need from our environment?
Plan for network paths from the VMs to PostgreSQL, Redis, the vector database, the model endpoints and the identity provider, plus load balancer health check access. Identity needs a service account or client registration for SSO, and storage needs a mount or bucket with write access for the application user. Ask for a non-production environment first, a secrets store the build can read from, and an access path for logs and metrics. Confirm each item with your network, identity and storage owners before the build starts.
Can our internal team build this without a partner?
Yes, if your team already runs Linux VMs, systemd services, PostgreSQL, Redis and an auto-scaling mechanism in your environment. The skills that usually decide the outcome are database and cache operations, reverse proxy and WebSocket configuration, secrets handling, and release management for a Python application that Open WebUI upgrades regularly. Check whether the team has done a rolling upgrade across replicas before. A partner can cover the gaps as a fixed-scope engagement, or run a review of an internal build.
Does an Open WebUI enterprise license change how we operate the VMs?
The license changes branding and support terms, not the build. The Open WebUI License forbids altering or removing branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Enterprise licenses allow white-labeling and custom branding with dedicated support options. Pricing is not published and is quoted after contacting enterprise sales with an expected seat count. Ask the vendor whether the license covers your user count before you finalize the design.
What recurring work remains after go-live?
Recurring work includes applying Open WebUI releases, checking the release notes for changes to the license or configuration, rotating secrets, reviewing logs and capacity, testing restores of PostgreSQL and file storage, and rebuilding the VM image when the operating system is patched. Confirm the upgrade procedure before go-live, since rolling replicas during an upgrade is where scaled setups often fail. Retainers can cover upgrades, monitoring and continuous testing, and the quote should show each recurring item separately.
Why does the build need PostgreSQL, Redis and shared storage instead of local disks?
Multiple replicas share sessions, websocket state and uploads, so each VM must reach the same services. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. The default ChromaDB can crash in multi-process setups, so an external vector database is required when running several workers or replicas.
Where the official guidance sits
Before you design the VM build, confirm each requirement against the exact Open WebUI version you intend to pin. The scaling guide is the primary reference for multi-instance setups: it states that PostgreSQL replaces SQLite when more than one instance runs, that Redis is needed for shared sessions, websocket connections and application state, and that uploads and knowledge must be reachable from every replica. Read it in full with your pinned version open, because the wording on storage and vector database expectations is what your auto-scaling design has to satisfy. The Open WebUI scaling guide is the natural starting point.
The Open WebUI features documentation covers the pip install path, the open-webui serve entry point and the settings that matter for a shared deployment, including SSO, SCIM provisioning, group-based access control and retrieval options. Treat these pages as the source for configuration keys and environment variables, not a memory from an earlier release. Record the version and the date you checked each item, because the project publishes releases frequently and defaults can change between them. Note any requirement the documentation leaves unclear and raise it with the vendor or in a test environment before it reaches your launch template.
Build a short checklist from both pages and assign an owner to each line: database, Redis, file storage, vector store, token lifetime and proxy behavior. Re-run that checklist whenever you move to a new pinned version, since the upgrade path can change what the scaling requirements look like. Keeping the checklist in the same repository as your systemd units and launch template makes the review part of the normal change process rather than a separate audit exercise.
How DeployOpen scopes and delivers VM-based Open WebUI
DeployOpen plans, builds, documents and supports Open WebUI on pip-installed virtual machines inside your own infrastructure. The work starts with a written scope covering the systemd service, shared PostgreSQL, Redis, file storage, the reverse proxy and the identity setup, so your team knows what is delivered before the build begins.
How we scope
- Written scope lists the VM image, systemd units, Python version and pinned open-webui release for your environment.
- Scope covers shared PostgreSQL, Redis, file storage and the external vector database each replica will use.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts and a quote following from that scope.
How we build
- Build installs open-webui with pip, then configures the systemd service to run open-webui serve on each instance.
- Configuration sets the shared database, Redis, storage and secret key so every instance in the group uses the same state.
- Testing checks session sign-out, websocket behavior, file uploads and failover between instances before handover.
How we hand over
- Handover includes the auto-scaling group image process, configuration files, service units and runbooks for your operators.
- Documentation records the upgrade steps, the license obligations for your user count and the recovery procedure for each component.
- Your team receives access review notes and evidence that supports compliance assessments, which independent auditors still perform.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainer work can cover planned Open WebUI releases, dependency changes and re-testing of scaling behavior.
- Confirm response expectations and service levels in the written retainer terms, since they are not set in this page.

