Unsupported content type: redacted_thinking - Claude Code
Quick fix
Run a local proxy such as openrouter-proxy to filter out redacted_thinking blocks, and point the Claude Code config at that proxy.
Symptom
Section titled “Symptom”Unsupported content type: redacted_thinkingWhen cc-switch or OpenRouter routes Claude Code requests to a non-native-Anthropic model (OpenAI GPT, Codex), the streaming response from upstream contains redacted_thinking content blocks.
The Claude Code client — the VS Code extension especially — cannot recognise that non-standard internal reasoning block, so it throws an unsupported type error and the output stops. The cc-switch mainline does not yet include logic to filter that field.
Download and run a third-party proxy tool such as openrouter-proxy, which intercepts and filters out the incompatible redacted_thinking blocks automatically.
Edit the Claude Code config file and change the API request address from the original one to the local proxy address.
// C:\Users\<your_username>\.claude\settings.jsonhttps://openrouter.aihttp://127.0.0.1:8899
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 4 real issues
- The Claude Code extension cannot reach the target after installing and running openrouter-proxy. What now?
- Check you changed the URL in C:\Users\<your_username>\.claude\settings.json correctly — it has to go from https://openrouter.ai to the local proxy address http://127.0.0.1:8899.
- Will cc-switch integrate this fix as an optional switch?
- The community has submitted a pull request to integrate the filtering into cc-switch, but until it is merged officially and released, a third-party proxy tool is still needed.
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.