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.
Symptom
Section titled “Symptom”Generating "effortLevel": "max" insteadIn 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.
Upgrade cc-switch to v3.14.1 or newer for the correct effortLevel mapping.
# src-tauri/src/proxy/providers/transform.rs (内部逻辑变更)If you cannot upgrade, edit the config file by hand and change effortLevel from "max" to "high".
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- 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.
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.