No endpoints available that support Anthropic - Claude Code
Quick fix
Upgrade Claude Code to v2.1.92+ and update cc-switch to fix OpenRouter parameter errors, or disable the local proxy.
Symptom
Section titled “Symptom”API Error: 400 {"error":{"message":"No endpoints available that support Anthropic's context management features (context-management-2025-06-27). Context management requires a supported provider (Anthropic).","code":400}}When running Claude Code with cc-switch 3.12.3 and OpenRouter (e.g., qwen/qwen3.6-plus:free), a 400 error is triggered because cc-switch passes unsupported parameters to OpenRouter. Additionally, older versions of Claude Code (e.g., v2.1.81) have compatibility issues with specific OpenRouter models, and local proxy settings may also interfere.
Upgrade Claude Code to v2.1.92 or higher, which fixes compatibility issues with some OpenRouter models.
Update cc-switch to the latest version; the official release fixed the bug where extra parameters were passed to OpenRouter (see issue #1898).
Try disabling the "local proxy" feature in cc-switch settings to rule out request anomalies caused by the proxy environment.
If the issue persists, temporarily switch to another model provider for testing.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- Why does Claude Code work in the terminal but report this error in the VSCode extension?
- This may be because the VSCode extension inherits different environment variables or is affected by the cc-switch local proxy. Try disabling the "local proxy" in cc-switch and ensure the extension uses Claude Code version v2.1.92 or above.
- Is this error related to the specific model used?
- Yes. Users reported this issue when using the OpenRouter qwen/qwen3.6-plus:free model; switching to other providers resolved it. Upgrading Claude Code and cc-switch usually resolves this compatibility issue.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.