Self-host LobeHub
updated Sep 2026deployed by usprices 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
CategoryAI Chat Interfaces
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 + USKamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + AsiaDigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + AsiaPaid 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
AI Chat Interfaces
AnythingLLM
JavaScriptNode.jsReact
easyRead guide →
AI Chat Interfaces
Jan
Go
moderateRead guide →
AI Chat Interfaces
LibreChat
TypeScriptReactNode.jsMongoDB
moderateRead guide →
AI Chat Interfaces
LocalAI
Go
easyRead guide →