Keenrig

Self-host Open WebUI with OpenAI or OpenRouter keys

Run Open WebUI on your VPS as a shared ChatGPT-style chat for your team, connected to OpenAI or OpenRouter with your own API key: RAM, setup, sign-ups, limits.

Open WebUI is a ChatGPT-style chat interface that a whole team can share: each person gets an account and their own history, and an administrator decides who can use which model. It is not a model. It talks to an API you already pay for — OpenAI, OpenRouter, Groq or anything that speaks the OpenAI API — or to an Ollama server. That is the appeal: you pay for what people actually use, not for a seat per person.

This guide puts Open WebUI on a small VPS with its own domain and HTTPS, connects it to OpenAI or OpenRouter, and opens it to your team without opening it to the whole internet.

What the server needs

  • Ubuntu 22.04, 24.04 or 26.04, on amd64 or arm64.
  • At least 2 GB of memory for Open WebUI itself: the embedding model used for document search runs inside the container. A 4 GB VPS leaves room for the system and one or two other apps.
  • No GPU. With a hosted API, the model runs at OpenAI or OpenRouter, not on your server. Running large models on a CPU-only VPS is not practical.
  • Ports 80 and 443 reachable from the internet, or a Keenrig Cloud tunnel if the machine sits behind CGNAT.

Step 1: install Keenrig and Open WebUI

curl -fsSL https://get.keenrig.com | sudo sh

The installer prints the admin address on your server’s IP and how to read the setup token for the first sign-in. That page uses a self-signed certificate, so the browser warns once; that is expected. In the admin panel, open the App Store, pick Open WebUI and press Install. Give it a domain such as chat.example.com, and point that name’s A record at the server; the certificate is obtained and renewed on the server. The catalog entry pins Open WebUI to one exact image (0.11.4 today), sets WEBUI_URL from the app’s domain, generates a random WEBUI_SECRET_KEY for this install, and turns telemetry off.

The first start takes a few minutes, because Open WebUI downloads its embedding model.

Step 2: create the admin account straight away

In Open WebUI, the first account created becomes the administrator, and sign-up then switches itself off. So open the app as soon as it is up and create your own account before anyone else can. If the domain is public, this is the one step not to postpone.

Step 3: connect OpenAI or OpenRouter

In current versions of Open WebUI the menu path is: your avatar → Settings → Admin → Connections. Under the OpenAI API connections, press Add Connection and enter a base URL and an API key, then Verify Connection and Save. Saving alone does not test the connection, so do press Verify.

  • OpenAI: base URL https://api.openai.com/v1, with an API key from your OpenAI platform account.
  • OpenRouter: base URL https://openrouter.ai/api/v1, with an OpenRouter key. One key reaches models from many providers.
  • Anything else that speaks the OpenAI API (Groq, a LiteLLM gateway, a local server): its own base URL and key.

With OpenRouter, Open WebUI’s docs recommend listing the model IDs you want instead of loading the whole catalogue, which is long. A short allowlist also keeps colleagues from picking the most expensive model by accident.

You can add several connections at once — OpenAI for one model, OpenRouter for the rest. The Ollama connection is off in the Keenrig entry because no Ollama runs next to it; turn it on in the same Connections screen if you run Ollama on another machine with a GPU.

Step 4: let your team in

To let colleagues register, turn on New Sign Ups under Settings → Admin → Authentication. New accounts then wait as Pending until an admin approves them, so a stranger who finds the URL gets nothing. You can also create the accounts yourself and leave sign-up off. Groups and model permissions in the same admin area decide who sees which model.

What it costs

  • Open WebUI: free. Keenrig Starter: free, with no limit on apps.
  • The VPS: as of 10 November 2026, a 4 GB Hetzner CX23 lists at €5.99/month excluding VAT; a 4 GB DigitalOcean Basic droplet at $24/month.
  • The API: billed by the provider per token. OpenRouter adds a fee when you buy credits (5.5% on its standard plan, per its pricing page on 10 November 2026), not on each request.

Whether this beats a per-seat chat subscription depends on how much your team uses it. Light users cost cents a month on an API; a few heavy users of top models can cost more than seats. Check usage in your provider’s dashboard after the first month rather than guessing.

What this setup does not do

  • It ships no model. Without an API key or an Ollama server, there is nothing to chat with.
  • Your prompts still go to the API provider you connect. Self-hosting the interface keeps accounts, history and uploaded documents on your server; it does not make OpenAI or OpenRouter private.
  • No single sign-on to Open WebUI from Keenrig; Open WebUI keeps its own accounts.
  • Licence: since v0.6.6 Open WebUI uses its own Open WebUI License (BSD-3-based with a branding clause). You may remove its branding only with 50 or fewer users in a rolling 30-day period, or with permission or an enterprise licence. Most small teams never notice; a company rolling it out to hundreds of people should read it.

The Open WebUI page in the Keenrig app catalog lists exactly what the entry sets up, including its pinned digest.