Best VPS for LibreChat in 2026: Requirements, Hosting Costs & Setup Guide
The best VPS for LibreChat for most personal deployments is an Ubuntu server with 2 vCPU, 4 GB of RAM and at least 40 GB of SSD storage. Start at 8 GB for a small team sharing the instance or for regular document uploads. Both recommendations assume that a separate service runs the AI models.
LibreChat brings several AI providers into one browser workspace. Self-hosting gives developers and small businesses control over accounts, chat storage, model credentials and update timing. A VPS keeps the workspace available when your laptop is off. A local install is convenient for a single machine or a private LAN, while a managed chat service takes server maintenance off your hands. Prompts, attachments and tool inputs can still leave a self-hosted server when you send them to external providers.

What Is LibreChat?
LibreChat is an open-source, self-hosted chat application. Its native integrations cover providers such as OpenAI, Anthropic and Google, and the custom endpoint configuration can connect to OpenAI-compatible APIs and gateways. Each supported integration has its own model and tool capabilities. You can keep conversations and search them across sessions, provision separate user accounts, and configure agents with instructions and tools.
Document features include retrieval-augmented generation (RAG). The RAG service can extract and index content, look up relevant passages for a question and pass them to a model. Check which service creates your embeddings and where it processes the document. Full-file uploads, retrieval and native file support vary by model and configuration. For a shared workspace, review who can upload files, create agents and use shared credentials before inviting people. LibreChat documentation · Official GitHub repository
LibreChat VPS System Requirements
LibreChat documents a minimum of 1 vCPU and 1 GiB of RAM for its containers and suggests making at least 2 GB available to Docker for smoother operation with the full stack. A VPS also needs memory for Ubuntu, the reverse proxy and filesystem cache. The default Compose stack includes LibreChat, MongoDB, Meilisearch, the RAG API and its Postgres vector database. The following estimates are initial planning ranges for rented CPU servers, with no inference, domain, backups or tax included. Official system requirements
| Workload | vCPU | RAM | SSD storage | Recommended OS | VPS budget/month | Suitable use |
|---|---|---|---|---|---|---|
| Personal use | 1–2 | 2–4 GB | 40–50 GB | Ubuntu 24.04 LTS | $7–$24 | Occasional API chat, small history |
| Individual developer | 2 | 4 GB | 50–80 GB | Ubuntu 24.04 LTS | $15–$25 | Several providers, tools and occasional uploads |
| Small team | 4 | 8 GB | 80–160 GB | Ubuntu 24.04 LTS | $20–$55 | Shared workspace with overlapping chat sessions |
| Multiple concurrent users | 4–8 | 8–16 GB | 100–250 GB | Ubuntu 24.04 LTS | $30–$100 | Frequent parallel chats, search and background activity |
| RAG and document processing | 4–8 | 8–16 GB | 100–250 GB | Ubuntu 24.04 LTS | $30–$100 | Recurring ingestion and larger indexes |
There is no fixed user count for these sizes. The number of simultaneous requests, upload sizes, document formats and indexing jobs matter more than the number of registered accounts. An external AI model API needs no GPU on the LibreChat host. For self-hosted inference with Ollama or another runtime, size the model server independently for model weights, quantization, context length, parallel requests and VRAM. Keeping the model server separate also allows chat to remain available during model upgrades. See the GPU server hosting guide for that separate purchase.
Best VPS Providers for LibreChat in 2026
Public rates and documentation were reviewed December 2, 2026. Prices are references in their listed currencies. Regional availability, taxes, setup fees and billing terms can change the total. Provider selection is based on published specifications and the workloads above.
Affiliate disclosure. VPS SOS may earn a commission if you purchase through the LightNode link.
1. LightNode
LightNode offers KVM VPS hosting in 40+ locations, including cities in Southeast Asia and the Middle East. Its VPS business launched in 2021, and the provider reports prior data-center operations experience. Published features include hourly billing, configurable capacity, a dedicated static IP and 50 GB of NVMe SSD on the entry plan.
Recommended plan. Agency at $14.70/month equivalent buys 2 vCPU, 4 GB RAM, 50 GB NVMe and 2 TB transfer on the advertised plan. Premium at $27.70/month equivalent gives 4 vCPU and 8 GB for regular uploads or overlapping team sessions. Premium also lists 3 TB transfer and the same base disk. Check the port speed in the selected region. If checkout lists a 50 Mbps port, that figure is a rate limit. The published TB allocation measures monthly data transferred.
Pros. Regional coverage, static IP and hourly billing. Cons. The larger RAM tier starts with the same base disk, so price additional storage before choosing it for growing indexes. Best for. Teams placing an API-backed workspace near users in a specific city. View LightNode plans.
2. Hetzner
Hetzner Cloud bills by the hour up to a monthly cap. The x86 CX23 has 2 shared vCPU, 4 GB RAM and 40 GB NVMe. Hetzner lists at least 20 TB of included transfer for EU Cloud locations, with different allowances elsewhere.
Recommended plan. Look for CX23 in Germany or Finland. The official page displayed €5.99/month with IPv4, before VAT, for the Germany/Finland offer. The public product page showed limited availability during research, so use the live region quote. A larger CPX plan is an alternative when you need more disk or CX capacity is unavailable.
Pros. Strong EU transfer allowance and a low published reference price. Cons. Inventory and IPv4 charges can change the comparison, and 40 GB warrants close disk monitoring. Best for. Budget-conscious developers with EU users and modest storage needs. Hetzner Cloud
3. DigitalOcean
A Basic Droplet is a straightforward Ubuntu host for a first deployment. The Regular 4 GiB size includes 2 shared vCPU, 80 GiB SSD and 4,000 GiB transfer for $24/month. The published 8 GiB Regular plan with 4 vCPU and 160 GiB SSD is $48/month.
Pros. Simple published pricing, cloud firewall and optional backup products. Cons. The 4 GiB tier costs more than several similarly sized plans here and backup features add to the VM price. Best for. Developers or small businesses that already operate services on DigitalOcean. Droplet pricing
4. Vultr
Vultr’s Regular Cloud Compute line provides shared CPU instances. Its official provisioning guide identifies the vc2-2c-4gb size. Its public plans API lists $20/month base, 80 GB SSD and 3 TB transfer. São Paulo is listed at $30/month for this plan. A 512 MB option starts at $3.50 in Newark and is below the official container minimum.
Pros. You can select a region and compare multiple Cloud Compute families. Cons. Different compute families and regional premiums make checkout comparisons less direct. Best for. Deployments that need a region offered by Vultr and can compare the local price before ordering. Vultr plans API · Official provisioning guide
5. Akamai Cloud (Linode)
The shared Linode 4GB plan is listed at $24/month base in Akamai’s instance types API, with 2 vCPU, 80 GiB disk and 4,000 GiB of transfer. The API also exposes region-specific price overrides. Backups and Cloud Firewall are available through Cloud Manager.
Pros. Documented instance types and a useful starting disk for chats and occasional uploads. Cons. Base prices can differ from the local rate, and backups cost extra. Best for. Teams that already provision Linode instances with Cloud Manager or the API. Akamai Cloud plans · Linode 4GB instance type
6. Contabo
The Cloud VPS 4 public product page lists 4 vCPU, 8 GB RAM, 100 GB SSD, one snapshot and a 200 Mbit/s port. The page displayed a €5.50/month reference alongside a €4.40 promotional display. Check the billing term, region, setup charge and renewal total in checkout before you compare providers.
Pros. Room for MongoDB, file uploads and indexes at the entry tier. Cons. Term and setup fees can affect the effective price, and the shared plan is better evaluated with your own ingestion workload. Best for. Cost-sensitive users who want more RAM or disk on one machine. Contabo Cloud VPS
VPS Provider Comparison Table
Entry prices can refer to smaller machines or promotional terms. Transfer allowances and port speeds use different units. The entries below describe the recommended plan in each row. Scroll the table horizontally on smaller screens.
| Provider | Starting price | Recommended LibreChat plan / month | vCPU | RAM | Storage | Bandwidth | Billing model | Best for |
|---|---|---|---|---|---|---|---|---|
| LightNode | $7.71 equivalent | Agency / $14.70 equivalent | 2 | 4 GB | 50 GB NVMe | 2 TB transfer | Hourly or monthly options | Regional placement |
| Hetzner | CX23 €5.99 when available | CX23 / €5.99 with IPv4 | 2 | 4 GB | 40 GB NVMe | At least 20 TB transfer in EU | Hourly, monthly cap | Low-cost EU hosting |
| DigitalOcean | $4 | Regular Basic / $24 | 2 | 4 GiB | 80 GiB SSD | 4,000 GiB transfer | Per second, monthly cap | First cloud setup |
| Vultr | $3.50 in Newark | Regular Cloud Compute / $20 base | 2 | 4 GB | 80 GB SSD | 3 TB transfer | Hourly, monthly cap | Region choice |
| Akamai Cloud | $5, Nanode | Linode 4GB / $24 base | 2 | 4 GiB | 80 GiB SSD | 4,000 GiB transfer | Hourly, monthly cap | Existing Linode workloads |
| Contabo | €4.40 promotional display | Cloud VPS 4 / €5.50 reference | 4 | 8 GB | 100 GB SSD | 200 Mbit/s port, fair-use terms apply | Monthly rate, contract term varies | RAM and SSD capacity |
How Much Does It Cost to Host LibreChat?
The server bill buys compute, memory and storage for the application. Model API usage is billed separately by the AI provider. Long conversation histories increase input tokens, and agents can make multiple model calls per task. Embeddings, search, image generation and other tools may carry separate charges. Read both input and output rates for the specific models you enable. If you provide a shared API key, the key owner pays for usage across the workspace.
An existing domain can supply a subdomain at no extra registration cost. For a new domain, budget around $10–$25/year for a typical registration and check renewal fees. Estimate storage and backups from the amount of user uploads you retain and the number of recovery points you need. A snapshot is convenient before an upgrade. An encrypted copy in another account or storage service gives you more recovery options if the primary VPS disappears.
| Example monthly budget | CPU VPS | AI APIs | Domain and backups | Total before tax |
|---|---|---|---|---|
| Personal, occasional chat | $7–$24 | $0–$15 | $1–$6 | $8–$45 |
| Small team with shared models | $20–$55 | $20–$100 | $4–$15 | $44–$170 |
| Higher use with document workflows | $40–$100 | $100–$400+ | $8–$30 | $148–$530+ |
These are planning examples. For instance, 10 million input tokens at $1 per million plus 2 million output tokens at $4 per million would cost $18 for those calls. Check your own rates and usage. A separately hosted GPU adds its hourly rate times running hours, plus storage and transfer. At an illustrative $0.80/hour, 40 hours costs $32 and 730 hours costs $584 before extras.
How to Install LibreChat on a VPS
Use Ubuntu 24.04 LTS, an SSH-key-enabled account with sudo and a DNS name such as chat.example.com. This guide uses the official repository’s default Compose stack behind host-installed Caddy. The upstream remote guide also documents an alternative deployment with its own NGINX configuration. Keep one proxy path so routing and certificate renewal stay predictable. LibreChat remote installation · Docker Ubuntu installation
1. Choose a VPS, connect and install Docker
Start at 2 vCPU and 4 GB for API-backed chat. Replace the SSH user and example address with your provider’s details. Run the rest of the commands on that fresh Ubuntu server. If Ubuntu requests a reboot after upgrading, reboot and reconnect.
ssh ubuntu@203.0.113.10
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y ca-certificates curl git openssl ufw
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo tee /etc/apt/sources.list.d/docker.sources >/dev/null <<DOCKER
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && printf '%s' "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
DOCKER
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now docker
sudo docker compose version2. Clone the repository and configure credentials
Clone upstream and start from its environment template. The commands below replace template values with local secrets and keep the file readable only by its owner. Preserve the generated values across upgrades and restores. To control upgrades, record the Git revision and image digests from a working deployment, then stage upgrades before applying them to production.
git clone https://github.com/LibreChat-AI/LibreChat.git
cd LibreChat
umask 077
cp .env.example .env
chmod 600 .env
sed -i -E '/^[[:space:]]*#?[[:space:]]*(UID|GID|CREDS_KEY|CREDS_IV|JWT_SECRET|JWT_REFRESH_SECRET|MEILI_MASTER_KEY|ADMIN_PANEL_SESSION_SECRET|DOMAIN_CLIENT|DOMAIN_SERVER|ALLOW_REGISTRATION|OPENAI_API_KEY)=/d' .env
cat >> .env <<ENV
UID=$(id -u)
GID=$(id -g)
CREDS_KEY=$(openssl rand -hex 32)
CREDS_IV=$(openssl rand -hex 16)
JWT_SECRET=$(openssl rand -hex 32)
JWT_REFRESH_SECRET=$(openssl rand -hex 32)
MEILI_MASTER_KEY=$(openssl rand -hex 32)
ADMIN_PANEL_SESSION_SECRET=
DOMAIN_CLIENT=https://chat.example.com
DOMAIN_SERVER=https://chat.example.com
ALLOW_REGISTRATION=false
OPENAI_API_KEY=user_provided
ENV
mkdir -p data-node meili_data_v1.35.1 images uploads logs skill
nano .envReplace both example URLs with your actual HTTPS origin, without a trailing slash. With OPENAI_API_KEY=user_provided, users can enter their own OpenAI API key in the application. To configure a server-owned key, replace that value in .env with a dedicated project key and set a budget with the provider. Keep .env out of version control. For another provider, follow its corresponding variable or custom endpoint example. For file search with OpenAI embeddings, set RAG_OPENAI_API_KEY in .env when the chat endpoint uses user_provided. This key is used by the RAG service, including for documents uploaded by other users. RAG configuration LibreChat environment variables
3. Start Compose and create the first account
Compose 2.24.4 or newer supports the !override tag below. It replaces the upstream port publishing rule with a loopback binding and leaves the optional admin panel disabled unless its profile is explicitly enabled. Pair this with a cloud firewall that only permits SSH from your admin network and public TCP 80/443. Keep MongoDB, Meilisearch, Postgres and port 3080 private.
cat > docker-compose.override.yaml <<'YAML'
services:
api:
ports: !override
- "127.0.0.1:3080:3080"
admin-panel:
profiles: ["admin"]
ports: !override
- "127.0.0.1:3000:3000"
YAML
sudo docker compose config --quiet
sudo docker compose pull
sudo docker compose up -d
sudo docker compose ps
# If services are still starting, retry after the API is ready.
curl -fsS http://127.0.0.1:3080/healthCreate the first account with the upstream user-management CLI, which prompts for account details. Keep public registration disabled. Add team members through the CLI or configure supported identity-provider login for your organization.
sudo docker compose exec api npm run create-user4. Configure DNS, HTTPS and verify chat
Point the DNS A record at the VPS public IPv4. Add an AAAA record only if the public IPv6 route and firewall work. On the Ubuntu server, install Caddy and replace the hostname below. If using a custom SSH port, allow that port in UFW before enabling it.
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable
sudo apt-get install -y caddy
sudo tee /etc/caddy/Caddyfile >/dev/null <<'CADDY'
chat.example.com {
reverse_proxy 127.0.0.1:3080
}
CADDY
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl enable --now caddy
sudo systemctl reload caddy
curl -fsS https://chat.example.com/healthCaddy obtains and renews the certificate after DNS resolves and ports are reachable. Sign in through HTTPS, configure your provider key if needed, send a simple prompt and confirm that it streams and appears in history after a refresh. If you configured embeddings, try a small sample and verify that retrieval returns the expected passage. Caddy HTTPS documentation
5. Secure and back up the installation
Apply Ubuntu security updates and use SSH keys. Restrict who can change model, endpoint and agent settings. Keep the model-provider budget and rate limits appropriate for all accounts sharing the key. Back up MongoDB, the RAG vector database, uploads, skills, application data, configuration and credentials. Meilisearch can be backed up or rebuilt if the original data and indexing configuration are available.
The commands below create native database exports and archive the deployment files. Run them from the checkout after confirming the database account used by your Compose file. Schedule encrypted transfer to another host or storage account, apply a retention policy, and test a restore on a private VPS. For tightly consistent recovery, quiesce writes during the backup window.
backup_dir="$HOME/librechat-backups/$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$backup_dir"
chmod 700 "$HOME/librechat-backups" "$backup_dir"
sudo docker compose exec -T mongodb mongodump --archive --gzip > "$backup_dir/mongo.archive.gz"
sudo docker compose exec -T vectordb sh -c 'pg_dump -U "$POSTGRES_USER" -d "$POSTGRES_DB" -Fc' > "$backup_dir/vector.dump"
sudo docker compose exec -T api tar -czf - -C /app/data . > "$backup_dir/app-data.tar.gz"
sudo tar -czf "$backup_dir/files.tar.gz" .env docker-compose.override.yaml uploads images skill
sudo chmod 600 "$backup_dir/files.tar.gz"For additional Docker workloads, compare Docker VPS hosting. A separate deployment host for tools like n8n, Coolify or Dokploy isolates their upgrades and resource spikes from chat.
LibreChat vs Open WebUI
| Factor | LibreChat | Open WebUI |
|---|---|---|
| AI providers | Native integrations plus custom OpenAI-compatible endpoints | Ollama, OpenAI-compatible connections and additional integrations |
| Local models | Connect to a separate local-serving endpoint | Direct Ollama integration and remote Ollama connections |
| Deployment | Compose with several data services by default | Main application can begin with a single container and persistent volume |
| Resources | Allow for MongoDB, search and optional document traffic | Allow for chat app, retrieval services and any separately hosted model |
| Multi-user | Accounts, roles and configurable authentication | Accounts, permissions and configurable authentication |
| Customization | Endpoint YAML, agents and tools | Workspaces, tools, functions and connections |
| Best use case | Teams using several hosted providers or custom gateways | Ollama-first and offline-oriented workflows |
If Ollama will handle most of your prompts, see the best VPS for Open WebUI for its hosting and inference options. Open WebUI documentation
How to Choose the Best VPS for LibreChat
- Plan for peak overlap. Use 4 GB for one developer, and price 8 GB if multiple users regularly send requests or upload files at the same time. Watch memory, CPU and I/O during realistic use.
- Estimate disk growth. Include databases, indexes, uploads, container images and the temporary space needed during backup or upgrades. Confirm volume expansion and where the provider stores snapshots.
- Measure both network paths. Place the server near its users and check response times to the AI API region. Compare time to first token from the same model with the same prompt before moving the VPS.
- Compare the complete bill. Check hourly caps, static IP charges, contractual terms, transfer and backup prices. Confirm what a resize changes, including IP retention and potential downtime.
- Plan for inference separately. If a self-hosted model is required, verify hardware and available VRAM first. Keep the model endpoint private. Review server hosting for AI projects for broader infrastructure options.
Common LibreChat Hosting Problems
| Symptom | What to check |
|---|---|
| Containers fail to start | Run sudo docker compose config --quiet, then sudo docker compose ps -a and sudo docker compose logs --tail=100 api. Check image pull errors, port conflicts and volume permissions. |
| MongoDB connection error | Inspect sudo docker compose logs --tail=100 mongodb. Check disk space, ownership of data-node and the Compose service hostname. Within the API container, localhost refers to the API container itself. |
| Invalid AI API key | Confirm the endpoint, project, model permissions and billing with the provider. A 401 usually points to credentials, while a 429 can mean rate limits or quota. Run sudo docker compose up -d --force-recreate api after changing the provider key in the environment file. |
| Insufficient memory | Check free -h, sudo docker stats --no-stream and sudo journalctl -k -b --grep='Out of memory'. Pause ingestion, reduce overlap or upgrade RAM if OOM kills recur. |
| Proxy or HTTPS error | Check DNS, TCP 80/443 and sudo journalctl -u caddy -n 100. If local health succeeds and HTTPS fails, inspect the proxy and firewall before touching application containers. |
| Slow answers | Compare a short prompt and the same model with uploads and tools disabled. Separate provider queueing or long context from local saturation and proxy issues. |
| RAG or document failure | Check sudo docker compose logs --tail=100 rag_api vectordb, file size limits, extraction failures and embedding credentials. Try a small text file before retrying a large scanned document. |
Frequently Asked Questions
Can I run LibreChat on a 2GB RAM VPS?
Yes, for light personal use if memory stays within the limit. Search indexing, document ingestion and upgrades can increase peak demand. Choose 4 GB for comfortable headroom.
How much RAM does LibreChat need?
The project documents 1 GiB minimum for containers and suggests at least 2 GB available to Docker for the full stack. Start with a 4 GB VPS for routine use or 8 GB for shared document work.
Does LibreChat require a GPU?
API-backed deployments need no GPU on the chat server. Self-hosted inference has separate hardware requirements based on the model, context length and parallel requests.
Is LibreChat free to self-host?
The application is open source and has no software subscription fee for self-hosting. The VPS, domain, backup storage and paid model calls can still incur charges.
What is the cheapest VPS for LibreChat?
Compare the available 4 GB plans in your region. Hetzner’s CX23 is a low-cost option when available, while Contabo advertises an 8 GB entry plan. Include IPv4, setup and renewal costs.
Can I install LibreChat using Docker?
Yes. LibreChat recommends Docker Compose for most deployments and provides Compose files in its official repository.
Is LibreChat better than Open WebUI?
Choose LibreChat if you want a workspace built around several hosted providers and customizable API endpoints. Consider Open WebUI if direct Ollama integration or offline workflows matter more.
Can multiple users share a self-hosted LibreChat instance?
Yes. Create individual accounts or configure supported single sign-on, plan for simultaneous usage and set a model budget when sharing provider credentials.
Conclusion
The best VPS for LibreChat depends on concurrency, document volume and region. Personal users can start with a 4 GB Hetzner CX23 where available or a 4 GB LightNode Agency plan where regional placement matters. Individual developers who prefer more base disk can compare 4 GiB plans from DigitalOcean, Vultr and Akamai Cloud. Small teams can start with 8 GB and compare LightNode Premium, Contabo Cloud VPS 4 or a larger plan on their existing provider. Measure your workload before resizing, and estimate model spending separately from the VPS invoice.