Skip to main content

15 posts tagged with "anthropic"

View All Tags

Claude Code server-side auto mode through LiteLLM

Mateo Wang
AI Engineer, LiteLLM

Last Updated: October 9, 2026

Anthropic is moving the Claude Code auto mode safety classifier from the client to the Claude API. From v2.1.278 onwards (released 19 September), sessions on Enterprise plans and Claude API accounts will have the safety classifier run on the server as part of the model request. There is no cost to Anthropic for the classifier to run on the server. The rollout began on 18 September and is gradual, starting with the Claude Code CLI and VS Code extension, followed by the desktop app and Claude Code in the browser over the following week. On 25 September auto mode will become the default permission mode in Claude Code. Currently the default is auto on Pro, Max and Team plans and manual on Enterprise plans and Claude API keys (the accounts that are typically behind a gateway) as per Anthropic's permission modes reference.

Server side auto mode is predicated on a contract between Claude Code and the API which some gateways (LiteLLM included) did not honour. The fix first appeared in the dev release cut on Tuesday 22nd September and is now in v1.104.0 stable as well as in the patch releases of the earlier lines. This post covers what Claude Code requires from an AI Gateway, what LiteLLM was doing wrong, what has changed, which release has it, and how you can verify your deployment is ready.

Incident Report: Invalid beta headers with Claude Code

Sameer Kankute
SWE @ LiteLLM (LLM Translation)
Ishaan Jaffer
CTO, LiteLLM
Krrish Dholakia
CEO, LiteLLM

Date: February 13, 2026 Duration: ~3 hours Severity: High Status: Resolved

Note: This fix will be available starting from v1.81.13-nightly or higher of LiteLLM.

Summary​

Claude Code began sending unsupported Anthropic beta headers to non-Anthropic providers (Bedrock, Azure AI, Vertex AI), causing invalid beta flag errors. LiteLLM was forwarding all beta headers without provider-specific validation. Users experienced request failures when routing Claude Code requests through LiteLLM to these providers.

  • LLM calls to Anthropic: No impact.
  • LLM calls to Bedrock/Azure/Vertex: Failed with invalid beta flag errors when unsupported headers were present.
  • Cost tracking and routing: No impact.