Self-hosting LibreChat: one ChatGPT UI for your whole team, billed per token instead of per seat
Description and use
Self‑hosting LibreChat lets teams use a ChatGPT‑style UI with per‑token billing, cutting costs from ~$100 to ~$10–30/month while ensuring security and persistent context.
Problem
Teams face high per-seat costs with ChatGPT Plus while needing a shared, cost‑effective AI interface.
Outcome
Teams can reduce AI costs from ~$100/month to ~$10–30/month while maintaining shared context and security.
Workflow
- Clone LibreChat repo
- Copy .env.example to .env
- Generate real JWT secrets with
openssl rand -hex 32 - Set API keys for at least one provider in .env
- Run
docker compose up -d - Open port 3080 and register first admin account
- Disable open registration in settings
- Set spending caps on each provider dashboard
- Restart stack and verify chat history persistence
- Schedule regular MongoDB backups
Evidence
LibreChat is the open‑source ChatGPT‑style interface that turns that per‑seat subscription into a per‑token API bill.
MongoDB holds accounts and conversation history. That is where your team's accumulated context lives, and it is the thing you can lose.
- Record date: 2026-09-10T05:31:28.055Z