Skip to content

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]

Merge branch 'litellm_internal_staging' into litellm_claude_code_gateway_protocol

mateoa00fdd1d1fa7
diff --cc litellm/proxy/_types.py
index 5577c5caff4,385f39e02a4..3e26d6230fd
--- a/litellm/proxy/_types.py
+++ b/litellm/proxy/_types.py
@@@ -2223,15 -2336,7 +2336,15 @@@ class ConfigGeneralSettings(LiteLLMPyda
None,
description="opt-in to RFC 8628 verification_uri_complete for the CLI SSO device flow, pre-filling the user_code in the browser. Off by default; intended for same-host clients where the device that starts the flow and the browser run on the same machine",
)
+ enable_claude_code_gateway: bool | None = Field(
+ None,
+ description="serve the Claude Code gateway protocol (https://code.claude.com/docs/en/claude-apps-gateway) under /claude_code_gateway: OAuth device-flow sign-in reusing proxy SSO, plus managed settings and OTLP telemetry ingestion. Off by default",
+ )
+ claude_code_gateway_managed_settings: Dict[str, Any] | None = Field(
+ None,
+ description="Claude Code managed-settings.json served verbatim at the gateway's /claude_code_gateway/managed/settings endpoint. When unset the endpoint returns 404 (no managed policy)",
+ )
- database_url: Optional[str] = Field(
+ database_url: str | None = Field(
None,
description="connect to a postgres db - needed for generating temporary keys + tracking spend / key",
)