Deploy managed settings changedmanaged-settings
Nearest release: v2.1.335, 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 3 Dec 2026 04:06 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 3 Dec 2026 04:07 UTC.
Upstream edited
Recorded here
Lines+16added
Lines−4removed
From line
277
where the diff opens
First seen
21 Aug 2026
this site's first read of the page
Recorded edits78to this page, all time
The whole hunk
from line 277, old and new numbered
/
from line 277
277277
278278### What a developer can change
279279
280A developer's own settings files, `--settings` values, and project files never override a managed value; the [exceptions](https://code.claude.com/docs/en/settings.md#exceptions-to-managed-settings-precedence) only let a stricter lower-level value count. These cases sit outside that rule:
280Some managed keys set a default that a developer can change with a flag, a command, or an environment variable.
281281
282* **The model for a session**: a managed `model` is a default, not a lock. `--model` and `ANTHROPIC_MODEL` still pick the model for that session, so deploy [`availableModels`](https://code.claude.com/docs/en/settings-reference#availablemodels) to restrict the choice.
283* **The auto-compact window for a session**: a managed [`autoCompactWindow`](https://code.claude.com/docs/en/settings-reference#autocompactwindow) is a default too. The `--autocompact` flag and the `CLAUDE_CODE_AUTO_COMPACT_WINDOW` variable still set the [auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window) for that session.
282The following table shows five of those keys, how a developer changes each one, and the key you deploy to limit the choice:
283
284| Managed key | How a developer changes it | Key that limits the choice |
285| :- | :- | :- |
286| [`model`](https://code.claude.com/docs/en/settings-reference#model) | `--model`, `ANTHROPIC_MODEL`, `/model` | [`deniedModels`](https://code.claude.com/docs/en/settings-reference#deniedmodels), or [`availableModels`](https://code.claude.com/docs/en/settings-reference#availablemodels) plus [`enforceAvailableModels`](https://code.claude.com/docs/en/settings-reference#enforceavailablemodels) to cover the model picker's Default option |
287| [`fallbackModel`](https://code.claude.com/docs/en/settings-reference#fallbackmodel) | `--fallback-model` | `deniedModels` or `availableModels` |
288| [`permissions.defaultMode`](https://code.claude.com/docs/en/settings-reference#permissions-defaultmode) | `--permission-mode`, `--dangerously-skip-permissions`, `Shift+Tab` during a session | A [key that blocks one mode](https://code.claude.com/docs/en/permissions.md#permission-modes), such as [`permissions.disableBypassPermissionsMode`](https://code.claude.com/docs/en/settings-reference#permissions-disablebypasspermissionsmode) |
289| [`effortLevel`](https://code.claude.com/docs/en/settings-reference#effortlevel) | `--effort`, `/effort`, `CLAUDE_CODE_EFFORT_LEVEL` | [`maxEffortLevel`](https://code.claude.com/docs/en/settings-reference#maxeffortlevel), which caps the level |
290| [`autoCompactWindow`](https://code.claude.com/docs/en/settings-reference#autocompactwindow) | [`--autocompact`](https://code.claude.com/docs/en/model-config#set-the-auto-compact-window), `CLAUDE_CODE_AUTO_COMPACT_WINDOW` | A managed [`env`](https://code.claude.com/docs/en/settings-reference#env) value for that variable, which also overrides the flag, unless the [Desktop or self-hosted runner launch environment](https://code.claude.com/docs/en/settings-reference.md#how-env-values-interact-with-your-shell) already sets it |
291
292For other keys, see the **Per-session overrides** lines in the [settings reference](https://code.claude.com/docs/en/settings-reference.md#all-settings).
293
294Managed settings also have these limits:
295
284296* **Local admin rights**: a developer who is an administrator on the machine can edit the managed source itself, which is why MDM tooling can redeploy the profile or file on a schedule and why the HKLM registry and the macOS managed preferences domain exist.
285297* **The server-managed cache**: server-managed settings come from Anthropic's servers, and an edit to the local cache [lasts only until the next successful fetch](https://code.claude.com/docs/en/server-managed-settings.md#security-considerations).
286298* **Other tools**: managed settings bind Claude Code only. A developer who calls the API from another tool isn't under them.
No line in this hunk matches that.