Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Configure server-managed settings changedserver-managed-settings

Nearest release: v2.1.334, published 5 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 2 Dec 2026 00:44 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 01:07 UTC.

Upstream edited
Recorded here
Lines+15added
Lines−7removed
From line 77 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits75to this page, all time

The whole hunk

from line 77, old and new numbered
/
lines
from line 77
7777}
7878```
7979 
80Because hooks execute shell commands, users in interactive sessions see a [security approval dialog](#security-approval-dialogs) before Claude Code applies them.
80Because hooks execute shell commands, users approve them first when Claude Code [asks for approval](#security-approval-dialogs).
8181 
8282To configure the [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) classifier so it knows which repos, buckets, and domains your organization trusts, deliver an `autoMode` block the same way; see [Configure auto mode](https://code.claude.com/docs/en/auto-mode-config.md) for how the `autoMode` entries affect what the classifier blocks and important warnings about the `environment`, `allow`, `soft_deny`, and `hard_deny` fields.
8383 
from line 91
9191 
9292### Verify settings delivery
9393 
94To confirm that settings are being applied, ask a user to restart Claude Code. If the configuration includes settings that trigger the [security approval dialog](#security-approval-dialogs), the user sees a prompt describing the managed settings the next time Claude Code fetches them: at the next start, or within an hour in a running interactive session. You can also verify that managed permission rules are active by having a user run `/permissions` to view their effective permission rules.
94To confirm that managed permission rules are active, have a user restart Claude Code and run `/permissions` to view their effective permission rules.
9595 
9696In a session, have the user run `/status`. The [`Setting sources` line](https://code.claude.com/docs/en/managed-settings#read-the-source-in-/status) lists `Enterprise managed settings` with `remote` in parentheses when server-managed settings apply.
9797 
from line 325
325325 
326326### Security approval dialogs
327327 
328Certain settings that could pose security risks require explicit user approval before Claude Code applies them in an interactive session:
328In an interactive session that can show the approval dialog, Claude Code v2.1.315 or later skips it and applies delivered settings without asking when both of these apply:
329329 
330* Claude Code fetches the settings from `api.anthropic.com` with a Team or Enterprise claude.ai login saved by `/login` or `claude auth login`
331* The [`forceLoginOrgUUID`](https://code.claude.com/docs/en/settings-reference#forceloginorguuid) setting in the machine's [MDM policy or managed settings file](https://code.claude.com/docs/en/managed-settings.md#which-managed-source-supplies-login-keys) is unset or includes the login's organization
332 
333In other interactive sessions that can show the dialog, Claude Code asks the user before it applies settings that need approval. That includes sessions that fetch the settings with an API key, the `CLAUDE_CODE_OAUTH_TOKEN` variable, or a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) sign-in. Where these docs say the dialog appears, they describe these sessions.
334 
335In those sessions, settings such as these need the user's approval, and Claude Code exits if the user rejects them:
336 
330337* **Shell command settings**: settings that execute shell commands, such as `apiKeyHelper`, `statusLine`, and `otelHeadersHelper`
331338* **Sandbox binary settings**: `sandbox.bwrapPath`, `sandbox.socatPath`, and `sandbox.ripgrep`. Each of these settings points at an executable, and Claude Code runs that executable
332339* **Sandbox network and isolation settings**: [sandbox](https://code.claude.com/docs/en/sandboxing.md) settings that let the sandbox proxy read, reroute, or authenticate traffic, or that weaken the sandbox's isolation: `sandbox.network.tlsTerminate`, `sandbox.network.httpProxyPort`, `sandbox.network.socksProxyPort`, `sandbox.credentials`, `sandbox.allowAppleEvents`, `sandbox.allowNestedUserNamespaces`, `sandbox.enableWeakerNestedSandbox`, `sandbox.enableWeakerNetworkIsolation`, `sandbox.filesystem.disabled`, `sandbox.network.allowAllUnixSockets`, `sandbox.network.allowUnixSockets`, and `sandbox.network.allowMachLookup`. A `sandbox.credentials` block that contains only `deny` rules doesn't need approval, since it restricts the sandbox without giving the proxy a credential. Before v2.1.251, Claude Code applied these settings without approval
333340* **Custom environment variables**: delivered `env` variables that require the user's approval, such as proxy and base-URL variables; see [Environment variables and the approval dialog](#environment-variables-and-the-approval-dialog)
334341* **Hook configurations**: any hook definition
342* **Plugins**: a marketplace plugin listed in the `prependPlugins` or `appendPlugins` setting
335343 
336When these settings are present, users see a security dialog explaining what is being configured. Users must approve to proceed. If a user rejects the settings, Claude Code exits.
337 
338344A managed CLAUDE.md delivered through the [`claudeMd`](https://code.claude.com/docs/en/settings-reference#claudemd) key doesn't require approval, because it's instruction text for Claude rather than a command Claude Code runs. Claude Code still checks [permissions](https://code.claude.com/docs/en/permissions.md) for the tools Claude uses while following those instructions. Before v2.1.260, a `claudeMd` value required approval too.
339345 
346If you see `Your organization may apply global configuration to Claude Code`, keep working: it's a notice for Team and Enterprise users.
347 
340348#### Approval memory
341349 
342350Claude Code records your approval in your configuration directory, `~/.claude` unless you set [`CLAUDE_CONFIG_DIR`](https://code.claude.com/docs/en/env-vars). What it records depends on the credential the settings fetch uses:
from line 359
351359 
352360An approval for `sandbox.credentials` or `sandbox.network.tlsTerminate` also covers the [`sandbox.network.allowedDomains`](https://code.claude.com/docs/en/settings-reference#sandbox-network-alloweddomains) entries in those same delivered settings, because both settings act on that allowlist. The dialog appears again when your administrator adds or removes one of those entries, even though `sandbox.network.allowedDomains` doesn't require approval on its own.
353361 
354With a saved claude.ai login:
362With a saved claude.ai login in a session where Claude Code asks for approval, such as on a version before v2.1.315:
355363 
356364* If you sign out and back in, or switch to another organization and later return, Claude Code doesn't show the dialog again while those settings are unchanged, unless another account approved them for that organization in the same configuration directory in between.
357365* If you sign in to the same organization with a different account, Claude Code shows the dialog again even when the settings are unchanged. That account's approval replaces the previous one, so when you switch back, Claude Code shows the dialog once more.
from line 386
378386* Terminal UI and accessibility options
379387* Numeric limits, budgets, and timeouts
380388 
381Other delivered variables can require the user's approval before they take effect. For example, in interactive sessions these always do, at any non-empty value:
389Other delivered variables can require the user's approval before they take effect. For example, in sessions where Claude Code asks for approval, it asks about these variables at any non-empty value:
382390 
383391* A proxy or base-URL variable
384392* `OTEL_EXPORTER_OTLP_ENDPOINT`
Feedback