Skip to content

Self-host LobeHub

updated Sep 2026prices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →

An AI chat and agent workspace, formerly LobeChat, that connects to OpenAI and many other model providers and supports plugins. The self-hosted server edition keeps its data in PostgreSQL, with Redis and S3-compatible storage (RustFS) alongside. Its community license is Apache-2.0 based, but distributing derivative works needs a commercial license.

Key facts

LicenseLobeHub Community License
StackTypeScript, Next.js, PostgreSQL
Min RAM2048 MB
Official imageyes
Measured idle RAM718 MB
Difficulty

What you need

  • Any VPS with at least 2048 MB of RAM
  • A domain you control — most self-hosted setups need HTTPS in front of them
  • Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + US
Get Hetzner Cloud (opens in new tab)
Kamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + Asia
Start free on Kamatera → (opens in new tab)
DigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + Asia
Deploy on DigitalOcean → (opens in new tab)

Paid link — we earn a commission if you shop through it.

Install

Run these commands on your server:

# LobeHub (formerly LobeChat) — official setup script (lobehub.com/docs → Deploying with Docker Compose)
mkdir lobehub && cd lobehub
# the script asks questions; "1" picks Port mode (http://IP access) and the other prompts keep their defaults:
# it downloads the Compose file, writes .env with generated secrets and initialises PostgreSQL
printf '1\n' | bash <(curl -fsSL https://lobe.li/setup.sh) -l en --host SERVER_IP
docker compose up -d
# setup.sh keeps the template's fixed POSTGRES_PASSWORD in .env: never expose 5432, and change it before storing real data
# →  http://SERVER_IP:3210 (RustFS S3 on 9000/9001, agent gateway on 8787/8788 must be reachable too;
# the upstream file also publishes Postgres 5432 and Redis 6379 — firewall those)

An alternative to

Head-to-head

More in AI Chat Interfaces

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.