Skip to content

Chainlit Authentication

Chainlit’s password-based authentication is now integrated with the User Model. When API authentication is enabled, Chainlit authentication is also enabled. Disabling API authentication will disable Chainlit’s password-based authentication as well.

  • Go to /chainlit and provide your credentials
RAG Architecture

When a user logs in, Chainlit generates a session token and signs it using the environment variable CHAINLIT_AUTH_SECRET (see the Chainlit authentication documentation for details). Each time the user sends a request, the token’s signature is validated.

The CHAINLIT_AUTH_SECRET variable is required for authentication, and a default value (default_secret_for_openrag_ui) is set. For production environments, it is recommended to change this value by following these steps:

  • Generate a secret automatically using chainlit create-secret (or uv run chainlit create-secret if using uv), or set your own custom value.
  • Add the secret to your environment configuration:
.env
CHAINLIT_AUTH_SECRET=your_secret_value