Self-hosting LibreChat: one ChatGPT UI for your whole team, billed per token instead of per seat
Описание и применение
Самостоятельный хостинг LibreChat позволяет командам использовать ChatGPT‑стиль интерфейс с оплатой за токены, снижая расходы с ~$100 до ~$10–30 в месяц, при этом обеспечивая безопасность и сохранение контекста.
Задача
Teams face high per-seat costs with ChatGPT Plus while needing a shared, cost‑effective AI interface.
Результат
Teams can reduce AI costs from ~$100/month to ~$10–30/month while maintaining shared context and security.
Рабочий процесс
- 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
Доказательства
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.
- Дата записи: 2026-09-10T05:31:28.055Z