docs(custom_auth.md): add virtual keys doc

This commit is contained in:
Krrish Dholakia 2025-07-16 11:09:57 -07:00
parent 0fb7c01382
commit 047b106197

View file

@ -2,7 +2,7 @@
You can now override the default api key auth.
Here's how:
## Usage
#### 1. Create a custom auth file.
@ -46,3 +46,23 @@ general_settings:
```shell
$ litellm --config /path/to/config.yaml
```
## ✨ Support LiteLLM Virtual Keys + Custom Auth
Supported from v1.72.2+
:::info
✨ Supporting Custom Auth + LiteLLM Virtual Keys is on LiteLLM Enterprise
[Enterprise Pricing](https://www.litellm.ai/#pricing)
[Get free 7-day trial key](https://www.litellm.ai/enterprise#trial)
:::
```yaml
general_settings:
custom_auth: custom_auth_auto.user_api_key_auth
custom_auth_settings:
mode: "auto" # can be 'on', 'off', 'auto' - 'auto' checks both litellm api key auth + custom auth
```