[{"data":1,"prerenderedAt":166},["ShallowReactive",2],{"seo-verification":3,"blog-how-to-host-librechat-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":29,"intro":32,"sections":33,"ctaTitle":116,"ctaBody":117,"ctaButton":118,"ctaUrl":119,"relatedPosts":120},13,"how-to-host-librechat-on-a-vps",{"fr":10,"en":8,"ar":11},"heberger-librechat-vps","كيفية-استضافة-librechat-على-خادم-vps","How to Host LibreChat on a VPS","Host LibreChat on your VPS: a private, multi-model ChatGPT interface. Docker, MongoDB, RAG, reverse proxy and SSL step by step.",3,0,false,"2026-06-07T00: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-librechat-vps-poster.svg",{"categorySlug":30,"appSlug":31},"artificial-intelligence","librechat","LibreChat reproduces the ChatGPT experience in open source, but multi-provider: OpenAI, Anthropic, Google, or your local models, in the same interface. Self-hosted on a VPS, it offers your team a private, multi-user conversational assistant, with access management and history under your control. Here is how to deploy it.",[34,38,48,51,73,113],{"type":35,"title":36,"body":37},"h2","Why self-host LibreChat on a VPS","LibreChat is a chat interface, not an inference engine: its value is to centralize several LLM providers behind a polished UI, with authentication, user management, presets, and a RAG module to chat with your documents. For a company, distributing individual ChatGPT accounts is expensive and scatters the data. With LibreChat on a VPS, you pool access: a single API key per provider, internal accounts that you manage, and all conversation history in your own MongoDB. You decide which models are available, you can plug in a local Ollama for zero-cloud, and you keep full control of the data exchanged.",{"type":39,"title":40,"items":41},"ul","The concrete benefits of a self-hosted LibreChat",[42,43,44,45,46,47],"A single interface for OpenAI, Anthropic, Google and your local models.","Internal accounts and roles managed by you, without individual subscriptions per employee.","Conversation history stored in your MongoDB, never with a third party.","Pooled API keys: a single provider access shared by the whole team.","Built-in RAG module to query your own documents.","Fine control over the exposed models and the default parameters.",{"type":35,"title":49,"body":50},"Hardware and software requirements","LibreChat relies on several services (the app, MongoDB, Meilisearch for search, and the RAG API). Count on 2 vCPU and 4 GB of RAM for a modest team using cloud APIs; move to 4 vCPU \u002F 8 GB if you enable RAG with local embeddings or an Ollama on the same machine. Plan for 15 to 20 GB of disk for MongoDB and the indexes. Docker and Docker Compose are indispensable because LibreChat deploys as a multi-container stack. Add a subdomain (e.g. chat.your-domain.com), port 443 open, and the API keys of the providers you plan to offer.",{"type":52,"title":53,"steps":54},"steps","Deploy LibreChat with Docker, MongoDB and HTTPS",[55,58,61,64,67,70],{"title":56,"body":57},"Clone the repository and prepare the config","Over SSH: `git clone https:\u002F\u002Fgithub.com\u002Fdanny-avila\u002FLibreChat && cd LibreChat`. Copy the environment example: `cp .env.example .env`. The project already provides a `docker-compose.yml` orchestrating the app, MongoDB and Meilisearch.",{"title":59,"body":60},"Configure the .env","Fill in your keys (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc.), generate the `JWT_SECRET` and `CREDS_KEY` secrets, and set `ALLOW_REGISTRATION=false` if you want to create accounts manually rather than opening registration.",{"title":62,"body":63},"Launch the stack","Start with `docker compose up -d`. Check that all containers are healthy via `docker compose ps`. The app listens internally on port `3080`.",{"title":65,"body":66},"Configure librechat.yaml (models and RAG)","To add custom endpoints (local Ollama, groq, etc.) or enable RAG, create a `librechat.yaml` file. For example, point a custom endpoint to `http:\u002F\u002Fhost.docker.internal:11434\u002Fv1` to connect your Ollama.",{"title":68,"body":69},"Set up the reverse proxy","Route `chat.your-domain.com` to `localhost:3080` via Caddy or Nginx, with Let's Encrypt. Enable WebSocket support and increase the timeouts so as not to cut off long streaming responses.",{"title":71,"body":72},"Create the accounts and test","Create the first user, log in, select a model and send a message. If RAG is enabled, upload a document in a conversation and check that the answers rely on it.",{"type":74,"title":75,"headers":76,"rows":80},"comparison","LibreChat or AnythingLLM: which to choose?",[77,78,79],"Criterion","LibreChat","AnythingLLM",[81,85,89,93,97,101,105,109],[82,83,84],"Main purpose","Multi-provider chat interface","RAG engine over documents",[86,87,88],"Multi-models in one UI","Excellent (OpenAI, Anthropic, Google, local)","Good, but centered on one provider per workspace",[90,91,92],"RAG over documents","Additional module to configure","Core of the product, ready to use",[94,95,96],"Multi-user management","Native accounts and roles","Multi-user mode and partitioned workspaces",[98,99,100],"Deployment architecture","Multi-container stack (Mongo, Meili, RAG)","Single container + vector database",[102,103,104],"Data storage","Self-hosted MongoDB","storage volume + LanceDB\u002FQdrant",[106,107,108],"Ideal use case","Team conversational assistant","Queryable knowledge base",[110,111,112],"Resource footprint","Heavier (several services)","Lighter at startup",{"type":114,"body":115},"tip","For a zero-cloud deployment, combine LibreChat with an Ollama hosted on the same VPS: declare a custom endpoint in `librechat.yaml` pointing to Ollama's OpenAI-compatible API. You thus get LibreChat's ergonomics with 100% local models, without any external key or data leaving the server. Remember to set the proxy timeouts accordingly, as CPU inference is slower.","Install LibreChat on a ServOrbit VPS with one click","LibreChat is available in the ServOrbit Marketplace. Order a Cloud VPS and the multi-model interface installs automatically, MongoDB included.","See LibreChat listing","\u002Fmarketplace\u002Fartificial-intelligence\u002Flibrechat",[121,136,151],{"id":122,"slug":123,"slugs":124,"title":127,"excerpt":128,"readTime":122,"views":15,"isPinned":16,"publishedAt":129,"category":130,"categories":131,"featuredImage":26,"bgImage":27,"posterImage":133,"relatedSolution":134},9,"how-to-host-anythingllm-on-a-vps",{"fr":125,"en":123,"ar":126},"heberger-anythingllm-vps","كيفية-استضافة-anythingllm-على-خادم-vps","AnythingLLM on VPS: Full Guide with Pitfalls to Avoid","Host AnythingLLM on VPS: Docker, HTTPS, mandatory version pinning. :latest, Gemini v1.16 and Ollama Docker network pitfalls documented.","2026-06-11T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[132],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-anythingllm-vps-poster.svg",{"categorySlug":30,"appSlug":135},"anything-llm",{"id":137,"slug":138,"slugs":139,"title":142,"excerpt":143,"readTime":14,"views":15,"isPinned":16,"publishedAt":144,"category":145,"categories":146,"featuredImage":26,"bgImage":27,"posterImage":148,"relatedSolution":149},2,"deploying-dify-on-a-vps-ai-workflows-under-control",{"fr":140,"en":138,"ar":141},"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},[147],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fdeployer-dify-vps-poster.svg",{"categorySlug":30,"appSlug":150},"dify",{"id":152,"slug":153,"slugs":154,"title":157,"excerpt":158,"readTime":14,"views":15,"isPinned":16,"publishedAt":159,"category":160,"categories":161,"featuredImage":26,"bgImage":27,"posterImage":163,"relatedSolution":164},121,"hosting-openclaw-on-a-vps",{"fr":155,"en":153,"ar":156},"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},[162],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-openclaw-vps-poster.svg",{"categorySlug":30,"appSlug":165},"openclaw",1787581003256]