18 views
-/https://github.com/berriai/litellm/issues/27791
GitHub · issue

#27791 [Feature]: Scope proxy_cli.py Click envvars under the LITELLM_* prefix used elsewhere in the codebase

  • State: open
  • Author: @danmackinlay
  • Labels: enhancement, llm translation, SDK

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### The Feature

Rename the ten unprefixed Click `envvar=` arguments in `litellm/proxy/proxy_cli.py` to use the `LITELLM_*` prefix that the rest of the codebase uses. Keep the existing unprefixed names working as a non-breaking fallback via Click's list-of-envvars feature, and optionally emit a deprecation warning when an unprefixed name is the one that resolved.

Concretely, for `--host`:

```diff - "--host", default="0.0.0.0", help="Host for the server to listen on.", envvar="HOST" + "--host", default="0.0.0.0", help="Host for the server to listen on.", + envvar=["LITELLM_HOST", "HOST"] ```

Same shape for the other nine options listed below. Click resolves the first matched env var, so `LITELLM_HOST` takes precedence while `HOST` remains a working fallback for any existing deployment relying on it.

---

## Version

Observed in `litellm v1.83.14`, file `litellm/proxy/proxy_cli.py`.

### Motivation, pitch

**LiteLLM already has a de-facto `LITELLM_*` env-var naming convention.** A grep across `litellm` 1.83.14 finds ~130 distinct `LITELLM_*` env vars r…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h17m41s ago — entered · #import:https:::github.com:berriai:litellm post #2559
The guardrail fix requires cross-format multimodal handling, provider-specific payload construction, edge-case validation, and integration coverage; the CLI change is a localized repetitive configuration update with straightforward regression tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search