#30043 [Critical Hotfix Request]: No stable LiteLLM path for Claude Code → vLLM
## Summary
I am opening this as a critical hotfix request.
The `Claude Code → LiteLLM → vLLM` path currently has no stable production-ready routing option.
Both practical LiteLLM paths are broken in different ways:
1. `hosted_vllm` can corrupt Anthropic Messages streaming. 2. `anthropic` provider preserves generation semantics, but `/v1/messages/count_tokens` is broken for custom backends.
As a result, teams using Claude Code with self-hosted vLLM do not currently have a reliable LiteLLM path.
This should be treated as a hotfix-level compatibility issue, not as a normal backlog item.
---
## Affected production path
```text Claude Code → LiteLLM → vLLM ```
This path depends on the following Anthropic-compatible behaviors:
- `/v1/messages` - streaming - content blocks - tool use blocks - tool result blocks - thinking / reasoning blocks - `/v1/messages/count_tokens` - accurate context tracking - reliable auto compaction behavior
For Claude Code-style coding-agent workflows, these are not optional features. They are part of the core runtime path.
---
## Problem 1: `hosted_vllm` can corrupt Anthropic Messages streaming
Related issue:
https://github.com/BerriAI/litell…