Installation
Install LiteLLM with proxy dependencies:Basic Setup
Generate a Virtual Key
Create an API key for your application:Use the Virtual Key
Now use the generated key instead of the master key:Access the Admin UI
Open your browser tohttp://localhost:4000/ui to access the admin dashboard.
Login with your master key (sk-1234) to:
- View all virtual keys
- Create and manage keys
- Monitor usage and spending
- View request logs
- Manage teams and users
Load Balancing Example
Configure multiple deployments for automatic load balancing:config.yaml
gpt-4 will automatically load balance across all three deployments, with fallback to Claude if all GPT-4 deployments fail.
Database Setup (Optional)
For persistent storage of keys, users, and spend data:Health Check
Verify the proxy is running:Next Steps
Docker Deployment
Deploy with Docker for production
Configuration Options
Explore all configuration settings
Virtual Keys
Advanced key management
Budget Alerts
Set up budget monitoring