Skip to main content

[BETA] Self-serve UI

Allow your users to create their own keys through a UI

info

This is in beta, so things may change. If you have feedback, let us know

Quick Start

Requirements:

  • Need to a Resend account for sending emails

See code

Step 1. Save Resend keys

export RESEND_API_KEY="my-resend-api-key" 
export RESEND_API_EMAIL="my-resend-sending-email" # e.g. krrish@berri.ai

Step 2. Enable user auth

In your config.yaml,

general_settings:
# other changes
allow_user_auth: true

This will enable:

  • Users to create keys via /key/generate (by default, only admin can create keys)
  • The /user/auth endpoint to send user's emails with their login credentials (key + user id)

Step 3. Connect to UI

You can use our hosted UI (https://dashboard.litellm.ai/) or self-host your own.

If you self-host, you need to save the UI url in your proxy environment as LITELLM_HOSTED_UI.

Connect your proxy to your UI, by entering:

  1. The hosted proxy URL
  2. Accepted email subdomains
  3. [OPTIONAL] Allowed admin emails

What users will see?

Auth

Create Keys