The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Make all commands show server URL (#10801)
Marc Abramowitzad9b79259f9c
diff --git a/litellm/proxy/client/cli/main.py b/litellm/proxy/client/cli/main.pyindex f053ffe84f4..9ecd2f1e19c 100644--- a/litellm/proxy/client/cli/main.py+++ b/litellm/proxy/client/cli/main.py@@ -1,4 +1,5 @@# stdlib imports+import sysfrom typing import Optional# third party imports@@ -60,6 +61,8 @@ def print_version(base_url: str, api_key: Optional[str]):def cli(ctx: click.Context, base_url: str, api_key: Optional[str]) -> None:"""LiteLLM Proxy CLI - Manage your LiteLLM proxy server"""ctx.ensure_object(dict)+ if sys.stderr.isatty():+ click.secho(f"Accessing LiteLLM server: {base_url} ...\n", fg="yellow", err=True)ctx.obj["base_url"] = base_urlctx.obj["api_key"] = api_key