Skip to main content

Configuration

Configure the models LiteLLM serves, how it routes requests, and what teams and applications can access. Choose YAML, the Admin UI, the Management API, or Terraform below.

Start with a running gateway. The deployment guides cover installation and infrastructure.

Choose a method​

Keep settings in a file​

Define models and gateway settings in config.yaml. Review changes in version control and load the file when LiteLLM starts. Use environment variables for credentials.

The YAML guide covers model definitions, routing, logging, and server settings. It links to the full settings reference, file management, and CLI options.

Use more than one method​

You can keep deployment settings in YAML and manage resources through the UI, Management API, or Terraform. Choose one place to maintain each setting or resource. Each method supports a set of operations. Check its guide and reference for the task you need.

From v1.103.0, YAML settings take priority over database values. The UI cannot change those settings. Models follow a different rule. The gateway serves models from the UI or API alongside YAML models. See YAML and database settings for the affected sections, refresh behavior, and earlier versions.

For permissions, see Access Management. For credentials and network controls, see Security.

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