Disabling LibreChat Authentication Workarounds | Generated by AI

Home 2025.10

Short answer: you can’t completely turn off authentication in LibreChat, but you can stop the “keep asking me to log in” problem and make it feel close to “no-login.” Here’s what actually works (and why):

1) You can’t disable auth entirely

This is confirmed by the maintainer: registration can be disabled, but the auth system itself can’t be turned off. (GitHub)

2) Why you keep getting logged out

If you access your instance over HTTP (e.g., LAN IP), cookies are marked secure in production so the browser won’t keep them; you get booted back to login. Use HTTPS (even self-signed) or run the API in a dev mode that disables secure cookies. (GitHub)

3) Two reliable fixes

Option B — “I’m on a private LAN and just want it to stop logging out”

4) Optional quality-of-life tweaks

5) Quick checklist for your case (v0.8.0-rc3)

  1. Decide: HTTPS proxy (best) or dev mode (quick LAN fix).
  2. Set longer SESSION_EXPIRY and REFRESH_TOKEN_EXPIRY in .env.
  3. Restart the stack so env changes take effect.
  4. (Optional) Turn off registration for a “single-user” feel.

If you want, paste your current docker-compose.yml and .env (without secrets). I’ll mark exactly what to add/change for your setup.


Back

openai/gpt-5

Donate