Configuration reference changedthird-party/claude-desktop/configuration
Nearest release: v2.1.334, published 2 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 1 Dec 2026 21: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 1 Dec 2026 21:37 UTC.
Upstream edited
Recorded here
Lines+202added
Lines−96removed
From line
77
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits94to this page, all time
#### `sshHostProgramsPreinstalled` #### `codeSessionRetentionIncludeSshAndWsl`
The whole hunk
from line 77, old and new numbered
/
from line 77
7777| [`sshTransport`](#sshtransport) | SSH connection engine | Capabilities | Admin Console |
7878| [`sshHostSandboxUnavailable`](#sshhostsandboxunavailable) | When the sandbox cannot start on an SSH host | Capabilities | Admin Console |
7979| [`remoteFileDownloads`](#remotefiledownloads) | SSH and WSL file downloads | Capabilities | Admin Console |
80| [`sshHostProgramsPreinstalled`](#sshhostprogramspreinstalled) | Use preinstalled programs on SSH hosts | Capabilities | |
8081| [`chatTabEnabled`](#chattabenabled) | Allow Chat | Capabilities | Admin Console |
8182| [`desktopHome`](#desktophome) | Desktop home | Capabilities | Admin Console |
8283| [`chatAdvancedFileAnalysisEnabled`](#chatadvancedfileanalysisenabled) | Advanced file analysis | Capabilities | Admin Console |
from line 158
157158| [`chatSessionRetentionDays`](#chatsessionretentiondays) | Chat retention period | Limits | Admin Console |
158159| [`coworkSessionRetentionDays`](#coworksessionretentiondays) | Cowork retention period | Limits | Admin Console |
159160| [`codeSessionRetentionDays`](#codesessionretentiondays) | Code retention period | Limits | Admin Console |
161| [`codeSessionRetentionIncludeSshAndWsl`](#codesessionretentionincludesshandwsl) | Delete idle SSH and WSL Code sessions | Limits | Admin Console |
160162| [`inferenceMaxTokensPerWindow`](#inferencemaxtokensperwindow) | Max tokens per window | Limits | Admin Console |
161163| [`inferenceTokenWindowHours`](#inferencetokenwindowhours) | Token cap window | Limits | Admin Console |
162164| [`inferenceTokenWarningPercent`](#inferencetokenwarningpercent) | Token limit warning | Limits | Admin Console |
from line 240
238240
239241> [accordion] More detail
240242>
241> This key is stored and distributed as plain configuration. For tokens, and for values that differ per user or session, have `inferenceCredentialHelper` print JSON with a `headers` field. On a conflict, the helper script's header takes priority.
243> This key is stored and distributed as plain configuration. For tokens, and for values that differ per user, have `inferenceCredentialHelper` print JSON with a `headers` field. Neither this key nor the helper script can give a chat, Cowork task or Code session its own header value. On a conflict, the helper script's header takes priority.
242244
243245***
244246
from line 252
250252
251253Since 1.2581.0
252254
253**Helper script.** Absolute path to an executable that prints the credential, optionally with per-request headers.
255**Helper script.** Absolute path to an executable that prints the credential, optionally with headers to add to every model request.
254256
255257> [accordion] More detail
256258>
from line 353
351353>
352354> SOCKS proxies and embedded credentials (`user:pass@`) are rejected.
353355>
354> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
356> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
355357
356358***
357359
from line 379
377379>
378380> What `egressProxyUrl` exempts from its proxy skips the PAC file too.
379381>
380> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
382> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
381383
382384***
383385
from line 498
496498>
497499> HTTPS issuer with OIDC discovery. Set this, or set the authorization and token URLs instead.
498500>
501> > [accordion] More detail
502> >
503> > Enter your identity provider's discovery URL without `/.well-known/openid-configuration`. End it with a slash if the `issuer` value in the discovery document ends with a slash.
504>
499505> **authorizationUrl** `string`
500506>
501507> HTTPS authorization endpoint. Used with the token URL when no issuer is set.
from line 528
522528>
523529> > [accordion] More detail
524530> >
531> > When unset, the browser sign-in requests `openid profile email offline_access`.
532> >
525533> > In ID-token mode, `offline_access` is not added to scopes that you set. Include it yourself, or users sign in again each time the token expires.
526534>
527535> **appendOfflineAccess** `boolean` (default: true)
from line 554
546554>
547555> Fixed loopback port for the sign-in redirect. Leave unset to use a free port each time.
548556>
557> > [accordion] More detail
558> >
559> > Leave unset for Entra ID, which accepts any loopback port. Set it for an identity provider that requires an exact port match, such as Okta. Register `http://127.0.0.1:<port>/callback` there, or `http://localhost:<port>/callback` if `redirectHost` is `localhost`.
560>
549561> **redirectHost** `enum`
550562>
551563> Use localhost only if your IdP’s registered redirect URI specifies it.
from line 619
607619>
608620> HTTPS issuer with OIDC discovery. Set this, or set the authorization and token URLs instead.
609621>
622> > [accordion] More detail
623> >
624> > Enter your identity provider's discovery URL without `/.well-known/openid-configuration`. End it with a slash if the `issuer` value in the discovery document ends with a slash.
625>
610626> **authorizationUrl** `string`
611627>
612628> HTTPS authorization endpoint. Used with the token URL when no issuer is set.
from line 649
633649>
634650> > [accordion] More detail
635651> >
652> > When unset, the browser sign-in requests `openid profile email offline_access`.
653> >
636654> > In ID-token mode, `offline_access` is not added to scopes that you set. Include it yourself, or users sign in again each time the token expires.
637655>
638656> **appendOfflineAccess** `boolean` (default: true)
from line 675
657675>
658676> Fixed loopback port for the sign-in redirect. Leave unset to use a free port each time.
659677>
678> > [accordion] More detail
679> >
680> > Leave unset for Entra ID, which accepts any loopback port. Set it for an identity provider that requires an exact port match, such as Okta. Register `http://127.0.0.1:<port>/callback` there, or `http://localhost:<port>/callback` if `redirectHost` is `localhost`.
681>
660682> **redirectHost** `enum`
661683>
662684> Use localhost only if your IdP’s registered redirect URI specifies it.
from line 735
713735
714736stringSince 1.8089.0
715737
716**Claude API key.** Leave blank to sign in with your browser, or to supply the key via a credential helper.
738**Claude API key.** Key for the Claude API. To sign in with your browser or use a helper script instead, change Credential kind.
717739
718740[Admin Console](#the-works-with-column): Not available.
719741
from line 761
739761
740762Since 1.2581.0
741763
742**Bedrock base URL.** Bedrock: https\:// and the host of a VPC endpoint or gateway proxy, no path. Bedrock Mantle: the full SDK base URL with the /anthropic path.
764**Bedrock base URL.** For VPC endpoints or gateway proxies. Enter https\:// and the host, plus any path it needs. Amazon’s Bedrock Mantle hosts need /anthropic.
743765
744766***
745767
from line 864
842864
843865**AWS config directory.** Folder with AWS config/credentials. Defaults to \~/.aws when no bearer token is set.
844866
867[Guide for this setting](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#amazon-bedrock-with-a-named-profile)
868
845869> [accordion] More detail
846870>
847> Code sessions over SSH read the AWS files from the same folder under the user's home folder on the host. If it is not inside the home folder on this computer, they need a launcher. With `inferenceBedrockProfile` unset, the `default` profile is used, but never from `~/.aws`: there a launcher is needed too. Use regular files, not links, in a folder of their own, and keep any `credential_process` program where the user cannot write.
871> Code sessions over SSH read the AWS files from the same folder under the user's home folder on the host. If it is not inside the home folder on this computer, they need a launcher. With `inferenceBedrockProfile` unset, the `default` profile is used, but never from `~/.aws`: there a launcher is needed too. Use regular files, not links, in a folder of their own. The safest place for a `credential_process` program is where the user cannot write.
848872
849873***
850874
from line 1017
9931017>
9941018> HTTPS issuer with OIDC discovery. Set this, or set the authorization and token URLs instead.
9951019>
1020> > [accordion] More detail
1021> >
1022> > Enter your identity provider's discovery URL without `/.well-known/openid-configuration`. End it with a slash if the `issuer` value in the discovery document ends with a slash.
1023>
9961024> **authorizationUrl** `string`
9971025>
9981026> HTTPS authorization endpoint. Used with the token URL when no issuer is set.
from line 1037
10091037>
10101038> Fixed loopback port for the sign-in redirect. Leave unset to use a free port each time.
10111039>
1040> > [accordion] More detail
1041> >
1042> > Leave unset for Entra ID, which accepts any loopback port. Set it for an identity provider that requires an exact port match, such as Okta. Register `http://127.0.0.1:<port>/callback` there, or `http://localhost:<port>/callback` if `redirectHost` is `localhost`.
1043>
10121044> **redirectHost** `enum`
10131045>
10141046> Use localhost only if your IdP’s registered redirect URI specifies it.
from line 1175
11431175>
11441176> MDM profile only. Applies where the profile sets `forceLoginOrgUUID` and uses Claude Console sign-in with the Anthropic (Claude API) provider.
11451177>
1146> Off or unset, an unlisted organization’s sign-in still works, with a configuration warning in main.log. When on, Chat, Cowork, and Code don’t start on it, and the app renews the saved sign-in with Anthropic at each launch. If that fails, no session starts.
1178> Off or unset, an unlisted organization’s sign-in works, with a configuration warning in main.log. When on, Chat, Cowork, and Code do not start on it, and the app renews the saved sign-in with Anthropic at each launch. If that fails, no session starts.
11471179>
1148> Before you turn it on, add your Claude Console organization’s ID to the list. Your Claude organization’s ID doesn’t cover it. People with a key saved by an earlier version must then sign in again. An unreadable value counts as on, and a `[]` or unreadable list then allows no organization. Update all devices first. An earlier version ignores this key, and on Linux can reject the whole file.
1180> Before you turn it on, add your Claude Console organization’s ID to the list. Your Claude organization’s ID does not cover it. People with a key saved by an earlier version must then sign in again. An unreadable value counts as on, and a `[]` or unreadable list then allows no organization. Update all devices first. An earlier version ignores this key, and on Linux can reject the whole file.
11491181
11501182***
11511183
from line 1214
11821214
11831215object\[]Since 1.2581.0
11841216
1185**Model list.** Override the auto-discovered model list. First entry is the default.
1217**Model list.** Models to show in the picker. They replace any that the app discovers. First entry is the default.
11861218
11871219> [accordion] More detail
11881220>
11891221> Each entry is a model ID or an object:
11901222>
1191> ```json theme={null} theme={null} theme={null} theme={null}
1223> ```json theme={null}
11921224> [
11931225> {"name": "claude-sonnet-5",
11941226> "supports1m": true},
from line 1241
12091241>
12101242> **name** `string` *required*
12111243>
1212> Model ID exactly as the provider expects it. The first entry is the default model.
1244> The provider’s exact ID, such as us.anthropic.claude-sonnet-5 on Bedrock, claude-sonnet-5 on Vertex AI, or your deployment name on Foundry.
12131245>
12141246> **labelOverride** `string`
12151247>
from line 1437
14051437>
14061438> Set `sshHostAllowlist` too. While it allows no host, Code has nowhere to start a session. SSH to `localhost` counts as local. Other names for this device are blocked only by leaving them out of `sshHostAllowlist`.
14071439>
1408> Chat and Cowork still run on the device. A running session goes on until its process stops, and then cannot be resumed. Claude Code started from a terminal ignores this key. Code routines set to run on the device are held while the key is set.
1440> Chat and Cowork still run on the device. A running session ends at its next message or later, and cannot be resumed. Claude Code started from a terminal ignores this key. Code routines set to run on the device are held while the key is set.
14091441>
14101442> `false` does not undo a `true` in Claude Code's managed setting of the same name. Where a bootstrap server or the Admin Console delivers configuration, set this key in it. That configuration replaces the MDM profile's value, even if it omits this key.
14111443
from line 1583
15511583>
15521584> In an administrator’s configuration, it applies unless `coworkEgressAllowedHosts` holds `*` and `allowedWorkspaceFolders` is unset. Unreadable values count as `refuse`.
15531585>
1554> It has no effect where a host’s launcher locates Claude Code. Where a host’s managed settings replace yours, it applies only if settings there turn a sandbox on. For both, set `sandbox.enabled` and `sandbox.failIfUnavailable` in the host’s managed settings.
1586> It has no effect where a host’s launcher locates Claude Code. Where a host’s managed settings replace yours, it applies only if settings there turn a sandbox on. For both, see the guide: host settings can require one, but also apply outside SSH sessions.
15551587>
15561588> It does not protect against the host’s account, repository settings, hooks, MCP servers, `!` commands, or approved terminal commands.
15571589>
from line 1620
15881620
15891621***
15901622
1623#### `sshHostProgramsPreinstalled`
1624
1625boolean
1626
1627MDM only (You can set the key only in an MDM profile or the local configuration file. Claude Desktop ignores it in a bootstrap server's response. Where a key's description says MDM profile only, you cannot set the key in the local configuration file either.)
1628
1629Beta (The feature that the key configures is in beta.)
1630
1631Since 6.6395.0
1632
1633**Use preinstalled programs on SSH hosts.** On SSH hosts, run Claude’s helper, and Claude Code unless a launcher locates it, only from a folder that you fill. Device management only.
1634
1635[Guide for this setting](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#preinstall-the-remote-server-and-claude-code-on-ssh-hosts)
1636
1637[Admin Console](#the-works-with-column): Not available.
1638
1639> [accordion] More detail
1640>
1641> The app takes its helper, and Claude Code unless a host's launcher locates it, only from root-owned `/usr/libexec/claude-desktop-ssh`, and uploads neither. It refuses macOS, Windows and unprepared hosts. It does not stop code run as the user.
1642>
1643> Hold updates until hosts have each release's programs, or devices cannot connect. In Windows machine policy, it hides all user policy. Turning it on or off interrupts work. If no device policy can be read, the app may still upload.
1644
1645***
1646
15911647### Chat surface
15921648
15931649#### `chatTabEnabled`
from line 1712
16561712
16571713> [accordion] More detail
16581714>
1659> Does not cover web search, model requests or MCP servers.
1715> Not covered: web search, model requests, and MCP servers.
16601716>
16611717> * **Entries:** a hostname, a wildcard (`*.corp.com`, subdomains only) or `*` for all.
1662> * **Ports:** an entry other than `*` can end in `:port`, which only Code ignores. Update all devices first: older versions then block every host in Cowork's shell.
1718> * **Ports:** all but `*` can end in `:port`, which only Code ignores. Update all devices first: older versions then block every host in Cowork's shell.
16631719> * **Plugins:** command-line tools also reach hosts their plugin declares.
1664> * **Built-in browser:** a list other than `*`, even an empty one, limits Claude's browsing.
1665> * **Code:** a list other than `*` locks Claude Code's sandbox on, for shell commands only, where it runs (see `allowedWorkspaceFolders`). So does an unset list, except where a local file is the only configuration and `blockReadsOutsideWorkingDirectories` is off. Claude Code's own managed settings win by default.
1720> * **Built-in browser:** any list but `*`, even empty, limits Claude's browsing.
1721> * **Code:** any list but `*` locks Claude Code's sandbox on, for shell commands only, where it runs (see `allowedWorkspaceFolders`). So does an unset list, unless a local file is the only configuration and `blockReadsOutsideWorkingDirectories` is off. Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
16661722
16671723***
16681724
from line 1730
16741730
16751731> [accordion] More detail
16761732>
1677> Claude can read and write in every listed folder unless its `mode` is `ro`. An empty list allows none.
1733> Claude can read and write in each listed folder unless its `mode` is `ro`. An empty list allows none.
16781734>
1679> * **Paths:** `~` and these variables expand per user: `%OneDrive%`, `%OneDriveCommercial%`, `%OneDriveConsumer%`, `%APPDATA%`, `%LOCALAPPDATA%`, `%USERNAME%`, `%XDG_DOCUMENTS_DIR%`. An entry with any other variable, or an unset one, adds no folder.
1680> * **Code shell commands:** this key turns on Claude Code's sandbox on macOS, and on Linux and WSL2 where bubblewrap and socat work. There, most writes outside the list are refused, and most reads are not. Elsewhere, Windows included, only Claude's file tools follow the list. Claude Code's own managed settings win by default.
1735> * **Paths:** `~` and these expand per user: `%OneDrive%`, `%OneDriveCommercial%`, `%OneDriveConsumer%`, `%APPDATA%`, `%LOCALAPPDATA%`, `%USERNAME%`, `%XDG_DOCUMENTS_DIR%`. Any other variable, or an unset one, adds no folder.
1736> * **Code shell commands:** this key turns on Claude Code's sandbox on macOS, and on Linux and WSL2 where bubblewrap and socat work. There, most writes outside the list are refused, and most reads are not. Elsewhere, Windows included, only file tools follow the list. Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
16811737>
16821738> Do not list a home folder: it holds SSH keys and shell start-up files.
16831739
from line 1759
17031759>
17041760> > [accordion] More detail
17051761> >
1706> > * **Code on the device:** Claude's file tools cannot change the folder. Shell commands still can.
1707> > * **Code over SSH:** the same, but shell commands are partly limited where Claude Code's sandbox runs on the host. Nothing is enforced on Windows hosts.
1762> > * **Code on the device:** Claude's file tools cannot change the folder. Shell commands can.
1763> > * **Code over SSH or in WSL:** the same, but shell commands are partly limited where Claude Code's sandbox runs there. Nothing is enforced on Windows hosts.
17081764> >
1709> > In Code, a device or SSH host with Claude Code managed settings enforces nothing, unless they set `parentSettingsBehavior` to `merge`. Where a folder must not change, use the operating system's permissions. A read-only folder that holds Claude's own data, such as the home folder, is enforced in Cowork only.
1765> > In Code, a device or SSH host with Claude Code managed settings limits only file tools, unless they set `parentSettingsBehavior` to `merge`. Where a folder must not change, use operating system permissions. A read-only folder that holds Claude's own data, such as the home folder, is enforced in Cowork only.
17101766
17111767***
17121768
from line 1775
17191775> [accordion] More detail
17201776>
17211777> * **File tools** refuse most reads outside the session folder and any `allowedWorkspaceFolders`, in every permission mode.
1722> * **Shell commands:** where Claude Code's sandbox runs (see `allowedWorkspaceFolders`), most reads in the home folder and other user folders are refused. Elsewhere, Claude Code asks for approval when it recognizes such a read. It cannot see what a running script or other program reads.
1778> * **Shell commands:** where Claude Code's sandbox runs (see `allowedWorkspaceFolders`), most reads in the home folder and other user folders are refused. Elsewhere, Claude Code asks when it recognizes such a read. It cannot see what a script or program reads.
17231779> * **Users** can re-open folders, even their whole home folder, in their own Claude Code settings.
17241780>
1725> The user's git configuration files stay readable, and they can hold credentials. If the app cannot download its Claude Code, sessions may run on an older copy without this block.
1781> The user's git configuration files stay readable and can hold credentials. If the app cannot download its Claude Code, sessions may run on an older copy without this block.
17261782>
1727> Claude Code's own managed settings win by default.
1783> Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
17281784
17291785***
17301786
from line 1889
18331889
18341890#### `skillScanningEnabled`
18351891
1836boolean
1892booleanSince 3.1623.0
18371893
1838Beta (The feature that the key configures is in beta.)
1839
1840Since 3.1623.0
1841
18421894**Scan user-created skills.** Run a security scan on each skill a user creates or uploads before it can be used. Skills that fail the security scan are blocked.
18431895
18441896[Guide for this setting](https://claude.com/docs/third-party/claude-desktop/skill-scanning.md)
from line 1919
18671919
18681920> [accordion] More detail
18691921>
1870> Turning it back on restores those marketplaces. Off also stops plugins kept in skills folders, with their hooks and servers, and /plugin-authoring.
1922> Turning it back on restores those marketplaces. Off also stops plugins in skills folders, with their hooks and servers, and /plugin-authoring.
18711923>
18721924> * It does not limit Claude Code in a terminal.
1873> * Claude Code's own managed settings win by default. Restrict marketplaces in those settings as well.
1925> * Claude Code managed settings usually win without `parentSettingsBehavior: merge`. Restrict marketplaces in those settings too.
18741926>
1875> Applies only while the app runs in third-party mode. If users could otherwise sign in to Claude.ai on the device, also set `deploymentMode` to `3p`, or `disableDeploymentModeChooser`.
1927> Applies only while the app runs in third-party mode. A user who chooses Claude.ai at sign-in can leave that mode. To prevent that, see `deploymentMode`.
18761928
18771929***
18781930
from line 1938
18861938>
18871939> Plugins that are already installed, or placed on disk outside the app, are not removed or blocked.
18881940>
1889> Applies only while the app runs in third-party mode. If users could otherwise sign in to Claude.ai on the device, also set `deploymentMode` to `3p`, or `disableDeploymentModeChooser`.
1941> Applies only while the app runs in third-party mode. A user who chooses Claude.ai at sign-in can leave that mode. To prevent that, see `deploymentMode`.
18901942
18911943***
18921944
from line 1946
18941946
18951947booleanSince 2.110.0
18961948
1897**Allow scheduled tasks.** Allow scheduled tasks in Cowork and Code. When off, scheduling is hidden, existing tasks stop running and Claude cannot create new ones.
1949**Allow scheduled tasks.** Allow scheduled tasks in Cowork and Code. When off, scheduled tasks stop running, and neither users nor Claude can create new ones.
18981950
18991951> [accordion] More detail
19001952>
from line 2057
20052057
20062058> [accordion] More detail
20072059>
2008> Entries use the same tool names and rules as `disabledBuiltinTools`, with the same limits. Command rules are not a security boundary, and `Bash(…)` rules do not cover `PowerShell`.
2060> Entries use the tool names, rules, and limits of `disabledBuiltinTools`.
20092061>
2010> `ask` also turns off the user's saved “always allow” choices for that tool. A scheduled task in Cowork waits at the prompt.
2062> `ask` also turns off each user's saved “always allow” choices for that tool. A scheduled Cowork task waits at the prompt.
20112063>
2012> **Rules such as `Bash(curl *)`:** Claude Code's own managed settings win by default. A tool name such as `Bash` still applies. Update all devices first: an older version drops these rules, so the tool runs without a prompt.
2064> With `ask` on `Write` and `Edit` alone, Claude's shell commands can change files without a prompt. To cover those commands, set `Bash` to `ask`.
20132065>
2014> An unusable entry is dropped and recorded as a configuration error.
2066> **Rules such as `Bash(curl *)`:** Claude Code managed settings usually win without `parentSettingsBehavior: merge`. A tool name such as `Bash` still applies. Update all devices first: an older version drops these rules, so the tool runs without a prompt.
20152067
20162068***
20172069
from line 2116
20642116> MDM profile only. Only a machine-wide `false` (`HKLM`) allows WSL sessions on a device with any managed configuration.
20652117>
20662118> Under `allowedWorkspaceFolders`, a WSL session needs bubblewrap and socat in the distro, and its shell commands can read the Windows drives under `/mnt`. Claude Code's server-managed settings, among others, can remove its sandbox and `blockReadsOutsideWorkingDirectories`: see the Path help of `allowedWorkspaceFolders`.
2067>
2068> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
20692119
20702120***
20712121
from line 2135
20852135> * **Not used:** for sessions on a Windows device, in WSL, in Cowork, and for the connection test and title generation.
20862136>
20872137> To stop users bypassing the launcher, set this key in your MDM profile, with `disableDeploymentModeChooser` if that profile sets more than app-behavior keys.
2088>
2089> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
20902138
20912139***
20922140
from line 2313
22652313
22662314> [accordion] More detail
22672315>
2268> Entries use the `coworkEgressAllowedHosts` format: `host`, `host:port`, or `*.example.com` for its subdomains only. An IPv6 address goes in brackets, such as `[2001:db8::5]`, and a single-label name such as `intranet` is matched exactly. A bare `*` admits every site, as before this setting. A listed site, such as a TLS-inspecting proxy, gets the first matching certificate without asking. Other sites get none from these panes, which also make no background requests to a host you declared unless an entry names it. The app’s own windows and connections are unaffected. Only machine-wide device management can set it: a value from per-user Windows policy or the local configuration file is shown but not applied. A change applies at the next start.
2316> Entries use the `coworkEgressAllowedHosts` format: `host`, `host:port`, or `*.example.com` for its subdomains only. An IPv6 address goes in brackets, such as `[2001:db8::5]`, and a single-label name such as `intranet` is matched exactly. A bare `*` admits every site. A listed site gets the first matching certificate without asking. If a TLS-inspecting proxy asks for a certificate in a site’s place, list that site, not the proxy. Unlisted sites get none from these panes, which also make no background requests to a host you declared unless an entry names it. Only machine-wide device management can set it: a value from per-user Windows policy or the local configuration file is shown but not applied. A change applies at the next start.
22692317
22702318***
22712319
from line 2333
22852333>
22862334> > [accordion] More detail
22872335> >
2288> > The user confirms another device’s export is their own. Memory and some app preferences apply at once. Tasks, plugins, and skills arrive turned off. Local MCP servers start when the user adds them in a dialog. Each needs its setting on: `scheduledTasksEnabled`, `userPluginUploadsEnabled`, `skillCreationEnabled`, `isLocalDevMcpEnabled`.
2336> > The user confirms another device’s export is their own. Memory and some app preferences apply at once. Designs and slide decks come where users can list and open them, unless their own setting is off. Tasks, plugins, and skills arrive turned off. Local MCP servers start when the user adds them in a dialog. Each needs its setting on: `scheduledTasksEnabled`, `userPluginUploadsEnabled`, `skillCreationEnabled`, `isLocalDevMcpEnabled`.
22892337>
22902338> **allowedOrganizationUuids** `string[]`
22912339>
from line 2368
23202368>
23212369> > [accordion] More detail
23222370> >
2323> > The zip can contain sessions, projects and their files, memory, scheduled tasks, saved skills, uploaded plugins, some app preferences, and local MCP server commands. Passwords or API keys in them are included. Treat it as sensitive data.
2371> > The zip can contain sessions, projects and their files, memory, scheduled tasks, saved skills, and uploaded plugins. It can also contain designs and slide decks, some app preferences, and local MCP server commands. Passwords or API keys in them are included. Treat it as sensitive data.
23242372> >
23252373> > This setting does not cover the `/export` command.
23262374>
from line 2454
24062454
24072455> [accordion] More detail
24082456>
2409> Values of an entry's `toolPolicy`, per tool name:
2457> An entry's `toolPolicy` by tool name its server lists:
24102458>
24112459> * `allow`: pre-approves the tool, except in Code and for built-in connector tools that send or cannot be undone. In Automatically approve, the safety check still judges each call.
24122460> * `ask`: every call needs approval, with no option to always allow. A scheduled Cowork task waits at the prompt.
2413> * `blocked`: the tool is removed from the session.
2461> * `blocked`: removes the tool from the session.
24142462>
2415> A name can contain `*`, as in `read_*`. When several wildcards match, the strictest applies. An exact name normally takes priority over a wildcard. To block by default, use `"*": "blocked"` plus exact `allow` entries. On a plugin server that Claude Code runs, the stricter value applies.
2463> A name can contain `*`, as in `read_*`. If names overlap, Claude's calls normally follow the strictest: a wildcard `ask` takes priority over an exact `allow`. To block by default, use `"*": "blocked"`. Exact `allow` names stay allowed, except on a plugin server that Claude Code runs.
24162464
24172465> [accordion] Child attributes
24182466>
from line 2761
27132761> > > >
27142762> > > > > [accordion] More detail
27152763> > > > >
2716> > > > > For a GCC High or DoD tenant, leave this unset and set `authorizationServer` to `https://login.microsoftonline.us/<tenant-id>/v2.0`.
2764> > > > > For a GCC High or DoD tenant, leave this unset and set `authorizationServer` to `["https://login.microsoftonline.us/<tenant-id>/v2.0"]`.
27172765> > > >
27182766> > > > **oauth.authFlow** `enum`
27192767> > > >
from line 2784
27362784> > > >
27372785> > > > **oauth.appendOfflineAccess** `boolean`
27382786> > > >
2739> > > > Adds offline\_access to the authorize request so the IdP returns a refresh token for silent renewal.
2787> > > > Requests offline\_access (for a refresh token) even where the app cannot see that your IdP supports it. Leave unset for Google.
27402788> > > >
27412789> > > > > [accordion] More detail
27422790> > > > >
2743> > > > > Leave off if `scope` already includes `offline_access` or the server rejects it.
2791> > > > > Usually leave this unset: browser sign-in adds `offline_access` when your identity provider lists it in `scopes_supported`. **Off** does not stop that. Off only stops the app asking Google for a refresh token.
27442792> > > > >
2745> > > > > If you set `authorizationUrl` and `tokenUrl`, this switch does not work on its own. Add `offline_access` to `scope` instead.
2793> > > > > **On** also adds it when it is not listed. With `authorizationUrl` and `tokenUrl` the app reads no such list: use On if your provider accepts that scope.
2794> > > > >
2795> > > > > If neither `scope` nor the MCP server names a scope, the app adds nothing, so set `scope`.
27462796> > > >
27472797> > > > **oauth.omitResource** `boolean`
27482798> > > >
27492799> > > > Sends no OAuth resource parameter. Use only if your identity provider rejects it. Requires Client ID, Scope and one sign-in server.
27502800> > > >
2801> > > > [Guide for this setting](https://claude.com/docs/third-party/claude-desktop/mcp-sign-in.md#omit-the-resource-parameter)
2802> > > >
27512803> > > > > [accordion] More detail
27522804> > > > >
27532805> > > > > By default, sign-in sends, as the OAuth `resource` parameter, the URL that this server publishes. That ties the token to this server. Entra ID rejects the parameter with `AADSTS9010010` when the URL is not an Application ID URI in your tenant.
from line 2937
28852937> > > * This is a starting point, not a restriction: each user can turn the connector on. To withhold a connector, remove it or block its tools with `toolPolicy`.
28862938> > > * Adding `off` to a connector already in use turns it off for all users who have not switched it on themselves, scheduled tasks included.
28872939> > > * This setting does not apply to a plugin's server that matches this entry.
2940> >
2941> > **replacesBuiltinTools** `object`
2942> >
2943> > Makes Claude’s web fetch get every page through a tool of this server. Set it on one server only, or web fetch turns off.
2944> >
2945> > > [accordion] More detail
2946> > >
2947> > > * Also list `WebFetch` in `disabledBuiltinTools` for older versions, for Claude Code outside the app, and for groups without this server.
2948> > > * The server decides what it reaches: `coworkEgressAllowedHosts` and the sandbox do not limit it.
2949> > > * Write rules and hooks on `WebFetch`. Beside a `domain:` deny or ask rule, the tool must return `destination_url` in its structured content.
2950> > > * Web fetch stops for anyone given this server who has it turned off.
2951> >
2952> > > [accordion] Child attributes (1)
2953> > >
2954> > > **replacesBuiltinTools.WebFetch** `string`
2955> > >
2956> > > Name of the tool that returns a page as text. It gets the page’s URL in an argument named url. Unset keeps Claude Desktop’s own fetch.
28882957>
28892958> > [tab] stdio
28902959> >
from line 3069
30003069> > > [accordion] More detail
30013070> > >
30023071> > > A PNG of 48 by 48 pixels or smaller works well. Keep icons small: Windows Group Policy holds the whole `managedMcpServers` list in one value of at most 65,535 characters.
3072> >
3073> > **replacesBuiltinTools** `object`
3074> >
3075> > Makes Claude’s web fetch get every page through a tool of this server. Set it on one server only, or web fetch turns off.
3076> >
3077> > > [accordion] More detail
3078> > >
3079> > > * Also list `WebFetch` in `disabledBuiltinTools` for older versions, for Claude Code outside the app, and for groups without this server.
3080> > > * The server decides what it reaches: `coworkEgressAllowedHosts` and the sandbox do not limit it.
3081> > > * Write rules and hooks on `WebFetch`. Beside a `domain:` deny or ask rule, the tool must return `destination_url` in its structured content.
3082> > > * Web fetch stops for anyone given this server who has it turned off.
3083> >
3084> > > [accordion] Child attributes (1)
3085> > >
3086> > > **replacesBuiltinTools.WebFetch** `string`
3087> > >
3088> > > Name of the tool that returns a page as text. It gets the page’s URL in an argument named url. Unset keeps Claude Desktop’s own fetch.
30033089>
30043090> > [tab] policy-only
30053091> >
from line 3143
30573143
30583144> [accordion] More detail
30593145>
3060> On third-party deployments, `false` covers `.mcpb` bundles and plugins from every marketplace, your organization's included. In Code there, it also stops a user's or a project's own local MCP servers. Plugins in the org-plugins directory on the device are not affected.
3146> On third-party deployments, `false` covers `.mcpb` bundles and plugins from any marketplace, your organization's too. In Code there, it also stops a user's or project's own local MCP servers. Plugins in the device's org-plugins directory are exempt.
30613147>
30623148> Other plugin code, such as hooks and language servers, is not covered.
30633149>
3064> A `false` from an MDM profile limits local `managedMcpServers` entries to those in that same profile, exactly as written there.
3150> A `false` from an MDM profile limits local `managedMcpServers` entries to those in that profile, exactly as written.
30653151>
3066> Claude Code's own managed settings win by default.
3152> Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
30673153
30683154***
30693155
from line 3165
30793165> * **Once set:** no entry allows a plugin's local (`stdio`) server, and servers that a user or a project configures for Claude Code are not connected.
30803166> * **`policy-only`:** a `managedMcpServers` entry with that `transport` does not allow its server. List the server's own URL here too.
30813167>
3082> Claude Code's own managed settings win by default.
3168> Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
30833169
30843170> [accordion] Child attributes (1)
30853171>
from line 3183
30973183
30983184> [accordion] More detail
30993185>
3100> An entry matches an address, not a server. The same server under another host name or IP address, or behind a plugin's local server, is not matched. To keep a plugin's servers out whatever address they use, set `allowedPluginMcpServers`.
3186> An entry matches an address, not a server. The same server under another host name or IP, or behind a plugin's local server, is not matched. To keep plugin servers out at any address, set `allowedPluginMcpServers`.
31013187>
31023188> * **Entries:** `{"serverUrl": "https://*.example.com/*"}`. This example does not match `http://`, `wss://` or `example.com` itself. A pattern with no scheme matches nothing.
3103> * **Not affected:** `managedMcpServers` and servers from the org-plugins directory on the device.
3104> * **Any other form**, such as `serverName`, is reported and blocks every plugin's remote server.
3189> * **Not affected:** `managedMcpServers` and servers from the device's org-plugins directory.
3190> * **Other forms**, such as `serverName`, are reported and block all remote plugin servers.
31053191>
3106> Claude Code's own managed settings win by default.
3192> Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
31073193
31083194> [accordion] Child attributes (1)
31093195>
from line 3314
32283314> * text you set for display
32293315> * a one-way digest of a session ID
32303316>
3231> Leave this off unless your policy requires zero outbound telemetry.
3317> The app sends no memory dumps. With this on, it only logs crashes.
32323318
32333319***
32343320
from line 3330
32443330>
32453331> The product-usage analytics come from the app and from Claude Code. Turning this on also stops Claude Code's error reports, its plugin auto-updates unless its settings allow them, and other nonessential requests to Anthropic.
32463332>
3247> Applies only while the app runs in third-party mode. If users could otherwise sign in to Claude.ai on the device, also set `deploymentMode` to `3p`, or `disableDeploymentModeChooser`.
3333> Applies only while the app runs in third-party mode. A user who chooses Claude.ai at sign-in can leave that mode. To prevent that, see `deploymentMode`.
32483334
32493335***
32503336
from line 3347
32613347> * Artifacts still render locally.
32623348> * Excel files in the Code tab preview only through Claude’s workspace (the local VM).
32633349> * Spellcheck underlines are off on Linux.
3264> * The Code tab’s pull request bar stops updating or adding GitLab merge requests and Gerrit changes. GitHub pull requests still show. Claude Code may still check GitLab or Gerrit with your command-line sign-ins unless Block nonessential telemetry is on.
3350> * The Code tab’s pull request bar stops updating or adding GitLab merge requests and Gerrit changes. GitHub pull requests still show. Claude Code may still check GitLab or Gerrit unless Block nonessential telemetry is on.
32653351>
32663352> Windows still downloads a dictionary for a language it cannot check natively. This key does not stop that download.
32673353
from line 3523
34373523>
34383524> On Windows the notice covers installs from the MSIX package, not the Microsoft Store version or the .exe installer. The switch to the newer version may end the Cowork tasks of other users signed in on that device.
34393525>
3440> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3526> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
34413527
34423528***
34433529
from line 3541
34553541> * **macOS:** outside third-party deployments, if the keychain is locked and the device is locked or idle, Claude closes instead of restarting.
34563542> * **Windows:** Claude may not reopen, and other signed-in users' Cowork tasks may end.
34573543> * If it stays closed, scheduled tasks and background work stop until a user opens it.
3458>
3459> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
34603544
34613545***
34623546
from line 3559
34753559> * The restart waits while Claude is mid-task on the device.
34763560> * On macOS with no number set, it also waits up to 72 hours while the keychain is locked.
34773561>
3478> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3562> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
34793563
34803564***
34813565
from line 3578
34943578>
34953579> An update usually installs sooner, after 10 minutes with no window in use or task running.
34963580>
3497> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3581> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
34983582
34993583***
35003584
from line 3593
35093593> The installer still downloads from `downloads.claude.ai`, so keep that host open.
35103594>
35113595> If an MDM profile sets `bootstrapUrl` to a `config.claude.com` URL and leaves `bootstrapEnabled` on, the app reads the feed from `releases.claude.com` whatever this key says. Turn this key on anyway: an older version reads the feed there only when the key is on.
3512>
3513> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
35143596
35153597***
35163598
from line 3613
35313613> * Users who sign in to Claude.ai follow `stable`, unless their organization manages Claude Desktop from the Admin Console.
35323614> * No effect on Linux or Microsoft Store installs.
35333615>
3534> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3616> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
35353617
35363618***
35373619
from line 3631
35493631>
35503632> When an MDM profile that sets more than app-behavior keys first reaches a running app, the restart dialog can show with no countdown.
35513633>
3552> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3634> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
35533635
35543636***
35553637
from line 3645
35633645>
35643646> A change that needs a restart starts the `relaunchEnforcementHours` countdown.
35653647>
3566> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
3648> In an MDM profile of only app-behavior keys, the app ignores user or server values that could undo this key. Set any you use in MDM. [See which](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence).
35673649
35683650***
35693651
from line 3687
36053687>
36063688> * a session while it is running or open on screen
36073689> * another account's sessions, until that account signs in
3608> * Code sessions on an SSH host or in WSL
3690> * SSH and WSL Code sessions, unless a separate setting adds them
36093691> * Cowork background tasks that the sidebar does not list
36103692> * a Cowork task's artifacts
36113693> * Claude Code's prompt history, plans and shell snapshots
36123694>
3613> A value that cannot be read as a whole number of days deletes nothing.
3695> A value that cannot be read deletes nothing.
36143696>
36153697> To keep some people's idle sessions, set all three periods to 3650 days in the configuration that sets their periods.
36163698
from line 3712
36303712>
36313713> * a session while it is running or open on screen
36323714> * another account's sessions, until that account signs in
3633> * Code sessions on an SSH host or in WSL
3715> * SSH and WSL Code sessions, unless a separate setting adds them
36343716> * Cowork background tasks that the sidebar does not list
36353717> * a Cowork task's artifacts
36363718> * Claude Code's prompt history, plans and shell snapshots
36373719>
3638> A value that cannot be read as a whole number of days deletes nothing.
3720> A value that cannot be read deletes nothing.
36393721>
36403722> To keep some people's idle sessions, set all three periods to 3650 days in the configuration that sets their periods.
36413723
from line 3737
36553737>
36563738> * a session while it is running or open on screen
36573739> * another account's sessions, until that account signs in
3658> * Code sessions on an SSH host or in WSL
3740> * SSH and WSL Code sessions, unless a separate setting adds them
36593741> * Cowork background tasks that the sidebar does not list
36603742> * a Cowork task's artifacts
36613743> * Claude Code's prompt history, plans and shell snapshots
36623744>
3663> A value that cannot be read as a whole number of days deletes nothing.
3745> A value that cannot be read deletes nothing.
36643746>
36653747> To keep some people's idle sessions, set all three periods to 3650 days in the configuration that sets their periods.
36663748
36673749***
36683750
3751#### `codeSessionRetentionIncludeSshAndWsl`
3752
3753booleanSince 18.19841.0
3754
3755**Delete idle SSH and WSL Code sessions.** Permanently delete SSH and WSL Code sessions idle for the Code retention period plus 7 days. May end idle Claude Code on SSH hosts.
3756
3757> [accordion] More detail
3758>
3759> Needs `codeSessionRetentionDays` set.
3760>
3761> * Expired sessions go at once. Host and WSL files stay, transcripts too. If the host has none, the conversation is gone.
3762> * On a connected host, the app first ends idle Claude Code, as far as it can tell, with work it cannot see.
3763> * Known work (background commands, queued messages) or being unable to end it delays this, usually to the period plus 37 days. Then it is stopped or lost. Claude Code may still run.
3764
3765***
3766
36693767### Token limits
36703768
36713769#### `inferenceMaxTokensPerWindow`
from line 4160
40624160>
40634161> * If a `managedMcpServers` entry is for the same server (same URL, otherwise same name), the entry here is ignored. Put the locks in that entry's `toolPolicy`. On an operating system where that local (`stdio`) entry has no `command`, the entry here applies.
40644162> * Update all devices first: an older version ignores this list and enforces no locks.
4065> * Claude Code's own managed settings win by default.
4163> * Claude Code managed settings usually win without `parentSettingsBehavior: merge`.
40664164
40674165> [accordion] Child attributes (2)
40684166>
from line 4248
41504248>
41514249> HTTPS issuer with OIDC discovery. Set this, or set the authorization and token URLs instead.
41524250>
4251> > [accordion] More detail
4252> >
4253> > Enter your identity provider's discovery URL without `/.well-known/openid-configuration`. End it with a slash if the `issuer` value in the discovery document ends with a slash.
4254>
41534255> **authorizationUrl** `string`
41544256>
41554257> HTTPS authorization endpoint. Used with the token URL when no issuer is set.
from line 4267
41654267> **redirectPort** `integer`
41664268>
41674269> Fixed loopback port for the sign-in redirect. Leave unset to use a free port each time.
4270>
4271> > [accordion] More detail
4272> >
4273> > Leave unset for Entra ID, which accepts any loopback port. Set it for an identity provider that requires an exact port match, such as Okta. Register `http://127.0.0.1:<port>/callback` there, or `http://localhost:<port>/callback` if `redirectHost` is `localhost`.
41684274>
41694275> **redirectHost** `enum`
41704276>
No line in this hunk matches that.