{"name":"CLAUDE_CODE_AUTO_MODE_SERVER","slug":"claude-code-auto-mode-server","family":"env","title":"Environment variables","noun":"environment variable","description":"Controls whether Claude Code asks the server to [review auto mode actions](\/docs\/en\/permission-modes#server-side-classifier-review). Set to `0` to use Claude Code's own classifier requests instead. On a direct connection to the Anthropic API, requires v2.1.281 or later. The linked section lists which sessions ask the server when the variable is unset, and from which version. Requires Claude Code v2.1.271 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.271","removed_in":null,"in_current_build":true,"newest_mined":"2.1.319","builds":45,"mined_builds":159,"first_cited":{"version":"2.1.278","released_at":"2026-09-19 01:48:59","spans":3}},"aliases":[],"entries":[{"version":"2.1.319","anchor":"auto-mode-no-server-check-end-offer-dialog","heading":"Auto mode asks what to do when it cannot check actions","line":"When auto mode cannot check actions in a session, Claude Code now asks whether to stay, switch to accept edits, or interrupt","released_at":"2026-11-06 00:58:56","reason":"found in this entry's text"},{"version":"2.1.315","anchor":"auto-mode-server-classifier-switch-plumbing","heading":"Groundwork for server review of auto mode with host-managed providers","line":"Claude Code adds a check for server review of auto mode actions on host-managed third-party providers, needing two environment variables","released_at":"2026-10-30 21:05:24","reason":"found in this entry's text"},{"version":"2.1.314","anchor":"auto-mode-unavailable-message-now-has-distinct-reasons-incl","heading":"Auto mode explains more specifically why it cannot check actions","line":"When auto mode cannot check actions, Claude Code now gives a specific reason and fix, including when `CLAUDE_CODE_AUTO_MODE_SERVER` turns the check off","released_at":"2026-10-30 00:12:56","reason":"found in this entry's text"},{"version":"2.1.295","anchor":"spawned-sessions-get-claude-code-restrict-personal-config1","heading":"Sessions started by Claude Code can inherit the restrict-personal-config mode","line":"Under a certain condition, Claude Code now sets `CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG` to `1` for the sessions it starts","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"setting-claude-code-auto-mode-server-now-controls-the-server","heading":"Setting CLAUDE_CODE_AUTO_MODE_SERVER now controls the server-side auto-mode classifier for first-party users, not only third-party","line":"CLAUDE_CODE_AUTO_MODE_SERVER now also switches the server-side auto-mode classifier on or off for first-party connections","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.281","anchor":"claude-code-auto-mode-server-now-overrides-the-server-classi","heading":"CLAUDE_CODE_AUTO_MODE_SERVER now overrides the server-classifier gate both ways","line":"Setting `CLAUDE_CODE_AUTO_MODE_SERVER` now forces server classifier review on or off, whichever way it is set","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.281","anchor":"claude-code-auto-mode-server-split-into-a-tri-state-user-swi","heading":"CLAUDE_CODE_AUTO_MODE_SERVER split into a tri-state user switch","line":"`CLAUDE_CODE_AUTO_MODE_SERVER` is now read as on, off or unset, so Claude Code can tell an unset variable from an explicit choice","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.278","anchor":"third-party-server-classifier-gating-tightened","heading":"Third-party server classifier gating tightened","line":"Auto mode's server-classifier eligibility check adds a new exclusion and respects CLAUDE_CODE_AUTO_MODE_SERVER as an override","released_at":"2026-09-19 01:48:59","reason":"named in this entry, found in this entry's text"},{"version":"2.1.271","anchor":"new-third-party-mcp-server-classifier-gate","heading":"New third-party MCP server classifier gate","line":"A new gate controls whether a third-party MCP server classifier is enabled, defaulting on","released_at":"2026-09-14 19:45:19","reason":"found in this entry's text, named in this entry"}],"entries_total":9,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"auto-mode-classifier-billing","title":"Auto mode classifier request charges","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"errors","title":"Error reference","documented":false},{"source":"claude-code","path":"llm-gateway-protocol","title":"Claude Code gateway compatibility guide","documented":false},{"source":"claude-code","path":"permission-modes","title":"Choose a permission mode","documented":false}],"docs_total":6,"gates":[],"related":[{"name":"CLAUDE_CODE_AUTO_MODE_ARTIFACT_CONSENT_RULE","slug":"claude-code-auto-mode-artifact-consent-rule","description":"The rule stopping Claude publishing artifacts you didn't ask for can now be removed remotely."},{"name":"CLAUDE_CODE_AUTO_MODE_CLASSIFY_ASK_USER_QUESTION","slug":"claude-code-auto-mode-classify-ask-user-question","description":"In auto mode, a question can be classified and handled instead of halting the run."},{"name":"CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS","slug":"claude-code-auto-mode-external-permissions","description":null},{"name":"CLAUDE_CODE_AUTO_MODE_FULL_CONTEXT","slug":"claude-code-auto-mode-full-context","description":"In some cases the auto mode checker now sees a trimmed conversation unless `CLAUDE_CODE_AUTO_MODE_FULL_CONTEXT` is set"},{"name":"CLAUDE_CODE_AUTO_MODE_MODEL","slug":"claude-code-auto-mode-model","description":"Claude Code now recognises `CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT` alongside its other variables for running as an MCP server"},{"name":"CLAUDE_CODE_AUTO_MODE_OUTCOME_CODES","slug":"claude-code-auto-mode-outcome-codes","description":"The switch controlling outcome codes in auto mode now runs through a wrapper with an empty branch."},{"name":"CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY","slug":"claude-code-auto-mode-repo-visibility","description":"Auto mode's awareness of whether your repo is public now has its own environment variable and config field."},{"name":"CLAUDE_CODE_AUTO_MODE_TIER","slug":"claude-code-auto-mode-tier","description":"Setting `CLAUDE_CODE_AUTO_MODE_TIER` to any value, even \"full\", makes Claude Code use the \"strict\" auto mode tier"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-auto-mode-server","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}