Run tool calls from code with Code Mode changedcode-mode
Nearest release: v2.1.334, published 4 hours after 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 1 Dec 2026 14:46 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 1 Dec 2026 15:07 UTC.
Upstream edited
Recorded here
Lines+7added
Lines−1removed
From line
156
where the diff opens
First seen
13 Nov 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 156, old and new numbered
/
from line 156
156156}
157157```
158158
159If your users can connect through a cloud provider, deploy this setting through [MDM or a managed settings file](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms). A user who sets a provider variable such as `CLAUDE_CODE_USE_BEDROCK` in their shell or user settings can start Code Mode without receiving [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md#platform-availability).
159> [!WARNING]
160>
161> If you already deploy a policy through MDM or a managed settings file, add the variable to its `env` block, and to any [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md) that already deliver a policy. If you put the variable in a new [higher-ranked source](https://code.claude.com/docs/en/managed-settings.md#how-claude-code-combines-managed-sources), such as server-managed settings, Claude Code ignores your existing policy's permission rules and most of its other settings [by default](https://code.claude.com/docs/en/managed-settings.md#compose-every-managed-source).
162>
163> If your MDM policy or file sets a [policy helper](https://code.claude.com/docs/en/managed-settings.md#compute-the-policy-with-a-helper-program), also add the variable to the `env` block of each [`managedSettings` object](https://code.claude.com/docs/en/settings-reference#write-the-helper-output) that the helper already outputs.
164
165If your users can connect through a cloud provider, deploy the variable through [MDM or a managed settings file](https://code.claude.com/docs/en/managed-settings.md#delivery-mechanisms). A user who sets a provider variable such as `CLAUDE_CODE_USE_BEDROCK` in their shell or user settings can start Code Mode without receiving [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md#platform-availability).
160166
161167Users who are in a Code Mode session stay in it until they exit or restart Claude Code. After that, your users start without Code Mode and can't resume their Code Mode sessions while the `0` is in place. You can't turn on Code Mode for your users from managed settings.
162168
No line in this hunk matches that.