Environment Variables
litellm-proxy, llm-proxy, litellm-gateway. Model IDs are passed through unchanged (no prefix added).
Python
Self-Hosted vs Cloud
| Deployment | LITELLM_PROXY_BASE_URL |
|---|---|
| Local dev | http://localhost:4000 |
| Docker / k8s | Your service URL |
| LiteLLM cloud | Provider-supplied endpoint |
For programmatic configuration, custom headers, and multi-gateway patterns, see LLM Gateways.

