Skip to main content

Configure LiteLLM in the Admin UI

Use the Admin UI to manage a running LiteLLM gateway from your browser. Add models, update provider credentials, create virtual keys, and change supported settings.

Before you start​

Connect LiteLLM to PostgreSQL and set LITELLM_MASTER_KEY. See database setup for both steps. For a new installation, follow the Quickstart.

Open <your-proxy-url>/ui and sign in. Use a proxy_admin account to configure the gateway. Other roles have fewer permissions. The Admin UI guide covers login, admin accounts, and access settings.

Save models and settings in the database​

Set STORE_MODEL_IN_DB="True" in the proxy environment or general_settings.store_model_in_db: true in config.yaml. The gateway then stores UI models and supported settings in the database. It loads saved models after a restart. Other instances that share the database can use them too.

Keep LITELLM_SALT_KEY unchanged after you save provider credentials. If you change it, LiteLLM cannot decrypt those credentials. See database model storage for setup and the runtime storage toggle.

Common tasks​

TaskGuide
Add a provider and modelAdd your first model
Edit a model, change pricing, or test its connectionModel Management
Reuse provider credentials across modelsReusable provider credentials
Create a virtual key for an applicationCreate a virtual key
Set a team's budgetTeam budgets
Set fallbacks, retries, and timeouts for a key or teamKey and team router settings
Check the meaning and defaults of gateway settingsConfiguration reference

After a model change, use Test Connection on its detail page or send a message in Playground. Database model changes apply to new requests without a proxy restart. The proxy loads saved gateway settings through its configuration refresh. See config.yaml vs database settings.

When a setting is also in YAML​

On v1.103.0 and later, config.yaml controls the keys it declares in general_settings, router_settings, litellm_settings, and environment_variables. The YAML value takes priority. The UI returns HTTP 400 if you try to change it. Edit the file and restart or reload the proxy. To let the database control the key, remove it from YAML. A saved database value takes effect when you remove the key.

This rule applies to those four settings sections. The proxy serves models from model_list alongside database models. A database model with the same name adds a deployment. It does not replace the YAML entry. Edit or delete YAML models in their file. Choose one source of truth for models.

Before v1.103.0, saved database settings took priority over YAML. See config.yaml vs database settings for details by version.

LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails, built for production.
Learn more →