Skip to content

effortLevel: max is not supported - Claude Code

Quick fix

Set the CLAUDE_CODE_EFFORT_LEVEL environment variable to high, or to max on v3.14.1+, avoiding the invalid max value mapping.

Error output
Generating "effortLevel": "max" instead

In cc-switch v3.14.0, ticking "Maximum Thinking Strength" in the Claude configuration screen wrongly sets the effortLevel field in the generated config file to "max". Claude Code in that version accepts only "low", "medium", or "high" as valid values, hence the error.

Later discussion notes that while an older Claude Code may not support "max", newer versions do. cc-switch v3.14.1 (commit 064b339b) fixed this by allowing `CLAUDE_CODE_EFFORT_LEVEL=max` to be written. Separately, ultracode mode emitting "xhigh" may need extra conversion support, but the core conflict is whether "max" is a legal value and how it maps.

  1. Upgrade cc-switch to v3.14.1 or newer for the correct effortLevel mapping.

    # src-tauri/src/proxy/providers/transform.rs (内部逻辑变更)
  2. If you cannot upgrade, edit the config file by hand and change effortLevel from "max" to "high".

ToolClaude Code
Version3.14.0
PlatformsWindows
Why does ticking Maximum Thinking Strength cause an error?
Because in v3.14.0 that option wrongly maps effortLevel to "max", while Claude Code at the time supported only low/medium/high.
How do I fix this error?
Upgrade to v3.14.1+, or change effortLevel in the config file to "high" by hand.
What about xhigh from ultracode mode?
ultracode emits xhigh, which needs extra support in the cc-switch conversion layer. For now, upgrade or relay through a local proxy.

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.