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
Litellm dev 01 15 2026 p1 (#19153)
Krish Dholakia664ee27ef54a
diff --git a/cookbook/ai_coding_tool_guides/index.json b/cookbook/ai_coding_tool_guides/index.jsonindex e18a6e7607f..fbd47d0fc43 100644--- a/cookbook/ai_coding_tool_guides/index.json+++ b/cookbook/ai_coding_tool_guides/index.json@@ -20,4 +20,17 @@"LiteLLM","MCP"]+},+{+ "title": "Claude Code with Non-Anthropic Models",+ "description": "This is a guide to using Claude Code with non-Anthropic models via LiteLLM Proxy.",+ "url": "https://docs.litellm.ai/docs/tutorials/claude_non_anthropic_models",+ "date": "2026-01-16",+ "version": "1.0.0",+ "tags": [+ "Claude Code",+ "LiteLLM",+ "OpenAI",+ "Gemini"+ ]}]\ No newline at end of filediff --git a/docs/my-website/docs/tutorials/claude_mcp.md b/docs/my-website/docs/tutorials/claude_mcp.mdindex 54d2f841c4c..07c3cead0be 100644--- a/docs/my-website/docs/tutorials/claude_mcp.md+++ b/docs/my-website/docs/tutorials/claude_mcp.md@@ -1,15 +1,11 @@import Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';-# Claude MCP Quickstart+# Use Claude Code with MCPsThis tutorial shows how to connect MCP servers to Claude Code via LiteLLM Proxy.-:::info--This tutorial is based on [Anthropic's official LiteLLM configuration documentation](https://docs.anthropic.com/en/docs/claude-code/llm-gateway#litellm-configuration). This integration allows you to use any LiteLLM supported model through Claude Code with centralized authentication, usage tracking, and cost controls.--:::+Note: LiteLLM supports OAuth for MCP servers as well. [Learn more](https://docs.litellm.ai/docs/mcp#mcp-oauth)## Connecting MCP Servers@@ -95,4 +91,3 @@ d. Start Oauth flow via Claude Codee. Once completed, you should see this success message:<img src={require('../../img/oauth_2_success.png').default} alt="OAuth 2.0 Success" style={{ width: '500px', height: 'auto' }} />-diff --git a/docs/my-website/docs/tutorials/claude_non_anthropic_models.md b/docs/my-website/docs/tutorials/claude_non_anthropic_models.mdnew file mode 100644index 00000000000..75ac08e3094--- /dev/null+++ b/docs/my-website/docs/tutorials/claude_non_anthropic_models.md@@ -0,0 +1,316 @@+import Image from '@theme/IdealImage';+import Tabs from '@theme/Tabs';+import TabItem from '@theme/TabItem';++# Use Claude Code with Non-Anthropic Models++This tutorial shows how to use Claude Code with non-Anthropic models like OpenAI, Gemini, and other LLM providers through LiteLLM proxy.++:::info++LiteLLM automatically translates between different provider formats, allowing you to use any supported LLM provider with Claude Code while maintaining the Anthropic Messages API format.++:::++## Prerequisites++- [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) installed+- API keys for your chosen providers (OpenAI, Vertex AI, etc.)++## Installation++First, install LiteLLM with proxy support:++```bash+pip install 'litellm[proxy]'+```++## Configuration++### 1. Setup config.yaml++Create a configuration file with your preferred non-Anthropic models:++<Tabs>+<TabItem value="openai" label="OpenAI">++```yaml+model_list:+ # OpenAI GPT-4o+ - model_name: gpt-4o+ litellm_params:+ model: openai/gpt-4o+ api_key: os.environ/OPENAI_API_KEY++ # OpenAI GPT-4o-mini+ - model_name: gpt-4o-mini+ litellm_params:+ model: openai/gpt-4o-mini+ api_key: os.environ/OPENAI_API_KEY+```++Set your environment variables:++```bash+export OPENAI_API_KEY="your-openai-api-key"+export LITELLM_MASTER_KEY="sk-1234567890" # Generate a secure key+```++</TabItem>+<TabItem value="gemini" label="Google AI Studio">++```yaml+model_list:+ # Google Gemini+ - model_name: gemini-3.0-flash-exp+ litellm_params:+ model: gemini/gemini-3.0-flash-exp+ api_key: os.environ/GEMINI_API_KEY+```++Set your environment variables:++```bash+export GEMINI_API_KEY="your-gemini-api-key"+export LITELLM_MASTER_KEY="sk-1234567890" # Generate a secure key+```++</TabItem>+<TabItem value="vertex_ai" label="Vertex AI">++```yaml+model_list:+ # Google Gemini+ - model_name: vertex-gemini-3-flash-preview+ litellm_params:+ model: vertex_ai/gemini-3-flash-preview+ vertex_credentials: os.environ/VERTEX_FILE_PATH_ENV_VAR # os.environ["VERTEX_FILE_PATH_ENV_VAR"] = "/path/to/service_account.json"+ vertex_project: "my-test-project"+ vertex_location: "us-east-1"++ # Anthropic Claude+ - model_name: anthropic-vertex+ litellm_params:+ model: vertex_ai/claude-3-sonnet@20240229+ vertex_ai_project: "my-test-project"+ vertex_ai_location: "us-east-1"+ vertex_credentials: os.environ/VERTEX_FILE_PATH_ENV_VAR # os.environ["VERTEX_FILE_PATH_ENV_VAR"] = "/path/to/service_account.json"+```++Set your environment variables:++```bash+export VERTEX_FILE_PATH_ENV_VAR="/path/to/service_account.json"+export LITELLM_MASTER_KEY="sk-1234567890"+```++</TabItem>+<TabItem value="multi" label="Azure OpenAI">++```yaml+model_list:+ # Azure OpenAI+ - model_name: azure-gpt-4+ litellm_params:+ model: azure/gpt-4+ api_key: os.environ/AZURE_API_KEY+ api_base: os.environ/AZURE_API_BASE+ api_version: "2024-02-01"+```++Set your environment variables:++```bash+export AZURE_API_KEY="your-azure-api-key"+export AZURE_API_BASE="https://your-resource.openai.azure.com"+export LITELLM_MASTER_KEY="sk-1234567890"+```++</TabItem>+</Tabs>++### 2. Start LiteLLM Proxy++```bash+litellm --config /path/to/config.yaml++# RUNNING on http://0.0.0.0:4000+```++### 3. Verify Setup++Test that your proxy is working correctly:++<Tabs>+<TabItem value="openai-test" label="OpenAI">++```bash+curl -X POST http://0.0.0.0:4000/v1/messages \+-H "Authorization: Bearer $LITELLM_MASTER_KEY" \+-H "Content-Type: application/json" \+-d '{+ "model": "gpt-4o",+ "max_tokens": 1000,+ "messages": [{"role": "user", "content": "What is the capital of France?"}]+}'+```++</TabItem>+<TabItem value="gemini-test" label="Google AI Studio">++```bash+curl -X POST http://0.0.0.0:4000/v1/messages \+-H "Authorization: Bearer $LITELLM_MASTER_KEY" \+-H "Content-Type: application/json" \+-d '{+ "model": "gemini-3.0-flash-exp",+ "max_tokens": 1000,+ "messages": [{"role": "user", "content": "What is the capital of France?"}]+}'+```++</TabItem>+<TabItem value="vertex-test" label="Vertex AI">++```bash+curl -X POST http://0.0.0.0:4000/v1/messages \+-H "Authorization: Bearer $LITELLM_MASTER_KEY" \+-H "Content-Type: application/json" \+-d '{+ "model": "gemini-3.0-flash-exp",+ "max_tokens": 1000,+ "messages": [{"role": "user", "content": "What is the capital of France?"}]+}'+```++</TabItem>+<TabItem value="azure-test" label="Azure OpenAI">++```bash+curl -X POST http://0.0.0.0:4000/v1/messages \+-H "Authorization: Bearer $LITELLM_MASTER_KEY" \+-H "Content-Type: application/json" \+-d '{+ "model": "azure-gpt-4",+ "max_tokens": 1000,+ "messages": [{"role": "user", "content": "What is the capital of France?"}]+}'+```++</TabItem>+</Tabs>++### 4. Configure Claude Code++Configure Claude Code to use your LiteLLM proxy:++```bash+export ANTHROPIC_BASE_URL="http://0.0.0.0:4000"+export ANTHROPIC_AUTH_TOKEN="$LITELLM_MASTER_KEY"+```++:::tip+The `LITELLM_MASTER_KEY` gives Claude Code access to all proxy models. You can also create virtual keys in the LiteLLM UI to limit access to specific models.+:::++### 5. Use Claude Code with Non-Anthropic Models++Start Claude Code and specify which model to use:++```bash+# Use OpenAI GPT-4o+claude --model gpt-4o++# Use OpenAI GPT-4o-mini for faster responses+claude --model gpt-4o-mini++# Use Google Gemini+claude --model gemini-3.0-flash-exp++# Use Vertex AI Gemini+claude --model vertex-gemini-3-flash-preview++# Use Vertex AI Anthropic Claude+claude --model anthropic-vertex++# Use Azure OpenAI+claude --model azure-gpt-4+```++## How It Works++LiteLLM acts as a unified interface that:++1. **Receives requests** from Claude Code in Anthropic Messages API format+2. **Translates** the request to the target provider's format (OpenAI, Gemini, etc.)+3. **Forwards** the request to the actual provider+4. **Translates** the response back to Anthropic Messages API format+5. **Returns** the response to Claude Code++This allows you to use Claude Code's interface with any LLM provider supported by LiteLLM.++## Advanced Features++### Load Balancing and Fallbacks++Configure multiple deployments with automatic fallback:++```yaml+model_list:+ - model_name: gpt-4o # virtual model name+ litellm_params:+ model: openai/gpt-4o+ api_key: os.environ/OPENAI_API_KEY++ - model_name: gpt-4o # same virtual name+ litellm_params:+ model: azure/gpt-4o+ api_key: os.environ/AZURE_API_KEY+ api_base: os.environ/AZURE_API_BASE++router_settings:+ routing_strategy: simple-shuffle # Load balance between deployments+ num_retries: 2+ timeout: 30+```++### Usage Tracking and Budgets++Track usage and set budgets through the LiteLLM UI:++```yaml+litellm_settings:+ master_key: os.environ/LITELLM_MASTER_KEY+ database_url: "postgresql://..." # Enable database for tracking++general_settings:+ store_model_in_db: true+```++Start the proxy with the UI:++```bash+litellm --config /path/to/config.yaml --detailed_debug+```++Access the UI at `http://0.0.0.0:4000/ui` to:+- View usage analytics+- Set budget limits per user/key+- Monitor costs across different providers+- Create virtual keys with specific permissions+++## Supported Providers++LiteLLM supports 100+ providers. Here are some popular ones for use with Claude Code:++- **OpenAI**: GPT-4o, GPT-4o-mini, o1, o3-mini+- **Google**: Gemini 2.0 Flash, Gemini 1.5 Pro/Flash+- **Azure OpenAI**: All OpenAI models via Azure+- **AWS Bedrock**: Llama, Mistral, and other models+- **Vertex AI**: Gemini, Claude, and other models on Google Cloud+- **Groq**: Fast inference for Llama and Mixtral+- **Together AI**: Llama, Mixtral, and other open source models+- **Deepseek**: Deepseek-chat, Deepseek-coder++[View full list of supported providers →](https://docs.litellm.ai/docs/providers)diff --git a/docs/my-website/docs/tutorials/claude_responses_api.md b/docs/my-website/docs/tutorials/claude_responses_api.mdindex 4c86329d6f1..6b681d93a83 100644--- a/docs/my-website/docs/tutorials/claude_responses_api.md+++ b/docs/my-website/docs/tutorials/claude_responses_api.md@@ -142,7 +142,7 @@ Common issues and solutions:- Ensure the model name in Claude Code matches exactly with your `config.yaml`- Check LiteLLM logs for detailed error messages-## Using Multiple Models+## Using Bedrock/Vertex AI/Azure Foundry ModelsExpand your configuration to support multiple providers and models:@@ -151,25 +151,6 @@ Expand your configuration to support multiple providers and models:```yamlmodel_list:- # OpenAI models- - model_name: codex-mini- litellm_params:- model: openai/codex-mini- api_key: os.environ/OPENAI_API_KEY- api_base: https://api.openai.com/v1-- - model_name: o3-pro- litellm_params:- model: openai/o3-pro- api_key: os.environ/OPENAI_API_KEY- api_base: https://api.openai.com/v1-- - model_name: gpt-4o- litellm_params:- model: openai/gpt-4o- api_key: os.environ/OPENAI_API_KEY- api_base: https://api.openai.com/v1-# Anthropic models- model_name: claude-3-5-sonnet-20241022litellm_params:@@ -189,6 +170,24 @@ model_list:aws_secret_access_key: os.environ/AWS_SECRET_ACCESS_KEYaws_region_name: us-east-1+ # Azure Foundry+ - model_name: claude-4-azure+ litellm_params:+ model: azure_ai/claude-opus-4-1+ api_key: os.environ/AZURE_AI_API_KEY+ api_base: os.environ/AZURE_AI_API_BASE # https://my-resource.services.ai.azure.com/anthropic++ # Google Vertex AI+ - model_name: anthropic-vertex+ litellm_params:+ model: vertex_ai/claude-haiku-4-5@20251001+ vertex_ai_project: "my-test-project"+ vertex_ai_location: "us-east-1"+ vertex_credentials: os.environ/VERTEX_FILE_PATH_ENV_VAR # os.environ["VERTEX_FILE_PATH_ENV_VAR"] = "/path/to/service_account.json"++++litellm_settings:master_key: os.environ/LITELLM_MASTER_KEY```@@ -204,6 +203,12 @@ claude --model claude-3-5-haiku-20241022# Use Bedrock deploymentclaude --model claude-bedrock++# Use Azure Foundry deployment+claude --model claude-4-azure++# Use Vertex AI deployment+claude --model anthropic-vertex```</TabItem>diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.jsindex b34e0c07648..046b38323b2 100644--- a/docs/my-website/sidebars.js+++ b/docs/my-website/sidebars.js@@ -108,13 +108,21 @@ const sidebars = {{type: "category",label: "AI Tools (OpenWebUI, Claude Code, etc.)",+ link: {+ type: "generated-index",+ title: "AI Tools",+ description: "Integrate LiteLLM with AI tools like OpenWebUI, Claude Code, and more",+ slug: "/ai_tools"+ },items: [+ "tutorials/openweb_ui",{type: "category",label: "Claude Code",items: ["tutorials/claude_responses_api","tutorials/claude_mcp",+ "tutorials/claude_non_anthropic_models",]},"tutorials/cost_tracking_coding",@@ -122,8 +130,7 @@ const sidebars = {"tutorials/github_copilot_integration","tutorials/litellm_gemini_cli","tutorials/litellm_qwen_code_cli",- "tutorials/openai_codex",- "tutorials/openweb_ui"+ "tutorials/openai_codex"]},@@ -869,10 +876,11 @@ const sidebars = {type: "category",label: "Tutorials",items: [- "tutorials/openweb_ui",- "tutorials/openai_codex",- "tutorials/litellm_gemini_cli",- "tutorials/litellm_qwen_code_cli",+ {+ type: "link",+ label: "AI Coding Tools (OpenWebUI, Claude Code, Gemini CLI, OpenAI Codex, etc.)",+ href: "/docs/ai_tools",+ },"tutorials/anthropic_file_usage","tutorials/default_team_self_serve","tutorials/msft_sso",@@ -882,7 +890,6 @@ const sidebars = {"tutorials/presidio_pii_masking","tutorials/elasticsearch_logging","tutorials/gemini_realtime_with_audio",- "tutorials/claude_responses_api",{type: "category",label: "LiteLLM Python SDK Tutorials",diff --git a/litellm/proxy/_experimental/out/api-reference.html b/litellm/proxy/_experimental/out/api-reference/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/api-reference.htmlrename to litellm/proxy/_experimental/out/api-reference/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/api-playground.html b/litellm/proxy/_experimental/out/experimental/api-playground/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/api-playground.htmlrename to litellm/proxy/_experimental/out/experimental/api-playground/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/budgets.html b/litellm/proxy/_experimental/out/experimental/budgets/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/budgets.htmlrename to litellm/proxy/_experimental/out/experimental/budgets/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/caching.html b/litellm/proxy/_experimental/out/experimental/caching/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/caching.htmlrename to litellm/proxy/_experimental/out/experimental/caching/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/old-usage.html b/litellm/proxy/_experimental/out/experimental/old-usage/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/old-usage.htmlrename to litellm/proxy/_experimental/out/experimental/old-usage/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/prompts.html b/litellm/proxy/_experimental/out/experimental/prompts/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/prompts.htmlrename to litellm/proxy/_experimental/out/experimental/prompts/index.htmldiff --git a/litellm/proxy/_experimental/out/experimental/tag-management.html b/litellm/proxy/_experimental/out/experimental/tag-management/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/experimental/tag-management.htmlrename to litellm/proxy/_experimental/out/experimental/tag-management/index.htmldiff --git a/litellm/proxy/_experimental/out/guardrails.html b/litellm/proxy/_experimental/out/guardrails.htmldeleted file mode 100644index d245994295f..00000000000--- a/litellm/proxy/_experimental/out/guardrails.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/webpack-134f5d194761e240.js"/><script src="/litellm-asset-prefix/_next/static/chunks/fd9d1056-a07bacd8fcc2728b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2117-bb4323b3c0b11a1f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/main-app-77a6ca3c04ee9adf.js" async=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link rel="icon" href="./favicon.ico"/><meta name="next-size-adjust"/><script src="/litellm-asset-prefix/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/litellm-asset-prefix/_next/static/chunks/webpack-134f5d194761e240.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/litellm-asset-prefix/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"style\"]\n3:HL[\"/litellm-asset-prefix/_next/static/css/acd478299f7f6aa6.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"4:I[12846,[],\"\"]\n6:I[19107,[],\"ClientPageRoot\"]\n7:I[49514,[\"9028\",\"static/chunks/9028-2bfc9f09930a0d61.js\",\"9409\",\"static/chunks/9409-6eefc92a7f8433ff.js\",\"1713\",\"static/chunks/1713-b3fdb241d0f3ae7a.js\",\"4865\",\"static/chunks/4865-c1c0885a93c327fa.js\",\"337\",\"static/chunks/337-bb33d149e9f461b3.js\",\"8135\",\"static/chunks/8135-881fe2cea0032570.js\",\"1442\",\"static/chunks/1442-024f7e51804e0d7e.js\",\"2926\",\"static/chunks/2926-a9cb83e61fc8ad20.js\",\"2409\",\"static/chunks/2409-e94c05c6f11bb939.js\",\"3367\",\"static/chunks/3367-33bb84b3d3d247b2.js\",\"3709\",\"static/chunks/3709-34dbb332d3a3ac26.js\",\"353\",\"static/chunks/353-e55516ea4730f9d4.js\",\"1994\",\"static/chunks/1994-a4d0b99849c16b62.js\",\"7138\",\"static/chunks/7138-4d1aac68a98442b8.js\",\"7851\",\"static/chunks/7851-c10cbe6fcac2f9d6.js\",\"2068\",\"static/chunks/2068-2c78bfc32dc0de5f.js\",\"8565\",\"static/chunks/8565-5c05f6bbb9d0662f.js\",\"5869\",\"static/chunks/5869-99bf8c2997f4811f.js\",\"5319\",\"static/chunks/5319-5b2d4bf2dc450f99.js\",\"8582\",\"static/chunks/8582-3a775364dbf07fa8.js\",\"6609\",\"static/chunks/6609-d93906f43161f066.js\",\"5945\",\"static/chunks/5945-8b3b7713d7f416a2.js\",\"2512\",\"static/chunks/2512-088e26ac9d573932.js\",\"7038\",\"static/chunks/7038-d0da4f296b52ff2c.js\",\"8049\",\"static/chunks/8049-4d78caf73638c2f1.js\",\"137\",\"static/chunks/137-639f92dd476d20a9.js\",\"6607\",\"static/chunks/app/(dashboard)/guardrails/page-284c5c9327640cac.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[36423,[],\"\"]\na:I[53104,[\"9028\",\"static/chunks/9028-2bfc9f09930a0d61.js\",\"9409\",\"static/chunks/9409-6eefc92a7f8433ff.js\",\"1713\",\"static/chunks/1713-b3fdb241d0f3ae7a.js\",\"4865\",\"static/chunks/4865-c1c0885a93c327fa.js\",\"3367\",\"static/chunks/3367-33bb84b3d3d247b2.js\",\"3709\",\"static/chunks/3709-34dbb332d3a3ac26.js\",\"7138\",\"static/chunks/7138-4d1aac68a98442b8.js\",\"9165\",\"static/chunks/9165-82d12d1c73da639d.js\",\"4388\",\"static/chunks/4388-2f4ca3419d20af67.js\",\"8049\",\"static/chunks/8049-4d78caf73638c2f1.js\",\"5642\",\"static/chunks/app/(dashboard)/layout-e63b613e46c2e033.js\"],\"default\",1]\n11:I[61060,[],\"\"]\nb:{}\nc:{\"fontFamily\":\"system-ui,\\\"Se"])</script><script>self.__next_f.push([1,"goe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\nd:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\ne:{\"display\":\"inline-block\"}\nf:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n12:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L4\",null,{\"buildId\":\"1-ApFSfWImQ15E9std-To\",\"assetPrefix\":\"/litellm-asset-prefix\",\"urlParts\":[\"\",\"guardrails\"],\"initialTree\":[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"guardrails\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"guardrails\",{\"children\":[\"__PAGE__\",{},[[\"$L5\",[\"$\",\"$L6\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$7\"}],null],null],null]},[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"(dashboard)\",\"children\",\"guardrails\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"$La\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"(dashboard)\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}],\"params\":\"$b\"}]],null],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/acd478299f7f6aa6.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_1c856b\",\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$c\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$d\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$e\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$f\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L10\"],\"globalErrorComponent\":\"$11\",\"missingSlots\":\"$W12\"}]\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"5\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"meta\",\"6\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/login.html b/litellm/proxy/_experimental/out/login/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/login.htmlrename to litellm/proxy/_experimental/out/login/index.htmldiff --git a/litellm/proxy/_experimental/out/logs.html b/litellm/proxy/_experimental/out/logs/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/logs.htmlrename to litellm/proxy/_experimental/out/logs/index.htmldiff --git a/litellm/proxy/_experimental/out/mcp/oauth/callback.html b/litellm/proxy/_experimental/out/mcp/oauth/callback/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/mcp/oauth/callback.htmlrename to litellm/proxy/_experimental/out/mcp/oauth/callback/index.htmldiff --git a/litellm/proxy/_experimental/out/model-hub.html b/litellm/proxy/_experimental/out/model-hub/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/model-hub.htmlrename to litellm/proxy/_experimental/out/model-hub/index.htmldiff --git a/litellm/proxy/_experimental/out/model_hub_table.html b/litellm/proxy/_experimental/out/model_hub_table/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/model_hub_table.htmlrename to litellm/proxy/_experimental/out/model_hub_table/index.htmldiff --git a/litellm/proxy/_experimental/out/models-and-endpoints.html b/litellm/proxy/_experimental/out/models-and-endpoints/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/models-and-endpoints.htmlrename to litellm/proxy/_experimental/out/models-and-endpoints/index.htmldiff --git a/litellm/proxy/_experimental/out/onboarding.html b/litellm/proxy/_experimental/out/onboarding.htmldeleted file mode 100644index c9fb378bb0a..00000000000--- a/litellm/proxy/_experimental/out/onboarding.html+++ /dev/null@@ -1 +0,0 @@-<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/webpack-134f5d194761e240.js"/><script src="/litellm-asset-prefix/_next/static/chunks/fd9d1056-a07bacd8fcc2728b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2117-bb4323b3c0b11a1f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/main-app-77a6ca3c04ee9adf.js" async=""></script><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"/><link rel="icon" href="./favicon.ico"/><meta name="next-size-adjust"/><script src="/litellm-asset-prefix/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><script src="/litellm-asset-prefix/_next/static/chunks/webpack-134f5d194761e240.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/litellm-asset-prefix/_next/static/media/e4af272ccee01ff0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"style\"]\n3:HL[\"/litellm-asset-prefix/_next/static/css/acd478299f7f6aa6.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"4:I[12846,[],\"\"]\n6:I[19107,[],\"ClientPageRoot\"]\n7:I[12011,[\"3665\",\"static/chunks/3014691f-ba91873bc8fe3fad.js\",\"9028\",\"static/chunks/9028-2bfc9f09930a0d61.js\",\"9409\",\"static/chunks/9409-6eefc92a7f8433ff.js\",\"4865\",\"static/chunks/4865-c1c0885a93c327fa.js\",\"2901\",\"static/chunks/2901-0cdd0656eb7463d6.js\",\"8049\",\"static/chunks/8049-4d78caf73638c2f1.js\",\"8461\",\"static/chunks/app/onboarding/page-0e0b8a8621f762fa.js\"],\"default\",1]\n8:I[4707,[],\"\"]\n9:I[36423,[],\"\"]\nb:I[61060,[],\"\"]\nc:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L4\",null,{\"buildId\":\"1-ApFSfWImQ15E9std-To\",\"assetPrefix\":\"/litellm-asset-prefix\",\"urlParts\":[\"\",\"onboarding\"],\"initialTree\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{},[[\"$L5\",[\"$\",\"$L6\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$7\"}],null],null],null]},[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"onboarding\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/349654da14372cd9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/css/acd478299f7f6aa6.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_1c856b\",\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"16x16\"}],[\"$\",\"link\",\"5\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"meta\",\"6\",{\"name\":\"next-size-adjust\"}]]\n5:null\n"])</script></body></html>\ No newline at end of filediff --git a/litellm/proxy/_experimental/out/organizations.html b/litellm/proxy/_experimental/out/organizations/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/organizations.htmlrename to litellm/proxy/_experimental/out/organizations/index.htmldiff --git a/litellm/proxy/_experimental/out/playground.html b/litellm/proxy/_experimental/out/playground/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/playground.htmlrename to litellm/proxy/_experimental/out/playground/index.htmldiff --git a/litellm/proxy/_experimental/out/settings/admin-settings.html b/litellm/proxy/_experimental/out/settings/admin-settings/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/settings/admin-settings.htmlrename to litellm/proxy/_experimental/out/settings/admin-settings/index.htmldiff --git a/litellm/proxy/_experimental/out/settings/logging-and-alerts.html b/litellm/proxy/_experimental/out/settings/logging-and-alerts/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/settings/logging-and-alerts.htmlrename to litellm/proxy/_experimental/out/settings/logging-and-alerts/index.htmldiff --git a/litellm/proxy/_experimental/out/settings/router-settings.html b/litellm/proxy/_experimental/out/settings/router-settings/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/settings/router-settings.htmlrename to litellm/proxy/_experimental/out/settings/router-settings/index.htmldiff --git a/litellm/proxy/_experimental/out/settings/ui-theme.html b/litellm/proxy/_experimental/out/settings/ui-theme/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/settings/ui-theme.htmlrename to litellm/proxy/_experimental/out/settings/ui-theme/index.htmldiff --git a/litellm/proxy/_experimental/out/teams.html b/litellm/proxy/_experimental/out/teams/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/teams.htmlrename to litellm/proxy/_experimental/out/teams/index.htmldiff --git a/litellm/proxy/_experimental/out/test-key.html b/litellm/proxy/_experimental/out/test-key/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/test-key.htmlrename to litellm/proxy/_experimental/out/test-key/index.htmldiff --git a/litellm/proxy/_experimental/out/tools/mcp-servers.html b/litellm/proxy/_experimental/out/tools/mcp-servers/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/tools/mcp-servers.htmlrename to litellm/proxy/_experimental/out/tools/mcp-servers/index.htmldiff --git a/litellm/proxy/_experimental/out/tools/vector-stores.html b/litellm/proxy/_experimental/out/tools/vector-stores/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/tools/vector-stores.htmlrename to litellm/proxy/_experimental/out/tools/vector-stores/index.htmldiff --git a/litellm/proxy/_experimental/out/usage.html b/litellm/proxy/_experimental/out/usage/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/usage.htmlrename to litellm/proxy/_experimental/out/usage/index.htmldiff --git a/litellm/proxy/_experimental/out/users.html b/litellm/proxy/_experimental/out/users/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/users.htmlrename to litellm/proxy/_experimental/out/users/index.htmldiff --git a/litellm/proxy/_experimental/out/virtual-keys.html b/litellm/proxy/_experimental/out/virtual-keys/index.htmlsimilarity index 100%rename from litellm/proxy/_experimental/out/virtual-keys.htmlrename to litellm/proxy/_experimental/out/virtual-keys/index.htmldiff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yamlindex 0bdee099720..13eeae14485 100644--- a/litellm/proxy/_new_secret_config.yaml+++ b/litellm/proxy/_new_secret_config.yaml@@ -14,76 +14,3 @@ model_list:litellm_params:model: openai/gpt-4.1-mini--# guardrails:-# - guardrail_name: generic-guardrail-# litellm_params:-# guardrail: generic_guardrail_api-# mode: ["pre_call"]-# headers:-# Authorization: Bearer mock-bedrock-token-12345-# api_base: http://localhost:8080-# default_on: true--guardrails:- - guardrail_name: "harmful-content-filter"- litellm_params:- guardrail: litellm_content_filter- mode: "pre_call"- default_on: true- # Model configuration- image_model: "claude-sonnet-4-5-20250929"-- categories:- - category: "harmful_self_harm"- enabled: true- action: "BLOCK"- severity_threshold: "medium" # Block medium+-- - category: "harmful_violence"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit-- - category: "harmful_illegal_weapons"- enabled: true- action: "BLOCK"- severity_threshold: "low" # Strictest-- - category: "bias_gender"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit to reduce false positives-- - category: "bias_sexual_orientation"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit to reduce false positives-- - category: "denied_medical_advice"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit to reduce false positives-- - category: "denied_legal_advice"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit to reduce false positives-- - category: "denied_financial_advice"- enabled: true- action: "BLOCK"- severity_threshold: "high" # Only explicit to reduce false positives---prompts:- - prompt_id: "simple_prompt"- litellm_params:- guardrail: generic_guardrail_api- mode: ["post_call"]- headers:- Authorization: Bearer mock-bedrock-token-12345- api_base: http://localhost:8080- api_key: os.environ/BRAINTRUST_API_KEY- ignore_prompt_manager_model: true- ignore_prompt_manager_optional_params: truediff --git a/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py b/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.pyindex f66341fde5c..80f9860bdff 100644--- a/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py+++ b/litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py@@ -79,8 +79,12 @@ class UnifiedLLMGuardrails(CustomLogger):endpoint_guardrail_translation_mappings = (load_guardrail_translation_mappings())- if CallTypes(call_type) not in endpoint_guardrail_translation_mappings:- return data++ try:+ if CallTypes(call_type) not in endpoint_guardrail_translation_mappings:+ return data+ except ValueError:+ return data # handle unmapped call typesendpoint_translation = endpoint_guardrail_translation_mappings[CallTypes(call_type)diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex b5523385f08..8301a6da2d9 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -364,6 +364,11 @@ class CallTypes(str, Enum):asend_message = "asend_message"send_message = "send_message"+ #########################################################+ # Claude Code Call Types+ #########################################################+ acreate_skill = "acreate_skill"+CallTypesLiteral = Literal["embedding",@@ -420,6 +425,7 @@ CallTypesLiteral = Literal["send_message","aresponses","responses",+ "acreate_skill",]# Mapping of API routes to their corresponding call types