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

Upstream edited this page at 28 Nov 2026 18:59 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 28 Nov 2026 19:07 UTC.

Upstream edited
Recorded here
Lines+7added
Lines−7removed
From line 216 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 216, old and new numbered
/
lines
from line 216
216216 
217217> [!NOTE]
218218>
219> On a Team or Enterprise claude.ai login stored on the machine, Anthropic can require your organization's settings before a session starts. When it does, whatever the lists below say, a developer [can't start a session](https://code.claude.com/docs/en/errors.md#couldnt-load-your-organizations-settings) in cases such as these:
219> On a Team or Enterprise claude.ai login saved by the CLI or the VS Code extension, Anthropic usually requires your organization's settings before a session starts. This requirement takes precedence over the launch behavior below. When it applies, a developer [can't start a session](https://code.claude.com/docs/en/errors.md#couldnt-load-your-organizations-settings) in cases such as these:
220220>
221221> * Their sign-in has expired, until they run `claude auth login`
222222> * Claude Code has neither the settings nor a recent cached copy. Check that the machine can reach `api.anthropic.com`
from line 227
227227 
228228* When a developer signs in at startup, such as on a first run or after `/logout`, Claude Code waits up to five seconds for the fetch before it opens the session. When the policy arrives in time, Claude Code enforces it from the first screen and shows your [`companyAnnouncements`](https://code.claude.com/docs/en/settings-reference#companyannouncements) on it. When the payload needs [security approval](#security-approval-dialogs), Claude Code ends the wait and applies the payload once the developer approves
229229* In any other startup, and when that five-second wait runs out, Claude Code opens the session while the fetch continues, so a brief window passes before the settings load and the restrictions take effect
230* If the fetch fails, Claude Code continues without server-managed settings and warns in interactive sessions and in [Claude Desktop's Code tab](https://code.claude.com/docs/en/desktop.md) that no remote policy applies; endpoint-managed settings still apply. If a managed source sets [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup), Claude Code exits instead
230* If the fetch fails, a session that does start runs without server-managed settings, and endpoint-managed settings still apply. Claude Code warns in interactive sessions and in [Claude Desktop's Code tab](https://code.claude.com/docs/en/desktop.md) that no remote policy applies. If a managed source sets [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup), Claude Code exits
231231 
232232**Subsequent launches with cached settings:**
233233 
from line 240
240240* If a session's provider isn't on the cached [`allowedProviders`](https://code.claude.com/docs/en/settings-reference#allowedproviders) list, Claude Code can wait for that fetch and check again before refusing. If the fetch fails, the session is refused
241241* Plan for cached settings to expire 24 hours after the last successful fetch
242242* If the startup fetch fails before cached settings expire, Claude Code warns in interactive sessions and in the Code tab that the cached policy is in effect
243* If the startup fetch fails after cached settings expire, the session starts without server-managed settings, and the warning says that no remote policy applies. To have Claude Code exit instead, set [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup)
243* If the startup fetch fails after cached settings expire, a developer on a saved Team or Enterprise claude.ai login usually can't start a session. A session that does start can run without server-managed settings, and then the warning says that no remote policy applies. To have Claude Code exit instead, set [`forceRemoteSettingsRefresh`](#enforce-fail-closed-startup)
244244* Until a fetch succeeds, the values withheld at startup stay withheld
245245 
246246Claude Code withholds several categories of variables in the cached `env` block until the server confirms the payload for the session. This keeps a cached proxy, certificate authority, endpoint, or credential value from redirecting, intercepting, or re-authenticating the settings fetch that confirms the payload. The hardening applies only to the server-fetched settings cache: [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) deployed through MDM or `managed-settings.json` are unaffected. The withheld categories include:
from line 288
288288 
289289### Enforce fail-closed startup
290290 
291By default, if the remote settings fetch fails at startup, the CLI continues with the settings cached from the last successful fetch, unless they've [expired](#fetch-and-caching-behavior). The [values Claude Code withholds](#fetch-and-caching-behavior) stay withheld until a fetch succeeds. With expired or no cached settings, the CLI continues without server-managed settings and still applies any [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) on the device. [Anthropic can require the settings](#fetch-and-caching-behavior) instead.
291By default, if the remote settings fetch fails at startup, the CLI continues on unexpired cached settings, with [exceptions](#fetch-and-caching-behavior). The [values Claude Code withholds](#fetch-and-caching-behavior) stay withheld until a fetch succeeds.
292292 
293To stop clients from starting on cached or absent server-managed settings, set `forceRemoteSettingsRefresh: true` in your managed settings.
293If the fetch fails with expired or no cached settings, a developer on a saved Team or Enterprise claude.ai login [usually can't start a session](#fetch-and-caching-behavior). A session that does start can run without server-managed settings and still applies any [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) on the device. To stop clients from starting on cached or absent server-managed settings, set `forceRemoteSettingsRefresh: true` in your managed settings.
294294 
295295Clients signed in through a [Claude apps gateway](#platform-availability) wait for the startup fetch whether or not you set this, and handle a failed fetch as follows:
296296 
from line 430
430430| User deletes the cached settings file | [First-launch behavior](#fetch-and-caching-behavior) occurs |
431431| User runs a modified Claude Code binary | A user who can run a modified client can bypass any client-side control |
432432| User runs an older Claude Code version | Versions that predate server-managed settings don't fetch or apply them |
433| API is unavailable | Cached settings apply if available and not [expired](#fetch-and-caching-behavior). Without them, Claude Code enforces no server-managed settings until the next successful fetch. [Fetch and caching behavior](#fetch-and-caching-behavior) lists the exceptions, including when Anthropic requires the settings. With `forceRemoteSettingsRefresh: true`, the CLI exits instead of continuing, except for [`claude auth` subcommands](#enforce-fail-closed-startup). Clients signed in through a [Claude apps gateway](#platform-availability) exit at startup without that setting, with the same `claude auth` exemption |
433| API is unavailable | Unexpired cached settings apply, with [exceptions](#fetch-and-caching-behavior). With expired or missing cached settings, a session on a saved Team or Enterprise claude.ai login [usually can't start](#fetch-and-caching-behavior). A session that does start can run without server-managed settings until a fetch succeeds. With `forceRemoteSettingsRefresh: true` or a [Claude apps gateway](#platform-availability) sign-in, the CLI exits at startup even with a cached copy, except for [`claude auth` subcommands](#enforce-fail-closed-startup) |
434434| User authenticates with a different organization | Settings are not delivered for accounts outside the managed organization, including a session that authenticates with a [Console API key](#platform-availability) |
435435| User configures a [third-party model provider](#platform-availability) | Server-managed settings are bypassed. This includes setting `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_MANTLE`, `CLAUDE_CODE_USE_VERTEX`, `CLAUDE_CODE_USE_FOUNDRY`, `CLAUDE_CODE_USE_ANTHROPIC_AWS`, or a non-default `ANTHROPIC_BASE_URL` |
436436| Network traffic is intercepted or redirected | Disabled TLS validation or intercepted traffic can alter the settings the client receives |
Feedback