Configure server-managed settings changedserver-managed-settings
Nearest release: v2.1.334, published 6 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 01:14 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:37 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−3removed
From line
257
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 257, old and new numbered
/
from line 257
257257* The configuration-directory selector `CLAUDE_CONFIG_DIR`
258258* Credential-source and configuration-directory selectors, in Claude Code v2.1.223 or later: the Workload Identity Federation variables such as `ANTHROPIC_FEDERATION_RULE_ID` and `ANTHROPIC_IDENTITY_TOKEN`, the profile and configuration-directory selectors `ANTHROPIC_PROFILE` and `ANTHROPIC_CONFIG_DIR`, and the operating-system directory variables `HOME`, `XDG_CONFIG_HOME`, `APPDATA`, and `USERPROFILE`
259259
260Claude Code reads the Workload Identity Federation variables and the `ANTHROPIC_PROFILE` and `ANTHROPIC_CONFIG_DIR` selectors only at startup, so a server-delivered value for them doesn't switch the session's credential source even after the fetch succeeds. To deliver those selectors on Claude Code v2.1.223 or later, use [endpoint-managed settings](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms) such as MDM or `managed-settings.json`. For `CLAUDE_CONFIG_DIR` and the operating-system directory variables, the withholding itself is the protection: the cached value stays out of the environment until the server confirms the payload.
261
262Every other key in the cached `env` block applies at startup. Once the server confirms the payload, and you approve it if it needs [security approval](#security-approval-dialogs), the withheld variables apply for the rest of the session.
260To use Anthropic profiles or federation credentials in [sessions that support them](https://code.claude.com/docs/en/authentication.md#anthropic-profiles-and-federation-credentials), set `ANTHROPIC_PROFILE`, `ANTHROPIC_CONFIG_DIR`, or federation variables in the shell or service launching `claude`. Keep these variables out of server-managed and endpoint-managed `env` blocks, because sessions connecting directly to `api.anthropic.com` decide whether to use these credentials before either block applies. With federation, which [the settings fetch doesn't use](#platform-availability), deliver policy through endpoint-managed settings.
263261
264262If the fetch needs a proxy, set `HTTPS_PROXY` in one of:
265263
No line in this hunk matches that.