Self-host LibreChat
Open-source, multi-provider AI chat platform unifying OpenAI, Anthropic, Google, Azure, and local models behind one UI, with agents, RAG, code interpreter, and MCP tool support.
Key facts
Choose LibreChat when you want one chat UI in front of many providers — OpenAI, Anthropic, Google, Azure, and local models — with agents, RAG, a code interpreter, and MCP tools built in. It's the most feature-complete option here and cleanly MIT-licensed, at the cost of being the fiddliest to stand up: it wants MongoDB and a stack of `.env` keys. If you only need a clean front end for one local backend, Open WebUI is far less to wire.
Follow the LibreChat deploy guide →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
- About an afternoon — budget time for troubleshooting
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# LibreChat — official Docker Compose setup
git clone https://github.com/danny-avila/LibreChat.git
cd LibreChat
cp .env.example .env
sed -i "s/^ADMIN_PANEL_SESSION_SECRET=$/ADMIN_PANEL_SESSION_SECRET=$(openssl rand -hex 32)/" .env # the bundled admin panel refuses to start without it
# add your provider API keys to .env, then:
docker compose up -d # → http://SERVER_IP:3080What you take on
LibreChat's breadth is the draw and the catch — every provider it unifies is one more thing to configure and keep honest: