[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 SMTP server connection to send emails (e.g. Resend)
Step 1. Save SMTP server credentials
export SMTP_HOST="my-smtp-host"
export SMTP_USERNAME="my-smtp-password"
export SMTP_PASSWORD="my-smtp-password"
export SMTP_SENDER_EMAIL="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:
- The hosted proxy URL
- Accepted email subdomains
- [OPTIONAL] Allowed admin emails