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 = []