From 5f717843ba3bdce2ee747111d7a09b0cf7ec317b Mon Sep 17 00:00:00 2001 From: Shin Date: Sat, 21 Feb 2026 18:20:40 +0000 Subject: [PATCH] feat(ui): add forward_client_headers_to_llm_api toggle to general settings --- litellm/proxy/_types.py | 4 ++++ litellm/proxy/proxy_server.py | 1 + 2 files changed, 5 insertions(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index ddcdcf5f048..95739834a9a 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -2149,6 +2149,10 @@ class ConfigGeneralSettings(LiteLLMPydanticObjectBase): None, description="If True, models and config are stored in and loaded from the database. Default is False.", ) + forward_client_headers_to_llm_api: Optional[bool] = Field( + None, + description="If True, forwards client headers (e.g. Authorization) to the LLM API. Required for Claude Code with Max subscription.", + ) class ConfigYAML(LiteLLMPydanticObjectBase): diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 1e62be55bdf..75d7fcc4f3a 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -11387,6 +11387,7 @@ async def get_config_list( "mcp_internal_ip_ranges": {"type": "List"}, "mcp_trusted_proxy_ranges": {"type": "List"}, "always_include_stream_usage": {"type": "Boolean"}, + "forward_client_headers_to_llm_api": {"type": "Boolean"}, } return_val = []