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