Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models. .
LibreChat
MIT Docker Ready ★ 47,613 Stars Active · 2026-11-28Enhanced ChatGPT-compatible AI chat interface supporting multiple AI providers, with multi-user auth, message search, and plugin support. , Source Code.
- Tech Stack / Runtime
- Nodejs/Docker · TypeScript
- Open-Source License
- MIT
- GitHub Health
- ★ 47,613 · 9,826 forks
Commercial SaaS Replaced
Head-to-Head Comparisons
Quick Docker Compose Reference for LibreChat
# Do not edit this file directly. Use a ‘docker-compose.override.yaml’ file if you can.
# Refer to `docker-compose.override.yaml.example’ for some sample configurations.
services:
api:
container_name: LibreChat
ports:
- "${PORT}:${PORT}"
depends_on:
- mongodb
- rag_api
image: registry.librechat.ai/librechat-ai/librechat-dev:latest
restart: always
user: "${UID}:${GID}"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- HOST=0.0.0.0
- MONGO_URI=mongodb://mongodb:27017/LibreChat
- MEILI_HOST=http://meilisearch:7700
- LIBRECHAT_TEMP_CREDENTIALS_PATH=/app/data/.env.temp
- RAG_PORT=${RAG_PORT:-8000}
- RAG_API_URL=http://rag_api:${RAG_PORT:-8000}
- PROXY=${PROXY:-}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- NO_PROXY=${NO_PROXY:-localhost,127.0.0.1,::1},${no_proxy:-},mongodb,chat-mongodb,meilisearch,chat-meilisearch,rag_api,vectordb,host.docker.internal
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
- no_proxy=${no_proxy:-localhost,127.0.0.1,::1},${NO_PROXY:-},mongodb,chat-mongodb,meilisearch,chat-meilisearch,rag_api,vectordb,host.docker.internal
volumes:
- type: bind
source: ./.env
target: /app/.env
- ./images:/app/client/public/images
- ./uploads:/app/uploads
- ./logs:/app/logs
- ./skill:/app/skill
- librechat-data:/app/data
admin-panel:
container_name: admin-panel
image: registry.librechat.ai/librechat-ai/librechat-admin-panel:latest
ports:
- "${ADMIN_PANEL_PORT:-3000}:3000"
depends_on:
- api
restart: always
environment:
- PORT=3000
# Plain expansion (not :?) so `docker compose down`/`pull` still run when this is unset.
# The panel itself refuses to start without it; set ADMIN_PANEL_SESSION_SECRET in .env.
- SESSION_SECRET=${ADMIN_PANEL_SESSION_SECRET}
- API_SERVER_URL=http://api:${PORT:-3080}
- VITE_API_BASE_URL=${DOMAIN_CLIENT:-http://localhost:3080}
- SESSION_COOKIE_SECURE=${ADMIN_PANEL_SESSION_COOKIE_SECURE:-false}
mongodb:
container_name: chat-mongodb
image: docker.io/library/mongo:8.0.20
restart: always
user: "${UID}:${GID}"
volumes:
- ./data-node:/data/db
command: mongod --noauth
meilisearch:
container_name: chat-meilisearch
image: docker.io/getmeili/meilisearch:v1.35.1
restart: always
user: "${UID}:${GID}"
environment:
- MEILI_HOST=http://meilisearch:7700
- MEILI_NO_ANALYTICS=true
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
volumes:
- ./meili_data_v1.35.1:/meili_data
vectordb:
container_name: vectordb
image: docker.io/pgvector/pgvector:0.8.0-pg15-trixie
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
restart: always
volumes:
- pgdata2:/var/lib/postgresql/data
rag_api:
# ... (see full file in official GitHub repository) LibreChat System Requirements & Self-Hosting Guide
Deploy LibreChat (4 GB+ RAM) →Recommended VPS
4 GB+ RAM
2 – 4 vCPU · $6 – $12/mo VPS
Deployment Method
Intermediate
Docker / Docker Compose (Recommended)
Commercial Use (MIT)
Yes — free for personal, internal company, and commercial use with attribution.
Maintenance Status
Active
Last commit: 2026-11-28
Frequently Asked Questions about LibreChat
Is LibreChat free to self-host for commercial use?
LibreChat is released under the MIT license. Yes — free for personal, internal company, and commercial use with attribution. It has 47,613 GitHub stars and was last updated on 2026-11-28.
What VPS specifications do I need to self-host LibreChat?
Based on its Nodejs/Docker runtime and Generative Artificial Intelligence (GenAI) workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).
Does LibreChat support Docker deployment?
Yes — LibreChat supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.
Deploy LibreChat on your own VPS
Run LibreChat privately with full data control. Recommended starting footprint: 4 GB+ RAM ($6 – $12/mo VPS).
Best Value · 1-Click Docker
1 vCPU · 4 GB RAM · 50 GB NVMe
Includes built-in Docker & Coolify templates — ideal for beginners.
Lowest Cost / Performance
2 vCPU · 4 GB RAM · 40 GB NVMe
Unbeatable EU/US cloud pricing for high-traffic self-hosted stacks.
$200 Free Credit
1 vCPU · 1 GB RAM · 25 GB SSD
Clean developer UX with 1-click Marketplace Docker droplets.
More Open-Source Generative Artificial Intelligence (GenAI)
View all →User-friendly AI Interface, supports Ollama, OpenAI API. .
All-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more. .
Run your AI models locally and generate images and audio (alternative to OpenAI and Claude). , Clients).
Your AI second brain. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI. , Source Code.