Changes on
3 changes detected
Show diff (149 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1147,11 +1147,11 @@
`ConnectTimeout`| Connection| Time that you have
---|---|---
-Not set| You start a session through a jump host or a `ProxyCommand`, with Claude Desktop v4.4212.0 or later on macOS or Linux| 30 seconds, then a second try with 90 seconds. If Desktop showed you a prompt during the first try, you have no second try. Time at a login prompt that Desktop shows for a `ProxyJump` host doesn’t count. Other waits on the route do.
-Not set| Desktop on Windows or an earlier version, a remote machine that sets `MaxSessions 1`, or a reconnect that Desktop starts on its own| 30 seconds. Every wait on the route counts.
+Not set| A connection through a jump host or a `ProxyCommand` that you start yourself, with a new session, a message, or a retry in Desktop| 30 seconds. If the 30 seconds run out, Desktop can try once more, with 90 seconds, on the versions below the table. If Desktop showed you a prompt during the first try, you have no second try. Count every wait on the route.
+Not set| Any other connection or reconnect, such as a reconnect that Desktop starts on its own| Plan for 30 seconds. Every wait on the route counts.
Set| Every connection and reconnect| The value that you set. Every wait on the route counts.
-If the remote machine itself waits for an approval on your phone, approve within 45 seconds, whatever `ConnectTimeout` you set. You can’t raise this limit, because Desktop sets `ServerAliveInterval` and `ServerAliveCountMax` itself, and `ssh` then closes a login in which the remote machine sends nothing for that long.
+The second try of 90 seconds needs a connection through the OpenSSH client. It also needs Claude Desktop v4.4212.0 or later for a new session, and v4.23118.0 or later for a message or a retry. If Desktop runs on Windows, or the remote machine sets `MaxSessions 1`, it needs v6.6395.0 or later. If the remote machine itself waits for an approval on your phone, approve within 45 seconds, whatever `ConnectTimeout` you set. You can’t raise this limit, because Desktop sets `ServerAliveInterval` and `ServerAliveCountMax` itself, and `ssh` then closes a login in which the remote machine sends nothing for that long.
##### Fix a `Match host` block that only Desktop applies
@@ -1191,7 +1191,7 @@
* **Terminal** : the terminal doesn’t open in a session whose folder is a Windows path, such as `C:/projects/app`
* **Sandbox** : Claude Code runs there on native Windows, where it runs commands unsandboxed. See [where the sandbox runs](</docs/en/sandboxing>).
* **Plugins** : Desktop doesn’t copy a plugin that holds a file or folder name Windows can’t store, such as a name with `:`. The session lists the plugins that Desktop left out.
- * **MCP servers** : on some Windows remote machines, Claude’s calls to MCP servers from `claude_desktop_config.json` go through Desktop, so Claude can’t call their tools while Desktop is disconnected. Before Claude Desktop v2.37337.0, this holds on every Windows remote machine.
+ * **MCP servers while disconnected** : to use MCP servers from your computer’s `claude_desktop_config.json` while Desktop is disconnected, connect through the OpenSSH client with Claude Desktop v6.6395.0 or later. Otherwise, keep Desktop connected while a task uses those servers.
* **Worktrees** : worktrees go in `<project-root>/.claude/worktrees/`. If you choose another folder, Desktop ignores it.
* **Earlier messages** : if the SSH server’s shell is `cmd.exe` or Windows PowerShell, you may have to connect before you see a session’s earlier messages
* **Forks** : if the SSH server’s shell is `cmd.exe` or Windows PowerShell, you can fork a session only at its first message
@@ -1228,6 +1228,7 @@
* **Reduce requests** : choose a permission mode, rules, or hooks that make the task wait for you less often
* **Check the jump host** : if your jump host asks for a sign-in, for example a push to a phone, switch to a login that works without a prompt. Otherwise Desktop can send another push each time it tries to reconnect.
* **Test the remote machine** : start a short task, quit Desktop while the task is still running, and open the session again well after the task should be done. If the task isn’t finished and the session shows no authentication error, check the remote machine for what can end a task.
+ * **Test file work and workflows** : if the long task needs them, start a short task that edits a file or starts a workflow after a few minutes, and quit Desktop before then. Open the session again at least 20 minutes later. If a read, search, edit, or workflow failed, keep Desktop connected during the long task.
* **Keep commands out of Desktop’s terminal** : if the remote machine logs out idle terminals, run your own commands from an SSH login outside Desktop
##### Limits while Desktop is disconnected
@@ -1243,9 +1244,9 @@
File edits and some tools can fail while Desktop is disconnected. If the task needs them, keep Desktop connected:
* **Worktrees** : in a session that uses a worktree, Desktop checks each file edit before Claude makes it. While Desktop is disconnected, each edit waits about 30 seconds and then fails. Shell commands still run. On a Linux or macOS remote machine, edits can keep working. If you aren’t sure, start the session without a worktree.
- * **Folder restrictions** : if your organization restricts which folders sessions may use, Desktop checks each file read, search, and edit, with or without a worktree. While Desktop is disconnected, each one waits up to 10 minutes and then fails.
+ * **Folder restrictions** : if your organization restricts which folders sessions may use, Desktop checks each file read, search, and edit, with or without a worktree. On a Linux or macOS remote machine, with Claude Desktop v6.6395.0 or later, all three can keep working while Desktop is disconnected. Keep the task’s files in the session’s worktree, or in the session’s folder if it has no worktree, then test the remote machine. On a Windows remote machine, or with an earlier version, keep Desktop connected: while it is disconnected, each of the three waits up to 10 minutes and then fails.
* **Connectors** : connectors and other tools that Desktop provides run through Desktop, so while it is disconnected each call fails after about 30 seconds
- * **Workflows** : Desktop checks each new [workflow](</docs/en/workflows>) before it starts, so while Desktop is disconnected a new one waits up to 10 minutes and then fails
+ * **Workflows** : Desktop checks each new [workflow](</docs/en/workflows>) before it starts, so while Desktop is disconnected a new one waits up to 10 minutes and then fails. Under folder restrictions, behind a [corporate launcher](</docs/en/corporate-launcher>), or before Claude Desktop v5.11492.0, new workflows can’t start while Desktop is disconnected. Otherwise, approve a workflow before the long task: ask Claude for one in a session on the remote machine, and [approve it](</docs/en/workflows#approve-the-plan-before-it-runs>) if Desktop asks. Then open a new session for the long task, because the approval takes effect only in sessions that you open afterward. In the new session, choose a permission mode that doesn’t ask before each workflow, such as Auto, and test the remote machine first.
* **MCP servers** : MCP servers that Claude Code starts on the remote machine don’t run through Desktop, so Claude can still call their tools. Servers from `claude_desktop_config.json` are among them only if Desktop doesn’t use its built-in SSH client. Otherwise, and on some Windows remote machines, Claude can’t call their tools while Desktop is disconnected.
When edits in a worktree keep working
@@ -1255,7 +1256,7 @@
* **Built-in SSH client** : Desktop uses it, for example in a Microsoft Store install, or on a Windows computer without Microsoft’s OpenSSH 9.4 or later
* **Repository location** : the repository is your home directory, a folder above it, or `~/.claude`
* **macOS paths** : on a macOS remote machine, the repository is under `/Volumes`, or a folder name in the path of the repository or the worktree has a `~` or a non-ASCII character
- * **Folder restrictions** : your organization restricts which folders sessions may use
+ * **Folder restrictions** : your organization restricts which folders sessions may use, and Claude Desktop is earlier than v6.6395.0. Update Desktop.
* **Corporate launcher** : before Claude Desktop v2.37337.0, you sign in with a Claude account, and your organization starts Claude Code on the remote machine through a [corporate launcher](</docs/en/corporate-launcher>)
A session without a worktree has no such check, unless your organization restricts which folders sessions may use.
@@ -1704,7 +1705,7 @@
"sshHostAllowlist": ["*.devboxes.example.com", "bastion.example.com"]
}
-If your organization delivers [server-managed settings](</docs/en/server-managed-settings>), set `sshHostAllowlist` there. By default, Desktop reads the key only from the [highest-ranked managed source that delivers a policy key](</docs/en/managed-settings#how-claude-code-combines-managed-sources>). If that source leaves the key unset, Desktop ignores a list in a lower-ranked MDM policy or managed settings file and treats the key as [unset](</docs/en/settings-reference#sshhostallowlist>). Desktop shows no warning.Also keep the same list on each user’s machine, in the highest-ranked MDM policy or managed settings file there. Desktop fetches server-managed settings at launch and keeps no cached copy, so until a fetch succeeds the machine’s list is the one that applies.
+If you deliver [server-managed settings](</docs/en/server-managed-settings>), set the same `sshHostAllowlist` there and on each computer. On the computer, put it in Claude Code’s MDM policy or, without one, its managed settings file, not in the desktop app’s own device management policy. With a list in only one place, Desktop can allow any host at times: see Which SSH host allowlists apply.
Patterns are case-insensitive. `*` matches any host, and `*.example.com` matches `example.com` and any subdomain. Anything else is an exact match. The check runs against the hostname after `~/.ssh/config` resolution via `ssh -G`, so a `Host` alias is permitted as long as its resolved `HostName` matches. A session’s jump hosts have to match too. `sshHostAllowlist` is read from managed settings only; values in user or project settings are ignored. Only the Claude Desktop app honors this setting; the Claude Code CLI and IDE extensions do not read it, and it does not restrict `ssh` commands run through the Bash tool. It governs which hosts the Desktop app connects to, not network egress, so pair it with your organization’s network or zero-trust controls if you need a hard boundary.
@@ -1772,7 +1773,7 @@
* **Version** : `disableDesktopLocalSessions` requires Claude Desktop v1.37937.0 or later
* **File permissions** : make sure that each developer’s account on the computer can read the managed settings file. Desktop doesn’t apply the keys in a file that the account can’t read, and Claude Code [starts without them](</docs/en/managed-settings#find-entries-claude-code-dropped>) too.
-Put the three keys in one [managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), the highest-ranked one that you deliver. If you deliver [server-managed settings](</docs/en/server-managed-settings>), also keep a copy of the three keys in the highest-ranked MDM policy or managed settings file on each computer. Desktop fetches server-managed settings at launch, and the copy on the computer applies until a fetch succeeds. To confirm that the settings apply, check a developer’s computer:
+If you deliver [server-managed settings](</docs/en/server-managed-settings>), put the three keys there and on each computer. On the computer, use Claude Code’s MDM policy or, without one, its managed settings file, not the desktop app’s own device management policy. Without server-managed settings, use your highest-ranked [managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>). To confirm that the settings apply, check a developer’s computer:
1
@@ -1820,15 +1821,16 @@
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
`disableAutoMode`| set to `"disable"` to remove [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode from the mode selector. Also accepted under `permissions`.
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
+`model`| set the model ID that new local sessions start on
`browserExternalPageTools`| set to `"disabled"` to prevent Claude from using tools to read or act on external pages in the Browser pane. Users can still navigate to external sites themselves, and local dev server previews are unaffected.
`disableMobileSimulatorTools`| set to `true` to block Claude’s tools for controlling and capturing devices in the [iOS Simulator pane](</docs/en/desktop-ios-simulator#turn-off-simulator-access>). The pane stays usable for the user’s own taps; only Claude’s access is removed. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can go to external sites, and localhost dev server previews are unaffected. The Browser pane’s HTML previews in SSH and WSL sessions don’t run scripts. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`disableRemotePreviewScripts`| set to `true` to turn off scripts in the Browser pane’s HTML previews in SSH and WSL sessions, without turning off external browsing. Desktop doesn’t read it from the remote machine or the WSL distribution. The value must be the JSON boolean `true`; the string `"true"` is ignored. Requires Claude Desktop v5.1231.0 or later.
`sshConfigs`| pre-configure SSH connections that appear in the environment selector. Users can’t delete managed connections or edit anything but their own **Worktree folder**.
`sshHostCommands`| give users SSH connections whose host comes from a command, alongside their own. Desktop reads it from the managed settings file or MDM policy on the computer, and ignores it in [server-managed settings](</docs/en/server-managed-settings>). Requires Claude Desktop v3.6556.0 or later on macOS or Linux, or v4.16336.0 or later on Windows, signed in with a Claude account. On Windows, Desktop also has to connect through the OpenSSH client.
-`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. Read from managed settings only.
-`disableDesktopLocalSessions`| set to `true` to turn off Code sessions that run on the device, leaving SSH sessions to other hosts and cloud sessions available. The value must be the JSON boolean `true`. Read from managed settings only. Requires Claude Desktop v1.37937.0 or later.
-`disableSshSavedPasswords`| set to `true` to stop Desktop from offering to remember SSH passwords and from using or showing the ones it saved earlier. Turning it on doesn’t delete them. Read from managed settings only. Requires Claude Desktop v1.49585.0 or later.
+`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. Read from managed settings only. With server-managed settings, set the same list in both places.
+`disableDesktopLocalSessions`| set to `true` to turn off Code sessions that run on the device, leaving SSH sessions to other hosts and cloud sessions available. Use the JSON boolean `true`. Read from managed settings only. Requires Claude Desktop v1.37937.0 or later. With server-managed settings, set it in both places.
+`disableSshSavedPasswords`| set to the JSON boolean `true` to stop Desktop from offering to remember SSH passwords and from using or showing the ones it saved earlier. Turning it on doesn’t delete them. Read from managed settings only. Requires Claude Desktop v1.49585.0 or later. With server-managed settings, set it in both places.
`managedMcpServers`| push MCP server configurations to all users. Available in third-party (3P) Desktop deployments only. In each entry, set a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map to restrict which of that server’s tools users can invoke. Deliver it through the managed settings file, MDM, or a Claude apps gateway policy’s [`desktop` block](</docs/en/claude-apps-gateway-config#claude-desktop-overlay>), since 3P deployments don’t receive admin-console settings. To deliver it through the gateway, you need Claude Code v2.1.232 or later on the gateway server. This is the desktop app’s own key; Claude Code reads a [same-named managed setting](</docs/en/managed-mcp#provide-servers-through-managed-settings>) of its own, with a different entry shape.
If you turn a feature off with one of these four keys in a computer’s [highest-ranked MDM policy or managed settings file](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), the feature stays off there:
@@ -1840,10 +1842,44 @@
* **Local sessions on this machine** : a managed settings file deployed to disk applies. Managed settings pushed remotely through the admin console also reach these sessions on Anthropic’s API when the session authenticates with an [eligible login](</docs/en/server-managed-settings#platform-availability>), following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
* **Cloud sessions** : receive [server-managed settings](</docs/en/server-managed-settings>); device-deployed files don’t reach them, because they run on Anthropic-managed VMs. Sessions routed to a [self-hosted environment](</docs/en/self-hosted-environments>) also read the managed settings file in the runner image. [How Claude Code combines managed sources](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) says when that file applies.
- * **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs`, `sshHostAllowlist`, `disableSshSavedPasswords`, and `disableDesktopLocalSessions` on the local machine. If you deliver more than one managed source, it reads them from [one by default](</docs/en/managed-settings#how-claude-code-combines-managed-sources>). If you set `permissions.disableBypassPermissionsMode` or `disableAutoMode` in the managed settings in force on the local machine, an SSH session’s mode selector doesn’t offer that mode, whatever the remote host sets.
+ * **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs`, `sshHostAllowlist`, `disableSshSavedPasswords`, and `disableDesktopLocalSessions` on the local machine. If you deliver more than one managed source, see [`sshConfigs`](</docs/en/settings-reference#sshconfigs>) for that key and Keys that apply from server-managed settings and managed settings on a computer for the other three.
* **[Cowork](<https://claude.com/docs/cowork/overview>) sessions**: in a Cowork session on this machine, Claude Code never fetches admin-console settings, even when the user signs in with a Team or Enterprise account, and reads policy deployed to the machine unless your Claude Desktop configuration sets `requireCoworkFullVmSandbox`. Remote Cowork sessions receive neither. See [where and when a policy applies](</docs/en/managed-settings#where-and-when-a-policy-applies>) for which device files reach Cowork, and [MCP permission rules](</docs/en/permissions#mcp>) for how `Bash` and `WebFetch` rules apply to Cowork’s tools.
-In local and SSH sessions, the desktop app delivers each user’s connected claude.ai connectors to Claude Code directly. No MCP setting or `managed-mcp.json` reaches those connectors, whichever settings source or file location you use. To block a connector’s tools in these sessions, use your organization’s [connector tool controls](</docs/en/mcp#organization-controls-on-connector-tools>). [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>) shows which settings govern connectors in each kind of session. To keep users from overriding `permissions.disableBypassPermissionsMode` or `disableAutoMode`, set it in managed settings. For the permission, plugin, and delivery keys only a managed source can set, see [Keys only managed settings can set](</docs/en/managed-settings#managed-only-settings>).
+In local and SSH sessions, the desktop app delivers each user’s connected claude.ai connectors to Claude Code directly. No MCP setting or `managed-mcp.json` reaches those connectors, whichever settings source or file location you use. To block a connector’s tools in these sessions, use your organization’s [connector tool controls](</docs/en/mcp#organization-controls-on-connector-tools>). [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>) shows which settings govern connectors in each kind of session. To keep users from overriding `permissions.disableBypassPermissionsMode` or `disableAutoMode`, set it in managed settings. If you set `permissions.disableBypassPermissionsMode` or `disableAutoMode` in the managed settings in force on the local machine, an SSH session’s mode selector doesn’t offer that mode, whatever the remote host sets. For the permission, plugin, and delivery keys only a managed source can set, see [Keys only managed settings can set](</docs/en/managed-settings#managed-only-settings>).
+
+#### Keys that apply from server-managed settings and managed settings on a computer
+
+Claude Desktop v3.1623.0 or later reads the keys below from both [server-managed settings](</docs/en/server-managed-settings>) and Claude Code’s [MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer. If you use an MDM policy, set them in Claude Code’s, the `com.anthropic.claudecode` domain on macOS or `HKLM\SOFTWARE\Policies\ClaudeCode` on Windows, not in Desktop’s own device management policy. For users on a [third-party provider](</docs/en/third-party-integrations>), who don’t sign in with a Claude account, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+
+Key| What applies| To loosen it
+---|---|---
+`sshHostAllowlist`| a host must match each list that you set, with the exceptions under Which SSH host allowlists apply| add the host to each list that you set
+`disableDesktopLocalSessions`| `true` on the computer, or in server-managed settings once Desktop has fetched them, turns off local sessions, even when the other says `false`| remove `true` wherever you set it
+`disableSshSavedPasswords`| `true` on the computer, or in server-managed settings once Desktop has fetched them, turns off saved passwords, even when the other says `false`| remove `true` wherever you set it
+
+ * **An MDM policy for Claude Code and a managed settings file on one computer** : set these keys in the policy. Where the policy sets any policy key, Desktop [by default](</docs/en/settings-reference#managedsourcesbehavior>) [ignores these keys in the file](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
+ * **Versions before v3.1623.0** : set each key in server-managed settings too. [By default](</docs/en/settings-reference#managedsourcesbehavior>), once Desktop has fetched them, these keys apply from there alone.
+ * **The two`disable` keys**: set `true` in server-managed settings and on each computer, so that the key still applies while Desktop has only one source.
+
+##### Which SSH host allowlists apply
+
+Set the same list in server-managed settings and on each computer, because users aren’t held to both lists in cases such as these:
+
+ * **After each launch, until Desktop has fetched server-managed settings** : keep a list on the computer, because without one Desktop can allow any host. Claude Desktop v4.16336.0 or later also checks hosts against a copy of the server-managed list from an earlier fetch, if it has one under 30 days old. Don’t rely on that copy, because users can delete or edit it.
+ * **A user signs in to another organization or a personal account** : keep a list on the computer, because Desktop doesn’t get your server-managed list then.
+ * **You set[`managedSourcesBehavior`](</docs/en/settings-reference#managedsourcesbehavior>) to `"merge"` in your [highest-ranked source](</docs/en/managed-settings#compose-every-managed-source>)**: give every source the same list. Desktop [combines the server-managed list with the computer’s](</docs/en/settings-reference#sshhostallowlist>) and can allow a host that only one of them has.
+
+An empty array counts as a list that no host matches, unlike an unset key, which restricts nothing. To turn SSH sessions off, set an empty array in every source.
+
+#### Set the model that new sessions start on
+
+**Set by admin** next to a model in the model picker means that your managed settings set it as [`model`](</docs/en/model-config#control-the-model-users-run-on>). If the label shows, that model comes ahead of the user’s last pick when a new local session starts, if they can select it. Users can still pick another model for a session. To stop setting the starting model:
+
+ 1. Open **Settings > Code** or **Settings > Claude Code** on a user’s computer and look under **Starting values from your organization** to see which managed source applies.
+ 2. Remove `model` from each managed source that sets it, and have users restart Desktop.
+ 3. Have each user pick a model before they send a session’s first message, in each folder they use. Until then, new sessions can still start on the model you removed.
+
+If your [organization default model](</docs/en/model-config#organization-default-model>) overrides user selection, these sessions start on that default when the user can select it, even though your `model` takes precedence in the terminal. To let users choose, also turn off **Always start with the default model and effort level** in [**Organization settings > Models**](<https://claude.ai/admin-settings/models>) and in each custom role with its own default.
#### Deploy skills for all users
@@ -2007,7 +2043,7 @@
* **[MCP servers](</docs/en/mcp>)** configured in `~/.claude.json` or `.mcp.json` work in both
* **[Hooks](</docs/en/hooks>)** and **[skills](</docs/en/skills>)** defined in settings apply to both
* **[Settings](</docs/en/settings>)** in `~/.claude.json` and `~/.claude/settings.json` are shared. Permission rules, allowed tools, and other settings in `settings.json` apply to Desktop sessions. Some keys behave differently in the Code tab.
- * **Models** : the same [models](</docs/en/model-config#available-models>) are available in both. In Desktop, select the model from the model picker in the row under the prompt box. You can change the model mid-session from the same picker.
+ * **Models** : in Desktop, select the model from the model picker in the row under the prompt box. You can change the model mid-session from the same picker.
#### MCP servers from the Claude Desktop chat app
--- a/model-config.md
+++ b/model-config.md
@@ -329,7 +329,7 @@
* a `model` value in [managed settings](</docs/en/managed-settings>) or supplied through `--settings`
* a `model` value in your user, project, or local settings, including a model you save with `/model`
-Admins can also configure the organization default to override user selection. With override on, it takes precedence over the `model` value in user, project, and local settings. A model you save with `/model` then applies for the current session, and the organization default returns in new sessions. When your selection differs, `/model` shows `Your organization's default (<model>) applies on restart`. The `--model` flag, `ANTHROPIC_MODEL`, managed settings, and `--settings` still take precedence even with override on. To limit which models members can select, use organization model restrictions or `availableModels` instead. Claude Code reads the organization default once at startup, so a default the admin changes mid-session takes effect on the next launch. When the organization default doesn’t override user selection, the first interactive launch after the admin changes it clears the `model` key from your user settings once, so the new default applies. It changes nothing else in the file, and a model you save with `/model` after that launch is kept. The organization default passes through these restriction checks before it is adopted:
+Admins can also configure the organization default to override user selection. With override on, it takes precedence over the `model` value in user, project, and local settings. A model you save with `/model` then applies for the current session, and the organization default returns in new sessions. When your selection differs, `/model` shows `Your organization's default (<model>) applies on restart`. In the terminal, a new session still starts on the model that the `--model` flag, `ANTHROPIC_MODEL`, managed settings, or `--settings` sets, even with override on. To limit which models members can select, use organization model restrictions or `availableModels`. Claude Code reads the organization default once at startup, so a default the admin changes mid-session takes effect on the next launch. When the organization default doesn’t override user selection, the first interactive launch after the admin changes it clears the `model` key from your user settings once, so the new default applies. It changes nothing else in the file, and a model you save with `/model` after that launch is kept. The organization default passes through these restriction checks before it is adopted:
* with the default prefix matching and `enforceAvailableModels` set, an organization default outside the `availableModels` allowlist is remapped to a model on that list
* an organization default that organization model restrictions deny for your account is replaced by the newest allowed model in its family, or a lower-cost family when every version of it is restricted
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -4740,10 +4740,10 @@
The desktop app reads this key; the terminal CLI ignores it. Requires Claude Desktop v1.37937.0 or later.
- * **Scope** : `Managed`. By default, the desktop app reads the key from [one managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
- * **Type** : Boolean; only the JSON Boolean `true` takes effect
+ * **Scope** : `Managed`. If you deliver server-managed settings, [set it there and on each computer](</docs/en/desktop#keys-that-apply-from-server-managed-settings-and-managed-settings-on-a-computer>). Otherwise, the desktop app reads the key from [one managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) by default.
+ * **Type** : Boolean. Use the JSON Boolean `true`.
* `true`: the desktop app offers no on-device Code sessions; existing local sessions stay listed but can’t continue
- * `false`: local sessions stay available
+ * `false`: local sessions stay available, though `true` in the other place can turn them off
* **Default** : unset, so local sessions are available
managed-settings.json
@@ -4752,7 +4752,7 @@
"disableDesktopLocalSessions": true
}
-The desktop app ignores any other value, and a value that isn’t a Boolean, such as the string `"true"` or `1`, also logs a warning. Pair it with `sshConfigs` so users land on a working connection, and with `sshHostAllowlist` to limit which hosts they can reach. See [Local sessions on managed devices](</docs/en/desktop#local-sessions-on-managed-devices>). Claude Desktop supplies Code sessions with policy derived from your desktop configuration, for example the egress allowlist, filesystem sandbox, and MCP restrictions in third-party deployments. Claude Code ignores those parent settings whenever an [admin source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) is present: server-managed settings, an MDM or OS-level policy, or a managed settings file. Deploying this key through one of those on a device that had none before, as in third-party deployments, therefore stops the desktop-derived policies from applying. [Let an embedding host add policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) covers when parent settings can still merge; this holds for any key you deploy that way, not only this one.
+Pair it with `sshConfigs` so users have a working connection, and with `sshHostAllowlist` to limit which hosts they can reach. Claude Desktop supplies Code sessions with policy derived from your desktop configuration, for example the egress allowlist, filesystem sandbox, and MCP restrictions in third-party deployments. Claude Code ignores those parent settings whenever an [admin source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) is present: server-managed settings, an MDM or OS-level policy, or a managed settings file. Deploying this key through one of those on a device that had none before, as in third-party deployments, therefore stops the desktop-derived policies from applying. [Let an embedding host add policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) covers when parent settings can still merge; this holds for any key you deploy that way, not only this one.
### `disableRemoteControl`
@@ -4911,9 +4911,9 @@
Limit the hosts a [Desktop SSH session](</docs/en/desktop#restrict-which-ssh-hosts-users-can-connect-to>) can connect to. Only the Desktop app reads this key; the CLI doesn’t. Patterns are case-insensitive: `*` matches any host, `*.example.com` matches `example.com` and every subdomain, and anything else is an exact match against the hostname after `~/.ssh/config` resolution. An empty array turns SSH sessions off. With Claude Desktop v3.1623.0 or later, a session’s [jump hosts](</docs/en/desktop#allow-jump-hosts>) have to match a pattern too.
- * **Scope** : `Managed`. By default, Desktop reads the key from [one managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
+ * **Scope** : `Managed`. If you deliver server-managed settings, set the same list there and on each computer: see [Which SSH host allowlists apply](</docs/en/desktop#which-ssh-host-allowlists-apply>). Without server-managed settings, Desktop reads the key from [one managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) by default. Desktop doesn’t read this key from a policy helper, so set it in the policy or file that names the helper.
* **Type** : array of hostname patterns
- * **Default** : unset, so any host is allowed
+ * **Default** : unset, so any host is allowed. With a [third-party provider](</docs/en/third-party-integrations>), SSH sessions are off by default. To turn them on, see [Enable SSH remote sessions](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#enable-ssh-remote-sessions>).
This example allows `devboxes.example.com` and its subdomains, plus the exact host `bastion.example.com`:
@@ -4923,7 +4923,7 @@
"sshHostAllowlist": ["*.devboxes.example.com", "bastion.example.com"]
}
-A value that Desktop can’t read as a list of hosts, such as `true` or an object, counts as an empty array until you correct it, except `null`, which counts as unset. Requires Claude Desktop v2.26454.0 or later. If you set `managedSourcesBehavior` to `"merge"` in your highest-ranked source, Desktop combines the lists from every [admin source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) and allows a host that matches any of them. If you set an empty array in one source, SSH sessions stay on for the hosts another source lists.
+A value that Desktop can’t read as a list of hosts, such as `true` or an object, counts as an empty array until you correct it, except `null`, which counts as unset. Requires Claude Desktop v2.26454.0 or later. If you set `managedSourcesBehavior` to `"merge"` in your highest-ranked source, Desktop combines the lists from every [admin source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) and can allow a host that matches only one of them. If you set an empty array in one source, SSH sessions can stay on for the hosts another source lists.
### `sshHostCommands`
@@ -5525,6 +5525,10 @@
A helper that exits `0` with an envelope that omits `managedSettings` contributes no managed settings, and the other sources apply as usual.
+#### Keys that only Claude Desktop uses
+
+Claude Desktop reads the keys that only it uses, such as `sshHostAllowlist` and `disableDesktopLocalSessions`, without running the helper, so it treats a key that only the helper emits as unset. Set those keys in the MDM policy or managed settings file that names the helper.
+
#### Helper failures
A helper run fails when: