[{"data":1,"prerenderedAt":124},["ShallowReactive",2],{"seo-verification":3,"blog-how-to-host-lobe-chat-on-a-vps-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"slugs":9,"title":12,"excerpt":13,"readTime":14,"views":15,"isPinned":16,"publishedAt":17,"category":18,"categories":24,"featuredImage":26,"bgImage":27,"posterImage":28,"relatedSolution":26,"intro":29,"sections":30,"ctaTitle":73,"ctaBody":74,"ctaButton":75,"ctaUrl":76,"relatedPosts":77},14,"how-to-host-lobe-chat-on-a-vps",{"fr":10,"en":8,"ar":11},"heberger-lobe-chat-vps","كيفية-استضافة-lobe-chat-على-خادم-vps","How to Host Lobe Chat on a VPS","Deploy Lobe Chat on a Cloud VPS: a modern multi-model AI interface, plugins and voice synthesis, in a few Docker commands.",3,0,false,"2026-06-06T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},1,"Artificial Intelligence","intelligence-artificielle","bg-purple-500\u002F10 text-purple-400","ia",[25],{"id":19,"name":20,"slug":21,"color":22,"icon":23},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fheberger-lobe-chat-vps-poster.svg","Lobe Chat is an open source AI conversation interface with a polished design, capable of connecting OpenAI, Claude, Ollama and many other providers behind a single window. Self-hosting it on a VPS gives you full control over API keys, histories and costs. Here is how to put it into production cleanly.",[31,35,45,48,70],{"type":32,"title":33,"body":34},"h2","Why self-host Lobe Chat on a VPS","Lobe Chat aggregates several LLM providers (OpenAI, Anthropic, Google, Mistral, local Ollama) in a single UI with a plugin marketplace, custom agents and voice recognition\u002Fsynthesis. In SaaS, your histories and your keys pass through a third party; by hosting it on your own VPS, conversations stay in your PostgreSQL database and your API keys never leave your server. A VPS also offers a fixed IP useful for whitelisting your outbound calls to paid APIs, and the freedom to enable database mode (multi-user with authentication) rather than simple browser storage.",{"type":36,"title":37,"items":38},"ul","Concrete benefits of self-hosting",[39,40,41,42,43,44],"Centralization of all your LLM API keys on the server side, never exposed to the browser","Conversation histories persisted in your own PostgreSQL, backable up and encryptable","Multi-user mode via authentication (Logto, Auth0, Clerk) for a whole team","Connection to a local Ollama on the same VPS for 100% private responses with no API cost","Marketplace of plugins and custom agents with no quota or limit imposed by a SaaS","Full cost control: you only pay for the actual consumption of the APIs you connect",{"type":32,"title":46,"body":47},"Hardware and software requirements","Lobe Chat is a relatively lightweight Node.js application. In browser storage mode, 1 vCPU and 1 GB of RAM are enough. For database mode (recommended in production) with embedded PostgreSQL, plan for 2 vCPU and 2 to 4 GB of RAM, plus 10 GB of disk for images, attachments and the database. On the software side: Docker and the Docker Compose plugin, a domain name pointing to the VPS IP (A record), and at least one API key from an LLM provider. If you enable S3 mode for files, plan for a compatible bucket (MinIO can run on the same VPS).",{"type":49,"title":50,"steps":51},"steps","Deployment of Lobe Chat with Docker",[52,55,58,61,64,67],{"title":53,"body":54},"Prepare the VPS and Docker","Connect over SSH, update the system then install Docker via `curl -fsSL https:\u002F\u002Fget.docker.com | sh`. Verify the installation with `docker compose version`. Create a working folder: `mkdir -p \u002Fopt\u002Flobe-chat && cd \u002Fopt\u002Flobe-chat`.",{"title":56,"body":57},"Write the compose file in database mode","Create a `docker-compose.yml` with the `lobe-chat-database` service, a `postgres` service (image `pgvector\u002Fpgvector:pg16`) and `minio` for S3 storage. Fill in the variables `DATABASE_URL`, `KEY_VAULTS_SECRET` (generated with `openssl rand -base64 32`) and `NEXT_AUTH_SECRET`.",{"title":59,"body":60},"Inject the keys and the auth provider","Add your keys in a `.env` file: `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc. Configure `NEXT_AUTH_SSO_PROVIDERS` and the Logto or Clerk credentials to enable multi-user authentication before public exposure.",{"title":62,"body":63},"Launch the stack","Start everything with `docker compose up -d`. Follow the logs with `docker compose logs -f lobe-chat-database` until you see the server listening on port 3210.",{"title":65,"body":66},"Set up the reverse proxy and SSL","Place Caddy or Nginx in front of the container. With Caddy, a three-line Caddyfile (`chat.yourdomain.com { reverse_proxy localhost:3210 }`) automatically generates the Let's Encrypt certificate and forces HTTPS.",{"title":68,"body":69},"Verify and secure","Open `https:\u002F\u002Fchat.yourdomain.com`, create the first administrator account, then close port 3210 at the firewall (`ufw deny 3210`) to let only traffic through the reverse proxy pass.",{"type":71,"body":72},"tip","For totally private conversations with no API cost, install Ollama on the same VPS and set `OLLAMA_PROXY_URL=http:\u002F\u002Fhost.docker.internal:11434\u002Fv1` in Lobe Chat. You get a local assistant (Llama 3, Qwen, Mistral) that depends on no external provider. Remember to increase the VPS RAM according to the size of the loaded model.","Launch Lobe Chat in a few minutes","The ServOrbit Cloud VPS provides preinstalled Docker, a fixed IP and the SSD storage needed to run Lobe Chat in database mode without tedious system configuration.","Deploy on a Cloud VPS","\u002Fvps-cloud",[78,94,109],{"id":19,"slug":79,"slugs":80,"title":83,"excerpt":84,"readTime":85,"views":15,"isPinned":16,"publishedAt":86,"category":87,"categories":88,"featuredImage":26,"bgImage":27,"posterImage":90,"relatedSolution":91},"how-to-host-open-webui-on-a-vps",{"fr":81,"en":79,"ar":82},"heberger-open-webui","كيفية-استضافة-open-webui-على-خادم-vps","How to Host Open WebUI on a VPS","A complete guide to deploying Open WebUI on your own VPS. Keep control of your data, avoid cloud API costs, and access your LLMs from a clean web interface.",4,"2026-06-01T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[89],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-open-webui-poster.svg",{"categorySlug":92,"appSlug":93},"artificial-intelligence","open-webui",{"id":95,"slug":96,"slugs":97,"title":100,"excerpt":101,"readTime":14,"views":15,"isPinned":16,"publishedAt":102,"category":103,"categories":104,"featuredImage":26,"bgImage":27,"posterImage":106,"relatedSolution":107},2,"deploying-dify-on-a-vps-ai-workflows-under-control",{"fr":98,"en":96,"ar":99},"deployer-dify-vps","نشر-dify-على-vps-سير-عمل-الذكاء-الاصطناعي-تحت-السيطرة","Deploying Dify on a VPS: AI Workflows Under Control","Install Dify on a ServOrbit VPS to build agents, chatflows and AI apps without losing control of your data.","2026-02-11T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[105],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fdeployer-dify-vps-poster.svg",{"categorySlug":92,"appSlug":108},"dify",{"id":110,"slug":111,"slugs":112,"title":115,"excerpt":116,"readTime":14,"views":15,"isPinned":16,"publishedAt":117,"category":118,"categories":119,"featuredImage":26,"bgImage":27,"posterImage":121,"relatedSolution":122},121,"hosting-openclaw-on-a-vps",{"fr":113,"en":111,"ar":114},"heberger-openclaw-vps","استضافة-openclaw-على-خادم-vps","Hosting OpenClaw on a VPS","Host OpenClaw on your VPS: the open source personal AI assistant reachable from WhatsApp, Telegram, Discord and 50+ messaging apps. Docker, LLM setup and HTTPS.","2026-02-23T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[120],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-openclaw-vps-poster.svg",{"categorySlug":92,"appSlug":123},"openclaw",1787581003311]