Skip to content

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.

Error output
Unsupported content type: redacted_thinking

When 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.

  1. Download and run a third-party proxy tool such as openrouter-proxy, which intercepts and filters out the incompatible redacted_thinking blocks automatically.

  2. 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.json
    https://openrouter.ai
    http://127.0.0.1:8899
ToolClaude Code
Version2.1.209 - 2.1.218
PlatformsWindowsmacOS
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.

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.