Guides

Open WebUI on a VPS: Your Own Private ChatGPT (Step by Step)

Short answer: Rent a small Ubuntu server (a Hostinger KVM 2 is $7.03 a month with our link), install Docker, and run one Open WebUI command. Add your domain for HTTPS, then paste in an AI API key. It takes about 30 minutes. Open WebUI itself is free.

Get a Hostinger VPS

Open WebUI is a free chat app that looks a lot like ChatGPT. The difference is that it runs on your own server. You plug in the AI models you want, like GPT, Claude or a local model, and use them all from one place. Your chats stay on your server.

In this guide you put Open WebUI on a VPS (a computer you rent that stays on all day), give it your own web address with the padlock (HTTPS), and connect an AI model.

What you’ll have at the end

What you need before you start

You don’t install anything on your own computer. You do it all in your web browser.

How much it costs

What Price Notes
Open WebUI Free Open source. Free for small groups.
Hostinger KVM 2 VPS $7.03/mo ($168.72 for 24 months) With our referral link, checked Nov 10, 2026. Renews at $14.99/mo.
Domain Free for 1 year Comes with a 24-month Hostinger VPS
AI model Pay per use Billed by OpenAI, Anthropic or OpenRouter

When you use an API key, the AI runs on the AI company’s computers. So your server can be small. We pick KVM 2 (8 GB of memory) so there’s room for more users and other apps later.

Part 1: Get your server

Step 1: Open Hostinger’s VPS page with our discount

Hostinger VPS plans with the Referral code applied label circled under KVM 2

Click this button: Open Hostinger VPS plans

What you’ll see: 4 plan boxes. Under each price is a small label that says Referral code applied. That means our discount is on.

Stuck? If a box about cookies pops up, click Opt out. The page works the same.

Step 2: Click Choose plan under KVM 2

Hostinger VPS plans with the purple Choose plan button under KVM 2 circled

Find the second box. It’s called KVM 2. Click the purple button in it that says Choose plan.

What you’ll see: a page called Your cart.

Step 3: Leave the period on 24 months

Hostinger cart with the 24 months period box circled

Look at the box under Period, near the top left. Leave it on 24 months. That’s the lowest price.

What you’ll see: the total near the bottom, with REFERRALDISCOUNT under it.

Step 4: Click the Ubuntu tile

Hostinger cart with the Ubuntu tile under Plain OS circled

Scroll down to Choose what to install. The Plain OS tab is already open. Click the tile that says Ubuntu.

Ubuntu is the system your server runs, like Windows on a PC. It’s free.

Step 5: Pick Ubuntu 24.04 LTS

Ubuntu box in the Hostinger cart with the Version list set to Ubuntu 24.04 LTS circled

Click the list under Version. Pick Ubuntu 24.04 LTS. LTS means it gets safety updates for years.

Step 6: Click Confirm

Ubuntu box with the purple Confirm button circled

Click the purple Confirm button at the bottom right of the box. This only picks Ubuntu. You don’t pay yet.

What you’ll see: the box closes. The Ubuntu tile now has a purple border.

Step 7: Click Continue, then pay

Hostinger cart with Ubuntu picked and the purple Continue button circled

Click the big purple Continue button at the bottom. Make your Hostinger account (or log in), then pay with your card.

What you’ll see: Hostinger walks you through setting up the server. If it asks for a root password, make one. Root is the main admin account on your server. Save the password somewhere safe. Hostinger then builds your server. This takes a few minutes.

Part 2: Install Open WebUI

Step 8: Open the Web Console

In Hostinger, go to VPS and click Manage next to your server. On the Overview page, click Web Console.

What you’ll see: a new browser tab with a black screen and a line ending in #. That’s your server’s terminal (a text window where you type commands).

Stuck? If it asks for a login, type root and press Enter. Then type your root password and press Enter. The password stays invisible while you type. That’s normal.

Step 9: Install Docker

Copy this whole line. Click in the black terminal, paste it, and press Enter:

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

Docker is a free tool that runs apps in neat, sealed boxes. Open WebUI’s team says Docker is the way they recommend. This is Docker’s own install script.

What you’ll see: lots of text for 1 to 2 minutes. When the # line comes back, it’s done.

Stuck? If paste doesn’t work, try Ctrl+Shift+V on Windows or Cmd+V on a Mac. Or right-click and pick Paste.

Step 10: Make a secret key

Paste this and press Enter:

openssl rand -hex 32 > /root/webui-key

This makes a long random code and saves it in a file. Open WebUI uses it to keep you logged in.

What you’ll see: nothing new, just a fresh line. That’s fine.

Step 11: Start Open WebUI

Paste this whole command and press Enter:

docker run -d -p 127.0.0.1:3000:8080 -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY=$(cat /root/webui-key) --name open-webui --restart always ghcr.io/open-webui/open-webui:main

This downloads Open WebUI and starts it. Here’s what the parts do:

What you’ll see: download bars for a few minutes. The download is about 1.6 GB. At the end you see one long line of letters and numbers. That means it started.

Stuck? Type docker ps and press Enter. You should see open-webui in the list.

Part 3: Give it your own web address

Step 12: Point your domain at the server

Find your server’s IP address (a number like 123.45.67.89). It’s on the Overview page in Hostinger.

In your domain’s DNS settings, add an A record. Set the name to chat and the value to your server’s IP address. If your domain is at Hostinger, this is in hPanel under Domains, then DNS / Nameservers.

This makes chat.yourdomain.com lead to your server.

What you’ll see: the new A record in the list. DNS changes take from a few minutes to a few hours to work.

Step 13: Install Caddy

Back in the Web Console, paste this and press Enter:

apt update && apt install -y caddy

Caddy is a free web server. It shows Open WebUI to visitors and gets the padlock (HTTPS) for you, for free.

What you’ll see: text scrolls for about a minute. Then the # line comes back.

Stuck? If you see Could not get lock, Ubuntu is updating itself. Wait 5 minutes and paste the command again.

Step 14: Tell Caddy your address

Change chat.yourdomain.com to your real address first. Then paste this and press Enter:

printf 'chat.yourdomain.com {\n  reverse_proxy localhost:3000\n}\n' > /etc/caddy/Caddyfile && systemctl reload caddy

This tells Caddy to send visitors for your address to Open WebUI.

What you’ll see: nothing new. No news is good news here.

Part 4: Make your account and add a model

Step 15: Create the admin account

Open https://chat.yourdomain.com in your browser. The first visit can take a few seconds while Caddy gets the padlock.

What you’ll see: a screen that says Get started with Open WebUI. Click Create Admin Account. Type your name, email and a strong password.

Do this right away. The first account made is the admin. After that, sign-up turns itself off. Save your password. If you lose it, you get locked out of the settings.

Step 16: Open the Connections page

Click your picture or initials. Then click Settings, then Admin, then Connections.

What you’ll see: a section called Manage OpenAI API Connections.

Open WebUI has no AI models of its own. This is where you plug them in.

Step 17: Add your API key

Click the + next to Manage OpenAI API Connections. Type the provider’s address and paste your API key. Then click Save.

Provider Address to type
OpenAI https://api.openai.com/v1
OpenRouter https://openrouter.ai/api/v1

OpenRouter gives you hundreds of models, including Claude, with one key. Open WebUI’s docs also have a guide for connecting Anthropic’s Claude directly.

What you’ll see: Open WebUI finds the models on its own and lists them.

Check that it worked

Click New Chat in the top left. Pick a model from the list at the top. Type “Say hi in 5 words” and press Enter. If you get an answer, it works.

Now open the same address on your phone. Log in, and your chat is there too.

See Hostinger’s VPS plans

If something went wrong

The address doesn’t load. DNS hasn’t caught up yet. Wait 30 minutes and try again. Check that the A record name is chat and the value is your server’s IP.

You see a padlock error. Caddy couldn’t get the padlock yet, often because DNS isn’t ready. Wait, then paste systemctl reload caddy and press Enter.

The page says 502 or Bad Gateway. Open WebUI is still starting. Wait 1 minute. If it stays, type docker start open-webui and press Enter.

No models show up. The address or key in Step 17 is wrong. Check for extra spaces, and make sure your account with the AI company has money on it.

You turned on Hostinger’s firewall and nothing loads. Add rules that allow ports 80 and 443.

How to update Open WebUI

Paste these 2 lines, one at a time:

docker pull ghcr.io/open-webui/open-webui:main
docker rm -f open-webui

Then paste the command from Step 11 again. Your chats are safe. They live in the open-webui volume, not in the app itself.

Can I run local models with Ollama on a VPS?

Yes, but it needs a much bigger server. Ollama runs AI models on your own server instead of an AI company’s. Big models need lots of memory and run slowly without a graphics card (GPU). Hostinger’s VPS plans list AMD EPYC processors, not GPUs.

For most people, an API key gives better answers for less money. If you want to try local models, the KVM 8 has 32 GB of memory for $20.79 a month with our link (24 months, renews at $49.99).

FAQ

What is Open WebUI? A free, open-source chat app you run yourself. It works with OpenAI, Anthropic, OpenRouter, Ollama and other AI providers.

Is Open WebUI free? Yes. Its license keeps it free. Groups of 50 or fewer users can even change the branding. Bigger groups must keep the Open WebUI name, unless they meet one of the license’s exceptions.

What port does Open WebUI use? Inside Docker it uses port 8080. Most guides, including this one, map it to port 3000 on the server.

I forgot my admin password. What now? Open WebUI’s docs have a “Reset Admin Password” page with the steps.

Is Open WebUI better than LibreChat? Both are free chat apps you host yourself. Open WebUI is easier to start with one Docker command. Try it first, and switch only if it lacks something you need.

Can my family or team use it? Yes. Go to Settings, then Admin, then Authentication, and turn on New Sign Ups. New accounts wait for your OK in the Admin Panel.

Next: run an AI agent next to it with our Hermes Agent install guide. Want to know what hosting costs in general? Read VPS vs shared hosting.

Written by WebHostCompared on November 10, 2026. The commands follow Open WebUI’s and Docker’s official install docs. The Hostinger checkout screenshots are from our November 8, 2026 walk-through. Prices were checked live with our referral link on November 10. We have not yet run this exact setup end to end on a new server.

Sources