New features / v2.1.323
Add managed auto mode model for Desktop
CHANGELOG · original
Added support for CLAUDE_CODE_AUTO_MODE_MODEL in managed settings for Claude Desktop sessions on third-party providers (takes effect once Claude Desktop includes this version) Open official changelog ↗ Documentation
Documentation excerpt
Choose the classifier model
With Claude Code v2.1.302 or later, set CLAUDE_CODE_AUTO_MODE_MODEL to a full model ID to run the classifier on a model other than the default. Your cloud provider's own full model IDs work too. This ~/.claude/settings.json example sets Claude Sonnet 4.6:
{
"env": {
"CLAUDE_CODE_AUTO_MODE_MODEL": "claude-sonnet-4-6"
}
}
When your model doesn't review
| Situation | What happens | What to do |
|---|---|---|
| The debug log reports an Anthropic-configured classifier model | That model reviews | None needed |
| You set Claude Opus 5, Sonnet 5.5, Opus 5.5 or one your organization's model policy excludes | The default classifier model reviews | Set another model |
| Your provider can't serve the model | Classifier checks fail, so Claude Code denies each action it checks | Set a model it serves, or remove the variable |
In a session, /status shows Auto mode server as Enabled |
The server reviews without your model | None needed |
If several situations apply, go by the first listed.
Check which model the classifier used
From your shell, start an auto mode session with --debug-file:
claude --permission-mode auto --debug-file classifier-debug.log
To give the classifier a command to review, have Claude run curl https://example.com, then search the log for classifier_request_started:
- Your model after
model=: the variable took effect - A different model after
model=: search the log forignoring CLAUDE_CODE_AUTO_MODE_MODEL, which gives the reason and any step to take - No such line: read
Auto mode serverin/statusat the Claude Code prompt:Enabled: the server is set to review this session's calls.Disabled: this check hasn't tested your model yet. Make sure the permission mode is auto and no permission rule matchescurl, then run the check again with the sandbox off.
Documentation snapshot · 2026-11-20