Desktop application
Show diff (379 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -225,7 +225,7 @@
#### Save edits in the file pane
-By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, click **Override** to write your edits over the version on disk, or **Discard** to drop your edits.
+By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, choose in the warning whether to save your edits over that version or discard them.
### Open files in other apps
@@ -378,6 +378,23 @@
In the split view, the pane you opened or clicked last has focus, and the other pane is dimmed. To change which session a pane shows, click in that pane to give it focus, then click a session in the sidebar. To take the focused session out of the split view, press **Cmd+Ctrl+W** on macOS or **Ctrl+Alt+W** on Windows.
+#### Ask Claude to open another session
+
+From a local session, ask Claude to show another local or SSH session in split view. For example, type “Open auth-fix in split view.” Requires Claude Desktop v8.23656.0 or later. You see an approval card first, except for sessions started from this one or when this session is in certain permission modes:
+
+ * **Sessions started from this one** , such as suggested tasks: usually no card appears, unless this session is in Plan.
+ * **Other sessions** : when this session is in Auto or Bypass permissions, Claude usually opens the session without a card. You still see a card in some cases, such as Auto with the other session in Bypass permissions.
+
+Work that resumes when you open a session yourself also resumes when Claude opens it, in that session’s permission mode. One example is a turn interrupted by quitting Desktop. To stop Claude in local sessions from opening sessions on screen, add this [deny rule](</docs/en/permissions#manage-permissions>) to `~/.claude/settings.json` or your organization’s managed settings:
+
+ {
+ "permissions": {
+ "deny": ["mcp__ccd_window__open_session_in"]
+ }
+ }
+
+If your organization sets [`allowManagedPermissionRulesOnly`](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add the rule to managed settings.
+
#### Run a session in its own worktree
In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on **Worktree** in the row under the prompt box.
@@ -498,20 +515,13 @@
### Sessions from Dispatch
-Dispatch isn’t available to new users. If it doesn’t appear in your Claude app, see [other ways to work away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
+Dispatch is being retired and isn’t available to new users. If you still use Dispatch, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>) for what to do before Dispatch turns off. If Dispatch doesn’t appear in your Claude app, or you want a replacement, see [other ways to work away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in [Cowork](<https://claude.com/product/cowork>). You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork.
#### Follow a session that Dispatch started
The session that Dispatch starts appears in the Code tab’s sidebar with your other sessions. With the sidebar’s default grouping and sorting, look for the newest session in the group for the folder it runs in. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions.
-
-#### Set up Dispatch
-
- * **Plans** : Dispatch requires a Pro, Max, or Ultra plan and is not available on Team or Enterprise plans
- * **Setup, pairing, and Dispatch settings** : see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>)
-
-Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
## Extend Claude Code
@@ -916,7 +926,7 @@
Select a folder on the remote machine and click **Create environment**. You keep the machine and folder together as a saved environment for later sessions. Desktop selects it for the new session, so type your task and press **Enter**.
-The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers. A plugin’s hooks might not run there: see Plugin hooks that don’t run in an SSH session.
#### Remote machine requirements for SSH sessions
@@ -1168,14 +1178,49 @@
To confirm, run the first command again. The block’s settings no longer show in its output.
+##### Sign in with Kerberos
+
+To sign in to a remote machine with Kerberos (GSSAPI), turn it on for that machine in the SSH configuration on your computer. On Windows, first make sure that you connect through the OpenSSH client, because Desktop’s built-in SSH client can’t sign in with Kerberos. This entry turns Kerberos on for `devbox`:
+
+~/.ssh/config
+
+ Host devbox
+ HostName devbox.internal.example.com
+ GSSAPIAuthentication yes
+
+Check that `ssh devbox` signs you in from a terminal on your computer. Then add an SSH connection in Desktop with the entry’s name, here `devbox`, in the **SSH host** field. If Desktop shows `Get a new Kerberos ticket, then try again`, get a new ticket on your computer and connect again:
+
+ * **macOS and Linux** : run `kinit`
+ * **Windows** : connect to your work network or VPN, then lock and unlock your computer
+
##### Forwarding settings that Desktop leaves off
-On its connection to the remote machine, Desktop leaves `ForwardAgent`, `ForwardX11`, `LocalForward`, `RemoteForward`, `DynamicForward`, and `Tunnel` off, even where your SSH configuration turns them on. In the terminal or a `!` command, expect your forwarding settings to apply only sometimes, because Desktop can start a separate `ssh` there that follows them.
+On its connection to the remote machine, Desktop leaves `ForwardAgent`, `ForwardX11`, `LocalForward`, `RemoteForward`, `DynamicForward`, `Tunnel`, and `GSSAPIDelegateCredentials` off, even where your SSH configuration turns them on. Claude Desktop v4.16336.0 or later also leaves them off in the terminal and for commands that start with `!`, with exceptions.
* **To reach a port on the remote machine** : forward it yourself
* **To use your own keys from the remote machine** : set up a credential on the remote machine itself, for example for `git push`
-To keep Desktop from forwarding your SSH agent or a port, run `ssh -G devbox` in a terminal on your computer. Then run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips. Look in both outputs for a `forwardagent` line that says anything but `no`, and for lines that begin with `localforward`, `remoteforward`, or `dynamicforward`. If you find one, remove that setting from your SSH configuration. Do the same for a host that your `ProxyCommand` reaches with `ssh`.
+##### Forwarding that Desktop doesn’t turn off
+
+ * **A version before v4.16336.0** : you still forward what your SSH configuration turns on in some terminals and `!` commands. Update Desktop. If you can’t, remove the settings.
+ * **A jump host** : at the machine that your connection passes through, Desktop follows `GSSAPIDelegateCredentials`. Remove it for the jump host unless you want it there.
+ * **A`ProxyCommand` that runs `ssh`**: that `ssh` can forward what your SSH configuration sets for the host that it signs in to. If you don’t want that, remove the settings for that host.
+ * **A shared connection (`ControlMaster` with `ControlPath`)**: on macOS or Linux, you keep what your own shared `ssh` connection forwards in a terminal or `!` command that joins it. Desktop’s own connection to the remote machine doesn’t join it. To end the forwarding:
+ 1. Remove the settings for that host.
+ 2. Close the shared connection, which ends your own `ssh` sessions on it and any Desktop terminal or `!` command that uses it. To close it, run `ssh -O exit devbox` on your computer, with your host’s name for `devbox`.
+
+To find and remove the settings for a host such as `devbox`:
+
+ 1. Run `ssh -G devbox` in a terminal on your computer.
+ 2. Run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips.
+ 3. Look in both outputs for these lines, which mean that a setting is on:
+ * `forwardagent`, then anything but `no`
+ * `forwardx11 yes`
+ * `tunnel`, then anything but `false`
+ * A line that begins with `localforward`, `remoteforward`, or `dynamicforward`
+ * `gssapidelegatecredentials yes`
+ 4. Remove each setting that you find from `~/.ssh/config` or a file that it includes. If you don’t find it there, look in the system-wide file and the files that it includes: `/etc/ssh/ssh_config`, or `%ProgramData%\ssh\ssh_config` on Windows. If you can’t change that file, ask whoever manages your computer.
+ 5. Run both commands again to confirm that neither output shows a line from step 3.
#### Reach a port on the remote machine
@@ -1189,7 +1234,7 @@
A Windows remote machine requires Claude Desktop v2.31226.0 or later. Use Microsoft’s OpenSSH Server. The machine can be x64 or ARM64. The shell that the SSH server starts can be `cmd.exe`, Windows PowerShell 5.1, or Git Bash. Windows remote machines get less testing than Linux ones. Try your own work there before you rely on it. Expect these limits, among others, on a Windows remote machine:
- * **Terminal** : the terminal doesn’t open in a session whose folder is a Windows path, such as `C:/projects/app`
+ * **Terminal** : if the terminal doesn’t open in a session whose folder is a Windows path, such as `C:/projects/app`, ask Claude to run your commands or use `ssh` in your own terminal
* **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 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.
@@ -1240,7 +1285,7 @@
* **The remote machine** : if the remote machine restarts, or ends your processes when your SSH connection closes, the running task ends. Nothing starts it again while Desktop is disconnected. Linux machines where systemd-logind’s `KillUserProcesses` is `yes` and applies to your user end your processes this way. To keep a task running there, ask the administrator to exempt your user, for example with `KillExcludeUsers`.
* **Idle terminals** : some Linux remote machines log out a terminal that nobody types in for a set time (systemd-logind’s `StopIdleSessionSec`). With Desktop on macOS or Linux, a session’s terminal and `!` commands share Desktop’s SSH connection by default. That logout then ends the connection while Desktop is connected, and the running task can end with it. Closing the terminal pane doesn’t prevent it, so keep commands out of that terminal.
* **Desktop updates** : if an update brings a new helper, Desktop replaces the helper on the remote machine at a later connection, which can end a task that still runs
- * **Long absences** : on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then.
+ * **Time limit** : on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then. If the session shows a line such as `This host stops Claude Code after 1 hour when no one is connected.`, the remote machine’s administrator has set a time limit. Your task can end once Desktop has been disconnected that long: connect before then to restart the count. To leave a task running past that limit, ask the administrator to [change the time limit](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#limit-how-long-engines-run-with-no-connection>), or keep Desktop running and connected.
File edits and some tools can fail while Desktop is disconnected. If the task needs them, keep Desktop connected:
@@ -1266,13 +1311,37 @@
If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. If a request that waited for you is gone when you come back, one cause is that Desktop restarted on its own, for example to install an update. You keep a request through a restart only if Desktop can rejoin the process, so check when Desktop can rejoin before you leave a task running. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:
- * **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>).
+ * **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>). In Auto mode, you still answer Claude’s questions and approve its plans.
* **Allow rules** : in your user settings file on the remote machine, `~/.claude/settings.json`, add [allow rules](</docs/en/permissions#manage-permissions>) for the commands the task needs. If your organization [accepts permission rules from managed settings only](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add them to the managed settings that reach the remote machine. For allow rules in a project’s `.claude/settings.json`, see [Project allow rules and workspace trust](</docs/en/permissions#project-allow-rules-and-workspace-trust>).
* **A hook that answers** : configure a [`PermissionRequest` hook](</docs/en/hooks#permissionrequest>) in `~/.claude/settings.json` on the remote machine to allow or deny requests in your place
* **A hook that alerts you** : configure a [`Notification` hook](</docs/en/hooks#notification>) with the `permission_prompt` matcher in the same file to send yourself a message when a request is waiting
* **A hook that tells you when Claude is done** : configure a [`Stop` hook](</docs/en/hooks#stop>) in the same file to send yourself a message when Claude has finished responding. It doesn’t run when an API error ends the turn. For that case, configure a [`StopFailure` hook](</docs/en/hooks#stopfailure>).
If your organization [runs managed hooks only](</docs/en/settings-reference#allowmanagedhooksonly>), ask your administrator to add the hook to the managed settings that reach the remote machine. Claude Code doesn’t auto-approve [a few actions](</docs/en/permission-modes#actions-no-mode-auto-approves>) in any permission mode, including Bypass permissions. Depending on the permission mode, Claude Code denies such an action or asks you, and the task then waits for your answer.
+
+##### Why a task waits in Auto mode or Bypass permissions
+
+In Auto mode and Bypass permissions, a task still waits for you to answer requests such as these in Desktop:
+
+ * **A question** : answer the question that Claude asks you
+ * **A plan** : approve the plan that Claude presents. In either permission mode, Claude can switch to [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>) without asking you.
+ * **A permission prompt** : answer the prompt, for example for a tool call that matches an [ask rule](</docs/en/permissions#manage-permissions>)
+
+To have Claude Code deny a step that it would otherwise ask you about, you can set [`permissions.denyInsteadOfPrompting`](</docs/en/settings-reference#permissions-denyinsteadofprompting>) in `~/.claude/settings.json` on the remote machine. Requires Claude Code v2.1.319 or later on the remote machine. Until you remove the key, expect changes such as these in the SSH session that you start, including while you are there to answer:
+
+ * **Permission prompts** : Claude Code denies a tool call that it would otherwise ask you to approve, and that step doesn’t run
+ * **Questions and plans** : Claude works without the [tools that ask you a question, switch to plan mode, or present a plan](</docs/en/settings-reference#what-else-denyinsteadofprompting-stops>)
+ * **Blocks in Auto mode** : the [prompt that follows repeated blocks](</docs/en/permission-modes#when-auto-mode-falls-back>) doesn’t appear, and the turn, or a subagent’s run, ends after [20 blocked tool calls in a row](</docs/en/settings-reference#messages-from-denyinsteadofprompting>)
+
+For the other sessions that the key changes, see [where it applies](</docs/en/settings-reference#permissions-denyinsteadofprompting>). To set the key, add it to the `permissions` object in that file before you start the session:
+
+~/.claude/settings.json
+
+ {
+ "permissions": {
+ "denyInsteadOfPrompting": true
+ }
+ }
##### Reconnect after sleep or a network loss
@@ -1447,6 +1516,119 @@
#### Use MCP servers set up on the remote machine
To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see MCP servers from `claude_desktop_config.json`.
+
+#### Plugin hooks that don’t run in an SSH session
+
+When Desktop copies a plugin to the remote machine, it sometimes omits the plugin’s [hooks](</docs/en/hooks>), and those hooks don’t run. When your computer or the remote machine runs Windows, Desktop omits them. When both run macOS or Linux, you might not get them either:
+
+ * **With a Claude account** : Desktop sends hooks for only some accounts, and you can’t look up which, so don’t count on them for a guardrail.
+ * **With a[third-party provider](</docs/en/third-party-integrations>)**: see [Plugin hooks on the remote host](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions#plugin-hooks-on-the-remote-host>) for when Desktop sends them.
+
+A message in the session that the plugin “runs without its hooks” confirms that Desktop omitted them, though not every session shows one. If a message says instead that a hook “gave no usable answer”, skip to Fix a hook that gave no usable answer. If the hook is a guardrail, one that your organization relies on to block actions, define it on the remote machine whatever the session shows. For any other hook, take the step that fits what the session shows:
+
+ * **A message says to install the plugin on the remote machine** : see Install a plugin on the remote machine
+ * **The “runs without its hooks” message names a step** : take that step, then start a new session. If the step is to ask your administrator, leave the rest of this section to them.
+ * **That message comes back, or anything else** : define the hook on the remote machine
+
+##### Define a plugin’s hook on the remote machine
+
+To make a plugin’s hook run in SSH sessions whether or not Desktop sends it, define the same hook in [settings](</docs/en/hooks#hook-locations>) on each remote machine that people connect to.
+
+1
+
+Copy the hook's scripts
+
+Copy the scripts that the hook runs, and the files that they read, from the plugin to a folder on the remote machine. Make sure that everyone the hook applies to can read the folder and run the scripts. Install the programs that the scripts call, such as `python3` or `jq`.In the scripts, replace the plugin’s [variables](</docs/en/plugins/components#environment-quoting-and-matching-mcp-tools>), because a hook in settings doesn’t get them:
+
+ * **`CLAUDE_PLUGIN_ROOT`** : use the new folder’s path
+ * **`CLAUDE_PLUGIN_DATA`** : use a folder in each user’s home directory, `$HOME`, and have the script create it
+ * **`CLAUDE_PLUGIN_OPTION_<KEY>`**: use that option’s value, unless it is a secret
+
+Keep a secret, such as a token, out of the scripts and the hook’s command, which other users of the machine can read. Have the script read it from a file that only the people the hook applies to can read. Claude runs as those people, so it can read that file too: use a secret that you’re willing to give them and Claude.For a guardrail, protect its files and the programs that it calls:
+
+ * **The folder** : let only an administrator write to it, to anything in it, or to the folders above it
+ * **Programs** : name each by its full path, outside users’ folders, in the scripts, in their first lines, and in the hook’s command
+ * **Files in`$HOME`**: don’t let the decision rest on them, because users can change them
+
+2
+
+Add the hook to settings on the machine
+
+Copy the hook from the plugin’s `hooks/hooks.json`. In it, replace `${CLAUDE_PLUGIN_ROOT}` with the new folder’s path, and `${user_config.<key>}` with the option’s value. Take out each argument that holds `${CLAUDE_PLUGIN_DATA}` or a secret option, and have the script work those out itself.Put a guardrail in managed settings, and a hook for your own use in your user settings:
+
+ * **A guardrail** : add the hook to a [managed settings file or policy](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on that machine, and make sure that everyone the hook applies to can read the file. Keep the hook out of [server-managed settings](</docs/en/server-managed-settings>), because those settings also reach other computers where people sign in to your organization, and those computers lack its scripts.
+ * **Your own use** : add the hook to `~/.claude/settings.json` on the remote machine. If your organization limits hooks, as [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>) and [`strictPluginOnlyCustomization.hooks`](</docs/en/settings-reference#strictpluginonlycustomization-hooks>) do, ask your administrator to add it to managed settings instead.
+
+For example, suppose that the plugin’s `hooks/hooks.json` runs `"${CLAUDE_PLUGIN_ROOT}/scripts/guard.sh"` before each Bash command, and that you copied the plugin’s `scripts` folder to `/opt/claude-hooks/`.On a Linux machine that had no managed settings file, the new file looks like this:
+
+/etc/claude-code/managed-settings.json
+
+ {
+ "parentSettingsBehavior": "merge",
+ "hooks": {
+ "PreToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "/opt/claude-hooks/scripts/guard.sh"
+ }
+ ]
+ }
+ ]
+ }
+ }
+
+For `parentSettingsBehavior`, see the next step. In `~/.claude/settings.json`, or in managed settings that the machine already has, merge only the `hooks` block into what is there.
+
+3
+
+Check how your managed settings combine
+
+Skip this step for a hook in your user settings. For a guardrail, read on if you deliver server-managed settings, if the machine had no managed settings before, or if it has an MDM policy for Claude Code:
+
+ * **If you deliver server-managed settings** : Claude Code can skip the machine’s file or policy. To have it apply both, follow [Compose every managed source](</docs/en/managed-settings#compose-every-managed-source>), which has you set a key in the server-managed settings and says when that is safe. If you [give groups different settings](</docs/en/server-managed-settings#give-groups-different-settings>), set that key in every group’s configuration, and in the catch-all if you have set one.
+ * **If the machine had no managed settings file or policy before** : keep [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) set to `"merge"`, as in the example. Without that setting, limits that come from Desktop’s own policies can [stop applying in Claude Code](</docs/en/managed-settings#let-an-embedding-host-add-policy>).
+ * **If both of those are true** : in sessions that server-managed settings govern, Claude Code reads `parentSettingsBehavior` from them alone. To have Desktop’s limits apply there too, follow [Let an embedding host add policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>), which says what else the key lets through.
+ * **If the machine has an MDM policy for Claude Code** : Claude Code can skip a managed settings file there, because the policy outranks it. To have it apply both, follow [Compose every managed source](</docs/en/managed-settings#compose-every-managed-source>), which has you set a key and says when that is safe. Set that key in the policy, even if your server-managed settings have it, and only if it is safe wherever the policy goes.
+
+4
+
+Test the hook
+
+To tell the new hook from the plugin’s own, have the copied script create a file in `$HOME` just before it blocks or changes the action. Then test the hook in a new SSH session, under a login that it applies to:
+
+ 1. Make sure that the file isn’t there yet
+ 2. Try a harmless action that the new hook blocks or changes, and one that it leaves alone
+ 3. Check both results, and check that the file is there
+
+When the test passes, undo the change to the script and delete the file. If the new hook doesn’t act, go over the variables, permissions and programs in the first two steps again. For other causes, see [Hook not firing](</docs/en/hooks-guide#hook-not-firing>).If you later start to deliver server-managed settings or an MDM policy for Claude Code, go through the previous step and test the hook again.
+
+5
+
+Block the action when the hook fails
+
+For a guardrail, once the test passes, add `"onFailure": "block"` beside `"command"`, so that Claude Code blocks the action when the hook itself fails. Then [test the setting](</docs/en/hooks#block-the-action-when-a-hook-fails>).
+
+If Desktop sends the plugin’s hooks as well, both copies can run. If you see a hook that isn’t a guardrail act twice, remove the copy in settings. None of these steps makes the hook tamper-proof. It runs under each user’s own login, so a user can get around it, and so can Claude where it’s allowed to change that user’s files. For a limit that users can’t lift, use the machine’s own accounts and permissions.
+
+##### Install a plugin on the remote machine
+
+If a message in the session says to install the plugin on the remote machine, [install it](</docs/en/plugins/install#install-a-plugin>) in a terminal there, from the marketplace you used on your computer. If the terminal doesn’t find the `claude` command, [install Claude Code](</docs/en/setup#install-claude-code>) on that machine first, because the Claude Code that Desktop installs there isn’t on your `PATH`. Then start a new session and check that the hook runs.
+
+##### Fix a hook that gave no usable answer
+
+If the session shows `A hook of the "<plugin>" plugin gave no usable answer, so it didn't check this action`, the hook failed on the remote machine. Check that the programs the hook’s command calls, such as `python3` or `jq`, are installed on that machine. For other causes, see [Hook error in output](</docs/en/hooks-guide#hook-error-in-output>). To block the action when the hook fails, set [`onFailure: "block"`](</docs/en/hooks#block-the-action-when-a-hook-fails>) on the hook.
+
+#### Restrict hooks in SSH sessions
+
+To restrict the hooks that run in SSH sessions, set one of these keys to `true` in managed settings on the remote machine, not on your computer:
+
+ * **[`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>)** : only [hooks that your organization deploys](</docs/en/settings-reference#what-runs-under-allowmanagedhooksonly>) run. Hooks from the plugins that Desktop copies don’t
+ * **[`disableAllHooks`](</docs/en/settings-reference#disableallhooks>)** : every configured hook is disabled, managed ones included
+
+On a machine that had no managed settings before, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"`. If you deliver server-managed settings or an MDM policy for Claude Code, see Check how your managed settings combine. Then start a new session, and check that a hook that the key disables doesn’t run.
#### Open an SSH session from a link
@@ -2009,7 +2191,7 @@
*.claudeusercontent.com
*.claudemcpcontent.com
-If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
+With either list, also allow `hcaptcha.com` and `*.hcaptcha.com` for the [hCaptcha](<https://www.hcaptcha.com>) check at sign-in. If you block the hCaptcha hosts, sign-in can fail with a “couldn’t verify your browser” message. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
### Authentication and SSO
@@ -2027,6 +2209,17 @@
* **Windows** : deploy via the MSIX package. See [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) for enterprise deployment options including silent installation
For the domains to allowlist in your firewall, see network access requirements above. For proxy settings, custom certificate authorities, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
+
+#### Run the Code tab on Windows virtual desktops (VDI)
+
+Local, cloud, and SSH sessions in the Code tab don’t need nested virtualization on a Windows virtual desktop. [Cowork](<https://claude.com/docs/cowork/overview>) and [WSL sessions](</docs/en/desktop-wsl>) need nested virtualization for the virtual machine that each uses inside the virtual desktop. You can install and start Desktop without nested virtualization. To deploy Desktop, add it to your base image and persist its data:
+
+ * **Base image** : with administrator rights, run the [provisioning command](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) to add the MSIX package to the image
+ * **User data** : on non-persistent virtual desktops, persist each user’s Windows profile. If you use roaming profiles, add a profile container or another tool that persists `%LOCALAPPDATA%`, because roaming profiles exclude it by default. Make sure that your tool persists all of these folders under `%LOCALAPPDATA%`: `Claude-Data`, `Claude-3p`, and `Packages\Claude_pzs8sxrjxfjjc`. If you use FSLogix, check [what it keeps](<https://claude.com/docs/third-party/claude-desktop/data-storage#virtual-desktops>).
+
+Without those folders, users lose Desktop’s data at each Windows sign-in. For example, they sign in to their Claude account again, lose their list of local and SSH sessions, and re-add their own SSH connections. Desktop also can’t rejoin a task still running on a remote machine. To run Code tab sessions on remote machines instead of on your virtual desktops, turn off local sessions and distribute SSH connections.
+
+For what Cowork shows without nested virtualization, see [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>).
## Coming from the CLI?
@@ -2175,6 +2368,56 @@
If MCP server toggles don’t respond or servers fail to connect on Windows, check that the server is properly configured in your settings, restart the app, verify the server process is running in Task Manager, and review server logs for connection errors.
+### Sign in to an MCP server on an SSH host
+
+When an MCP server waits for a browser sign-in on a Linux remote machine, open its sign-in link on your computer, then pass the result back to the remote machine. If a line in the SSH session says that a server `didn’t start in time on` the remote machine, check for this cause. Enter `/mcp` in the prompt box, select the server in the **MCP servers** dialog, and select **View details**. A line such as `Authentication required. Waiting for authorization...` or `Another instance is running the sign-in for this server` in the server’s output confirms it.
+
+#### Finish an `mcp-remote` sign-in from a terminal
+
+Use these steps if the remote machine runs Linux and the server’s entry in `claude_desktop_config.json` on your computer runs [`mcp-remote`](<https://www.npmjs.com/package/mcp-remote>) with no `env` block, for example `npx mcp-remote https://mcp.example.com/mcp`:
+
+1
+
+Stop processes that wait for the same sign-in
+
+In a terminal on the remote machine, list your `mcp-remote` processes:
+
+ pgrep -u "$(id -un)" -af '^[^ ]*node [^ ]*/mcp-remote '
+
+If the command prints nothing, go to the next step. For each line that has your server’s URL, run `kill <pid>`, where `<pid>` is the process ID at the start of the line. If another session under your user account on that machine uses the same server, the server stops there until [Claude Code starts it again](</docs/en/mcp#stdio-servers-that-exit-or-fail-to-start>).If you leave one of these processes running, the command in the next step can print `Another instance is running the sign-in for this server` without the sign-in link.
+
+2
+
+Run the server's command
+
+In the same terminal, run the command and arguments from the server’s entry, and leave the command running:
+
+ npx mcp-remote https://mcp.example.com/mcp
+
+The command prints a sign-in link under `Please authorize this client by visiting:`.
+
+3
+
+Approve the sign-in on your computer
+
+Open the link in a browser on your computer and approve the sign-in. The browser then goes to an address that starts with `http://localhost:`, where the page can fail to load. Copy the whole address from the address bar.
+
+4
+
+Send the address to the remote machine
+
+In a second terminal on the remote machine, run this command, paste the address that you copied, and press **Enter** :
+
+ read -r url && printf 'url = "%s"\n' "$url" | curl --noproxy localhost -K -
+
+The output includes `Authorization successful!`, and the first terminal prints `Connected to remote server`.
+
+5
+
+Reconnect the server in Desktop
+
+Press `Ctrl+C` in the first terminal to stop `mcp-remote`, which has saved the sign-in under `~/.mcp-auth` on the remote machine. Then enter `/mcp` in the prompt box again and select **Reconnect** in the server’s row. When the server connects, a check mark takes the button’s place.
+
### SSH host key verification failed
Each of these messages means that Desktop refused a host key:
Show diff (163 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -107,16 +107,16 @@
In an SSH or [WSL](</docs/en/desktop-wsl>) session, click an HTML file’s path in the chat to preview the file in the Browser pane. If charts or tables in the preview stay empty, the notice above it tells you why:
- * **`This preview doesn't load anything from the web`** : scripts written in the file run, but a chart that loads its library from the web stays empty. If the notice has an **Export** button, select it and open the saved file in your browser, where content from the web loads.
- * **`This preview doesn't run scripts or load anything from the web`** : before Claude Desktop v4.23118.0, these previews didn’t run scripts, so update Desktop and open the file again. If Desktop is up to date and the notice stays, restart Desktop. If it still stays, scripts may be off for your organization, so ask your administrator.
+ * **The notice says that scripts don’t run** : before Claude Desktop v4.23118.0, these previews didn’t run scripts, so update Desktop and open the file again. If Desktop is up to date and the notice stays, restart Desktop. If it still stays, scripts may be off for your organization, so ask your administrator.
+ * **The notice says nothing about scripts** : for example, `Parts may be missing here`. Scripts written in the file run, but a chart that loads its library from the web stays empty. If the notice has an **Export** button, select it and open the saved file in your browser, where content from the web loads.
If you closed the notice, open the file again to bring it back.
#### Turn off scripts in SSH and WSL previews for your organization
-To keep the Browser pane’s HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
-
-Earlier versions ignore `disableRemotePreviewScripts`. To stop the scripts there, update Desktop, or also set `disableBrowserExternalNavigation` to `true`. Users then can’t browse external sites on any computer that receives `disableBrowserExternalNavigation`.
+To keep HTML previews in SSH and WSL sessions from running scripts in the Browser pane and the **Files** pane, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later for the Browser pane, and v7.37095.0 or later for the file pane.
+
+To stop scripts in the Browser pane’s HTML previews on versions before v5.1231.0, update Desktop, or also set `disableBrowserExternalNavigation` to `true`. Users then can’t browse external sites on any computer that receives `disableBrowserExternalNavigation`. For the file pane, both keys require v7.37095.0 or later, so update Desktop.
Set each key in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read these keys from the remote machine, the WSL distribution, a [`policyHelper`](</docs/en/settings-reference#policyhelper>), or Desktop’s own policies. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
@@ -125,12 +125,13 @@
Then have users restart Desktop to make sure that the setting applies, and tell them what to expect:
* **SSH and WSL files they open in the Browser pane** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty
- * **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
+ * **Browser pane previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
+ * **SSH and WSL files they open in the file pane** : an HTML file shows as code in place of its preview. Users see `HTML preview isn’t available here, so this file is shown as code.`
* **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting
##### Check a computer for scripts that still run
-After the restart, open an HTML file from an SSH or WSL session on that computer. If the notice above the preview starts with `This preview doesn't load anything from the web`, scripts still run there. Check Desktop’s version, where you put the key, and that its value is the JSON Boolean `true`.
+After the restart, open any HTML file from an SSH or WSL session on that computer, in the Browser pane. If the notice above the preview says nothing about scripts, scripts still run there. Check Desktop’s version, where you put the key, and that its value is the JSON Boolean `true`. Then select **Files** and open the same file from the file tree. With scripts off, after a few seconds the pane offers no **Preview** (an eye icon) for the file. If the pane shows the page or still offers **Preview** , scripts still run there. Make the same checks; for the file pane, Desktop’s version must be v7.37095.0 or later.
### Browse external sites
@@ -542,7 +543,7 @@
* **Add plugins** : select it
* **Plugins** : select it, then **Browse plugins**. If that’s missing, select **Manage plugins**.
-To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>).
+To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in local sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>).
Plugins you install on your computer at user or local scope aren’t available in cloud sessions. To use one there, see the **Cloud session** tab under [Install a plugin](</docs/en/plugins/install#install-a-plugin>). Plugins aren’t available in WSL sessions.
@@ -1247,7 +1248,7 @@
* **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. 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.
+ * **MCP servers** : MCP servers that Claude Code starts on the remote machine don’t run through Desktop, so Claude can still call their tools. To keep the tools of servers from `claude_desktop_config.json` working too, update to Claude Desktop v5.11492.0 or later, because earlier versions lose them where Desktop uses its built-in SSH client. On some Windows remote machines, keep Desktop connected, because Claude can’t call those tools without it.
When edits in a worktree keep working
@@ -1428,9 +1429,24 @@
* **`mode`** : set it to `normal` wherever your jail sets it, in a `mode` line or in the brackets of a line such as `filter = sshd[mode=aggressive]`. You give up every count that only the other modes make, for example of clients that connect and leave without trying to log in.
* **`ignoreip`** : set it to the addresses that people connect from, for example `ignoreip = 203.0.113.7`. fail2ban then counts nothing from those addresses, failed logins included.
+#### Skills, hooks, and settings from your computer
+
+Desktop doesn’t copy your `~/.claude/skills/` folder, or the hooks and other settings in your `~/.claude/settings.json`, to the remote machine. To use your skills, hooks, and settings in an SSH session, set them up in `~/.claude/` in your home directory on the remote machine. Copy any scripts that your hooks run too, and change the hooks to the scripts’ paths on that machine. For a project’s own settings, copy any `.claude/` file that the project folder on the remote machine lacks, such as `settings.local.json`, which Git usually excludes. Then start a new session. If a skill, hook, or setting still does nothing, see [Debug your configuration](</docs/en/debug-your-config>).
+
+#### MCP servers from `claude_desktop_config.json`
+
+In an SSH session, most MCP servers from `claude_desktop_config.json` start on the remote machine, so install the commands that they run on the remote machine. Check for these causes if a server is missing, fails to start, or stops responding:
+
+ * **Absolute path** : Desktop omits some servers whose command is an absolute path, such as one under `/Users/`, `/opt/homebrew/`, or `/Applications/`. Where you can, give the command as a bare name, such as `npx`, or set the server up on the remote machine.
+ * **Environment variables** : from a server’s `env` in `claude_desktop_config.json`, Desktop sends only names that start with `MCP_` and a few fixed names, such as `DEBUG` and `NODE_ENV`. If a server needs others, set it up on the remote machine.
+ * **No server appears** : if Desktop finds a [`managed-mcp.json`](</docs/en/managed-mcp#exclusive-control-with-managed-mcp-json>) file on the remote machine, it sends none of these servers. Ask your administrator to add the server to that file.
+ * **Desktop disconnected** : on some remote machines, Claude can’t call these servers’ tools while Desktop is disconnected. See the **MCP servers** entry under Limits while Desktop is disconnected.
+
+Keep a secret out of these servers’ arguments and `MCP_` variables in `claude_desktop_config.json` unless you trust the remote machine with it, because Desktop sends both unchanged.
+
#### Use MCP servers set up on the remote machine
-To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see Limits while Desktop is disconnected.
+To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see MCP servers from `claude_desktop_config.json`.
#### Open an SSH session from a link
@@ -1824,8 +1840,8 @@
`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.
+`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Users and Claude can’t go to external sites, and localhost dev server previews are unaffected. HTML files that users open in Desktop’s SSH and WSL sessions don’t run scripts. For the file pane, that requires Claude Desktop v7.37095.0 or later. The value must be the JSON boolean `true`; the string `"true"` is ignored.
+`disableRemotePreviewScripts`| set to `true` to turn off scripts in HTML files that users open in Desktop’s 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 for the Browser pane, and v7.37095.0 or later for the file pane.
`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. With server-managed settings, set the same list in both places.
@@ -1836,7 +1852,7 @@
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:
* **`browserExternalPageTools`, `disableMobileSimulatorTools`, `disableBrowserExternalNavigation`**: requires Claude Desktop v4.4212.0 or later
- * **`disableRemotePreviewScripts`** : requires Claude Desktop v5.1231.0 or later
+ * **`disableRemotePreviewScripts`** : requires Claude Desktop v5.1231.0 or later for the Browser pane
It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
@@ -1948,6 +1964,16 @@
* **Enterprise Admin Console** : if it delivers your computers’ Claude Desktop configuration, update them to Claude Desktop v2.37337.0 or later first, because earlier versions ignore it once this key is set. See [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>).
* **Third-party providers** : if people set up their own [third-party inference configuration](<https://claude.com/docs/third-party/claude-desktop/in-app-configuration>) in the app, Claude Desktop ignores that configuration from the next launch after you deploy this key. To keep people on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or an LLM gateway, [deploy a configuration](<https://claude.com/docs/third-party/claude-desktop/configuration>) to their computers in the same Claude Desktop policy.
+#### Restrict sign-in to Claude Console
+
+If you set `forceLoginMethod` to `"console"` in Claude Code’s [managed settings](</docs/en/managed-settings>), people can still run local Code tab sessions with a claude.ai account. If you set `forceLoginOrgUUID` there to Console organization IDs only, those sessions don’t start, but people can still use Chat with that account. To stop both, move the whole app to a third-party (3P) deployment with Claude Console sign-in. On Claude Desktop v4.16336.0 or later, set these keys in the Claude Desktop policy:
+
+ * **`inferenceProvider`** : [set it to `anthropic`](<https://claude.com/docs/third-party/claude-desktop/claude-api>)
+ * **`deploymentMode`** : [set it to `3p`](<https://claude.com/docs/third-party/claude-desktop/mdm#restrict-a-device-to-one-deployment-mode>)
+ * **`disableDeploymentModeChooser`** : set it to `true` while any device runs an earlier version, because earlier versions ignore `deploymentMode`
+
+Before you deploy, check the 3P column of the [feature comparison](<https://claude.com/docs/third-party/claude-desktop/feature-matrix>) and read [how your Claude Code settings apply on 3P](<https://claude.com/docs/third-party/claude-desktop/code#interaction-with-claude-code%E2%80%99s-own-managed-settings>). You can keep `forceLoginMethod` set to `"console"`. Deploy the policy in `HKLM` on Windows and as a [machine profile](<https://claude.com/docs/third-party/claude-desktop/mdm#4-deploy-the-configuration>) on macOS. From the app’s next launch, people [sign in with Claude Console](<https://claude.com/docs/third-party/claude-desktop/claude-api#choose-an-authentication-approach>) and can’t switch the app to a claude.ai account. They can choose any Console organization, including a personal one, even with Claude Code’s `forceLoginOrgUUID` set. To limit that choice, follow [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>). The Code tab [doesn’t list the sessions](<https://claude.com/docs/third-party/claude-desktop/data-storage#data-shared-with-standard-claude-desktop>) that they started with a claude.ai account.
+
### Network access requirements
Desktop loads its application code and user content from Anthropic CDN hosts.
@@ -2037,7 +2063,7 @@
### Shared configuration
-Desktop and CLI read the same configuration files, so your setup carries over:
+For SSH sessions, see Skills, hooks, and settings from your computer and Use MCP servers set up on the remote machine. In local sessions, Desktop and CLI read the same configuration files, so your setup carries over:
* **[CLAUDE.md](</docs/en/memory>)** and `CLAUDE.local.md` files in your project are used by both
* **[MCP servers](</docs/en/mcp>)** configured in `~/.claude.json` or `.mcp.json` work in both
@@ -2047,7 +2073,7 @@
#### MCP servers from the Claude Desktop chat app
-The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. The servers from `claude_desktop_config.json` also load in a [WSL session](</docs/en/desktop-wsl>), unless the session [lacks connectors](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). In a WSL session, those servers run on Windows.
+The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. The servers from `claude_desktop_config.json` also load in a [WSL session](</docs/en/desktop-wsl>), unless the session [lacks connectors](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). In a WSL session, those servers run on Windows. In an SSH session, most of them start on the remote machine: see MCP servers from `claude_desktop_config.json`.
The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
@@ -2219,6 +2245,23 @@
Look through those files too before you send them.
+### SSH session stops or fails to start
+
+If an SSH session stops or doesn’t start and shows an error card, find the card’s title in this table, then do what the last column says.
+
+Card title| What it means| What to do
+---|---|---
+`Session was interrupted`| Claude Code runs as a process on the remote machine, and Desktop’s connection to that process ended| If the card tells you to send a message again, do as it says. Otherwise, select **Try again** , or send a message such as `continue`.
+`Claude Code on <host> stopped when its sign-in expired`| Claude Code on the remote machine gets its sign-in to your Claude account from Desktop, and that sign-in expired. See when that sign-in can expire.| Select **Try again** , or send a message, to continue
+`Sign in again to continue`| Desktop needs a new sign-in for the session, and your last sign-in to your Claude account is too old for that. See [Claude Code needs a recent sign-in](</docs/en/errors#claude-code-needs-a-recent-sign-in>).| Select **Sign in again** , then sign in. If the session doesn’t continue on its own, send a message.
+`Folder not found on <host>`| The folder or worktree that the session works in is missing on the remote machine| Do what the card offers: fork the session, choose another folder, create the folder again at the same path and send a message, or start a new session. If **Fork session** fails, start a new session.
+`<host> doesn’t have this conversation` or `<host> doesn’t have this conversation right now`| Claude Code didn’t find the conversation’s [saved history](</docs/en/sessions#where-transcripts-are-stored>), a file on the remote machine that is under `~/.claude/projects/` by default| Bring `~/.claude/projects/` back first if it’s missing for the user you connect as, for example by mounting the home directory, then select **Try again** or send a message. If the history is gone, start a new session. After **Start fresh** , which the card can offer, the session can’t return to the earlier conversation.
+`Claude no longer has the earlier messages`| Claude Code found no [saved history](</docs/en/sessions#where-transcripts-are-stored>) for the conversation on the remote machine, and Desktop no longer tries to resume that conversation| Select **Start fresh** , or send a message. Claude starts a new conversation in the session, without the earlier messages.
+`Couldn’t create a worktree on <host>`| The session is set to run in its own worktree, and Desktop couldn’t create it on the remote machine| Fix the cause that the card shows in its details, then select **Try again** or send a message. To work without a worktree, select **Start without a worktree** when the card offers it.
+`Couldn’t start Claude Code on the remote host`, with a line under it that starts `Claude Code is missing on the remote host`| The copy of Claude Code that Desktop installs on the remote machine isn’t there| Select **Try again** , or send your message again, to have Desktop reinstall Claude Code
+
+For a card whose title or text isn’t in the table, see SSH connection fails after you log in and SSH host key verification failed. If the card isn’t there either, or you see the same card again after these steps, see Get Desktop’s logs for an SSH problem and Still stuck?.
+
### App won’t quit
* **macOS** : press Cmd+Q. If the app doesn’t respond, use Force Quit with Cmd+Option+Esc, select Claude, and click Force Quit.
--- a/desktop.md
+++ b/desktop.md
@@ -432,7 +432,7 @@
### Ask a side question without derailing the session
-A side chat lets you ask Claude a question about your session. Claude’s answers in a side chat aren’t added to the main conversation automatically. Use a side chat to understand a piece of code, check an assumption, or explore an idea. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and return to the main session. Side chats are available in local, SSH, and WSL sessions.
+A side chat lets you ask Claude a question about your session. Claude’s answers in a side chat aren’t added to the main conversation automatically. Use a side chat to understand a piece of code, check an assumption, or explore an idea. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and return to the main session. Side chats work in local, SSH, WSL, and cloud sessions.
### Watch background tasks
@@ -470,10 +470,10 @@
### Continue in another surface
-To continue a session somewhere else, open the session menu from the caret beside the session title or from the session’s row in the sidebar, then select **Open in** :
-
- * Select **Cloud** to continue the session as a [cloud session](</docs/en/claude-code-on-the-web>), with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in [WSL](</docs/en/desktop-wsl>) this way.
- * Select an installed editor or your file manager to open the session’s folder on disk there.
+To continue a session somewhere else, open the session menu from the caret beside the session title or from the session’s row in the sidebar:
+
+ * Select **Continue in cloud** to start a [cloud session](</docs/en/claude-code-on-the-web>) with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in [WSL](</docs/en/desktop-wsl>) this way.
+ * Select **Open in** , then an installed editor or your file manager, to open the session’s folder in that app
### Control which sessions appear on your other devices
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/desktop.md
+++ b/desktop.md
@@ -1671,7 +1671,7 @@
* **A broken settings file** : while your own settings file is broken, your administrator’s entries may be gray, with a message that names the file. [Fix the file](</docs/en/settings#fix-a-broken-settings-file>).
* **A new host** : **Create another** is gray for one minute after Desktop saves a host. Select it after that minute. Before Claude Desktop v4.4212.0, **Replace Dev box’s host** is gray for 10 minutes.
* **Hooks are off or restricted** : your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
- * **Settings are still loading** : every entry is gray until Desktop has loaded your organization’s [server-managed settings](</docs/en/server-managed-settings>), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
+ * **Settings are still loading** : every entry is gray until Desktop has loaded any [server-managed settings](</docs/en/server-managed-settings>), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
#### Pre-configure SSH connections for your team
@@ -1844,6 +1844,23 @@
* **[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>).
+
+#### Deploy skills for all users
+
+To give every user the same skills in local and SSH sessions, deploy them as [enterprise skills](</docs/en/skills#where-skills-live>), which you install once on a machine for all of its users. Install them on the machine where the session runs:
+
+ * **Local sessions** : each user’s computer
+ * **SSH sessions** : each remote host
+
+Install each skill at the path for that machine’s platform:
+
+Platform| Path
+---|---
+macOS| `/Library/Application Support/ClaudeCode/.claude/skills/<skill-name>/SKILL.md`
+Linux| `/etc/claude-code/.claude/skills/<skill-name>/SKILL.md`
+Windows| `C:\Program Files\ClaudeCode\.claude\skills\<skill-name>\SKILL.md`
+
+To confirm that your skills load, test with a skill whose [frontmatter](</docs/en/skills#frontmatter-reference>) sets only `name` and `description`. Start a new session and send a message, then type `/` and the first letters of the skill’s name in the prompt box. The skill appears in the list.
#### Claude Code settings that behave differently in the Code tab
@@ -2026,6 +2043,7 @@
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop doesn’t offer autocomplete-style code completions. It works through conversational prompts and explicit code changes, and can suggest your next prompt after Claude replies.
* **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
+ * **Code Mode** : Desktop sessions start without the experimental [Code Mode](</docs/en/code-mode>), even if you turn it on in your settings. To use it, run the CLI in a terminal.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
* `/config` opens **Settings > Code** or **Settings > Claude Code**.
@@ -2059,7 +2077,7 @@
### 403 or authentication errors in the Code tab
-If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
+For a card that says `For security, Claude Code needs a recent sign-in.`, see [Claude Code needs a recent sign-in](</docs/en/errors#claude-code-needs-a-recent-sign-in>). If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
1. Sign out and back in from the app menu. This is the most common fix.
2. Verify you have an active paid subscription: Pro, Max, Ultra, Team, or Enterprise.
--- a/desktop.md
+++ b/desktop.md
@@ -12,7 +12,7 @@
apt or .deb for Ubuntu and Debian
-For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history and project folder, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/claude-code/desktop-download?platform=win-arm64&utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history and project folder, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
* Review and comment on diffs, then watch the resulting PR through CI
* Preview your running app in the Browser pane while Claude verifies its own changes, and open external sites alongside it
@@ -514,7 +514,7 @@
## Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** or **Plugins** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** or **Plugins** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. To find out where else the skills and plugins enabled for your claude.ai account load, see [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
### Connect external tools
@@ -544,7 +544,7 @@
To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>).
-Plugins you install on your computer at user or local scope aren’t available in cloud sessions. See [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions.
+Plugins you install on your computer at user or local scope aren’t available in cloud sessions. To use one there, see the **Cloud session** tab under [Install a plugin](</docs/en/plugins/install#install-a-plugin>). Plugins aren’t available in WSL sessions.
For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
@@ -1843,7 +1843,7 @@
* **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.
* **[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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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. 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>).
#### Claude Code settings that behave differently in the Code tab
--- a/desktop.md
+++ b/desktop.md
@@ -134,7 +134,7 @@
### Browse external sites
-The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select **Browser**. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
+The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select **Browser**. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. If it isn’t there, open **More settings** in that menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
* When auto mode is available for the session, its safety classifiers review Claude’s write actions on external pages, such as typing, in every permission mode. A flagged action is blocked, or prompts you after [repeated blocks](</docs/en/permission-modes#when-auto-mode-falls-back>).
* In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
@@ -164,7 +164,7 @@
To have Claude review your changes before you commit, enter `/code-review` in the prompt box. The findings arrive in the conversation when the review completes. In local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions, the findings appear as a **Code review** card, grouped by file. Use the card to act on them:
- * Click **Walk through in Changes** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
+ * Click **Walk through in changes** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
* Click **Apply fixes** to ask Claude to fix the findings that are still open.
In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review locally with `/code-review`](</docs/en/code-review-local>).
@@ -200,7 +200,7 @@
#### Hide or show the session details panel
-To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you see neither name, click **Activity panel** in the title bar. If you still don’t see the panel, check which Code tab layout you have.
+To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you see neither name, click **Activity panel** in the title bar. If you still don’t see the panel, check which Code tab layout you have. If the panel disappears when a mod’s [backdrop](</docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation>) shows, click **Show session rail** or **Activity panel** to bring it back.
### Minimize a pane
@@ -432,7 +432,7 @@
### Ask a side question without derailing the session
-A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local, SSH, and WSL sessions. The desktop app doesn’t save side chats to disk, so you can’t return to one after you close the app.
+A side chat lets you ask Claude a question about your session. Claude’s answers in a side chat aren’t added to the main conversation automatically. Use a side chat to understand a piece of code, check an assumption, or explore an idea. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and return to the main session. Side chats are available in local, SSH, and WSL sessions.
### Watch background tasks
@@ -542,7 +542,11 @@
* **Add plugins** : select it
* **Plugins** : select it, then **Browse plugins**. If that’s missing, select **Manage plugins**.
-To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
+To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>).
+
+Plugins you install on your computer at user or local scope aren’t available in cloud sessions. See [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions.
+
+For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
### Configure preview servers
@@ -564,7 +568,7 @@
#### Auto-verify changes
-When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or turn off **Auto-verify changes** in the Browser pane’s **⋮** menu.
+When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or turn off **Auto-verify changes** in the Browser pane’s **⋮** menu. If it isn’t there, open **More settings** in that menu.
{
"version": "0.0.1",
@@ -1990,7 +1994,7 @@
#### MCP servers from the Claude Desktop chat app
-The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions.
+The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. The servers from `claude_desktop_config.json` also load in a [WSL session](</docs/en/desktop-wsl>), unless the session [lacks connectors](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). In a WSL session, those servers run on Windows.
The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
--- a/desktop.md
+++ b/desktop.md
@@ -296,9 +296,9 @@
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
-Computer use is a research preview on macOS and Windows that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
-
-Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
+Computer use in the Code tab is available on macOS and Windows and requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
+
+Check that computer use is on in Settings before you ask Claude to control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
@@ -316,8 +316,6 @@
### Enable computer use
-Computer use is off by default.
-
1
Update the desktop app
@@ -361,7 +359,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full access| Click, type, drag, and use keyboard shortcuts| Most other apps
-Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turned computer use on includes these options:
+Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turn computer use on includes these options:
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -498,6 +496,8 @@
To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
### Sessions from Dispatch
+
+Dispatch isn’t available to new users. If it doesn’t appear in your Claude app, see [other ways to work away from your terminal](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in [Cowork](<https://claude.com/product/cowork>). You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork.
@@ -2037,7 +2037,7 @@
* **macOS** : click **Claude** in the menu bar, then **About Claude**
* **Windows** : click **Help** , then **About Claude**
-Click the version number to copy it to your clipboard.
+Click the version number to copy it to your clipboard. To get new versions sooner on Claude Desktop v4.29.0 or later, set **Release channel** to **Latest**. Go to **Settings > This computer > System**, or to **Settings > Desktop app** if the menu doesn’t list **This computer**. For where the setting is available and what to expect when you switch back to **Stable** , see [Choose a release channel](<https://support.claude.com/en/articles/10065433-install-claude-desktop#h_ac219b3bde>).
#### Claude Code version in the Code tab
Show diff (159 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -114,7 +114,7 @@
#### Turn off scripts in SSH and WSL previews for your organization
-To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
+To keep the Browser pane’s HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
Earlier versions ignore `disableRemotePreviewScripts`. To stop the scripts there, update Desktop, or also set `disableBrowserExternalNavigation` to `true`. Users then can’t browse external sites on any computer that receives `disableBrowserExternalNavigation`.
@@ -124,7 +124,7 @@
Then have users restart Desktop to make sure that the setting applies, and tell them what to expect:
- * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty. Its notice starts with `This preview doesn't run scripts`.
+ * **SSH and WSL files they open in the Browser pane** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty
* **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
* **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting
@@ -134,14 +134,14 @@
### Browse external sites
-The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or click **Browser** in the session’s title bar. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
-
- * Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode.
+The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select **Browser**. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
+
+ * When auto mode is available for the session, its safety classifiers review Claude’s write actions on external pages, such as typing, in every permission mode. A flagged action is blocked, or prompts you after [repeated blocks](</docs/en/permission-modes#when-auto-mode-falls-back>).
* In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
#### Approve Claude’s actions on a site
-The first time Claude acts on an external site, a permission card appears and Claude waits for your choice: **Allow once** , **Always allow** , or **Deny**. **Allow once** approves the action without saving anything. **Always allow** saves the approval for that site on your device, and you can revoke it in Settings. Each site needs its own approval, including subdomains. Your local dev servers and project files don’t need approval, so auto-verify keeps working without prompts. Even on an approved site, Claude won’t purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the [Claude in Chrome extension](</docs/en/chrome>). See [Using Claude in Chrome safely](<https://support.claude.com/en/articles/12902428-using-claude-in-chrome-safely>) for how Claude handles sensitive sites and risky actions.
+Outside Auto and Bypass permissions modes, a permission card appears before Claude uses an external site you haven’t approved. Choose **Allow once** , **Always allow** , or **Deny**. **Allow once** approves the action without saving anything. **Always allow** saves the approval for that site on your device, and you can revoke it in Settings. Each site needs its own approval. Your local dev servers and project files don’t need approval. Even on an approved site, Claude won’t purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the [Claude in Chrome extension](</docs/en/chrome>). See [Using Claude in Chrome safely](<https://support.claude.com/en/articles/12902428-using-claude-in-chrome-safely>) for how Claude handles sensitive sites and risky actions.
#### Choose between the Browser and the Chrome extension
@@ -153,7 +153,7 @@
### Review changes with diff view
-After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. A cloud session’s diff against the base branch can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>). To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
+After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel, or select **Changes**. A cloud session’s diff against the base branch can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>). To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
* **macOS** : press **Cmd+Enter**
* **Windows** : press **Ctrl+Enter**
@@ -185,12 +185,12 @@
## Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. To open another pane, click its icon button in the session’s title bar. Hover to see each button’s name, such as **Terminal** , **Changes** for the diff view, **Browser** , and **Files**. If the pane you want has no button in the title bar, select it from the **⋮** menu beside the buttons:
-
- * **When the window is narrow** : buttons that don’t fit move into the menu
- * **For panes with no button** : panes such as **Background tasks** and **Plan** are listed once the session has something to show in those panes
-
-To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its tab or the handle at its top to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. To open another pane, hover over the icons at the top of the session to see each button’s name, such as **Terminal** or **Show side panel**. Then follow the steps for the buttons you have:
+
+ * **Show side panel** or **Hide side panel** : show the panel if it’s hidden, then pick a pane from the panel’s list or **+** menu.
+ * **Terminal** , **Changes** for the diff view, **Browser** , and **Files** : click the pane’s button. If the pane has no button, select it from the **⋮** menu beside the buttons.
+
+To open **Background tasks** or **Plan** , select it from the side panel or the **⋮** menu once the session has something to show in it. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows to update.
@@ -200,7 +200,7 @@
#### Hide or show the session details panel
-To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you still don’t see the panel, check which Code tab layout you have.
+To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you see neither name, click **Activity panel** in the title bar. If you still don’t see the panel, check which Code tab layout you have.
### Minimize a pane
@@ -213,7 +213,7 @@
### Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. If a WSL session has no terminal, see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
+The integrated terminal lets you run commands alongside your session without switching to another app. To open it, select **Terminal** or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** above the terminal, then select **Terminal** if a menu opens. If a WSL session has no terminal, see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
### Open and edit files
@@ -316,7 +316,7 @@
### Enable computer use
-Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings.
+Computer use is off by default.
1
@@ -349,7 +349,7 @@
* **Accessibility** : lets Claude click, type, and scroll
* **Screen Recording** : lets Claude see what’s on your screen
-The Settings page shows the current status of each permission. If either is denied, click the badge to open the relevant System Settings pane.
+The Settings page shows the current status of each permission. If either is denied, click **Open System Settings** next to it.
### App permissions
@@ -359,7 +359,7 @@
---|---|---
View only| See the app in screenshots| Browsers, trading platforms
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
-Full control| Click, type, drag, and use keyboard shortcuts| Everything else
+Full access| Click, type, drag, and use keyboard shortcuts| Most other apps
Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turned computer use on includes these options:
@@ -438,7 +438,7 @@
### Watch background tasks
-The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Once the session has background work, open the pane with **Background tasks** in the title bar’s **⋮** menu. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Once the session has background work, open the **Background tasks** pane. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
### Work across sessions
@@ -619,7 +619,7 @@
]
}
-Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be your server’s origin alone, with no path or query. Its port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. For any other address, Desktop asks for your permission the first time the preview opens it, the same as when you browse to a new site in the preview. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
+Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be your server’s origin alone, with no path or query. Its port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. Any other address goes through the same site approval as a new site Claude opens in the preview. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
{
"version": "0.0.1",
@@ -890,9 +890,14 @@
Add the connection
-On the **SSH** tab of the **New environment** dialog, open the **Host** list, select **Add SSH connection…** , and fill in the connection details:
-
- * **Name** : a friendly label for this connection.
+In the **New environment** dialog, select the **SSH** tab, then open the form for a new connection from **Host** :
+
+ * **Host shows a button** : select **Add SSH connection…**
+ * **Host shows a list** : open the list and select **Add SSH connection…** at the bottom
+
+Fill in the connection details:
+
+ * **Name (optional)** : a friendly label for this connection. Leave empty to use the **SSH host** value as the name.
* **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`.
* **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config.
* **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent.
@@ -1813,8 +1818,8 @@
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`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 navigate to external sites, and localhost dev server previews are unaffected. 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 only the scripts in HTML previews in SSH and WSL sessions. 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.
+`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.
--- a/desktop.md
+++ b/desktop.md
@@ -2070,6 +2070,10 @@
If you see `Failed to load session`, the selected folder may no longer exist, a Git repository may require Git LFS that isn’t installed, or file permissions may prevent access. Try selecting a different folder or restarting the app.
+### Claude Code is “newer than the maximum version allowed by your organization”
+
+When the desktop app’s own copy of Claude Code is newer than the limit your organization sets with [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>), local sessions fail with an error whose details show this message. Ask your administrator to raise the limit to at least the Claude Code version in the message, or to remove it.
+
### Session not finding installed tools
If Claude can’t find tools like `npm`, `node`, or other CLI commands, verify the tools work in your regular terminal, check that your shell profile properly sets up PATH, and restart the desktop app to reload environment variables.
--- a/desktop.md
+++ b/desktop.md
@@ -164,7 +164,7 @@
To have Claude review your changes before you commit, enter `/code-review` in the prompt box. The findings arrive in the conversation when the review completes. In local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions, the findings appear as a **Code review** card, grouped by file. Use the card to act on them:
- * Click **Walk through in diff** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
+ * Click **Walk through in Changes** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
* Click **Apply fixes** to ask Claude to fix the findings that are still open.
In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review locally with `/code-review`](</docs/en/code-review-local>).
@@ -514,18 +514,22 @@
## Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** or **Plugins** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
### Connect external tools
-Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Click **+** next to the prompt box, before or during the session, to add connectors in a local or SSH session with a Claude account. Select **Add connectors** to open the connector directory. If the menu shows **Connectors** instead, select it, then **Browse connectors**.
+Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Click **+** next to the prompt box, before or during the session, to add connectors in a local or SSH session with a Claude account. Open the connector directory from the entry the menu shows:
+
+ * **Add connectors** : select it
+ * **Connectors** : select it, then **Browse connectors**
+ * **Neither entry** : click **Plugins** in the sidebar, where the directory lists connectors and plugins together
These cases are covered on other pages:
* **Connectors is grayed out in a WSL session** : see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>)
* **Cloud sessions** : see [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>)
-Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, click **Customize** in the sidebar and open **Connectors**. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, click **Customize** in the sidebar and open **Connectors**. If the sidebar shows **Plugins** instead, click it and look under **Your plugins**. For integrations not in the connector directory, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
### Use skills
@@ -533,7 +537,12 @@
### Install plugins
-[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. In a local session or an SSH session, click **+** next to the prompt box and select **Add plugins** to open the plugin browser. If the menu shows **Plugins** instead, select it, then **Browse plugins** , or **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
+[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. In a local session or an SSH session, click **+** next to the prompt box. Open the plugin browser from the entry the menu shows:
+
+ * **Add plugins** : select it
+ * **Plugins** : select it, then **Browse plugins**. If that’s missing, select **Manage plugins**.
+
+To enable, disable, or uninstall plugins when the **+** menu shows **Plugins** , select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
### Configure preview servers
--- a/desktop.md
+++ b/desktop.md
@@ -204,7 +204,7 @@
### Minimize a pane
-To keep the Terminal, Browser, [iOS Simulator](</docs/en/desktop-ios-simulator>), or a side chat in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later and a Claude account rather than a [third-party provider](</docs/en/third-party-integrations>). The Browser pane has it only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
+To keep the Terminal, Browser, [iOS Simulator](</docs/en/desktop-ios-simulator>), or a side chat in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later. With a [third-party provider](</docs/en/third-party-integrations>) it requires v5.11492.0 or later, so check your version. The Browser pane has the button only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
* **In the panel** : the minimized pane sits below the panel’s cards, where you can’t move or resize it. To float it over the chat instead, hide the panel.
* **In a corner of the chat** : hover over the minimized pane to show its header. Drag the header to move it to another corner. To resize it, drag the corner of the minimized pane nearest the center of the chat.
@@ -1871,10 +1871,11 @@
Check the `forceLoginOrgUUID` value before you deploy it. If the ID isn’t your organization’s, people in your organization can’t use Claude Desktop unless they also belong to an organization with that ID. To recover, deploy the correct ID and have them restart Claude Desktop.
-If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen. A person can still use Claude Desktop with their own Claude API key or [Claude Console account](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>), and run Code tab sessions that way. To stop that, also deploy `forceLoginOrgUUID` in the Claude Desktop policy (in `HKLM` on Windows), with your claude.ai organization ID. Unless the policy itself [selects the Claude API](<https://claude.com/docs/third-party/claude-desktop/claude-api#choose-an-authentication-approach>), Claude Desktop stops using a person’s own API key or Console account at the app’s next launch. Check two cases before you deploy it:
+If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen. A person can still use Claude Desktop with their own Claude API key or [Claude Console account](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>), and run Code tab sessions that way. To stop that, also deploy `forceLoginOrgUUID` in the Claude Desktop policy (in `HKLM` on Windows), with your claude.ai organization ID. Unless the policy itself [selects the Claude API](<https://claude.com/docs/third-party/claude-desktop/claude-api#choose-an-authentication-approach>), Claude Desktop stops using a person’s own API key or Console account at the app’s next launch. Check three cases before you deploy it:
* **Claude Console organizations** : don’t deploy `forceLoginOrgUUID` on its own with a Claude Console organization’s ID, or you’d lock your people out of Claude Desktop. See [Which devices offer the Claude API account sign-in](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>) instead.
* **Enterprise Admin Console** : if it delivers your computers’ Claude Desktop configuration, update them to Claude Desktop v2.37337.0 or later first, because earlier versions ignore it once this key is set. See [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>).
+ * **Third-party providers** : if people set up their own [third-party inference configuration](<https://claude.com/docs/third-party/claude-desktop/in-app-configuration>) in the app, Claude Desktop ignores that configuration from the next launch after you deploy this key. To keep people on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or an LLM gateway, [deploy a configuration](<https://claude.com/docs/third-party/claude-desktop/configuration>) to their computers in the same Claude Desktop policy.
### Network access requirements
@@ -1975,7 +1976,7 @@
#### MCP servers from the Claude Desktop chat app
-The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions. If you define the same server name in `claude_desktop_config.json` and in `~/.claude.json` or `.mcp.json`, the Code tab in local sessions connects once and uses the `claude_desktop_config.json` definition. The app also re-delivers stdio servers from `~/.claude.json` to the embedded CLI in local sessions. When the top level of `~/.claude.json` (user scope) and `.mcp.json` define the same stdio server name, the Code tab uses the `~/.claude.json` definition, departing from the CLI [scope hierarchy](</docs/en/mcp#scope-hierarchy-and-precedence>).
+The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions.
The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
Show diff (1494 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -26,11 +26,7 @@
For [scheduled recurring work](</docs/en/desktop-scheduled-tasks>), keyboard shortcuts, or sending tasks from your phone, see the linked pages and sections. If you already use the terminal-based CLI, see the CLI comparison for what carries over.
-##
-
-
-
-Start a session
+## Start a session
Before you send your first message, choose the environment, project folder, permission mode, and model in the row under the prompt box:
@@ -44,27 +40,15 @@
Type your task and press **Enter** to start. Each session tracks its own context and changes independently.
-##
-
-
-
-Work with code
+## Work with code
Give Claude the right context, control how much it does on its own, and review what it changed.
-###
-
-
-
-Use the prompt box
+### Use the prompt box
Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Claude reads the correction as soon as the current action completes and adjusts before its next step. Click the **+** button next to the prompt box for file attachments, skills, connectors, and plugins.
-###
-
-
-
-Accept a suggested prompt
+### Accept a suggested prompt
After Claude replies, the Code tab can show a suggested next prompt as gray text in the empty prompt box. Claude Code [generates each suggestion](</docs/en/interactive-mode#prompt-suggestions>) from your conversation with a short background request that counts toward your plan’s usage limits or your API costs.
@@ -73,11 +57,7 @@
Turn off **Prompt suggestions** in **Settings > Code** or **Settings > Claude Code** to stop suggestions. Each session stops showing them the next time it starts or resumes.
-###
-
-
-
-Add files and context to prompts
+### Add files and context to prompts
To give Claude a file, @mention it or attach it in the prompt box:
@@ -86,11 +66,7 @@
* **Attach files** : attach images, PDFs, and other files to your prompt from the **+** button next to the prompt box, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
* **In a[WSL session](</docs/en/desktop-wsl>)**: if the **+** menu shows **Add image** instead of **Add files or photos** , you can attach only images. To give Claude any other file from the session’s folder, @mention it.
-###
-
-
-
-Choose a permission mode
+### Choose a permission mode
Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector in the row under the prompt box. To approve each change yourself, switch to Manual. To set a default permission mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). A mode you pick in a local session is remembered per folder and outranks a `defaultMode` in the project’s `.claude/` settings. A new local session can still start in a `defaultMode` from `~/.claude/settings.json` or managed settings, so check the selector before your first message. If you pick Plan, it applies to this session only.
@@ -108,19 +84,11 @@
Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions isn’t available in cloud sessions, including sessions in a [self-hosted environment](</docs/en/self-hosted-environments>). Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
-####
-
-
-
-Auto mode availability
+#### Auto mode availability
Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
-###
-
-
-
-Preview your app
+### Preview your app
Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane. In an SSH or WSL session, you can preview an HTML file.
@@ -135,11 +103,7 @@
In an SSH session, you lose the pane’s cookies when you quit Desktop. You can’t change that with **Keep cookies**. Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**.
-####
-
-
-
-Preview HTML files in SSH and WSL sessions
+#### Preview HTML files in SSH and WSL sessions
In an SSH or [WSL](</docs/en/desktop-wsl>) session, click an HTML file’s path in the chat to preview the file in the Browser pane. If charts or tables in the preview stay empty, the notice above it tells you why:
@@ -148,11 +112,7 @@
If you closed the notice, open the file again to bring it back.
-####
-
-
-
-Turn off scripts in SSH and WSL previews for your organization
+#### Turn off scripts in SSH and WSL previews for your organization
To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
@@ -172,46 +132,26 @@
After the restart, open an HTML file from an SSH or WSL session on that computer. If the notice above the preview starts with `This preview doesn't load anything from the web`, scripts still run there. Check Desktop’s version, where you put the key, and that its value is the JSON Boolean `true`.
-###
-
-
-
-Browse external sites
+### Browse external sites
The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or click **Browser** in the session’s title bar. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
* Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode.
* In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
-####
-
-
-
-Approve Claude’s actions on a site
+#### Approve Claude’s actions on a site
The first time Claude acts on an external site, a permission card appears and Claude waits for your choice: **Allow once** , **Always allow** , or **Deny**. **Allow once** approves the action without saving anything. **Always allow** saves the approval for that site on your device, and you can revoke it in Settings. Each site needs its own approval, including subdomains. Your local dev servers and project files don’t need approval, so auto-verify keeps working without prompts. Even on an approved site, Claude won’t purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the [Claude in Chrome extension](</docs/en/chrome>). See [Using Claude in Chrome safely](<https://support.claude.com/en/articles/12902428-using-claude-in-chrome-safely>) for how Claude handles sensitive sites and risky actions.
-####
-
-
-
-Choose between the Browser and the Chrome extension
+#### Choose between the Browser and the Chrome extension
The Browser pane uses a clean browser profile, separate from your personal browser, with none of your saved logins or history. Use it for building and testing your app and for sites that don’t need your identity. When you want Claude to act as you in your logged-in sessions, use the [Claude in Chrome extension](</docs/en/chrome>) instead, which shares your browser’s login state.
-####
-
-
-
-Restrict external browsing for your organization
+#### Restrict external browsing for your organization
The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist. Localhost dev servers and file previews keep working, but HTML previews in SSH and WSL sessions don’t run scripts. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
-###
-
-
-
-Review changes with diff view
+### Review changes with diff view
After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. A cloud session’s diff against the base branch can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>). To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
@@ -220,11 +160,7 @@
Claude reads your comments and makes the requested changes, which appear as a new diff you can review.
-###
-
-
-
-Review your code
+### Review your code
To have Claude review your changes before you commit, enter `/code-review` in the prompt box. The findings arrive in the conversation when the review completes. In local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions, the findings appear as a **Code review** card, grouped by file. Use the card to act on them:
@@ -233,11 +169,7 @@
In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review locally with `/code-review`](</docs/en/code-review-local>).
-###
-
-
-
-Monitor pull request status
+### Monitor pull request status
To have Claude fix failing checks, or to have GitHub merge the pull request, turn on **Auto-fix** or **Merge when ready**. After you open a pull request, it appears in the **Changes** card of the session details panel with the status of its CI checks. Open the **⋮** menu beside its title:
@@ -251,11 +183,7 @@
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.In an SSH session, set up `git` and `gh` on the remote machine before you click **Create PR** , because Claude pushes the branch and runs `gh pr create` there. Install `gh` there yourself, because Desktop doesn’t prompt you to in an SSH session. Then check there that `git push` works and that `gh auth status` reports that you are logged in.
-##
-
-
-
-Arrange your workspace
+## Arrange your workspace
The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. To open another pane, click its icon button in the session’s title bar. Hover to see each button’s name, such as **Terminal** , **Changes** for the diff view, **Browser** , and **Files**. If the pane you want has no button in the title bar, select it from the **⋮** menu beside the buttons:
@@ -266,27 +194,15 @@
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows to update.
-###
-
-
-
-See session details
+### See session details
The session details panel is a set of cards beside the chat that show where the session runs, what it changed, what it’s running, and its context usage. The panel appears after you start a session, while the chat is wide enough for it.
-####
-
-
-
-Hide or show the session details panel
+#### Hide or show the session details panel
To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you still don’t see the panel, check which Code tab layout you have.
-###
-
-
-
-Minimize a pane
+### Minimize a pane
To keep the Terminal, Browser, [iOS Simulator](</docs/en/desktop-ios-simulator>), or a side chat in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later and a Claude account rather than a [third-party provider](</docs/en/third-party-integrations>). The Browser pane has it only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
@@ -295,38 +211,22 @@
To get the full pane back, click **Expand** in the minimized pane’s header. To close the minimized pane instead, click the close button beside **Expand**.
-###
-
-
-
-Run commands in the terminal
+### Run commands in the terminal
The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. If a WSL session has no terminal, see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
-###
-
-
-
-Open and edit files
+### Open and edit files
To open a file Claude mentions, click its path in the chat. To edit a file yourself, use the file pane:
* **Local sessions** : you can edit files inside the session’s working directory, except some view-only ones such as `.mcp.json` and `.claude/settings.json`. To change one, open it in another app.
* **Cloud, SSH, and WSL sessions** : the file pane is view-only, so ask Claude to make edits.
-####
-
-
-
-Save edits in the file pane
+#### Save edits in the file pane
By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, click **Override** to write your edits over the version on disk, or **Discard** to drop your edits.
-###
-
-
-
-Open files in other apps
+### Open files in other apps
Right-click any file path in the chat, diff viewer, or file pane to open a context menu:
@@ -335,11 +235,7 @@
* **Show in Finder** on macOS, **Show in Explorer** on Windows: open the containing folder
* **Copy** : a submenu that copies the file’s **Absolute path** , **Relative path** , or **Filename**
-###
-
-
-
-Switch view modes
+### Switch view modes
View modes control how much detail appears in the chat transcript. To switch view modes, open the session menu from the caret beside the session title and select **Transcript view** , or press **Ctrl+O** on macOS or Windows to cycle through them. The Thinking mode appears in the menu only after Claude has produced thinking in the session you’re viewing.
@@ -351,11 +247,7 @@
Use Thinking to follow Claude’s reasoning with tool calls still collapsed. Use Verbose when debugging why Claude took a particular action. Claude Desktop versions before 1.46388.1 also list a Summary mode, and a session still set to Summary opens in Normal once you update.
-###
-
-
-
-Keyboard shortcuts
+### Keyboard shortcuts
Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. The table in this section shows the macOS keys. On Windows and Linux, change these keys:
@@ -391,11 +283,7 @@
These shortcuts apply to the Code tab. In Desktop, `Shift+Tab` doesn’t cycle permission modes as it does in the terminal’s [interactive mode](</docs/en/interactive-mode#keyboard-shortcuts>).
-###
-
-
-
-Check usage
+### Check usage
To see how full this session’s context window is, find your Code tab layout:
@@ -404,11 +292,7 @@
In either layout, type `/context` in the prompt box to print a per-category breakdown of this session’s context window in the chat. In both layouts, the usage ring is in the row under the prompt box. Click it to see your plan usage, which is shared across all your Claude Code surfaces.
-##
-
-
-
-Let Claude use your computer
+## Let Claude use your computer
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
@@ -418,11 +302,7 @@
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
-###
-
-
-
-When computer use applies
+### When computer use applies
Claude has several ways to interact with an app or service, and computer use is the broadest and slowest. It tries the most precise tool first:
@@ -434,11 +314,7 @@
The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, or proprietary tools without an API.
-###
-
-
-
-Enable computer use
+### Enable computer use
Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings.
@@ -475,11 +351,7 @@
The Settings page shows the current status of each permission. If either is denied, click the badge to open the relevant System Settings pane.
-###
-
-
-
-App permissions
+### App permissions
The first time Claude needs to use an app, a prompt appears in your session. Click **Allow for this session** or **Deny**. Approvals last for the current session, or 30 minutes in Dispatch-spawned sessions. The prompt also shows what level of control Claude gets for that app. These tiers are fixed by app category and can’t be changed:
@@ -494,19 +366,11 @@
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
-##
-
-
-
-Manage sessions
+## Manage sessions
Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, let Claude check on and message your other sessions, send work to the cloud, or let Dispatch start sessions for you from your phone.
-###
-
-
-
-Work in parallel with sessions
+### Work in parallel with sessions
Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to switch between sessions. You can also open a second session next to the current session or in a window of its own:
@@ -515,11 +379,7 @@
In the split view, the pane you opened or clicked last has focus, and the other pane is dimmed. To change which session a pane shows, click in that pane to give it focus, then click a session in the sidebar. To take the focused session out of the split view, press **Cmd+Ctrl+W** on macOS or **Ctrl+Alt+W** on Windows.
-####
-
-
-
-Run a session in its own worktree
+#### Run a session in its own worktree
In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on **Worktree** in the row under the prompt box.
@@ -536,30 +396,18 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in [Cowork](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-###
-
-
-
-Add folders to a session
+### Add folders to a session
Add folders before the session starts or while it runs:
* **Before a local session starts** : add the folders under **Folders** when you create a saved environment or edit one, then start the session from that saved environment.
* **While a local orSSH session runs**: click **+** next to the prompt box and select **Add folder**. Claude works in that folder itself, with no worktree.
-###
-
-
-
-Archive a session
+### Archive a session
Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived. To archive a session, hover over it in the sidebar, open its menu, and select **Archive**. The session moves to your archived sessions. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Code** or **Settings > Claude Code**. Cloud sessions and sessions that are still running don’t archive themselves.
-####
-
-
-
-Keep uncommitted changes when a session is archived
+#### Keep uncommitted changes when a session is archived
You can lose uncommitted changes in a session’s worktree when the session is archived, so commit what you want to keep first:
@@ -567,11 +415,7 @@
* **If the only changes are untracked files** : commit the ones you want to keep before a pull request that Claude opened in the session merges, because Desktop can then delete them without asking
* **In any other case** : the worktree stays on disk with its changes. For a local session, Desktop removes both about 30 days after the session is archived or you last open it, whichever is later. To keep the changes, open the session from the **Archived** tab and select **Unarchive**
-###
-
-
-
-Organize and find sessions
+### Organize and find sessions
You group, sort, and find sessions from an icon in the sidebar’s session list:
@@ -580,43 +424,23 @@
To rename a session, open it and click the session title in the title bar.
-###
-
-
-
-Check and free up context
+### Check and free up context
To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
-###
-
-
-
-Get notified when a session finishes
+### Get notified when a session finishes
The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session. For sessions that belong to a [project](</docs/en/claude-projects#see-what-needs-you-in-overview>), you get the project’s notifications instead.
-###
-
-
-
-Ask a side question without derailing the session
+### Ask a side question without derailing the session
A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local, SSH, and WSL sessions. The desktop app doesn’t save side chats to disk, so you can’t return to one after you close the app.
-###
-
-
-
-Watch background tasks
+### Watch background tasks
The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Once the session has background work, open the pane with **Background tasks** in the title bar’s **⋮** menu. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
-###
-
-
-
-Work across sessions
+### Work across sessions
Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. For example, ask it to archive the sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
@@ -624,11 +448,7 @@
* Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
-###
-
-
-
-Start a task that Claude suggests
+### Start a task that Claude suggests
When Claude notices something worth fixing outside your current task, it suggests that work as a task. In local and SSH sessions on the current layout, the suggestion is a card in the chat, and its buttons either start the task or keep it in this session:
@@ -639,11 +459,7 @@
In cloud sessions, and in local and SSH sessions on the earlier layout, the suggestion is a **Suggested task** card. To start the task where the card’s main button says, for example **Send to cloud** or **Start with worktree** , click that button. Click the caret beside the main button for other ways to start the task, including **Do it here**.
-###
-
-
-
-Run long-running tasks in the cloud
+### Run long-running tasks in the cloud
For large refactors, test suites, migrations, or other long-running tasks, select an environment under **Cloud** in the environment selector when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. Choose the repositories:
@@ -654,22 +470,14 @@
A task in an SSH session can also keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
-###
-
-
-
-Continue in another surface
+### Continue in another surface
To continue a session somewhere else, open the session menu from the caret beside the session title or from the session’s row in the sidebar, then select **Open in** :
* Select **Cloud** to continue the session as a [cloud session](</docs/en/claude-code-on-the-web>), with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in [WSL](</docs/en/desktop-wsl>) this way.
* Select an installed editor or your file manager to open the session’s folder on disk there.
-###
-
-
-
-Control which sessions appear on your other devices
+### Control which sessions appear on your other devices
A local session shows up on your other devices once [Remote Control](</docs/en/remote-control>) connects it. A connected session appears in the session list at [claude.ai/code](<https://claude.ai/code>) and in the Claude apps on devices signed in to your claude.ai account. A local session connects when you turn Remote Control on for it, or when it connects automatically as it starts:
@@ -678,11 +486,7 @@
To see whether a session is connected, check the **Remote Control** switch in the **Environment** card of its session details panel.
-####
-
-
-
-Keep sessions off your other devices
+#### Keep sessions off your other devices
Turn Remote Control off for one session, for sessions on this computer, or for computers you manage:
@@ -693,46 +497,26 @@
To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
-###
-
-
-
-Sessions from Dispatch
+### Sessions from Dispatch
[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in [Cowork](<https://claude.com/product/cowork>). You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork.
-####
-
-
-
-Follow a session that Dispatch started
+#### Follow a session that Dispatch started
The session that Dispatch starts appears in the Code tab’s sidebar with your other sessions. With the sidebar’s default grouping and sorting, look for the newest session in the group for the folder it runs in. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions.
-####
-
-
-
-Set up Dispatch
+#### Set up Dispatch
* **Plans** : Dispatch requires a Pro, Max, or Ultra plan and is not available on Team or Enterprise plans
* **Setup, pairing, and Dispatch settings** : see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>)
Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
-##
-
-
-
-Extend Claude Code
+## Extend Claude Code
Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
-###
-
-
-
-Connect external tools
+### Connect external tools
Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Click **+** next to the prompt box, before or during the session, to add connectors in a local or SSH session with a Claude account. Select **Add connectors** to open the connector directory. If the menu shows **Connectors** instead, select it, then **Browse connectors**.
@@ -743,27 +527,15 @@
Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, click **Customize** in the sidebar and open **Connectors**. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
-###
-
-
-
-Use skills
+### Use skills
[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account, except local sessions when your organization sets [`disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
-###
-
-
-
-Install plugins
+### Install plugins
[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. In a local session or an SSH session, click **+** next to the prompt box and select **Add plugins** to open the plugin browser. If the menu shows **Plugins** instead, select it, then **Browse plugins** , or **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
-###
-
-
-
-Configure preview servers
+### Configure preview servers
Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit `.claude/launch.json`. The file supports JSON with comments.
@@ -781,11 +553,7 @@
You can define multiple configurations to run different servers from the same project, such as a frontend and an API. See the examples below.
-####
-
-
-
-Auto-verify changes
+#### Auto-verify changes
When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or turn off **Auto-verify changes** in the Browser pane’s **⋮** menu.
@@ -804,11 +572,7 @@
When disabled, preview tools are still available and you can ask Claude to verify at any time. Auto-verify makes it automatic after every edit.
-####
-
-
-
-Configuration fields
+#### Configuration fields
Each entry in the `configurations` array accepts the following fields:
@@ -860,11 +624,7 @@
The `url` must be `http` or `https`, and must not contain a username or password.
-####
-
-
-
-Port conflicts
+#### Port conflicts
The `autoPort` field controls what happens when your preferred port is already in use:
@@ -880,11 +640,7 @@
In that case, free the port, remove the hardcoded value, or change `port` to match the script. Setting `"autoPort": true` instead works only for a script that reads `PORT`. Have your server read its port from the `PORT` environment variable, which carries the assigned port. When Claude moves your server to a different port, it also rewrites a `--port` or `-p` value in `runtimeArgs` to match.
-####
-
-
-
-Examples
+#### Examples
These configurations show common setups for different project types:
@@ -947,11 +703,7 @@
]
}
-##
-
-
-
-Environment configuration
+## Environment configuration
The environment you pick when starting a session determines where Claude executes and how you connect:
@@ -960,11 +712,7 @@
* **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers. A running task can keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
* **WSL** (Windows): runs inside a [WSL 2 distribution](</docs/en/desktop-wsl>) on your machine, using its Linux toolchain and native paths
-###
-
-
-
-Create a saved environment
+### Create a saved environment
A saved environment is an entry in the environment selector that records where Claude runs, so you can start later sessions there. A local or SSH environment also holds the folders Claude works in. Saved local and SSH environments are part of the current layout, so if you don’t see them, check which layout you have and how to get the current one.
@@ -986,19 +734,11 @@
Select **Create environment** , or **Add environment** on the **Cloud** tab.
-####
-
-
-
-Environments that Desktop creates for you
+#### Environments that Desktop creates for you
If the environment selector lists local or SSH environments you didn’t create, Desktop created them for you. The first time you open the Code tab in the current layout, Desktop creates up to eight environments. The environments come from the local and SSH folders you used most in the last month. You can edit or delete them.
-####
-
-
-
-Use, edit, or remove a saved environment
+#### Use, edit, or remove a saved environment
Find the environment’s entry in the environment selector:
@@ -1006,11 +746,7 @@
* **Edit or delete** : hover over the entry and click the gear icon. To delete a local or SSH environment, click **Delete environment** in **Edit environment**.
* **Archive cloud environments** : see [Archive an environment](</docs/en/cloud-environments#archive-an-environment>).
-###
-
-
-
-Environment variables in local sessions
+### Environment variables in local sessions
To set an environment variable for a local session, add it to a saved local environment, then start a new session from that environment. Variables such as `PATH` and `CLAUDE_CONFIG_DIR` have their own instructions:
@@ -1023,11 +759,7 @@
On macOS or Linux, if a variable you set with `export` is missing or wrong in a command Claude runs, see Exported variable missing or wrong in commands Claude runs.
-####
-
-
-
-Set environment variables for local sessions
+#### Set environment variables for local sessions
Add the variables to a saved local environment and start your sessions from it. Desktop sets some variables itself, such as `API_TIMEOUT_MS`, and your sessions get its value for those instead of yours.
@@ -1054,11 +786,7 @@
Only sessions you start from that environment get the variables. To set a variable for every local session, add it to the [`env` key](</docs/en/env-vars#set-variables-in-settings-files>) in your `~/.claude/settings.json` file. Claude Code [ignores the value](</docs/en/settings-reference#how-env-values-interact-with-your-shell>) if that variable is already in the environment Desktop starts the session with. See [environment variables](</docs/en/env-vars>) for the full list of supported variables.
-####
-
-
-
-Set environment variables for dev servers
+#### Set environment variables for dev servers
To give a dev server a secret without committing it to `launch.json`, set it in one of these places, then restart Desktop:
@@ -1068,11 +796,7 @@
Dev servers don’t get the variables you add to a saved environment or to `~/.claude/settings.json`.
-####
-
-
-
-Use the local environment editor
+#### Use the local environment editor
To open the local environment editor, click the gear icon on the entry for your own computer, not the one on a saved environment:
@@ -1081,11 +805,7 @@
Enter one `KEY=value` per line and select **Save changes**. Variables you save here are stored encrypted on your machine. Local sessions get them, except any variable that Desktop sets itself, such as `API_TIMEOUT_MS`. Restart Desktop to give your variables to dev servers.
-####
-
-
-
-Exported variable missing or wrong in commands Claude runs
+#### Exported variable missing or wrong in commands Claude runs
If a command Claude runs on macOS or Linux doesn’t get a variable you set with `export` in `~/.zshrc` or `~/.bashrc`, or gets the wrong value, try these in order:
@@ -1115,46 +835,26 @@
Before v2.1.304, Claude Code doesn’t pass exported variables to commands, so check which version the session runs.
-####
-
-
-
-Environment variables Desktop sets itself
+#### Environment variables Desktop sets itself
If you set `API_TIMEOUT_MS` or `ANTHROPIC_BASE_URL` and nothing changed in your local sessions, it’s because Desktop sets those [variables](</docs/en/env-vars#variables>), among others, itself. A local session gets Desktop’s value whether you set yours in your shell profile, your Windows user or system variables, the local environment editor, or a saved environment. Moving yours to a settings file doesn’t help, because Claude Code [ignores that value](</docs/en/settings-reference#how-env-values-interact-with-your-shell>) in a local session.
* `API_TIMEOUT_MS`: a local session gets `900000`, which is 15 minutes. For a longer timeout, [install the Claude Code CLI](</docs/en/quickstart>) and use it instead of Desktop. [Set the variable in your shell](</docs/en/env-vars#set-variables-in-your-shell>) and run `claude` in your terminal.
* `ANTHROPIC_BASE_URL`: a local session gets Anthropic’s API host when you’re signed in with a Claude account. To use a gateway, set up Desktop’s [third-party inference configuration](</docs/en/llm-gateway-connect#desktop-app>) instead.
-####
-
-
-
-Turn off extended thinking
+#### Turn off extended thinking
[Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To turn it off, set `MAX_THINKING_TOKENS` to `0` in a saved local environment or the local environment editor. Thinking then turns off on the Anthropic API, except on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, which always use extended thinking. On Opus 5, also select effort `high` or lower before you start the session. In the current layout, open the model picker and select a level under **Effort**. If you started the session at a higher level, start a new one at `high` or lower.
-####
-
-
-
-Fixed thinking budgets
+#### Fixed thinking budgets
On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
-###
-
-
-
-Local sessions on managed devices
+### Local sessions on managed devices
If the entry for your computer is grayed out in the environment selector, with the tooltip **Disabled by your organization** , your administrator has turned off local sessions. On Windows the [WSL](</docs/en/desktop-wsl>) entry, whose availability on managed devices is [governed separately](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>), is grayed out the same way. New sessions default to the first SSH connection if one is configured. If you try to continue an existing local session, Desktop shows a message that local sessions aren’t available on this device. Saved local environments show this error when you select one: `Couldn’t switch environments: the Local environment isn’t available anymore.` Choose an SSH or cloud environment instead, or contact your IT team.
-###
-
-
-
-Cloud sessions
+### Cloud sessions
Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. To add, edit, or [archive](</docs/en/cloud-environments#archive-an-environment>) a cloud environment, open the environment selector:
@@ -1163,11 +863,7 @@
See [Configure cloud environments](</docs/en/cloud-environments>) for details on configuring network access and environment variables.
-###
-
-
-
-SSH sessions
+### SSH sessions
SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies.
@@ -1203,11 +899,7 @@
The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
-####
-
-
-
-Remote machine requirements for SSH sessions
+#### Remote machine requirements for SSH sessions
A Linux or macOS remote machine needs a supported processor, an SSH server with SFTP, an install folder that isn’t mounted `noexec`, a working shell, and network access. Check each requirement before you connect, or when a connection fails after you log in:
@@ -1223,11 +915,7 @@
* **Shell** : the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and `sh` do
* **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. If a Linux remote machine needs a proxy or a CA certificate, set it for SSH sessions.
-####
-
-
-
-Check a remote machine’s host key
+#### Check a remote machine’s host key
A host key is the key that a remote machine presents to prove which machine it is, and a fingerprint is a short form of that key. When you trust a key, your computer saves it and connects to whatever presents it, without asking again. Check a key before you trust it, because something may be intercepting the connection. First find which machine the key belongs to, from where you see the fingerprint:
@@ -1247,11 +935,7 @@
If a troubleshooting step sent you here, go back to that step after either result.
-####
-
-
-
-Set a proxy or a CA certificate for SSH sessions
+#### Set a proxy or a CA certificate for SSH sessions
If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. In an SSH session, Claude Code doesn’t get the variables from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** , **Authentication failed** , or **Claude Code on … couldn’t verify the API connection’s certificate**. Signing in again doesn’t help.
@@ -1298,11 +982,7 @@
Restart the remote machine, or quit Desktop and end the helper’s processes, as in the first two steps to remove the helper. Do this when no task is running, because either way interrupts Claude’s work.
-####
-
-
-
-Use your SSH configuration
+#### Use your SSH configuration
You can use your SSH configuration on macOS, Linux, and Windows when Desktop connects through the OpenSSH client on your computer:
@@ -1478,11 +1158,7 @@
To keep Desktop from forwarding your SSH agent or a port, run `ssh -G devbox` in a terminal on your computer. Then run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips. Look in both outputs for a `forwardagent` line that says anything but `no`, and for lines that begin with `localforward`, `remoteforward`, or `dynamicforward`. If you find one, remove that setting from your SSH configuration. Do the same for a host that your `ProxyCommand` reaches with `ssh`.
-####
-
-
-
-Reach a port on the remote machine
+#### Reach a port on the remote machine
To open a server that runs on the remote machine, such as a dev server on port 3000, forward the port yourself. In a terminal on your computer, run `ssh` with `-L` and the host you connect to, such as `devbox`:
@@ -1490,11 +1166,7 @@
If you filled in **SSH port** or **SSH key (optional)** on the connection, add `-p` or `-i` with the same value. Leave that command running, and open `http://localhost:3000` in a browser on your computer to reach port 3000 of the remote machine. If `ssh` prints `open failed: administratively prohibited`, ask the machine’s administrator to allow TCP forwarding, which `AllowTcpForwarding` in the SSH server’s `sshd_config` controls.
-####
-
-
-
-Windows remote machines
+#### Windows remote machines
A Windows remote machine requires Claude Desktop v2.31226.0 or later. Use Microsoft’s OpenSSH Server. The machine can be x64 or ARM64. The shell that the SSH server starts can be `cmd.exe`, Windows PowerShell 5.1, or Git Bash. Windows remote machines get less testing than Linux ones. Try your own work there before you rely on it. Expect these limits, among others, on a Windows remote machine:
@@ -1508,11 +1180,7 @@
* **Running while disconnected** : a task keeps running while Desktop is disconnected only if the SSH server lets a program outlive the connection that started it. To find out, test the remote machine.
* **Leftover processes** : after a session ends, check the machine for programs that Claude Code started, because they can keep running. The background helper that Desktop installs doesn’t stop on its own there.
-####
-
-
-
-Keep a task running while Desktop is disconnected
+#### Keep a task running while Desktop is disconnected
If your computer sleeps, you lose your network, or you quit Desktop, the task goes on until it finishes, needs you, or reaches one of the limits. Closing the lid counts as sleep. A restart of Desktop or of your computer, including for an update, counts as a quit. Claude Code runs as a process on the remote machine, under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running. The behavior in this section requires Claude Desktop v2.31226.0 or later.
@@ -1614,11 +1282,7 @@
While a conversation’s Claude Code process is still running, don’t run [`claude --resume`](</docs/en/cli-reference#cli-flags>) for it on the remote machine. Claude Code doesn’t stop you, and both processes then write to the same conversation. If you aren’t sure, add `--fork-session`, which continues in a copy of the conversation, but both processes still work on the same files.
-####
-
-
-
-Choose where SSH session worktrees go
+#### Choose where SSH session worktrees go
Unless your organization restricts which folders sessions may use, new SSH sessions create their worktrees in the first of these locations that is set:
@@ -1650,11 +1314,7 @@
In **Worktree folder** , enter a folder on the remote machine, such as `~/worktrees`, and select **Save changes**.
-####
-
-
-
-Files and processes on the remote machine
+#### Files and processes on the remote machine
Desktop installs a helper program and Claude Code under `~/.claude/remote/` in the home directory of each user who connects to a Linux or macOS remote machine. The helper listens on no network port, but Claude Code and the programs it starts, such as MCP servers and development servers, can.
@@ -1703,11 +1363,7 @@
To find out who connected to a remote machine, read the SSH server’s log on that machine, where a login from Desktop looks like one from a terminal. With Desktop on macOS or Linux, expect an entry each time Desktop connects, not one for each session. If the server sets `MaxSessions 1`, expect at least two entries each time Desktop connects or reconnects. Expect at least one more for each terminal tab, and for each Desktop session in which you run commands that start with `!`. You won’t find Desktop’s SSH connections in Claude Code’s [metrics and events](</docs/en/monitoring-usage#available-metrics-and-events>). To find out from them which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>). For Desktop’s own record of its connections, see Get Desktop’s logs for an SSH problem.
-####
-
-
-
-Connections that close before login
+#### Connections that close before login
If the SSH server’s log shows connections that close before any login, they can be Desktop’s tests of the SSH port. Desktop tests whether a machine answers, for example after a connection to it failed. It opens a connection to the port and closes it at once, without sending anything. Expect one test or several in a row, for example eight in about two minutes. If nothing bans or refuses addresses for such connections, you don’t have to do anything about Desktop’s tests. If an address that Desktop connects from is refused or banned, check whether the SSH server itself refuses the address and whether fail2ban counts Desktop’s tests.
@@ -1753,19 +1409,11 @@
* **`mode`** : set it to `normal` wherever your jail sets it, in a `mode` line or in the brackets of a line such as `filter = sshd[mode=aggressive]`. You give up every count that only the other modes make, for example of clients that connect and leave without trying to log in.
* **`ignoreip`** : set it to the addresses that people connect from, for example `ignoreip = 203.0.113.7`. fail2ban then counts nothing from those addresses, failed logins included.
-####
-
-
-
-Use MCP servers set up on the remote machine
+#### Use MCP servers set up on the remote machine
To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see Limits while Desktop is disconnected.
-####
-
-
-
-Open an SSH session from a link
+#### Open an SSH session from a link
A `claude://code/new` link opens Desktop’s new-session page, and it can name an SSH connection. Put such a link in a runbook, dashboard, or wiki page to open Desktop set up for the right machine and folder. For platforms that strip such links, see [The link renders as plain text instead of being clickable](</docs/en/deep-links#the-link-renders-as-plain-text-instead-of-being-clickable>). SSH links require Claude Desktop v2.110.0 or later. The following link names the user `dev` on `build.example.com`, port 2222, and the folder `/srv/payments`, and fills in a prompt:
@@ -1798,11 +1446,7 @@
* **Desktop is older than v2.110.0** : earlier versions ignore the SSH parameters and open the new-session page with only the prompt.
* **SSH sessions are turned off** : if your administrator sets the allowlist to an empty array, Desktop refuses SSH links.
-####
-
-
-
-Create an SSH connection from a command
+#### Create an SSH connection from a command
If a command-line tool makes your remote machines on demand, add its command to `sshHostCommands` in [`~/.claude/settings.json`](</docs/en/settings#settings-files>). The environment selector then lists an item named after your entry, such as **Create Dev box**. When you select it, Desktop runs the command on your computer, saves the host that the command prints as an SSH connection, and connects.
@@ -2011,11 +1655,7 @@
* **Hooks are off or restricted** : your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
* **Settings are still loading** : every entry is gray until Desktop has loaded your organization’s [server-managed settings](</docs/en/server-managed-settings>), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
-####
-
-
-
-Pre-configure SSH connections for your team
+#### Pre-configure SSH connections for your team
Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>).
@@ -2038,11 +1678,7 @@
Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`. If you leave `user@` out of `sshHost`, Desktop connects as the `User` that each developer’s `~/.ssh/config` sets for the host, or else as their username on their own computer.
-####
-
-
-
-Restrict which SSH hosts users can connect to
+#### Restrict which SSH hosts users can connect to
Administrators can limit Desktop’s SSH sessions to an approved set of hosts by setting `sshHostAllowlist` in [managed settings](</docs/en/managed-settings>). When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions. The [`sshHostAllowlist` reference entry](</docs/en/settings-reference#sshhostallowlist>) says how an empty array combines with lists in other managed sources. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
@@ -2084,11 +1720,7 @@
Add each hostname, or a wildcard that covers it, to `sshHostAllowlist` in every managed source where you set a list. Then have users quit and reopen Desktop, because it fetches server-managed settings at launch.
-####
-
-
-
-Turn off local sessions and distribute SSH connections
+#### Turn off local sessions and distribute SSH connections
To turn off local sessions and limit SSH sessions to hosts that you choose, deploy [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), `sshConfigs`, and `sshHostAllowlist` together.
@@ -2145,19 +1777,11 @@
Add an SSH connection with a hostname that isn’t on the allowlist, such as `other.example.com`. Desktop saves the connection but refuses to connect, and says that your organization’s settings don’t allow the connection.
-##
-
-
-
-Enterprise configuration
+## Enterprise configuration
Organizations on Team or Enterprise plans can manage desktop app behavior through admin console controls, managed settings files, and device management policies.
-###
-
-
-
-Admin console controls
+### Admin console controls
These settings are configured through the [admin settings console](<https://claude.ai/admin-settings/claude-code>):
@@ -2169,11 +1793,7 @@
The OpenTelemetry form for Cowork under **Monitoring** in the admin console’s [Data and privacy settings](<https://claude.ai/admin-settings/data-privacy-controls>) applies to Cowork sessions only. In a Cowork session on this machine, the desktop app passes that collector to Claude Code as `OTEL_*` environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [administrator configuration for monitoring](</docs/en/monitoring-usage#administrator-configuration>). Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see [network access](</docs/en/cloud-environments#network-access>). For the `service.name` that Code tab sessions report, see [service information](</docs/en/monitoring-usage#service-information>).To find out which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>).
-###
-
-
-
-Managed settings
+### Managed settings
Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/managed-settings>) file or push them remotely through the admin console, unless a key’s row says otherwise.
@@ -2207,11 +1827,7 @@
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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
-####
-
-
-
-Claude Code settings that behave differently in the Code tab
+#### Claude Code settings that behave differently in the Code tab
In a local session, these keys, among others, have a different effect or no visible one, because the Code tab replaces the terminal interface. They still apply in the terminal, so you can leave them set.
@@ -2233,11 +1849,7 @@
`verbose`, `viewMode`| each user chooses the view under **Transcript view** in the session menu
`worktree.baseRef`, `worktree.sparsePaths`, `worktree.symlinkDirectories`| not used for the worktree that the Code tab creates for a session
-###
-
-
-
-Device management policies
+### Device management policies
IT teams can manage the desktop app through MDM on macOS, group policy on Windows, or a policy file on Linux. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates on macOS and Windows, and setting a custom deployment URL.
@@ -2245,11 +1857,7 @@
* **Windows** : configure via registry at `SOFTWARE\Policies\Claude`
* **Linux** : configure via a root-owned file at `/etc/claude-desktop/managed-settings.json`, which holds the policy keys as a JSON object. Desktop refuses the file if anyone but root can write to it or to its folder. It’s a different file from Claude Code’s [managed settings file](</docs/en/managed-settings>).
-####
-
-
-
-Restrict sign-in to your organization
+#### Restrict sign-in to your organization
To restrict which claude.ai organizations can sign in to Claude Desktop, set `forceLoginOrgUUID` in the Claude Desktop policy. The key requires Claude Desktop v1.2581.0 or later. On Linux, a policy file that sets only this key reads:
@@ -2268,11 +1876,7 @@
* **Claude Console organizations** : don’t deploy `forceLoginOrgUUID` on its own with a Claude Console organization’s ID, or you’d lock your people out of Claude Desktop. See [Which devices offer the Claude API account sign-in](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>) instead.
* **Enterprise Admin Console** : if it delivers your computers’ Claude Desktop configuration, update them to Claude Desktop v2.37337.0 or later first, because earlier versions ignore it once this key is set. See [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>).
-###
-
-
-
-Network access requirements
+### Network access requirements
Desktop loads its application code and user content from Anthropic CDN hosts.
@@ -2309,27 +1913,15 @@
If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
-###
-
-
-
-Authentication and SSO
+### Authentication and SSO
Team and Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML configuration; OIDC setup is covered in the [Claude Enterprise Administrator Guide](<https://claude.com/resources/tutorials/claude-enterprise-administrator-guide>).
-###
-
-
-
-Data handling
+### Data handling
Claude Code processes your code locally in local sessions, or in cloud sessions on Anthropic-managed infrastructure, unless your organization routes them to a [self-hosted environment](</docs/en/self-hosted-environments>). Cloud sessions, including in a self-hosted environment, send conversations and code context to Anthropic’s API for processing; local and SSH sessions send them to whichever model provider your deployment configures, Anthropic’s API by default. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
-###
-
-
-
-Deployment
+### Deployment
Desktop can be distributed through enterprise deployment tools:
@@ -2338,11 +1930,7 @@
For the domains to allowlist in your firewall, see network access requirements above. For proxy settings, custom certificate authorities, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
-##
-
-
-
-Coming from the CLI?
+## Coming from the CLI?
If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. From your shell, [`claude --desktop`](</docs/en/cli-reference#cli-flags>) opens Desktop directly without starting a terminal session. It requires Claude Code v2.1.285 or later and has the same platform and sign-in requirements as `/desktop`. With no other arguments, it opens Desktop on the current directory. To open an existing CLI session in Desktop, add `--continue` for the most recent conversation in this directory, or `--resume` with the session ID that `/status` shows:
@@ -2358,11 +1946,7 @@
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
-###
-
-
-
-CLI flag equivalents
+### CLI flag equivalents
This table shows the desktop app equivalent for common CLI flags. Flags not listed have no desktop equivalent because they are designed for scripting or automation.
@@ -2379,11 +1963,7 @@
`ANTHROPIC_MODEL` env var| Model picker in the row under the prompt box
`MAX_THINKING_TOKENS` env var| See Turn off extended thinking
-###
-
-
-
-Shared configuration
+### Shared configuration
Desktop and CLI read the same configuration files, so your setup carries over:
@@ -2393,21 +1973,13 @@
* **[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.
-####
-
-
-
-MCP servers from the Claude Desktop chat app
+#### MCP servers from the Claude Desktop chat app
The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions. If you define the same server name in `claude_desktop_config.json` and in `~/.claude.json` or `.mcp.json`, the Code tab in local sessions connects once and uses the `claude_desktop_config.json` definition. The app also re-delivers stdio servers from `~/.claude.json` to the embedded CLI in local sessions. When the top level of `~/.claude.json` (user scope) and `.mcp.json` define the same stdio server name, the Code tab uses the `~/.claude.json` definition, departing from the CLI [scope hierarchy](</docs/en/mcp#scope-hierarchy-and-precedence>).
The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
-###
-
-
-
-Feature comparison
+### Feature comparison
This table compares core capabilities between the CLI and Desktop. For a full list of CLI flags, see the [CLI reference](</docs/en/cli-reference>).
@@ -2427,11 +1999,7 @@
Dispatch integration| Not available| Dispatch sessions in the sidebar
Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
-###
-
-
-
-What’s not available in Desktop
+### What’s not available in Desktop
The following features aren’t available in Desktop, except where noted:
@@ -2443,19 +2011,11 @@
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
* `/config` opens **Settings > Code** or **Settings > Claude Code**.
-##
-
-
-
-Troubleshooting
+## Troubleshooting
The sections below cover issues specific to the desktop app. For runtime API errors that appear in the chat such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>).
-###
-
-
-
-Check your version
+### Check your version
To see which version of the desktop app you’re running:
@@ -2464,19 +2024,11 @@
Click the version number to copy it to your clipboard.
-####
-
-
-
-Claude Code version in the Code tab
+#### Claude Code version in the Code tab
To see which version of Claude Code a session runs, type `/status` in a local session in the **Code** tab and read the **Claude Code** row, which shows a version such as `2.1.286`. To get a newer version for local sessions, open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows, then start a new session. In a local session, the **Code** tab runs its own copy of Claude Code, which has its own version number. The desktop app downloads and updates that copy, so it can differ from the `claude` command in your terminal, and updating one doesn’t update the other.
-###
-
-
-
-Check which layout you have
+### Check which layout you have
If a new session shows the environment above the prompt box instead of under it, you have the earlier layout:
@@ -2486,11 +2038,7 @@
In the earlier layout, choose the environment and any project folder or repository above the prompt box, and the permission mode and model in the row under it. The earlier layout lacks the session details panel and saved local and SSH environments.
-###
-
-
-
-403 or authentication errors in the Code tab
+### 403 or authentication errors in the Code tab
If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
@@ -2499,11 +2047,7 @@
3. If the CLI works but Desktop does not, quit the desktop app completely, not just close the window, then reopen and sign in again.
4. Check your internet connection and proxy settings.
-###
-
-
-
-Blank or stuck screen on launch
+### Blank or stuck screen on launch
If the app opens but shows a blank or unresponsive screen:
@@ -2512,43 +2056,23 @@
3. On a managed network, confirm your firewall allows the CDN hosts in network access requirements.
4. On Windows, check Event Viewer for crash logs under **Windows Logs → Application**.
-###
-
-
-
-”Failed to load session”
+### ”Failed to load session”
If you see `Failed to load session`, the selected folder may no longer exist, a Git repository may require Git LFS that isn’t installed, or file permissions may prevent access. Try selecting a different folder or restarting the app.
-###
-
-
-
-Session not finding installed tools
+### Session not finding installed tools
If Claude can’t find tools like `npm`, `node`, or other CLI commands, verify the tools work in your regular terminal, check that your shell profile properly sets up PATH, and restart the desktop app to reload environment variables.
-###
-
-
-
-Git and Git LFS errors
+### Git and Git LFS errors
Sessions that run in their own worktree need Git. If you see “Git is required,” install [Git](<https://git-scm.com/downloads>), or [Git for Windows](<https://git-scm.com/downloads/win>) on Windows, and try again. On Windows, Claude Desktop versions before 1.49585.0 asked for Git before starting any local session; if you see that prompt and aren’t using worktrees, update the app. If you see “Git LFS is required by this repository but is not installed,” install Git LFS from [git-lfs.com](<https://git-lfs.com/>), run `git lfs install`, and restart the app.
-###
-
-
-
-MCP servers not working on Windows
+### MCP servers not working on Windows
If MCP server toggles don’t respond or servers fail to connect on Windows, check that the server is properly configured in your settings, restart the app, verify the server process is running in Task Manager, and review server logs for connection errors.
-###
-
-
-
-SSH host key verification failed
+### SSH host key verification failed
Each of these messages means that Desktop refused a host key:
@@ -2563,11 +2087,7 @@
* **You see a Review new key button** : select it, and compare the fingerprint that Desktop shows with the machine’s own. If they match, select **Trust new key** to replace the saved key. Otherwise select **Cancel**.
* **You see no Review new key button, Desktop shows`Couldn't show the new key`, or Desktop refuses the key again after Trust new key**: check the key from a terminal
-####
-
-
-
-Check the host key from a terminal
+#### Check the host key from a terminal
Run `ssh <SSH host>` on your computer, with the **SSH host** value of your SSH connection in Desktop. Add `-p <SSH port>` if the connection has an **SSH port** value. On Windows, use PowerShell, because Desktop doesn’t connect with the `ssh` in Git Bash or WSL. If PowerShell finds no `ssh`, install Microsoft’s OpenSSH client. Note which machine `ssh` names in its message, which can be a jump host and not `<SSH host>`, then follow the case that fits:
@@ -2586,19 +2106,11 @@
* **A fingerprint doesn’t match, or you can’t check it** : don’t connect again. Remove the saved key: under `Host '<name>' is known`, the line `Found key in <file>:<line>` names the file that holds it. Run `ssh-keygen -R "<name>" -f <file>`. If you keep host keys in more than one file, remove the key from each. If you can’t change a file, tell whoever manages your computer.
* **Every fingerprint matches** : retry in Desktop. If Desktop refuses the key again, see Get Desktop’s logs for an SSH problem.
-###
-
-
-
-SSH host key refused on Windows without an OpenSSH client
+### SSH host key refused on Windows without an OpenSSH client
On Windows without an OpenSSH client, Desktop refuses even a correct host key, with `Connection failed: Host key changed or not trusted`. It needs the client to look up saved keys. To see whether you have one, run `ssh` in PowerShell. If PowerShell doesn’t recognize `ssh`, install [Microsoft’s OpenSSH client](<https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse>) and restart Desktop. Then connect again. If Desktop asks whether to connect for the first time, check the machine’s host key before you trust it. If Desktop still refuses the key, follow the other cases under SSH host key verification failed.
-###
-
-
-
-SSH connection fails after you log in
+### SSH connection fails after you log in
Find the card’s title, or the code that ends the error message, in this table, then do what the last column says. To see the message, select **View details** on the failure card.
@@ -2615,11 +2127,7 @@
For any other message, check the remote machine requirements.
-###
-
-
-
-Get Desktop’s logs for an SSH problem
+### Get Desktop’s logs for an SSH problem
You get `ssh.log`, Desktop’s record of its SSH connections, in a zip file of Desktop’s logs that you save from the **Help** menu. To save it, open **Help > Troubleshooting** and select the item for your system:
@@ -2634,40 +2142,24 @@
Look through those files too before you send them.
-###
-
-
-
-App won’t quit
+### App won’t quit
* **macOS** : press Cmd+Q. If the app doesn’t respond, use Force Quit with Cmd+Option+Esc, select Claude, and click Force Quit.
* **Windows** : use Task Manager with Ctrl+Shift+Esc to end the Claude process.
-###
-
-
-
-Windows-specific issues
+### Windows-specific issues
* **PATH not updated after install** : open a new terminal window. PATH updates only apply to new terminal sessions.
* **Concurrent installation error** : if you see an error about another installation in progress but there isn’t one, try running the installer as Administrator.
-###
-
-
-
-”Branch doesn’t exist yet” when opening in CLI
+### ”Branch doesn’t exist yet” when opening in CLI
Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session and select **Copy branch name** , then fetch it locally:
git fetch origin <branch-name>
git checkout <branch-name>
-###
-
-
-
-Still stuck?
+### Still stuck?
* Open Help → Get Support in the desktop app, or visit the [Claude support center](<https://support.claude.com/>) directly
* For problems that also reproduce in the standalone `claude` CLI, search or file a bug on [GitHub Issues](<https://github.com/anthropics/claude-code/issues>)
--- a/desktop.md
+++ b/desktop.md
@@ -154,15 +154,23 @@
Turn off scripts in SSH and WSL previews for your organization
-To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableBrowserExternalNavigation` managed setting to `true`. With this setting, users also can’t browse external sites in the Browser pane. Set it in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read it from the remote machine or the WSL distribution. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
+To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
+
+Earlier versions ignore `disableRemotePreviewScripts`. To stop the scripts there, update Desktop, or also set `disableBrowserExternalNavigation` to `true`. Users then can’t browse external sites on any computer that receives `disableBrowserExternalNavigation`.
+
+Set each key in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read these keys from the remote machine, the WSL distribution, a [`policyHelper`](</docs/en/settings-reference#policyhelper>), or Desktop’s own policies. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
If the computer that runs Desktop receives no Claude Code managed settings yet, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"` in the managed settings that you create. Desktop passes its own policy to Claude Code, and without `"merge"`, Claude Code [ignores that policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) once the computer has managed settings. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>).If the computer already receives Claude Code managed settings, add the setting to those, and leave `parentSettingsBehavior` as it is there. On a computer with more than one MDM policy or managed settings file, use the [highest-ranked one](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
Then have users restart Desktop to make sure that the setting applies, and tell them what to expect:
- * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty
+ * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty. Its notice starts with `This preview doesn't run scripts`.
* **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
* **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting
+
+##### Check a computer for scripts that still run
+
+After the restart, open an HTML file from an SSH or WSL session on that computer. If the notice above the preview starts with `This preview doesn't load anything from the web`, scripts still run there. Check Desktop’s version, where you put the key, and that its value is the JSON Boolean `true`.
###
@@ -2177,6 +2185,7 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. 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 only the scripts in HTML previews in SSH and WSL sessions. 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.
@@ -2184,7 +2193,12 @@
`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.
`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 `browserExternalPageTools`, `disableMobileSimulatorTools`, or `disableBrowserExternalNavigation` 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. It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Requires Claude Desktop v4.4212.0 or later. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
+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:
+
+ * **`browserExternalPageTools`, `disableMobileSimulatorTools`, `disableBrowserExternalNavigation`**: requires Claude Desktop v4.4212.0 or later
+ * **`disableRemotePreviewScripts`** : requires Claude Desktop v5.1231.0 or later
+
+It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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.
@@ -2249,7 +2263,10 @@
Check the `forceLoginOrgUUID` value before you deploy it. If the ID isn’t your organization’s, people in your organization can’t use Claude Desktop unless they also belong to an organization with that ID. To recover, deploy the correct ID and have them restart Claude Desktop.
-If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen.
+If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen. A person can still use Claude Desktop with their own Claude API key or [Claude Console account](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>), and run Code tab sessions that way. To stop that, also deploy `forceLoginOrgUUID` in the Claude Desktop policy (in `HKLM` on Windows), with your claude.ai organization ID. Unless the policy itself [selects the Claude API](<https://claude.com/docs/third-party/claude-desktop/claude-api#choose-an-authentication-approach>), Claude Desktop stops using a person’s own API key or Console account at the app’s next launch. Check two cases before you deploy it:
+
+ * **Claude Console organizations** : don’t deploy `forceLoginOrgUUID` on its own with a Claude Console organization’s ID, or you’d lock your people out of Claude Desktop. See [Which devices offer the Claude API account sign-in](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>) instead.
+ * **Enterprise Admin Console** : if it delivers your computers’ Claude Desktop configuration, update them to Claude Desktop v2.37337.0 or later first, because earlier versions ignore it once this key is set. See [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>).
###
--- a/desktop.md
+++ b/desktop.md
@@ -280,7 +280,7 @@
Minimize a pane
-To keep the Terminal, Browser, or [iOS Simulator](</docs/en/desktop-ios-simulator>) in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later and a Claude account rather than a [third-party provider](</docs/en/third-party-integrations>). The Browser pane has it only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
+To keep the Terminal, Browser, [iOS Simulator](</docs/en/desktop-ios-simulator>), or a side chat in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later and a Claude account rather than a [third-party provider](</docs/en/third-party-integrations>). The Browser pane has it only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
* **In the panel** : the minimized pane sits below the panel’s cards, where you can’t move or resize it. To float it over the chat instead, hide the panel.
* **In a corner of the chat** : hover over the minimized pane to show its header. Drag the header to move it to another corner. To resize it, drag the corner of the minimized pane nearest the center of the chat.
@@ -1556,7 +1556,7 @@
When edits in a worktree keep working
-On a Linux or macOS remote machine, the check doesn’t go through Desktop, so edits inside the worktree keep working while Desktop is disconnected. Before Claude Desktop v2.37337.0, this holds on a Linux remote machine only.Edits still fail in some cases, including these:
+On a Linux or macOS remote machine, edits inside the worktree can keep working while Desktop is disconnected, because the check on each edit can run without Desktop. Before Claude Desktop v2.37337.0, this works on a Linux remote machine only.Edits still fail in some cases, including these:
* **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`
@@ -2188,7 +2188,7 @@
* **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>).
+ * **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.
* **[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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
--- a/desktop.md
+++ b/desktop.md
@@ -122,7 +122,7 @@
Preview your app
-Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane.
+Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane. In an SSH or WSL session, you can preview an HTML file.
In an SSH session, Claude doesn’t have the Browser pane’s tools, so it can’t open your app in the pane or auto-verify its changes. The pane’s **Dev servers** menu and your configured preview servers aren’t available either. To look at the app yourself, start its server on the remote machine, then forward its port to your computer.
@@ -135,6 +135,35 @@
In an SSH session, you lose the pane’s cookies when you quit Desktop. You can’t change that with **Keep cookies**. Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**.
+####
+
+
+
+Preview HTML files in SSH and WSL sessions
+
+In an SSH or [WSL](</docs/en/desktop-wsl>) session, click an HTML file’s path in the chat to preview the file in the Browser pane. If charts or tables in the preview stay empty, the notice above it tells you why:
+
+ * **`This preview doesn't load anything from the web`** : scripts written in the file run, but a chart that loads its library from the web stays empty. If the notice has an **Export** button, select it and open the saved file in your browser, where content from the web loads.
+ * **`This preview doesn't run scripts or load anything from the web`** : before Claude Desktop v4.23118.0, these previews didn’t run scripts, so update Desktop and open the file again. If Desktop is up to date and the notice stays, restart Desktop. If it still stays, scripts may be off for your organization, so ask your administrator.
+
+If you closed the notice, open the file again to bring it back.
+
+####
+
+
+
+Turn off scripts in SSH and WSL previews for your organization
+
+To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableBrowserExternalNavigation` managed setting to `true`. With this setting, users also can’t browse external sites in the Browser pane. Set it in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read it from the remote machine or the WSL distribution. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
+
+If the computer that runs Desktop receives no Claude Code managed settings yet, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"` in the managed settings that you create. Desktop passes its own policy to Claude Code, and without `"merge"`, Claude Code [ignores that policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) once the computer has managed settings. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>).If the computer already receives Claude Code managed settings, add the setting to those, and leave `parentSettingsBehavior` as it is there. On a computer with more than one MDM policy or managed settings file, use the [highest-ranked one](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
+
+Then have users restart Desktop to make sure that the setting applies, and tell them what to expect:
+
+ * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty
+ * **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
+ * **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting
+
###
@@ -168,7 +197,7 @@
Restrict external browsing for your organization
-The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
+The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist. Localhost dev servers and file previews keep working, but HTML previews in SSH and WSL sessions don’t run scripts. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
###
@@ -2147,7 +2176,7 @@
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`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 navigate to external sites, and localhost dev server previews are unaffected. 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 navigate to external sites, and localhost dev server previews are unaffected. HTML previews in SSH and WSL sessions don’t run scripts. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`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.
--- a/desktop.md
+++ b/desktop.md
@@ -637,13 +637,22 @@
A local session shows up on your other devices once [Remote Control](</docs/en/remote-control>) connects it. A connected session appears in the session list at [claude.ai/code](<https://claude.ai/code>) and in the Claude apps on devices signed in to your claude.ai account. A local session connects when you turn Remote Control on for it, or when it connects automatically as it starts:
* **You turn it on for that session** : with the session’s **Remote Control** switch, or by typing `/remote-control` in its prompt box.
- * **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Code** or **Settings > Claude Code**. If you’ve never changed that setting, Desktop follows [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) in your user or managed settings, then your organization’s default.
-
-To see whether a session is connected, check the **Remote Control** switch in the **Environment** card of its session details panel. To keep sessions off your other devices, turn Remote Control off at the level you need:
+ * **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Code** or **Settings > Claude Code**, unless [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) is `false` in managed settings. If you’ve never changed **Connect new sessions to Remote Control** , Desktop uses `remoteControlAtStartup` from your user or managed settings. If neither sets it, Desktop uses your organization’s default or, without one, its own.
+
+To see whether a session is connected, check the **Remote Control** switch in the **Environment** card of its session details panel.
+
+####
+
+
+
+Keep sessions off your other devices
+
+Turn Remote Control off for one session, for sessions on this computer, or for computers you manage:
* **One session** : turn off its **Remote Control** switch. In a session that connected when it started, typing `/remote-control` leaves Remote Control on and shows `Remote Control is already on. This session connected automatically when it started.` Click **Turn off** on that line to disconnect.
- * **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Code** or **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over `remoteControlAtStartup` and the defaults.
+ * **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Code** or **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, new sessions don’t connect automatically, even when `remoteControlAtStartup` or a default says to.
* **Any session on this computer, including the CLI** : set [`disableRemoteControl`](</docs/en/settings-reference#disableremotecontrol>) to `true` in `~/.claude/settings.json` to stop sessions from connecting. A session that was already connected when you saved the file stays connected until you turn Remote Control off for it.
+ * **Desktop sessions on computers you manage** : if you set `remoteControlAtStartup` to `false` in a computer’s [highest-ranked MDM policy or managed settings file](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), sessions there don’t connect automatically, even when the key is `true` in [server-managed settings](</docs/en/server-managed-settings>). Don’t use a user-level `HKCU` registry value for this. People can still turn Remote Control on for a session themselves; to prevent that, use the admin console. Requires Claude Desktop v4.4212.0 or later.
To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
@@ -2146,7 +2155,7 @@
`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.
`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.
-Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
+If you turn a feature off with `browserExternalPageTools`, `disableMobileSimulatorTools`, or `disableBrowserExternalNavigation` 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. It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Requires Claude Desktop v4.4212.0 or later. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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.
--- a/desktop.md
+++ b/desktop.md
@@ -92,7 +92,7 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector in the row under the prompt box. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector in the row under the prompt box. To approve each change yourself, switch to Manual. To set a default permission mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). A mode you pick in a local session is remembered per folder and outranks a `defaultMode` in the project’s `.claude/` settings. A new local session can still start in a `defaultMode` from `~/.claude/settings.json` or managed settings, so check the selector before your first message. If you pick Plan, it applies to this session only.
Mode| Settings key| Behavior
---|---|---
@@ -244,6 +244,19 @@
Hide or show the session details panel
To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you still don’t see the panel, check which Code tab layout you have.
+
+###
+
+
+
+Minimize a pane
+
+To keep the Terminal, Browser, or [iOS Simulator](</docs/en/desktop-ios-simulator>) in view at a small size, click **Minimize** in the pane’s header. The button requires Claude Desktop v4.0.0 or later and a Claude account rather than a [third-party provider](</docs/en/third-party-integrations>). The Browser pane has it only in local sessions. The minimized pane sits in the session details panel while that panel is on screen, and floats in a corner of the chat otherwise:
+
+ * **In the panel** : the minimized pane sits below the panel’s cards, where you can’t move or resize it. To float it over the chat instead, hide the panel.
+ * **In a corner of the chat** : hover over the minimized pane to show its header. Drag the header to move it to another corner. To resize it, drag the corner of the minimized pane nearest the center of the chat.
+
+To get the full pane back, click **Expand** in the minimized pane’s header. To close the minimized pane instead, click the close button beside **Expand**.
###
@@ -1457,9 +1470,9 @@
If your computer sleeps, you lose your network, or you quit Desktop, the task goes on until it finishes, needs you, or reaches one of the limits. Closing the lid counts as sleep. A restart of Desktop or of your computer, including for an update, counts as a quit. Claude Code runs as a process on the remote machine, under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running. The behavior in this section requires Claude Desktop v2.31226.0 or later.
-If you sign in to Desktop with a Claude account, don’t count on a task to run overnight. Desktop renews that sign-in for the task only while Desktop is running and connected, so the task’s sign-in can expire after you disconnect, and the task then stops. How much time is left when you disconnect varies, and it can be only a few minutes.The work done so far stays on the remote machine, and you can continue with a message when you return.If the task must run through the night:
-
- * [Keep your computer awake](</docs/en/desktop-scheduled-tasks#how-scheduled-tasks-run>) and online, with the lid open and Desktop running
+If you sign in to Desktop with a Claude account, don’t count on a task to run overnight. Desktop renews that sign-in for the task only while Desktop is running, connected, and signed in, so the task’s sign-in can expire after you disconnect, and the task then stops. How much time is left when you disconnect varies, and it can be only a few minutes.The work done so far stays on the remote machine, and you can continue with a message when you return.If the task must run through the night:
+
+ * [Keep your computer awake](</docs/en/desktop-scheduled-tasks#how-scheduled-tasks-run>) and online, with the lid open and Desktop running and signed in
* Use a login that works without a prompt, such as a key that your SSH agent holds, for the remote machine and for any jump host on the way. Desktop can then reconnect on its own after a drop.
For a task that must run while your computer is asleep or off, start a cloud session instead.
@@ -1467,8 +1480,9 @@
* **After sleep or a network loss** : you get the running task back if the process still runs and Desktop can log in without a prompt. If it can’t, send a message.
* **After a quit** : the task keeps running, but you lose it when the session opens again unless Desktop can rejoin its process. Check when Desktop can rejoin before you quit. If you lost the task, send a message to continue.
-When you come back and the task isn’t done, check for word that Desktop can’t reconnect, an authentication error, or a waiting request:
-
+When you come back and the task isn’t done, check for Desktop’s sign-in page, word that Desktop can’t reconnect, an authentication error, or a waiting request:
+
+ * **Sign-in page** : sign in. If the task stopped, send a message to continue. On an Enterprise plan, your organization can [sign you out a set number of days after you sign in](<https://support.claude.com/en/articles/13163631-configuring-session-security-settings>), however active you are. With a Claude account, Desktop doesn’t renew the task’s sign-in while you’re signed out, so the task can stop.
* **Desktop can’t reconnect** : the session says why, and a notification may say so too. Desktop may need you to log in.
* **Authentication error** : the sign-in token or credential may have expired. With a Claude account, send a message to continue. With a third-party provider, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
* **Waiting request** : answer it
Show diff (134 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1746,7 +1746,7 @@
If a command-line tool makes your remote machines on demand, add its command to `sshHostCommands` in [`~/.claude/settings.json`](</docs/en/settings#settings-files>). The environment selector then lists an item named after your entry, such as **Create Dev box**. When you select it, Desktop runs the command on your computer, saves the host that the command prints as an SSH connection, and connects.
-Connections from a command require Claude Desktop v3.6556.0 or later on macOS or Linux, signed in with a Claude account. Administrators can distribute commands to a team.
+Connections from a command require 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. Administrators can distribute commands to a team.
Desktop runs the command only when you create the connection or create another machine, not each time you connect. Each entry is one connection, which points at the host that Desktop last saved from the entry’s command.
@@ -1774,7 +1774,7 @@
]
}
-Each entry takes these fields, and `id`, `name`, and `command` are required:
+On Windows, a bare name such as `acme-dev` doesn’t work, so start the command with the program’s full path. Each entry takes these fields, and `id`, `name`, and `command` are required:
Field| Value
---|---
@@ -1788,11 +1788,12 @@
##### Write the command
-Desktop starts the program directly, with no shell and no terminal:
-
- * **Program** : write its name, or its full path from `/`, without spaces. Desktop looks for a bare name on the `PATH` that your login shell exports. Relative paths such as `./acme-dev`, paths that start with `~`, and shell aliases and functions don’t work.
- * **Arguments** : separate plain arguments with spaces. The command can hold only spaces, ASCII letters, digits, and the characters `+,-./:=@_~`, and no word can start with `~`.
- * **Scripts** : if the command needs anything else, such as quotes, pipes, variables, or a URL with `?` or `&`, put it in a script. Make the script executable, start it with a `#!` line, and set `command` to its full path, such as `/Users/you/bin/make-devbox`. On macOS, keep the script out of the Documents, Desktop, and Downloads folders, where macOS can block it.
+On Windows, start with Write the command on Windows, which says which of these rules apply there. On macOS and Linux, Desktop starts the program directly, with no shell and no terminal:
+
+ * **Program** : write its name, or its full path from `/`. Desktop looks for a bare name on the `PATH` that your login shell exports. Relative paths such as `./acme-dev`, paths that start with `~`, and shell aliases and functions don’t work.
+ * **Spaces in the path** : put the program’s full path in single quotes, such as `'/Users/you/My Tools/make-devbox' create`. Quotes, single or double, require Claude Desktop v4.16336.0 or later, and work only around the program’s path.
+ * **Arguments** : separate arguments with spaces. Outside quotes, the command can hold only spaces, ASCII letters, digits, and the characters `+,-./:=@_~`, and no word can start with `~`. A quoted path can also hold some other characters, such as `(`, `)`, and `&`.
+ * **Scripts** : if the command needs anything else, such as quoted arguments, pipes, variables, or a URL with `?` or `&`, put it in a script. Make the script executable, start it with a `#!` line, and set `command` to its full path, such as `/Users/you/bin/make-devbox`. On macOS, keep the script out of the Documents, Desktop, and Downloads folders, where macOS can block it.
* **Input** : the program gets no input and no terminal, so it can’t prompt you there. If your tool signs you in through a browser or a prompt, sign in from a terminal first, and again whenever that sign-in lapses.
* **Environment** : the program runs in your home directory with the variables that your login shell exports. Desktop reads them when it starts, as it does for a `ProxyCommand`, so quit and reopen Desktop after you change them.
* **Time limit** : Desktop stops a program that is still running after 10 minutes. Desktop’s progress message doesn’t show the program’s output. To stop the program sooner, select **Cancel** next to that message.
@@ -1816,11 +1817,58 @@
If the command fails, **View details** in Desktop’s message shows the last line that the command wrote to standard error, if any.
+##### Write the command on Windows
+
+On Windows, start `command` with the full path of an `.exe`, `.cmd`, or `.bat` file, from the drive letter. Desktop doesn’t look for a bare name on your `PATH`, so an entry whose `command` is `acme-dev create` is gray. The following entry in `%USERPROFILE%\.claude\settings.json` runs `C:\Program Files\Acme\acme-dev.exe` with the argument `create`. In JSON, write each backslash twice, or write `/` instead. The single quotes are there because the path has a space:
+
+settings.json
+
+ {
+ "sshHostCommands": [
+ {
+ "id": "devbox",
+ "name": "Dev box",
+ "command": "'C:\\Program Files\\Acme\\acme-dev.exe' create"
+ }
+ ]
+ }
+
+Follow the rules in Write the command on spaces in the path, input, the time limit, and what the program prints. In place of its other rules, follow these:
+
+ * **Program** : don’t use a network path such as `\\server\share`, a variable such as `%USERPROFILE%`, or a letter outside ASCII. With any of these in the path, the entry is gray. If your user folder’s name has such a letter, keep the program outside that folder.
+ * **Arguments** : follow the Arguments rule in Write the command. The command can also hold `\`, but no word can end with it.
+ * **Scripts** : use a `.cmd` or `.bat` file, which Desktop runs through `cmd.exe`. Even in quotes, the file’s path can’t hold `&`, `^`, or `;`. In a file that you write, read the arguments with `%*`, because `%1` to `%9` split an argument at `,` and `=`.
+ * **Environment** : the program gets the Desktop app’s environment variables, not a shell profile’s. After you change a variable, quit and reopen Desktop.
+ * **Test** : to see the output that Desktop reads, run the command in Command Prompt. Put a path that has a space in double quotes and use `NUL` for no input, as in `"C:\Program Files\Acme\acme-dev.exe" create < NUL > host.txt`. The file has to hold only the host. The test makes a machine too, so delete it with your tool afterward.
+
+##### Wrap a Windows tool that prints other lines
+
+If your tool prints other lines before the host, such as progress messages, wrap it in a batch file that prints only the host. The following file prints the last line of your tool’s output, and exits with your tool’s code if it fails:
+
+make-devbox.cmd
+
+ @echo off
+ setlocal
+ set "host="
+ set "out=%TEMP%\acme-dev-%RANDOM%.txt"
+ call "C:\Program Files\Acme\acme-dev.exe" create > "%out%"
+ set "code=%ERRORLEVEL%"
+ for /f "usebackq delims=" %%L in ("%out%") do set "host=%%L"
+ del "%out%"
+ if not "%code%"=="0" exit /b %code%
+ setlocal EnableDelayedExpansion
+ echo(!host!
+
+Set `command` to the file’s full path, such as `C:\\tools\\make-devbox.cmd` in JSON. Keep its last two lines as they are, because they print the host without running it as a command.
+
##### Connect to a new host
Answer two questions the first time you connect to each new host:
- * **Host key** : with OpenSSH’s default host key checking, check the key’s fingerprint, then choose whether to connect. To skip the question, have your command add the key to `~/.ssh/known_hosts` before it prints the host, using a key that your tool learned when it made the machine. For a port other than 22, that line starts with `[host]:port`. If your tool reuses host names, remove the old key’s line too.
+ * **Host key** : with OpenSSH’s default host key checking, check the key’s fingerprint, then choose whether to connect. To skip the question, have your command add the key to `~/.ssh/known_hosts`, or `%USERPROFILE%\.ssh\known_hosts` on Windows, before it prints the host:
+ * Use a key that your tool learned when it made the machine
+ * For a port other than 22, start the line with `[host]:port`
+ * If your tool reuses host names, remove the old key’s line too
* **Folder** : choose whether you trust the folder that you open there
Keep host key checking on for these hosts, and keep a `known_hosts` file for them. If `StrictHostKeyChecking` is `no` or `accept-new` and `UserKnownHostsFile` is also `/dev/null` or `none`, nothing records the key. When your tool then reuses a name, you can connect to a different machine without a warning. A reused name also matters with nobody at the computer, because Desktop connects to these hosts on its own. For example, it delivers a message that you sent while the host was unreachable, once the host answers. Even with host key checking on, the message can reach the name’s new machine in these cases, so stop using a machine before it’s deleted:
@@ -1876,7 +1924,8 @@
* **Where to put the key** : if your MDM policy for Claude Code already sets a [policy key](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), put it there. Otherwise, put it in the managed settings file. By default, such a policy outranks the file, and Desktop then ignores entries in the file. Set it on the computer even where [server-managed settings](</docs/en/server-managed-settings>) apply: Desktop ignores the key there, and in project and local settings.
* **The`id`**: if a user’s `sshHostCommands` entry has your `id`, only yours works. If any other SSH connection has it, such as one in a user’s `sshConfigs`, your entry is gray. Pick an `id` that users are unlikely to choose.
- * **The program** : give its full path, because Desktop looks up a bare name on each user’s own `PATH`. The program runs as the user, with the variables that their login shell exports.
+ * **The program** : give its full path, because on macOS and Linux Desktop looks up a bare name on each user’s `PATH`, and on Windows an entry with a bare name is gray. The program runs as the user, with that user’s variables.
+ * **Each platform** : deploy one entry to Windows computers and another to macOS and Linux computers. An entry with a Windows path is gray on macOS and Linux, and one with a macOS or Linux path is gray on Windows.
* **Users’ own entries** : Desktop treats a user’s entry like a [hook](</docs/en/hooks>), because both run a program on the computer. To allow only your entries, set [`strictPluginOnlyCustomization`](</docs/en/settings-reference#strictpluginonlycustomization>) to `["hooks"]`, or add `"hooks"` to its list. You also stop Claude Code hooks from user, project, and local settings, with no way to keep them. If you set that key or [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>) to `true` instead, you block more, as each key’s entry lists.
* **Every entry** : to turn off your entries too, set [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>) in managed settings. If you set [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), or an `sshHostAllowlist` that allows no host, the selector lists no **Create** or **Create another** items.
* **Where the locks count** : for these entries, Desktop reads `allowManagedHooksOnly`, `strictPluginOnlyCustomization`, and `disableAllHooks` from server-managed settings and from the computer’s own file or policy, and applies the stricter result. Every entry stays gray until Desktop has checked claude.ai for server-managed settings, even if your organization has none.
@@ -1889,13 +1938,14 @@
The environment selector lists no **Create** or **Create another** item in these cases:
* **The file** : `~/.claude/settings.json` has [invalid JSON or a value that the schema rejects](</docs/en/settings#fix-a-broken-settings-file>), you misspelled the key, or you put it in a project’s settings. Fix the file.
- * **Platform and account** : you use Windows, or a [third-party provider](</docs/en/third-party-integrations>) instead of a Claude account. Add each host as an SSH connection yourself.
+ * **Account** : you use a [third-party provider](</docs/en/third-party-integrations>) instead of a Claude account. Add each host as an SSH connection yourself.
+ * **Windows** : Desktop is older than v4.16336.0, or it doesn’t connect through the OpenSSH client. Update Desktop and meet the requirements for the OpenSSH client, then quit and reopen Desktop.
* **Your organization’s settings** : your administrator turned off local sessions, or turned off SSH sessions. Ask them whether you can use commands.
* **No`ssh` program**: Desktop couldn’t start the OpenSSH client on your computer. Install it, or ask your administrator to allow it, then restart Desktop.
An entry that you can’t select is gray. Hover over it to see the reason:
- * **A mistake in the entry** : fix the field or the command that the message names. If the `id` is in use, give the entry another one.
+ * **A mistake in the entry** : fix the field or the command that the message names. If the `id` is in use, give the entry another one. On Windows, the command has to start with the program’s full path.
* **A broken settings file** : while your own settings file is broken, your administrator’s entries may be gray, with a message that names the file. [Fix the file](</docs/en/settings#fix-a-broken-settings-file>).
* **A new host** : **Create another** is gray for one minute after Desktop saves a host. Select it after that minute. Before Claude Desktop v4.4212.0, **Replace Dev box’s host** is gray for 10 minutes.
* **Hooks are off or restricted** : your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
@@ -2076,7 +2126,7 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`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, signed in with a Claude account.
+`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.
Show diff (105 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -133,7 +133,7 @@
* Start or stop servers, or stop them all at once, from the **Dev servers** menu in the Browser pane’s header
* Choose whether the Browser keeps cookies after you quit the app with **Keep cookies** in the Browser pane’s **⋮** menu, so you don’t have to sign in again during development
-Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**.
+In an SSH session, you lose the pane’s cookies when you quit Desktop. You can’t change that with **Keep cookies**. Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**.
###
@@ -352,7 +352,7 @@
* **Current layout** : the header of the **Context** card in the session details panel shows it as a percentage. Open the card to see what is using the window by category.
* **Earlier layout** : click the usage ring next to the model picker. Its popover shows your context window usage.
-In either layout, type `/context` in the prompt box to print a per-category breakdown of this session’s context window in the chat. Both layouts have the usage ring next to the model picker. Click it to see your plan usage, which is shared across all your Claude Code surfaces.
+In either layout, type `/context` in the prompt box to print a per-category breakdown of this session’s context window in the chat. In both layouts, the usage ring is in the row under the prompt box. Click it to see your plan usage, which is shared across all your Claude Code surfaces.
##
@@ -471,9 +471,9 @@
Run a session in its own worktree
-In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on the **Worktree** button in the row under the prompt box.
-
- * **With a[third-party provider](</docs/en/third-party-integrations>)**: if the row under the prompt box shows the project folder control but no **Worktree** button, click that control and turn on **Worktree**
+In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on **Worktree** in the row under the prompt box.
+
+ * **With a[third-party provider](</docs/en/third-party-integrations>)**: if the row under the prompt box shows the project folder control but not **Worktree** , click the project folder control and turn on **Worktree**
* **As the default for asaved local or SSH environment**: set **Worktree** when you create or edit the environment
* **Earlier layout** : select the **worktree** checkbox beside the branch name, above the prompt box
@@ -1268,9 +1268,9 @@
##### Connect on Windows without the OpenSSH client
-On Windows, you connect through Desktop’s built-in SSH client if your computer doesn’t meet the requirements for the OpenSSH client. With a third-party provider, you connect through the built-in client by default, and your administrator can change that. For the setting, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>). With the built-in client, you can still enter a `Host` name from your SSH configuration in the **SSH host** field if your `PATH` has an `ssh` command, with these limits:
-
- * **Settings from the entry** : Desktop takes `HostName`, `User`, `Port`, and `IdentityFile`. It also takes `ProxyCommand` if an `sh` shell is on your `PATH`.
+On Windows, you connect through Desktop’s built-in SSH client if your computer doesn’t meet the requirements for the OpenSSH client. With a third-party provider, which client you connect through also depends on your Desktop version and on your administrator’s settings. See [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>). With the built-in client, you can still enter a `Host` name from your SSH configuration in the **SSH host** field if your `PATH` has an `ssh` command, with these limits:
+
+ * **Settings from the entry** : Desktop takes `HostName`, `User`, `Port`, `IdentityFile`, and `ConnectTimeout`. It also takes `ProxyCommand` if an `sh` shell is on your `PATH`.
* **SSH key (optional)** : leave this field empty to keep the entry’s `IdentityFile`, because a key file that you pick here replaces the `IdentityFile`
* **`CertificateFile` and `ProxyJump`**: Desktop ignores `CertificateFile`, and the connection fails if the entry sets `ProxyJump`. To use either setting, connect through the OpenSSH client.
@@ -1376,7 +1376,7 @@
##### Raise the SSH connection timeout
-If your SSH configuration sets no `ConnectTimeout` for the host, Desktop gives `ssh` 30 seconds to connect. Through a jump host or a `ProxyCommand`, that time includes the time the route takes to connect. If your route needs longer, add a higher value to the entry:
+If your session times out while it connects through a jump host or a `ProxyCommand`, raise `ConnectTimeout` in the remote machine’s entry in your `~/.ssh/config`. Use more than 90 seconds. Add any time that a jump host or a `ProxyCommand` waits for you, for example at a login prompt or for a phone push:
~/.ssh/config
@@ -1386,7 +1386,15 @@
ProxyJump bastion.example.com
ConnectTimeout 120
-`ssh` uses the first value it finds for a host, so keep the entry above any `Host *` entry that sets `ConnectTimeout`. To confirm, run `ssh -G devbox` in a terminal on your computer. Its output includes `connecttimeout 120`. After you change the value, quit and reopen Desktop. 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. If a jump host or a `ProxyCommand` waits for you instead, raise `ConnectTimeout` in the remote machine’s entry to cover that time.
+`ssh` uses the first value it finds for a host, so keep the entry above any `Host *` entry that sets `ConnectTimeout`. To confirm, run `ssh -G devbox` in a terminal on your computer. Its output includes `connecttimeout 120`. After you change the value, quit and reopen Desktop. If your SSH configuration sets no `ConnectTimeout` for the host, Desktop gives `ssh` 30 seconds to connect. Through a jump host or a `ProxyCommand`, that time includes the time the route takes to connect.
+
+`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.
+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.
##### Fix a `Match host` block that only Desktop applies
@@ -1498,7 +1506,7 @@
On a Linux or macOS remote machine, the check doesn’t go through Desktop, so edits inside the worktree keep working while Desktop is disconnected. Before Claude Desktop v2.37337.0, this holds on a Linux remote machine only.Edits still fail in some cases, including these:
- * **Built-in SSH client** : Desktop uses it, for example in a Microsoft Store install, on a Windows computer without Microsoft’s OpenSSH 9.4 or later, or by default on Windows with a third-party provider
+ * **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
@@ -1525,11 +1533,12 @@
* **Remembered password** : a password that you let Desktop remember also works without a prompt, but for a long absence prefer a key that your SSH agent holds. If sign-ins with that password break off or hang, Desktop can stop reconnecting and wait for you.
* **Any other prompt** : if the remote machine prompts for anything else, such as a one-time code, you can get a notification on your computer. Click the notification, or send a message in the session, and Desktop shows the prompt.
-If a jump host asks for a sign-in, the outage is long, output is missing, or the process is gone
+If a jump host asks for a sign-in, the outage is long, a message isn't sent, output is missing, or the process is gone
* **Jump host, pushes stop while you’re away** : this can happen with Desktop on macOS or Linux when nobody answers a jump host’s sign-in, for example a push to a phone. Desktop then stops reconnecting while nobody is at your computer. When you unlock or use the computer, you can get another push, because Desktop can try again. After three unanswered attempts it waits until you retry or send a message.
* **Jump host, pushes keep coming** : where Desktop can’t tell that nobody answers, as with Desktop on Windows, it keeps trying while it has a process to rejoin, whether or not that process still runs. You can get another push with each attempt. To end the attempts, quit Desktop, which can cost you the running task.
- * **Long outage** : Desktop slows to about one attempt every five minutes. To reconnect sooner, retry in the session or send a message, which Desktop delivers once it is connected.
+ * **Long outage** : Desktop slows to about one attempt every five minutes. To reconnect sooner, retry in the session or send a message. Desktop tries to deliver the message once it is connected.
+ * **Message not sent** : the row `Your organization's settings haven't loaded, so your message to <host> wasn't sent. Retry to send it.` under your message means that Desktop reconnected and held your message back, because your organization’s settings hadn’t loaded yet. Select **Retry** to send the message now. If you do nothing, Desktop tries again once the settings load.
* **Missing output** : while Desktop is disconnected, the helper keeps each session’s most recent Claude Code output in a 16 MiB buffer and drops older output. After Desktop reconnects, the session can show `Loading recent output from <host>…`. If Desktop can’t load all of the output, you see the row `Some output produced while you were disconnected may be missing here.` The row doesn’t mean that the task stopped.
* **Process gone** : the process ended while Desktop was disconnected, as when the remote machine restarts. Desktop can then start a new one from the conversation’s saved history and tell Claude to continue the task. If the task stays stopped, send a message. With a third-party provider, update to Claude Desktop v2.42304.0 or later, because earlier versions never continue the task on their own.
@@ -2482,6 +2491,8 @@
`<host> is out of disk space`| `[ENOSPC]` or `[EDQUOT]`| Free space or quota on the remote machine, in your home directory or `/tmp`
`Free up disk space on this computer`| `[ENOSPC]` or `[EDQUOT]`, in a message that starts with `Couldn't prepare the deploy locally`| Free space on your computer
`Claude Code won't start on <host>`| `[CLI_UNRESPONSIVE]`| Wait a minute, then try again. If it keeps failing, run the command that the message names on the remote machine to see whether Claude Code answers there.
+`Ask <host>'s administrator to let Claude's server run`| `[SERVER_NOT_RUNNABLE]` or `[SETUP_DIR_NOEXEC]`| Ask the remote machine’s administrator to let programs run from `~/.claude/remote/` on that machine, as the requirements say
+`Try again in a few minutes`| `[DOWNLOAD_BUSY]`| Wait a few minutes, then try again. Anthropic’s download server or a proxy on your computer’s network reported that it is busy. If the card keeps coming back, ask that network’s administrator whether a proxy limits downloads.
For any other message, check the remote machine requirements.
--- a/desktop.md
+++ b/desktop.md
@@ -124,7 +124,7 @@
Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane.
-In an SSH session, Claude can’t open your app in the Browser pane, because it doesn’t have the pane’s tools there. To look at the app yourself, forward its port to your computer.
+In an SSH session, Claude doesn’t have the Browser pane’s tools, so it can’t open your app in the pane or auto-verify its changes. The pane’s **Dev servers** menu and your configured preview servers aren’t available either. To look at the app yourself, start its server on the remote machine, then forward its port to your computer.
If the Browser pane isn’t open after Claude starts a server in a local session, click **Open** on the server’s card in the chat. From the Browser pane, you can:
@@ -1162,7 +1162,7 @@
* **One-time codes with`MaxSessions 1`**: if every login prompts you, as with one-time codes, `!` commands fail. Run those commands in a terminal tab instead, which prompts in its own pane.
* **Install folder** : Desktop installs a helper program and Claude Code under `~/.claude/remote/` in your home directory. It runs them from there, so that folder can’t be on a file system mounted `noexec`. Allow about 1 GB of disk space in the home directory of each user who connects. For what that folder holds, see Files and processes on the remote machine.
* **Shell** : the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and `sh` do
- * **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. On a Linux remote machine, if those requests need a proxy, set it for SSH sessions.
+ * **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. If a Linux remote machine needs a proxy or a CA certificate, set it for SSH sessions.
####
@@ -1194,7 +1194,7 @@
Set a proxy or a CA certificate for SSH sessions
-If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. In an SSH session, Claude Code doesn’t get the variables from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** or **Authentication failed** , and signing in again doesn’t help.
+If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. In an SSH session, Claude Code doesn’t get the variables from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** , **Authentication failed** , or **Claude Code on … couldn’t verify the API connection’s certificate**. Signing in again doesn’t help.
1
@@ -2081,6 +2081,32 @@
* **[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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
+
+####
+
+
+
+Claude Code settings that behave differently in the Code tab
+
+In a local session, these keys, among others, have a different effect or no visible one, because the Code tab replaces the terminal interface. They still apply in the terminal, so you can leave them set.
+
+Key| In a local session
+---|---
+`askUserQuestionTimeout`| the timeout doesn’t apply, so a question from Claude stays open for a user to answer
+`awaySummaryEnabled`| the key has no effect
+`bashEditDiffEnabled`| the Code tab doesn’t show the list of files that a Bash command changed
+`companyAnnouncements`| the Code tab doesn’t show announcements
+`defaultShell`| commands that users type after `!` run in a shell that the app chooses: their login shell on macOS and Linux, PowerShell on Windows
+`fileSuggestion`| the `@` file picker builds its own file list and doesn’t run the command you set
+`modelPicker`| the model picker lists the models available to each user’s account. To limit them, set [`availableModels`](</docs/en/model-config#restrict-model-selection>).
+`pluginTrustMessage`| the warning that users see when they install a plugin doesn’t include the message you set
+`prUrlTemplate`| pull request links use the pull request’s own URL, not the template
+`respectGitignore`| the `@` file picker builds its own file list and doesn’t read this key
+`respondToBashCommands`| Claude responds to the output of commands that users run with `!`, whatever the value
+`showClearContextOnPlanAccept`| users get no clear-context option when they approve a plan
+`skipDangerousModePermissionPrompt`| the Code tab has its own confirmation for Bypass permissions mode, and this key doesn’t skip it
+`verbose`, `viewMode`| each user chooses the view under **Transcript view** in the session menu
+`worktree.baseRef`, `worktree.sparsePaths`, `worktree.symlinkDirectories`| not used for the worktree that the Code tab creates for a session
###
@@ -2236,7 +2262,7 @@
* **[CLAUDE.md](</docs/en/memory>)** and `CLAUDE.local.md` files in your project are used by both
* **[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.
+ * **[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.
####
@@ -2471,7 +2497,12 @@
* **Windows** : **Show Logs in File Explorer**
* **Linux** : **Show Logs in File Manager**
-Look through the files before you send them, because they can include names and other details from your environment. `<host>` and `<user>` stand for names that Desktop replaced. Desktop doesn’t replace every name, and an SSH host or user name can still appear as written. If you send the zip file to someone, tell them which host failed and when, because the logs may not name it. The zip file doesn’t hold the log of the helper program that Desktop installs on the remote machine. To get that log as well, copy `remote-server.log` from the helper’s folder under `~/.claude/remote/run/` in the home directory of the user who connected. Look through that file too before you send it.
+Look through the files before you send them, because they can include names and other details from your environment. `<host>` and `<user>` stand for names that Desktop replaced. Desktop doesn’t replace every name, and an SSH host or user name can still appear as written. If you send the zip file to someone, tell them which host failed and when, because the logs may not name it. The zip file doesn’t hold the log of the helper program that Desktop installs on the remote machine. To get that log as well, copy these files from the helper’s folder under `~/.claude/remote/run/` in the home directory of the user who connected:
+
+ * **`remote-server.log`** : the log of the helper’s latest run.
+ * **`remote-server.log.old`** , if it is there: the log of the run before that. Copy it as soon as you can, because you lose it the next time Desktop connects and has to start the helper again.
+
+Look through those files too before you send them.
###
Show diff (179 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -100,7 +100,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request. Appears when auto mode is available; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions such as deleting a session, though not archiving one. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**. On Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions such as deleting a session, though not archiving one. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro, Max, and Ultra plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**. On Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
@@ -362,7 +362,7 @@
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
-Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
+Computer use is a research preview on macOS and Windows that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
@@ -412,7 +412,7 @@
* **Windows** : the toggle takes effect immediately and setup is complete
* **macOS** : continue to the next step
-If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
+If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro, Max, or Ultra plan, then update and restart the app.
3
@@ -656,7 +656,10 @@
Set up Dispatch
-For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
+ * **Plans** : Dispatch requires a Pro, Max, or Ultra plan and is not available on Team or Enterprise plans
+ * **Setup, pairing, and Dispatch settings** : see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>)
+
+Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
##
@@ -1736,12 +1739,12 @@
Connections from a command require Claude Desktop v3.6556.0 or later on macOS or Linux, signed in with a Claude account. Administrators can distribute commands to a team.
-Each entry is one connection, with one host at a time. Desktop runs the command only when you create the connection or replace its host, not each time you connect. To keep two machines at once, add a second entry.
+Desktop runs the command only when you create the connection or create another machine, not each time you connect. Each entry is one connection, which points at the host that Desktop last saved from the entry’s command.
Desktop doesn’t stop or delete machines. Each of these keeps running, and can keep costing money, until you delete it with your tool:
- * A host that you replaced
- * The host of an entry that you removed from the file, or whose `id` you changed
+ * A machine that an entry pointed at before you created another
+ * The machines of an entry that you removed from the file, or whose `id` you changed
* A machine that your command made without Desktop saving its host, for example in these cases:
* The command fails or runs out of time
* Desktop can’t use the printed host, another connection already uses it, or your organization doesn’t allow it
@@ -1766,7 +1769,7 @@
Field| Value
---|---
-`id`| Up to 64 ASCII letters, digits, `.`, `_`, and `-`, starting with a letter or digit. Use an `id` that no other entry in `sshHostCommands` or `sshConfigs` has. Desktop keeps the connection’s host under it, so if you change it, the connection starts over with no host and the old machine keeps running.
+`id`| Up to 64 ASCII letters, digits, `.`, `_`, and `-`, starting with a letter or digit. Use an `id` that no other entry in `sshHostCommands` or `sshConfigs` has. Desktop keeps the connection’s host under it, so if you change it, the connection starts over with no host, its machines keep running, and Desktop can still connect to them.
`name`| The connection’s name in the environment selector, up to 200 characters on one line
`command`| A program and its arguments, as Write the command describes
`sshIdentityFile`| Path to your private key, such as `~/.ssh/id_ed25519`. Leave it out to use your SSH configuration or SSH agent.
@@ -1811,14 +1814,37 @@
* **Host key** : with OpenSSH’s default host key checking, check the key’s fingerprint, then choose whether to connect. To skip the question, have your command add the key to `~/.ssh/known_hosts` before it prints the host, using a key that your tool learned when it made the machine. For a port other than 22, that line starts with `[host]:port`. If your tool reuses host names, remove the old key’s line too.
* **Folder** : choose whether you trust the folder that you open there
-Keep host key checking on for these hosts, and keep a `known_hosts` file for them. If `StrictHostKeyChecking` is `no` or `accept-new` and `UserKnownHostsFile` is also `/dev/null` or `none`, nothing records the key. When your tool then reuses a name, you can connect to a different machine without a warning.
-
-##### Replace the host
-
-Once Dev box has a host, the selector lists Dev box among your SSH connections, and **Create Dev box** becomes **Replace Dev box’s host**. If that item isn’t in the list, look under **More**. Select it when the machine is gone or you want a fresh one. On the new-session page, the message that says Desktop can’t reach the host offers it too. Desktop runs the command again, and new sessions use the new host.
-
- * **A new host** : the item is gray for 10 minutes after Desktop saves a host, because a new machine can take a while to start. While a new host doesn’t answer, the new-session page keeps trying to connect for those 10 minutes.
- * **Sessions on the old host** : they stay on it, and Desktop doesn’t connect to that host unless you add it back. To continue one, open the session and select **Add SSH connection**. Desktop fills in the old host. Save it as a connection of its own.
+Keep host key checking on for these hosts, and keep a `known_hosts` file for them. If `StrictHostKeyChecking` is `no` or `accept-new` and `UserKnownHostsFile` is also `/dev/null` or `none`, nothing records the key. When your tool then reuses a name, you can connect to a different machine without a warning. A reused name also matters with nobody at the computer, because Desktop connects to these hosts on its own. For example, it delivers a message that you sent while the host was unreachable, once the host answers. Even with host key checking on, the message can reach the name’s new machine in these cases, so stop using a machine before it’s deleted:
+
+ * You, your command, or another program added the new key to `known_hosts` or removed the old key’s line, as your command does if it adds host keys
+ * Your tool’s machines share a host key
+ * Your tool’s machines share a certificate authority that `known_hosts` trusts
+ * You or your administrator set `KnownHostsCommand` or `VerifyHostKeyDNS yes`, so SSH accepts keys from outside `known_hosts`
+
+##### Create another machine
+
+Your sessions on earlier machines keep working after you select **Create another Dev box** , and new sessions use the new machine. Select the item in the environment selector to make a fresh machine or to replace one that is gone. On the new-session page, the message that says Desktop can’t reach the host offers it too.
+
+ * **Sessions on earlier machines** : continue them from the sidebar, because the selector lists Dev box’s current machine and not the earlier ones. Desktop can connect to their machines on its own, for example when Desktop starts, so stop using a machine when you’re done with it.
+ * **A host replaced before Claude Desktop v4.4212.0** : those versions show **Replace Dev box’s host** and stop connecting to the replaced host. To continue a session on that host, open the session, select **Add SSH connection** , and save the connection that Desktop fills in. Update Desktop before you replace another host.
+ * **New sessions on two machines** : add a second entry to `sshHostCommands`
+ * **A new host that doesn’t answer yet** : leave the new-session page open for up to 10 minutes while it keeps trying to connect. If the host still doesn’t answer, select **Create another Dev box** in the page’s message.
+ * **Another machine soon after** : after several runs of the command within an hour, confirm each further run in the dialog that Desktop opens, which shows the command
+
+##### Stop using a machine
+
+To stop Desktop from connecting on its own to a machine that a command made, archive every session on the machine:
+
+ 1. Find the machine’s sessions in the sidebar. A session’s details panel shows the host that it runs on.
+ 2. Archive each session, and leave it archived.
+ 3. If you haven’t created another machine from the same `sshHostCommands` entry since you made this one, create one or remove the entry too. Until then, the machine is the entry’s saved connection, and Desktop can connect to it when you open the new-session page with that connection selected.
+ 4. Delete any other SSH connection to the machine in the app, or remove its `sshConfigs` entry.
+ 5. Quit and reopen Desktop, which closes its connection to the machine and ends its attempts to reach it.
+ 6. Delete the machine with your tool.
+
+##### Remove an entry
+
+After you remove an entry from the settings file or change its `id`, the sessions on its machines stay, so Desktop can still connect to those machines. It can do so with nobody at the computer, for example to rejoin a session’s running process or to deliver a message that was waiting to be sent. To stop that, archive the sessions, as Stop using a machine describes. If you’re an administrator and removed a managed entry, your users’ sessions stay too, and each user has to archive their own. To block the entry’s machines yourself, set an `sshHostAllowlist` that matches the hosts your users still need and not the machines’ hostnames. You can do that only where a pattern tells the two apart.
##### Distribute commands to your team
@@ -1843,7 +1869,7 @@
* **The`id`**: if a user’s `sshHostCommands` entry has your `id`, only yours works. If any other SSH connection has it, such as one in a user’s `sshConfigs`, your entry is gray. Pick an `id` that users are unlikely to choose.
* **The program** : give its full path, because Desktop looks up a bare name on each user’s own `PATH`. The program runs as the user, with the variables that their login shell exports.
* **Users’ own entries** : Desktop treats a user’s entry like a [hook](</docs/en/hooks>), because both run a program on the computer. To allow only your entries, set [`strictPluginOnlyCustomization`](</docs/en/settings-reference#strictpluginonlycustomization>) to `["hooks"]`, or add `"hooks"` to its list. You also stop Claude Code hooks from user, project, and local settings, with no way to keep them. If you set that key or [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>) to `true` instead, you block more, as each key’s entry lists.
- * **Every entry** : to turn off your entries too, set [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>) in managed settings. If you set [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), or an `sshHostAllowlist` that allows no host, the selector lists no **Create** or **Replace** items.
+ * **Every entry** : to turn off your entries too, set [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>) in managed settings. If you set [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), or an `sshHostAllowlist` that allows no host, the selector lists no **Create** or **Create another** items.
* **Where the locks count** : for these entries, Desktop reads `allowManagedHooksOnly`, `strictPluginOnlyCustomization`, and `disableAllHooks` from server-managed settings and from the computer’s own file or policy, and applies the stricter result. Every entry stays gray until Desktop has checked claude.ai for server-managed settings, even if your organization has none.
* **Allowed hosts** : if you set `sshHostAllowlist`, make sure that a pattern matches each hostname that your tool prints, and leave `user@` out of the pattern. Desktop checks the printed name only after the command has run, so a machine that the list refuses already exists, and the user has to delete it with your tool. At each connection, the resolved `HostName` has to match too.
@@ -1851,7 +1877,7 @@
##### If a command is missing or gray
-The environment selector lists no **Create** or **Replace** item in these cases:
+The environment selector lists no **Create** or **Create another** item in these cases:
* **The file** : `~/.claude/settings.json` has [invalid JSON or a value that the schema rejects](</docs/en/settings#fix-a-broken-settings-file>), you misspelled the key, or you put it in a project’s settings. Fix the file.
* **Platform and account** : you use Windows, or a [third-party provider](</docs/en/third-party-integrations>) instead of a Claude account. Add each host as an SSH connection yourself.
@@ -1862,7 +1888,7 @@
* **A mistake in the entry** : fix the field or the command that the message names. If the `id` is in use, give the entry another one.
* **A broken settings file** : while your own settings file is broken, your administrator’s entries may be gray, with a message that names the file. [Fix the file](</docs/en/settings#fix-a-broken-settings-file>).
- * **A new host** : you can replace a host once it’s 10 minutes old.
+ * **A new host** : **Create another** is gray for one minute after Desktop saves a host. Select it after that minute. Before Claude Desktop v4.4212.0, **Replace Dev box’s host** is gray for 10 minutes.
* **Hooks are off or restricted** : your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
* **Settings are still loading** : every entry is gray until Desktop has loaded your organization’s [server-managed settings](</docs/en/server-managed-settings>), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
@@ -2082,7 +2108,11 @@
"forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
-Replace the placeholder with your claude.ai organization ID, shown in [claude.ai admin settings](<https://claude.ai/admin-settings/organization>). It’s the same ID that Claude Code’s [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) setting takes. For macOS and Windows samples that set this key, see [Deploy the Claude Desktop policy](<https://claude.com/docs/cowork/hipaa-setup#deploy-the-claude-desktop-policy>) in the Cowork guide for HIPAA-ready organizations. If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen.
+Replace the placeholder with your claude.ai organization ID, shown in [claude.ai admin settings](<https://claude.ai/admin-settings/organization>). It’s the same ID that Claude Code’s [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) setting takes. For macOS and Windows samples that set this key, see [Deploy the Claude Desktop policy](<https://claude.com/docs/cowork/hipaa-setup#deploy-the-claude-desktop-policy>) in the Cowork guide for HIPAA-ready organizations.
+
+Check the `forceLoginOrgUUID` value before you deploy it. If the ID isn’t your organization’s, people in your organization can’t use Claude Desktop unless they also belong to an organization with that ID. To recover, deploy the correct ID and have them restart Claude Desktop.
+
+If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen.
###
@@ -2187,7 +2217,7 @@
`--model sonnet`| Model picker in the row under the prompt box
`--resume`, `--continue`| Click a session in the sidebar, or type `/resume` in the prompt box to pick up a session you started from the CLI
`--permission-mode`| Mode selector in the row under the prompt box
-`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**; on Team and Enterprise plans, organization policy controls it
+`--dangerously-skip-permissions`| Bypass permissions mode. On Pro, Max, and Ultra plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**; on Team and Enterprise plans, organization policy controls it
`--add-dir`| Add folders to a session in local and SSH sessions, or select several repositories in a cloud session
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode
@@ -2229,7 +2259,7 @@
Feature| CLI| Desktop
---|---|---
-Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro and Max plans, or through organization policy on Team and Enterprise plans
+Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro, Max, and Ultra plans, or through organization policy on Team and Enterprise plans
[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. For gateway routing, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins/overview>)| `/plugin` command| Plugin manager UI
@@ -2311,7 +2341,7 @@
If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
1. Sign out and back in from the app menu. This is the most common fix.
- 2. Verify you have an active paid subscription: Pro, Max, Team, or Enterprise.
+ 2. Verify you have an active paid subscription: Pro, Max, Ultra, Team, or Enterprise.
3. If the CLI works but Desktop does not, quit the desktop app completely, not just close the window, then reopen and sign in again.
4. Check your internet connection and proxy settings.
--- a/desktop.md
+++ b/desktop.md
@@ -2068,6 +2068,22 @@
* **Windows** : configure via registry at `SOFTWARE\Policies\Claude`
* **Linux** : configure via a root-owned file at `/etc/claude-desktop/managed-settings.json`, which holds the policy keys as a JSON object. Desktop refuses the file if anyone but root can write to it or to its folder. It’s a different file from Claude Code’s [managed settings file](</docs/en/managed-settings>).
+####
+
+
+
+Restrict sign-in to your organization
+
+To restrict which claude.ai organizations can sign in to Claude Desktop, set `forceLoginOrgUUID` in the Claude Desktop policy. The key requires Claude Desktop v1.2581.0 or later. On Linux, a policy file that sets only this key reads:
+
+/etc/claude-desktop/managed-settings.json
+
+ {
+ "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }
+
+Replace the placeholder with your claude.ai organization ID, shown in [claude.ai admin settings](<https://claude.ai/admin-settings/organization>). It’s the same ID that Claude Code’s [`forceLoginOrgUUID`](</docs/en/settings-reference#forceloginorguuid>) setting takes. For macOS and Windows samples that set this key, see [Deploy the Claude Desktop policy](<https://claude.com/docs/cowork/hipaa-setup#deploy-the-claude-desktop-policy>) in the Cowork guide for HIPAA-ready organizations. If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen.
+
###
--- a/desktop.md
+++ b/desktop.md
@@ -35,7 +35,7 @@
Before you send your first message, choose the environment, project folder, permission mode, and model in the row under the prompt box:
* **Environment** : use the environment selector, the first control in the row, to choose where Claude runs. See environment configuration.
- * If a new session has no environment selector under the prompt box, follow the earlier layout’s steps.
+ * If a new session shows no environment under the prompt box, follow the earlier layout’s steps.
* **Project folder** : click the project folder control, next to the environment selector, to choose the folder Claude works in.
* **Cloud session** : select repositories instead of a folder
* **Saved local or SSH environment** : the environment already holds its folders, so the row shows no project folder control. To change the folders, edit the environment.
@@ -969,7 +969,7 @@
Add the variables to a saved local environment and start your sessions from it. Desktop sets some variables itself, such as `API_TIMEOUT_MS`, and your sessions get its value for those instead of yours.
-If your environment selector is above the prompt box, you have the earlier layout, which has no saved local environments. Use the local environment editor instead.
+If a new session shows no environment under the prompt box, you have the earlier layout, which has no saved local environments. Use the local environment editor instead.
1
@@ -1111,7 +1111,7 @@
If you use Desktop with a [third-party provider](</docs/en/third-party-integrations>), SSH sessions need their own setup. See [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
-Add an SSH connection in the **New environment** dialog, then start a session on that connection. If a new session has no environment selector under the prompt box, you have the earlier layout. See Check which layout you have.
+Add an SSH connection in the **New environment** dialog, then start a session on that connection. If a new session shows no environment under the prompt box, you have the earlier layout. See Check which layout you have.
1
@@ -2278,13 +2278,13 @@
Check which layout you have
-If a new session has no environment selector under the prompt box, you have the earlier layout:
+If a new session shows the environment above the prompt box instead of under it, you have the earlier layout:
* **Desktop older than v2.37337.0** : update to get the current layout. Select **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows.
* **[Third-party provider](</docs/en/third-party-integrations>) with sessions on your computer**: the current layout requires Claude Desktop v3.1623.0 or later, so check your version. To update, select **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows. If your organization turns off auto-updates, **Check for Updates…** is hidden, so ask your administrator for v3.1623.0 or later.
- * **Third-party provider with sessions on your organization’s infrastructure** : when your organization runs sessions on its own infrastructure rather than on your computer, Desktop keeps the earlier layout, and updating doesn’t change the layout. If you don’t know where your sessions run, ask your administrator.
-
-In the earlier layout, choose the environment and project folder above the prompt box, and the permission mode and model in the row under it. The earlier layout lacks the session details panel and saved local and SSH environments.
+ * **Third-party provider with sessions on your organization’s infrastructure** : the current layout requires Claude Desktop v4.29.0 or later, so check your version. If you’re on an older version, ask your administrator for v4.29.0 or later. If you don’t know where your sessions run, ask your administrator.
+
+In the earlier layout, choose the environment and any project folder or repository above the prompt box, and the permission mode and model in the row under it. The earlier layout lacks the session details panel and saved local and SSH environments.
###
Show diff (139 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -71,7 +71,7 @@
* **Use the suggestion** : press **Tab** or **Right arrow** to place it in the prompt box, edit it if you want, then press **Enter** to send it. Pressing **Enter** before you accept the suggestion doesn’t send it.
* **Write your own prompt** : start typing. The suggestion shows only while the prompt box is empty and has no attached files.
-Go to **Settings > Claude Code** and turn off **Prompt suggestions** under **Sessions** to stop suggestions in each session from the next time it starts or resumes.
+Turn off **Prompt suggestions** in **Settings > Code** or **Settings > Claude Code** to stop suggestions. Each session stops showing them the next time it starts or resumes.
###
@@ -100,7 +100,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request. Appears when auto mode is available; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions such as deleting a session, though not archiving one. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions such as deleting a session, though not archiving one. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**. On Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
@@ -133,7 +133,7 @@
* Start or stop servers, or stop them all at once, from the **Dev servers** menu in the Browser pane’s header
* Choose whether the Browser keeps cookies after you quit the app with **Keep cookies** in the Browser pane’s **⋮** menu, so you don’t have to sign in again during development
-Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Claude Code**.
+Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**.
###
@@ -176,7 +176,7 @@
Review changes with diff view
-After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
+After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. A cloud session’s diff against the base branch can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>). To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
* **macOS** : press **Cmd+Enter**
* **Windows** : press **Ctrl+Enter**
@@ -210,7 +210,7 @@
* **If the repository doesn’t allow auto-merge** : **Merge when ready** doesn’t turn on, so enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first
* **Earlier layout** : once the session has a pull request, click **CI** on its status bar.
-To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**.
+To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Code** or **Settings > Claude Code**.
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.In an SSH session, set up `git` and `gh` on the remote machine before you click **Create PR** , because Claude pushes the branch and runs `gh pr create` there. Install `gh` there yourself, because Desktop doesn’t prompt you to in an SSH session. Then check there that `git push` works and that `gh auth status` reports that you are logged in.
@@ -402,7 +402,17 @@
Turn on the toggle
-In the desktop app, go to **Settings > This computer > System**. Under **Computer use** , turn on **Enable computer use**. On Windows, the toggle takes effect immediately and setup is complete. On macOS, continue to the next step.If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
+In the desktop app, open **Settings** , then:
+
+ * **If the Settings menu lists This computer** : go to **This computer > System**
+ * **Otherwise** : go to **Capabilities**
+
+Under **Computer use** , turn on **Enable computer use** :
+
+ * **Windows** : the toggle takes effect immediately and setup is complete
+ * **macOS** : continue to the next step
+
+If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
3
@@ -429,7 +439,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full control| Click, type, drag, and use keyboard shortcuts| Everything else
-Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. The **Computer use** section in **Settings > This computer > System** includes these options:
+Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. In Settings, the **Computer use** section where you turned computer use on includes these options:
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -469,10 +479,10 @@
Worktrees are stored in `<project-root>/.claude/worktrees/` by default. To store them in a custom directory instead:
- * **Local sessions** : set **Worktree location** in **Settings > Claude Code**
+ * **Local sessions** : set **Worktree location** in **Settings > Code** or **Settings > Claude Code**
* **SSH sessions** : set **Worktree folder** on the SSH connection
-You can also set a **Branch prefix** in **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
+You can also set a **Branch prefix** in **Settings > Code** or **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in [Cowork](<https://claude.com/product/cowork>) to help troubleshoot your setup.
@@ -493,7 +503,7 @@
Archive a session
-Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived. To archive a session, hover over it in the sidebar, open its menu, and select **Archive**. The session moves to your archived sessions. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Claude Code**. Cloud sessions and sessions that are still running don’t archive themselves.
+Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived. To archive a session, hover over it in the sidebar, open its menu, and select **Archive**. The session moves to your archived sessions. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Code** or **Settings > Claude Code**. Cloud sessions and sessions that are still running don’t archive themselves.
####
@@ -614,12 +624,12 @@
A local session shows up on your other devices once [Remote Control](</docs/en/remote-control>) connects it. A connected session appears in the session list at [claude.ai/code](<https://claude.ai/code>) and in the Claude apps on devices signed in to your claude.ai account. A local session connects when you turn Remote Control on for it, or when it connects automatically as it starts:
* **You turn it on for that session** : with the session’s **Remote Control** switch, or by typing `/remote-control` in its prompt box.
- * **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Claude Code**. If you’ve never changed that setting, Desktop follows [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) in your user or managed settings, then your organization’s default.
+ * **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Code** or **Settings > Claude Code**. If you’ve never changed that setting, Desktop follows [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) in your user or managed settings, then your organization’s default.
To see whether a session is connected, check the **Remote Control** switch in the **Environment** card of its session details panel. To keep sessions off your other devices, turn Remote Control off at the level you need:
* **One session** : turn off its **Remote Control** switch. In a session that connected when it started, typing `/remote-control` leaves Remote Control on and shows `Remote Control is already on. This session connected automatically when it started.` Click **Turn off** on that line to disconnect.
- * **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over `remoteControlAtStartup` and the defaults.
+ * **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Code** or **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over `remoteControlAtStartup` and the defaults.
* **Any session on this computer, including the CLI** : set [`disableRemoteControl`](</docs/en/settings-reference#disableremotecontrol>) to `true` in `~/.claude/settings.json` to stop sessions from connecting. A session that was already connected when you saved the file stays connected until you turn Remote Control off for it.
To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
@@ -669,7 +679,7 @@
* **Connectors is grayed out in a WSL session** : see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>)
* **Cloud sessions** : see [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>)
-Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, go to **Settings > Connectors** in the desktop app. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, click **Customize** in the sidebar and open **Connectors**. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -2161,7 +2171,7 @@
`--model sonnet`| Model picker in the row under the prompt box
`--resume`, `--continue`| Click a session in the sidebar, or type `/resume` in the prompt box to pick up a session you started from the CLI
`--permission-mode`| Mode selector in the row under the prompt box
-`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
+`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable “Allow bypass permissions mode” in **Settings > Code** or **Settings > Claude Code**; on Team and Enterprise plans, organization policy controls it
`--add-dir`| Add folders to a session in local and SSH sessions, or select several repositories in a cloud session
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode
@@ -2231,7 +2241,7 @@
* **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
- * `/config` opens **Settings > Claude Code**.
+ * `/config` opens **Settings > Code** or **Settings > Claude Code**.
##
--- a/desktop.md
+++ b/desktop.md
@@ -104,7 +104,7 @@
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
-Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
+Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>) for more on this workflow.
Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions isn’t available in cloud sessions, including sessions in a [self-hosted environment](</docs/en/self-hosted-environments>). Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
@@ -176,7 +176,7 @@
Review changes with diff view
-After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
+After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. To comment on specific lines, hover over a line and click the **+** that appears beside its line number to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
* **macOS** : press **Cmd+Enter**
* **Windows** : press **Ctrl+Enter**
@@ -313,7 +313,7 @@
* **Cmd+Ctrl** : press **Ctrl+Alt**
* **Cmd** : press **Ctrl**
-Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
+Shortcuts that start with `Ctrl` stay the same on every platform.
Shortcut| Action
---|---
@@ -322,7 +322,7 @@
`Cmd` `Option` `1`–`9`| On the new session screen in the current layout, select an environment
`Cmd` `Option` `0`| On the new session screen in the current layout, open the **New environment** dialog
`Cmd` `W`| Close session
-`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Next or previous session
+`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Switch between sessions
`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
`Esc`| Stop Claude’s response
`Tab` / `Right arrow`| Accept the suggested prompt in an empty prompt box
@@ -448,7 +448,7 @@
Work in parallel with sessions
-Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. You can also open a second session next to the current session or in a window of its own:
+Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to switch between sessions. You can also open a second session next to the current session or in a window of its own:
* **Side by side** : hold **Option** on macOS or **Alt** on Windows and click a session in the sidebar, or right-click the session and select **Open in** , then **Split view**
* **In its own window** : hold **Cmd** on macOS or **Ctrl** on Windows and click a session, or right-click the session and select **Open in** , then **New window**
@@ -461,9 +461,10 @@
Run a session in its own worktree
-In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. Click the project folder control in the row under the prompt box and turn on **Worktree**.
-
- * **With asaved environment**: set **Worktree** when you create or edit the environment
+In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. On the current layout, turn on the **Worktree** button in the row under the prompt box.
+
+ * **With a[third-party provider](</docs/en/third-party-integrations>)**: if the row under the prompt box shows the project folder control but no **Worktree** button, click that control and turn on **Worktree**
+ * **As the default for asaved local or SSH environment**: set **Worktree** when you create or edit the environment
* **Earlier layout** : select the **worktree** checkbox beside the branch name, above the prompt box
Worktrees are stored in `<project-root>/.claude/worktrees/` by default. To store them in a custom directory instead:
Show diff (213 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1140,7 +1140,12 @@
* **System** : an x86_64 or arm64 processor. The machine also has to meet Claude Code’s [system requirements](</docs/en/setup#system-requirements>). On Linux, Claude Code needs glibc 2.17 or later, or musl. To see which one the machine has, run `ldd --version` there. On a musl-based distribution such as Alpine Linux, also install the [packages that Claude Code needs](</docs/en/setup#alpine-linux-and-musl-based-distributions>).
* **SFTP** : the SSH server has to offer the SFTP subsystem, which a `Subsystem sftp` line in its `sshd_config` turns on. To check, connect to the same host and port with `sftp` in a terminal on your computer. A working server shows the `sftp>` prompt.
- * **Sessions per connection** : Desktop on macOS and Linux opens several sessions on one SSH connection. If the server’s `sshd_config` sets `MaxSessions 1`, raise it, for example to OpenSSH’s default of 10.
+ * **`MaxSessions 1` on the server**: to connect to a server whose `sshd_config` sets `MaxSessions 1`, do one of these:
+ * **Your computer runs macOS or Linux** : update to Claude Desktop v3.1623.0 or later
+ * **Your computer runs Windows** : make sure that Desktop connects through the OpenSSH client, because Desktop’s built-in SSH client can’t connect to that server
+ * **You can change the server** : raise `MaxSessions`, for example to OpenSSH’s default of 10
+ * **Logins with`MaxSessions 1`**: use a login that works without a prompt, such as a key that your SSH agent holds. Desktop logs in at least twice each time it connects or reconnects. Expect at least one more login for each terminal tab, and for each Desktop session in which you run commands that start with `!`. Expect none for commands that Claude runs.
+ * **One-time codes with`MaxSessions 1`**: if every login prompts you, as with one-time codes, `!` commands fail. Run those commands in a terminal tab instead, which prompts in its own pane.
* **Install folder** : Desktop installs a helper program and Claude Code under `~/.claude/remote/` in your home directory. It runs them from there, so that folder can’t be on a file system mounted `noexec`. Allow about 1 GB of disk space in the home directory of each user who connects. For what that folder holds, see Files and processes on the remote machine.
* **Shell** : the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and `sh` do
* **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. On a Linux remote machine, if those requests need a proxy, set it for SSH sessions.
@@ -1149,9 +1154,33 @@
+Check a remote machine’s host key
+
+A host key is the key that a remote machine presents to prove which machine it is, and a fingerprint is a short form of that key. When you trust a key, your computer saves it and connects to whatever presents it, without asking again. Check a key before you trust it, because something may be intercepting the connection. First find which machine the key belongs to, from where you see the fingerprint:
+
+ * **Desktop asks`Connect to <host> for the first time?`, or you selected Review new key**: the machine that Desktop names, `<host>`
+ * **Desktop asks`Connect through <jump host> for the first time?`**: the jump host, which is the machine that your connection passes through, not the machine that you want to reach
+ * **`ssh` asks or warns in a terminal**: the machine that its message names, which may not be the one that you typed
+
+Get that machine’s own fingerprint from the machine, not over the connection that you’re checking:
+
+ * **Someone else manages the machine** : ask them for its host key fingerprint
+ * **You manage it, and it runs Linux or macOS** : run `ssh-keygen -lf /etc/ssh/ssh_host_<type>_key.pub` on it, at its console or over a connection that you already trust. For `<type>`, use the key type that Desktop or `ssh` shows beside the fingerprint, in lowercase: `ed25519` for `ED25519` or `ssh-ed25519`.
+
+Then compare the machine’s own fingerprint with the one that you were shown:
+
+ * **They match** : trust the key. Select **Trust and connect** or **Trust new key** in Desktop, or answer `yes` in the terminal.
+ * **They differ, or you can’t check** : don’t connect. Select **Cancel** in Desktop, or answer `no` in the terminal. If someone else manages the machine, tell them which fingerprint you were shown.
+
+If a troubleshooting step sent you here, go back to that step after either result.
+
+####
+
+
+
Set a proxy or a CA certificate for SSH sessions
-If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. An SSH session doesn’t get them from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** or **Authentication failed** , and signing in again doesn’t help.
+If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. In an SSH session, Claude Code doesn’t get the variables from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** or **Authentication failed** , and signing in again doesn’t help.
1
@@ -1200,17 +1229,36 @@
-Use your SSH configuration on macOS and Linux
-
-On macOS and Linux, Desktop connects by running the OpenSSH client on your computer, so it uses your `~/.ssh/config`. Connecting through the OpenSSH client requires Claude Desktop v1.37937.0 or later. Enter a `Host` name from that file in the **SSH host** field to use settings from its entry, such as `HostName`, `User`, `IdentityFile`, `CertificateFile`, `ProxyJump`, and `ProxyCommand`. Before you add the connection, check the client and the entry in a terminal on your computer:
-
- * **Client version** : run `ssh -V`. The client has to be OpenSSH 7.6 or later.
- * **Entry** : run `ssh` with the `Host` name, such as `ssh devbox`. If that fails, fix the entry first.
+Use your SSH configuration
+
+You can use your SSH configuration on macOS, Linux, and Windows when Desktop connects through the OpenSSH client on your computer:
+
+ * **macOS and Linux** : Desktop connects by running the OpenSSH client on your computer, so it uses your `~/.ssh/config`. Connecting through the OpenSSH client requires Claude Desktop v1.37937.0 or later.
+ * **Windows** : when Desktop connects through the OpenSSH client, it uses your `%USERPROFILE%\.ssh\config`. If you use a Claude account rather than a third-party provider, connecting through the OpenSSH client requires all of these:
+ * Claude Desktop v2.2553.0 or later. To find your version, see Check your version.
+ * Microsoft’s OpenSSH 9.4 or later
+ * Desktop installed with the download buttons at the top of this page, because Desktop from the Microsoft Store doesn’t connect through the OpenSSH client
+If you can’t meet these requirements, or you use a third-party provider, see Connect on Windows without the OpenSSH client.
+
+With the OpenSSH client, enter a `Host` name from your configuration file in the **SSH host** field. Desktop then uses settings from that `Host` entry, such as `HostName`, `User`, `IdentityFile`, `CertificateFile`, `ProxyJump`, and `ProxyCommand`. Before you add the connection, check the client and the entry in a terminal on your computer:
+
+ * **Client version on macOS and Linux** : run `ssh -V`. The client has to be OpenSSH 7.6 or later.
+ * **Client version on Windows** : Desktop tries the `ssh` on your `PATH` first, so run `ssh -V`. The client passes if the output shows `OpenSSH_for_Windows_` and 9.4 or later. If it doesn’t pass, check the two folders that Desktop tries next: run `.\ssh.exe -V` in `C:\Windows\System32\OpenSSH`, then in `C:\Program Files\OpenSSH`.
+ * **No client passes on Windows** : add the **OpenSSH Client** optional feature in Windows and install pending Windows updates, or install [Microsoft’s newer build](<https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/upgrade-in-box-openssh-to-latest-openssh-release>). Then quit and reopen Desktop. To see whether Desktop found a usable OpenSSH client, look in `ssh.log` for `Windows OpenSSH client:` and a version, or for `no usable Windows OpenSSH client`.
+ * **Entry** : on Windows, use the client that passed the version check. Run `ssh` with the `Host` name, such as `ssh devbox`. If that fails, fix the entry first.
You can leave the **SSH port** and **SSH key (optional)** fields empty. If you fill one in, Desktop uses it with the entry:
* **SSH port** : a value here overrides the entry’s `Port`
- * **SSH key (optional)** : Desktop offers the key file you pick in addition to the entry’s `IdentityFile` and the keys in your SSH agent
+ * **SSH key (optional)** : with the OpenSSH client, Desktop offers the key file you pick in addition to the entry’s `IdentityFile` and the keys in your SSH agent. On Windows, pick a key in OpenSSH format, because `ssh` doesn’t read a PuTTY `.ppk` file.
+
+##### Connect on Windows without the OpenSSH client
+
+On Windows, you connect through Desktop’s built-in SSH client if your computer doesn’t meet the requirements for the OpenSSH client. With a third-party provider, you connect through the built-in client by default, and your administrator can change that. For the setting, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>). With the built-in client, you can still enter a `Host` name from your SSH configuration in the **SSH host** field if your `PATH` has an `ssh` command, with these limits:
+
+ * **Settings from the entry** : Desktop takes `HostName`, `User`, `Port`, and `IdentityFile`. It also takes `ProxyCommand` if an `sh` shell is on your `PATH`.
+ * **SSH key (optional)** : leave this field empty to keep the entry’s `IdentityFile`, because a key file that you pick here replaces the `IdentityFile`
+ * **`CertificateFile` and `ProxyJump`**: Desktop ignores `CertificateFile`, and the connection fails if the entry sets `ProxyJump`. To use either setting, connect through the OpenSSH client.
##### Reach a machine behind a jump host
@@ -1271,11 +1319,11 @@
##### Use variables from your shell in a `ProxyCommand`
-To use an environment variable of your own in a `ProxyCommand` or `Match exec` command, export it in a shell startup file, such as `~/.zshrc`, then quit and reopen Desktop. When Desktop starts, it reads what your login shell exports, and it keeps those values until you quit. This requires Claude Desktop v2.37337.0 or later and an `env` command that accepts `-0`, which you can check by running `env -0` in a terminal on your computer.
+On macOS and Linux, to use an environment variable of your own in a `ProxyCommand` or `Match exec` command, export it in a shell startup file, such as `~/.zshrc`. Then quit and reopen Desktop. When Desktop starts, it reads what your login shell exports, and it keeps those values until you quit. This requires Claude Desktop v2.37337.0 or later and an `env` command that accepts `-0`, which you can check by running `env -0` in a terminal on your computer.
If your shell sets temporary AWS credentials, give the AWS CLI a profile instead of exporting `AWS_*` variables.
-##### Use AWS credentials in a `ProxyCommand`
+##### Use AWS credentials in a `ProxyCommand` on macOS and Linux
If you set temporary AWS credentials in a shell startup file, a `ProxyCommand` that runs the AWS CLI can connect in a terminal and fail in Desktop. When your shell exports `AWS_SESSION_TOKEN`, `AWS_SECURITY_TOKEN`, or `AWS_CREDENTIAL_EXPIRATION`, `ssh` and your `ProxyCommand` in Desktop don’t get the shell’s AWS credentials, `AWS_REGION`, or `AWS_PROFILE`. If the AWS CLI has no other source for a region or credentials, it fails with `You must specify a region` or `Unable to locate credentials`. To connect from Desktop, give the AWS CLI a profile that it reads from `~/.aws/config`:
@@ -1406,8 +1454,9 @@
##### Prepare a long task
- * **Update first** : update Desktop before you start a long task. On macOS and Windows, Desktop can restart on its own to install an update that it has downloaded. That restart waits while Claude is working on an SSH task. On macOS with a Claude account, by default the restart can go ahead anyway once the update has waited 72 hours.
- * **Don’t quit on Windows, or before v2.42304.0 with a third-party provider** : after a quit there you lose the running task, so leave Desktop open during the task. In any other case, see what you get back before you quit.
+ * **Update first** : update Desktop before you start a long task. On macOS and Windows, Desktop can restart on its own to install an update that it has downloaded. That restart waits while Claude is working on an SSH task. By default, once the update has waited 72 hours, the restart can go ahead during the task if Desktop can rejoin the task afterward.
+ * **Check before you quit** : you don’t always get the running task back after a quit or restart, for example after some Desktop updates. For the cases, see Reopen a session after you quit Desktop.
+ * **On an older version, leave Desktop open** : on Windows with Claude Desktop before v3.1623.0, you don’t get the running task back after Desktop quits or restarts. The same is true with a third-party provider on macOS or Linux before v2.42304.0. In both cases, leave Desktop open during the task. To find your version, see Check your version.
* **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.
@@ -1474,11 +1523,11 @@
After you quit Desktop, the task keeps running on the remote machine, but it stops when the session opens again unless Desktop can rejoin its process. While Desktop is closed, the task runs until it finishes, needs you, or reaches one of the limits.
- * **Desktop on Windows** : you don’t get the running task back, because Desktop never rejoins after a quit. Start Desktop again only when you expect the task to be done, because the session can open as Desktop starts.
- * **Third-party provider, task from an earlier version** : if you started the task in a Desktop version before v2.42304.0, you don’t get it back on macOS or Linux either. Start Desktop again only when you expect the task to be done.
- * **Any other task, with Desktop on macOS or Linux** : start Desktop and open the session, and the task goes on if Desktop rejoins. It can’t always rejoin, for example after some Desktop updates, so update before a long task.
-
-When Desktop can’t rejoin, you also lose any approval or question that was waiting for you. If the task doesn’t continue on its own, send a message, and Claude continues from the conversation’s saved history. For third-party deployments, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+ * **Desktop on Windows, task started in a version before v3.1623.0** : you don’t get the task back, even if Desktop has updated since. Start Desktop again only when you expect the task to be done, because the session can open as Desktop starts, and the task stops when the session opens. If you don’t know which version you started the task in, also wait until you expect it to be done.
+ * **Third-party provider on macOS or Linux, task started in a version before v2.42304.0** : you don’t get the task back. Start Desktop again only when you expect the task to be done.
+ * **Any other task** : start Desktop and open the session, and the task goes on if Desktop rejoins. It can’t always rejoin, for example after some Desktop updates, so update before a long task.
+
+When the task stops, the session can show `Restarting Claude Code on <host>…` while Desktop starts a new process. You also lose any approval or question that was waiting for you. If Claude doesn’t continue on its own, send a message, and Claude continues from the conversation’s saved history. For third-party deployments, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
While a conversation’s Claude Code process is still running, don’t run [`claude --resume`](</docs/en/cli-reference#cli-flags>) for it on the remote machine. Claude Code doesn’t stop you, and both processes then write to the same conversation. If you aren’t sure, add `--fork-session`, which continues in a copy of the conversation, but both processes still work on the same files.
@@ -1569,7 +1618,7 @@
##### See who connected to the remote machine
-To find out who connected to a remote machine, read the SSH server’s log on that machine, where a login from Desktop looks like one from a terminal. With Desktop on macOS or Linux, expect an entry each time Desktop connects, not one for each session. You won’t find Desktop’s SSH connections in Claude Code’s [metrics and events](</docs/en/monitoring-usage#available-metrics-and-events>). To find out from them which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>). For Desktop’s own record of its connections, see Get Desktop’s logs for an SSH problem.
+To find out who connected to a remote machine, read the SSH server’s log on that machine, where a login from Desktop looks like one from a terminal. With Desktop on macOS or Linux, expect an entry each time Desktop connects, not one for each session. If the server sets `MaxSessions 1`, expect at least two entries each time Desktop connects or reconnects. Expect at least one more for each terminal tab, and for each Desktop session in which you run commands that start with `!`. You won’t find Desktop’s SSH connections in Claude Code’s [metrics and events](</docs/en/monitoring-usage#available-metrics-and-events>). To find out from them which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>). For Desktop’s own record of its connections, see Get Desktop’s logs for an SSH problem.
####
@@ -2288,6 +2337,56 @@
+SSH host key verification failed
+
+Each of these messages means that Desktop refused a host key:
+
+ * `SSH host key verification failed` or `Host denied (verification failed)` under **View details** on a `Couldn't connect to <host>` card
+ * `Connection failed: Host key changed or not trusted` by the prompt box or after **Test connection**
+ * `<host>'s host key is not trusted` or `<host>'s host key has changed` on a disconnected session
+
+Desktop usually refuses a key because it differs from the one saved on your computer, or because no key is saved for that machine. A machine that was rebuilt or reinstalled usually presents a new key, and so does something that intercepts the connection. Check the key before you connect again, starting from what Desktop shows with the message:
+
+ * **You’re on Windows, and Desktop says`Connection failed: Host key changed or not trusted`**: first rule out a missing OpenSSH client
+ * **Desktop tells you to set`UserKnownHostsFile`**: in `~/.ssh/config`, set it to `~/.ssh/known_hosts`, then check the key from a terminal
+ * **You see a Review new key button** : select it, and compare the fingerprint that Desktop shows with the machine’s own. If they match, select **Trust new key** to replace the saved key. Otherwise select **Cancel**.
+ * **You see no Review new key button, Desktop shows`Couldn't show the new key`, or Desktop refuses the key again after Trust new key**: check the key from a terminal
+
+####
+
+
+
+Check the host key from a terminal
+
+Run `ssh <SSH host>` on your computer, with the **SSH host** value of your SSH connection in Desktop. Add `-p <SSH port>` if the connection has an **SSH port** value. On Windows, use PowerShell, because Desktop doesn’t connect with the `ssh` in Git Bash or WSL. If PowerShell finds no `ssh`, install Microsoft’s OpenSSH client. Note which machine `ssh` names in its message, which can be a jump host and not `<SSH host>`, then follow the case that fits:
+
+ * **`ssh` asks whether to continue connecting**: compare the fingerprint that it shows with that machine’s own. Answer `yes` only if they match.
+ * **`ssh` warns that the host key has changed**: compare the warning’s fingerprint with that machine’s own. Only if they match, delete the line that `Offending <type> key in <file>:<line>` names and rerun `ssh`. If `ssh` warns again about another line, compare, delete and rerun as before.
+ * **`ssh` refuses a key that it doesn’t know, without asking**: get that machine’s `known_hosts` line from whoever manages it, not over the connection that you’re checking. Add the line to your `known_hosts` file, with the name from `ssh`’s message as its host name, and rerun `ssh`.
+ * **`ssh` goes on to sign in without asking you about the host key**: don’t type a password yet. Check the keys that `ssh` already trusts.
+
+Once `ssh` accepts a key that you checked or added, retry in Desktop. If Desktop refuses the key again, see Get Desktop’s logs for an SSH problem.
+
+##### Check the keys that `ssh` already trusts
+
+Rerun the same `ssh` command with `-v -S none` added. In its output, a `Server host key:` line shows a fingerprint, and the next `Host '<name>' is known` line names the machine that it belongs to. Compare each fingerprint that you find with that machine’s own.
+
+ * **A jump host has no`Server host key:` line**: run `ssh -v -S none <jump host>` too, and compare that fingerprint in the same way.
+ * **A fingerprint doesn’t match, or you can’t check it** : don’t connect again. Remove the saved key: under `Host '<name>' is known`, the line `Found key in <file>:<line>` names the file that holds it. Run `ssh-keygen -R "<name>" -f <file>`. If you keep host keys in more than one file, remove the key from each. If you can’t change a file, tell whoever manages your computer.
+ * **Every fingerprint matches** : retry in Desktop. If Desktop refuses the key again, see Get Desktop’s logs for an SSH problem.
+
+###
+
+
+
+SSH host key refused on Windows without an OpenSSH client
+
+On Windows without an OpenSSH client, Desktop refuses even a correct host key, with `Connection failed: Host key changed or not trusted`. It needs the client to look up saved keys. To see whether you have one, run `ssh` in PowerShell. If PowerShell doesn’t recognize `ssh`, install [Microsoft’s OpenSSH client](<https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse>) and restart Desktop. Then connect again. If Desktop asks whether to connect for the first time, check the machine’s host key before you trust it. If Desktop still refuses the key, follow the other cases under SSH host key verification failed.
+
+###
+
+
+
SSH connection fails after you log in
Find the card’s title, or the code that ends the error message, in this table, then do what the last column says. To see the message, select **View details** on the failure card.
@@ -2296,7 +2395,7 @@
---|---|---
`<host>'s SSH server has SFTP turned off`| `[SFTP_UNAVAILABLE]`| Turn on SFTP in the server’s `sshd_config`, as described under remote machine requirements
`SFTP doesn't start on <host>`| `[SFTP_NOT_STARTED]`| Connect to the same host with `sftp` in a terminal on your computer to see what stops it, then check the settings and files that Desktop’s message names
-`<host> allows too few SSH sessions per connection`| `[SESSION_LIMIT]`| Raise `MaxSessions` in the server’s `sshd_config`, for example to OpenSSH’s default of 10
+`<host> allows too few SSH sessions per connection`| `[SESSION_LIMIT]`| Update to Claude Desktop v3.1623.0 or later, or raise `MaxSessions` in the server’s `sshd_config`, for example to OpenSSH’s default of 10
`<host> is out of disk space`| `[ENOSPC]` or `[EDQUOT]`| Free space or quota on the remote machine, in your home directory or `/tmp`
`Free up disk space on this computer`| `[ENOSPC]` or `[EDQUOT]`, in a message that starts with `Couldn't prepare the deploy locally`| Free space on your computer
`Claude Code won't start on <host>`| `[CLI_UNRESPONSIVE]`| Wait a minute, then try again. If it keeps failing, run the command that the message names on the remote machine to see whether Claude Code answers there.
--- a/desktop.md
+++ b/desktop.md
@@ -243,7 +243,7 @@
Hide or show the session details panel
-To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu when the window is narrow. If you still don’t see the panel, check which Code tab layout you have.
+To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu. If you still don’t see the panel, check which Code tab layout you have.
###
@@ -948,7 +948,7 @@
[`CLAUDE_CONFIG_DIR`](</docs/en/env-vars#variables>) or [`CLAUDE_CODE_TMPDIR`](</docs/en/env-vars#variables>)| Set it in one of the places you’d set a variable for dev servers, then quit and reopen Desktop
`API_TIMEOUT_MS`, `ANTHROPIC_BASE_URL`, or another variable Desktop sets itself| See Environment variables Desktop sets itself
-On macOS or Linux, if you already set your variable with `export` in `~/.zshrc` or `~/.bashrc`, see Exported variable missing or wrong in commands Claude runs.
+On macOS or Linux, if a variable you set with `export` is missing or wrong in a command Claude runs, see Exported variable missing or wrong in commands Claude runs.
####
@@ -1038,7 +1038,7 @@
Use a saved environment
-Add the variable to a saved local environment, then start a new session from that environment. For a variable such as `PATH` or `CLAUDE_CONFIG_DIR`, follow its own instructions instead.
+Add the variable to a saved local environment, then start a new session from that environment. For a variable such as `PATH`, `CLAUDE_CONFIG_DIR`, or `API_TIMEOUT_MS`, follow its own instructions instead.
Before v2.1.304, Claude Code doesn’t pass exported variables to commands, so check which version the session runs.
Show diff (252 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -937,9 +937,18 @@
-Local sessions
-
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to give Claude Code `PATH` and a fixed set of Claude Code variables, but not other variables you export there. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles.
+Environment variables in local sessions
+
+To set an environment variable for a local session, add it to a saved local environment, then start a new session from that environment. Variables such as `PATH` and `CLAUDE_CONFIG_DIR` have their own instructions:
+
+Variable| What to do instead
+---|---
+`PATH`, the folders your system searches for programs such as `npm`| See Session not finding installed tools. On Windows, Desktop doesn’t read PowerShell profiles, so set `PATH` in your user or system environment variables, then quit and reopen Desktop.
+A variable for an MCP server from `claude_desktop_config.json`| Quit Desktop, set it in that server’s `env` block, then reopen Desktop
+[`CLAUDE_CONFIG_DIR`](</docs/en/env-vars#variables>) or [`CLAUDE_CODE_TMPDIR`](</docs/en/env-vars#variables>)| Set it in one of the places you’d set a variable for dev servers, then quit and reopen Desktop
+`API_TIMEOUT_MS`, `ANTHROPIC_BASE_URL`, or another variable Desktop sets itself| See Environment variables Desktop sets itself
+
+On macOS or Linux, if you already set your variable with `export` in `~/.zshrc` or `~/.bashrc`, see Exported variable missing or wrong in commands Claude runs.
####
@@ -953,9 +962,10 @@
1
-Open the environment's form
-
-Open **New environment** or **Edit environment**.
+Open a local environment's form
+
+ * **To create a saved local environment** : select **New environment** at the bottom of the environment selector’s menu, then the **Local** tab
+ * **To change one you already have** : in the environment selector, hover over a saved environment under **Local** and click the gear icon to open **Edit environment**
2
@@ -1002,6 +1012,40 @@
+Exported variable missing or wrong in commands Claude runs
+
+If a command Claude runs on macOS or Linux doesn’t get a variable you set with `export` in `~/.zshrc` or `~/.bashrc`, or gets the wrong value, try these in order:
+
+1
+
+Start a new session
+
+Ask Claude to run the command again.
+
+2
+
+Quit and reopen Desktop
+
+Then start a new session.
+
+3
+
+Check your saved variables
+
+If a command gets the wrong value, check whether you also set the variable in a saved environment or the local environment editor. If so, change the value there and start a new session.
+
+4
+
+Use a saved environment
+
+Add the variable to a saved local environment, then start a new session from that environment. For a variable such as `PATH` or `CLAUDE_CONFIG_DIR`, follow its own instructions instead.
+
+Before v2.1.304, Claude Code doesn’t pass exported variables to commands, so check which version the session runs.
+
+####
+
+
+
Environment variables Desktop sets itself
If you set `API_TIMEOUT_MS` or `ANTHROPIC_BASE_URL` and nothing changed in your local sessions, it’s because Desktop sets those [variables](</docs/en/env-vars#variables>), among others, itself. A local session gets Desktop’s value whether you set yours in your shell profile, your Windows user or system variables, the local environment editor, or a saved environment. Moving yours to a settings file doesn’t help, because Claude Code [ignores that value](</docs/en/settings-reference#how-env-values-interact-with-your-shell>) in a local session.
@@ -1025,7 +1069,7 @@
On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
-####
+###
@@ -1621,6 +1665,146 @@
* **The link isn’t valid** : Desktop shows a message that says what to fix, and doesn’t fill in the prompt.
* **Desktop is older than v2.110.0** : earlier versions ignore the SSH parameters and open the new-session page with only the prompt.
* **SSH sessions are turned off** : if your administrator sets the allowlist to an empty array, Desktop refuses SSH links.
+
+####
+
+
+
+Create an SSH connection from a command
+
+If a command-line tool makes your remote machines on demand, add its command to `sshHostCommands` in [`~/.claude/settings.json`](</docs/en/settings#settings-files>). The environment selector then lists an item named after your entry, such as **Create Dev box**. When you select it, Desktop runs the command on your computer, saves the host that the command prints as an SSH connection, and connects.
+
+Connections from a command require Claude Desktop v3.6556.0 or later on macOS or Linux, signed in with a Claude account. Administrators can distribute commands to a team.
+
+Each entry is one connection, with one host at a time. Desktop runs the command only when you create the connection or replace its host, not each time you connect. To keep two machines at once, add a second entry.
+
+Desktop doesn’t stop or delete machines. Each of these keeps running, and can keep costing money, until you delete it with your tool:
+
+ * A host that you replaced
+ * The host of an entry that you removed from the file, or whose `id` you changed
+ * A machine that your command made without Desktop saving its host, for example in these cases:
+ * The command fails or runs out of time
+ * Desktop can’t use the printed host, another connection already uses it, or your organization doesn’t allow it
+ * While the command runs, you cancel it, remove its entry, change its `command` or `id`, or quit Desktop
+
+The following example adds a connection named Dev box. If the file doesn’t exist, create it. If it already holds settings, add the key beside them. The command `acme-dev create` stands for your own tool, and `~/project` is the folder that Desktop selects on each machine your command makes:
+
+~/.claude/settings.json
+
+ {
+ "sshHostCommands": [
+ {
+ "id": "devbox",
+ "name": "Dev box",
+ "command": "acme-dev create",
+ "startDirectory": "~/project"
+ }
+ ]
+ }
+
+Each entry takes these fields, and `id`, `name`, and `command` are required:
+
+Field| Value
+---|---
+`id`| Up to 64 ASCII letters, digits, `.`, `_`, and `-`, starting with a letter or digit. Use an `id` that no other entry in `sshHostCommands` or `sshConfigs` has. Desktop keeps the connection’s host under it, so if you change it, the connection starts over with no host and the old machine keeps running.
+`name`| The connection’s name in the environment selector, up to 200 characters on one line
+`command`| A program and its arguments, as Write the command describes
+`sshIdentityFile`| Path to your private key, such as `~/.ssh/id_ed25519`. Leave it out to use your SSH configuration or SSH agent.
+`startDirectory`| The default folder on the remote machine. Start it with `/` or `~/`, or use `~`.
+
+To change or remove the connection, edit its entry in the file, because the app’s SSH connection dialog doesn’t open for it. You don’t need to restart Desktop after you edit the file. If the entry doesn’t show up or you can’t select it, see If a command is missing or gray.
+
+##### Write the command
+
+Desktop starts the program directly, with no shell and no terminal:
+
+ * **Program** : write its name, or its full path from `/`, without spaces. Desktop looks for a bare name on the `PATH` that your login shell exports. Relative paths such as `./acme-dev`, paths that start with `~`, and shell aliases and functions don’t work.
+ * **Arguments** : separate plain arguments with spaces. The command can hold only spaces, ASCII letters, digits, and the characters `+,-./:=@_~`, and no word can start with `~`.
+ * **Scripts** : if the command needs anything else, such as quotes, pipes, variables, or a URL with `?` or `&`, put it in a script. Make the script executable, start it with a `#!` line, and set `command` to its full path, such as `/Users/you/bin/make-devbox`. On macOS, keep the script out of the Documents, Desktop, and Downloads folders, where macOS can block it.
+ * **Input** : the program gets no input and no terminal, so it can’t prompt you there. If your tool signs you in through a browser or a prompt, sign in from a terminal first, and again whenever that sign-in lapses.
+ * **Environment** : the program runs in your home directory with the variables that your login shell exports. Desktop reads them when it starts, as it does for a `ProxyCommand`, so quit and reopen Desktop after you change them.
+ * **Time limit** : Desktop stops a program that is still running after 10 minutes. Desktop’s progress message doesn’t show the program’s output. To stop the program sooner, select **Cancel** next to that message.
+
+The program has to exit with code 0 and print only the host on standard output, in one of two forms:
+
+ * **One line** : `host` or `user@host`, written as for `ssh_host` in an SSH link. To name a port, use the JSON form.
+ * **One JSON object** : `sshHost`, and optionally a numeric `sshPort` and a `startDirectory` that replaces the entry’s, such as `{"sshHost": "dev@devbox-1234.example.com", "sshPort": 2222}`
+
+To see the output that Desktop reads, run the command in a terminal with no input and with standard output in a file:
+
+ acme-dev create < /dev/null > host.txt
+
+The file has to hold only the host. When you run this test, your tool makes a machine too, so delete it with your tool afterward. If your tool prints other lines before the host, such as progress messages, wrap it in a script that prints only the host. The following script prints the last line of your tool’s output. If your tool fails, the script exits with the same code, so that Desktop reports the failure:
+
+ #!/bin/bash
+ out=$(mktemp) || exit
+ trap 'rm -f "$out"' EXIT
+ acme-dev create > "$out" || exit
+ tail -n 1 "$out"
+
+If the command fails, **View details** in Desktop’s message shows the last line that the command wrote to standard error, if any.
+
+##### Connect to a new host
+
+Answer two questions the first time you connect to each new host:
+
+ * **Host key** : with OpenSSH’s default host key checking, check the key’s fingerprint, then choose whether to connect. To skip the question, have your command add the key to `~/.ssh/known_hosts` before it prints the host, using a key that your tool learned when it made the machine. For a port other than 22, that line starts with `[host]:port`. If your tool reuses host names, remove the old key’s line too.
+ * **Folder** : choose whether you trust the folder that you open there
+
+Keep host key checking on for these hosts, and keep a `known_hosts` file for them. If `StrictHostKeyChecking` is `no` or `accept-new` and `UserKnownHostsFile` is also `/dev/null` or `none`, nothing records the key. When your tool then reuses a name, you can connect to a different machine without a warning.
+
+##### Replace the host
+
+Once Dev box has a host, the selector lists Dev box among your SSH connections, and **Create Dev box** becomes **Replace Dev box’s host**. If that item isn’t in the list, look under **More**. Select it when the machine is gone or you want a fresh one. On the new-session page, the message that says Desktop can’t reach the host offers it too. Desktop runs the command again, and new sessions use the new host.
+
+ * **A new host** : the item is gray for 10 minutes after Desktop saves a host, because a new machine can take a while to start. While a new host doesn’t answer, the new-session page keeps trying to connect for those 10 minutes.
+ * **Sessions on the old host** : they stay on it, and Desktop doesn’t connect to that host unless you add it back. To continue one, open the session and select **Add SSH connection**. Desktop fills in the old host. Save it as a connection of its own.
+
+##### Distribute commands to your team
+
+To give your team a connection, set `sshHostCommands` in Claude Code’s [managed settings](</docs/en/managed-settings>) file or MDM policy on each computer, not in the desktop app’s own device management policy. Users see your entries alongside their own, and the app offers no way to edit or remove an entry, theirs or yours. The following managed settings file gives users a connection named Dev box and turns off their own entries, along with Claude Code hooks from user, project, and local settings:
+
+managed-settings.json
+
+ {
+ "sshHostCommands": [
+ {
+ "id": "acme-devbox",
+ "name": "Dev box",
+ "command": "/usr/local/bin/acme-dev create"
+ }
+ ],
+ "strictPluginOnlyCustomization": ["hooks"]
+ }
+
+Before you deploy the key, settle each of these:
+
+ * **Where to put the key** : if your MDM policy for Claude Code already sets a [policy key](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), put it there. Otherwise, put it in the managed settings file. By default, such a policy outranks the file, and Desktop then ignores entries in the file. Set it on the computer even where [server-managed settings](</docs/en/server-managed-settings>) apply: Desktop ignores the key there, and in project and local settings.
+ * **The`id`**: if a user’s `sshHostCommands` entry has your `id`, only yours works. If any other SSH connection has it, such as one in a user’s `sshConfigs`, your entry is gray. Pick an `id` that users are unlikely to choose.
+ * **The program** : give its full path, because Desktop looks up a bare name on each user’s own `PATH`. The program runs as the user, with the variables that their login shell exports.
+ * **Users’ own entries** : Desktop treats a user’s entry like a [hook](</docs/en/hooks>), because both run a program on the computer. To allow only your entries, set [`strictPluginOnlyCustomization`](</docs/en/settings-reference#strictpluginonlycustomization>) to `["hooks"]`, or add `"hooks"` to its list. You also stop Claude Code hooks from user, project, and local settings, with no way to keep them. If you set that key or [`allowManagedHooksOnly`](</docs/en/settings-reference#allowmanagedhooksonly>) to `true` instead, you block more, as each key’s entry lists.
+ * **Every entry** : to turn off your entries too, set [`disableAllHooks`](</docs/en/settings-reference#disableallhooks>) in managed settings. If you set [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), or an `sshHostAllowlist` that allows no host, the selector lists no **Create** or **Replace** items.
+ * **Where the locks count** : for these entries, Desktop reads `allowManagedHooksOnly`, `strictPluginOnlyCustomization`, and `disableAllHooks` from server-managed settings and from the computer’s own file or policy, and applies the stricter result. Every entry stays gray until Desktop has checked claude.ai for server-managed settings, even if your organization has none.
+ * **Allowed hosts** : if you set `sshHostAllowlist`, make sure that a pattern matches each hostname that your tool prints, and leave `user@` out of the pattern. Desktop checks the printed name only after the command has run, so a machine that the list refuses already exists, and the user has to delete it with your tool. At each connection, the resolved `HostName` has to match too.
+
+After you deploy the key, restart Desktop on a test computer. In the Code tab’s environment selector, look under **SSH** , or in the single **SSH** row. Your entry shows as a **Create** item, or as a gray item that gives the reason when you hover over it. If it’s missing, check where you put the key, then the cases in If a command is missing or gray.
+
+##### If a command is missing or gray
+
+The environment selector lists no **Create** or **Replace** item in these cases:
+
+ * **The file** : `~/.claude/settings.json` has [invalid JSON or a value that the schema rejects](</docs/en/settings#fix-a-broken-settings-file>), you misspelled the key, or you put it in a project’s settings. Fix the file.
+ * **Platform and account** : you use Windows, or a [third-party provider](</docs/en/third-party-integrations>) instead of a Claude account. Add each host as an SSH connection yourself.
+ * **Your organization’s settings** : your administrator turned off local sessions, or turned off SSH sessions. Ask them whether you can use commands.
+ * **No`ssh` program**: Desktop couldn’t start the OpenSSH client on your computer. Install it, or ask your administrator to allow it, then restart Desktop.
+
+An entry that you can’t select is gray. Hover over it to see the reason:
+
+ * **A mistake in the entry** : fix the field or the command that the message names. If the `id` is in use, give the entry another one.
+ * **A broken settings file** : while your own settings file is broken, your administrator’s entries may be gray, with a message that names the file. [Fix the file](</docs/en/settings#fix-a-broken-settings-file>).
+ * **A new host** : you can replace a host once it’s 10 minutes old.
+ * **Hooks are off or restricted** : your own entries work only where your own hooks can run. Remove `disableAllHooks` from your settings, or ask your administrator.
+ * **Settings are still loading** : every entry is gray until Desktop has loaded your organization’s [server-managed settings](</docs/en/server-managed-settings>), usually a few seconds after launch. If the entries stay gray, check your connection to claude.ai.
####
@@ -1786,7 +1970,7 @@
Managed settings
-Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/managed-settings>) file or push them remotely through the admin console.
+Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/managed-settings>) file or push them remotely through the admin console, unless a key’s row says otherwise.
Key| Description
---|---
@@ -1797,6 +1981,7 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`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, signed in with a Claude account.
`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.
--- a/desktop.md
+++ b/desktop.md
@@ -589,7 +589,7 @@
* **Current layout** : in the row under the prompt box, once you select a cloud environment.
* **Earlier layout** : above the prompt box. To add another repository, click **+** beside the selected one.
-See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, select **Projects** in the sidebar to create a [project](</docs/en/claude-projects>), where Claude starts and tracks the sessions for you from one conversation.
+See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, use a [project](</docs/en/claude-projects>): Claude starts and tracks the sessions for you from one conversation. [Create a project](</docs/en/claude-projects#create-a-project>) has the steps.
A task in an SSH session can also keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
@@ -1179,7 +1179,7 @@
User alice
ProxyJump bastion.example.com
-Enter `devbox` in the **SSH host** field.
+Enter `devbox` in the **SSH host** field. If your administrator restricts SSH hosts, the jump host has to be on the list too. Run `ssh -G bastion.example.com` in a terminal on your computer, and ask them to allow the `hostname` that it prints.
##### Reach a container on a remote machine
@@ -1663,7 +1663,37 @@
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.
-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 `Host` aliases and `ProxyCommand`/`ProxyJump` entries are permitted as long as the resolved `HostName` matches. `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.
+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.
+
+##### Allow jump hosts
+
+Add each jump host that Desktop checks to `sshHostAllowlist`, by its own resolved `HostName`. Add the jump hosts before users update to Claude Desktop v3.1623.0 or later, or they can’t connect through them.
+
+The list has one kind of entry, so users can also start a session on any host that you list. List only jump hosts that you’d also let users run sessions on.
+
+Desktop checks jump hosts in the `ProxyJump` that the user’s `~/.ssh/config` sets for the session’s host, or in a `ProxyCommand` written as `ssh -W %h:%p <host>`. If one that it checks isn’t on the list when Desktop connects or reconnects a session, the connection fails. When a user starts a session or sends a message, the error’s details give that jump host’s `HostName`, which is the name to add:
+
+ SSH host "bastion.example.com" is not allowed by your organization's managed settings. It is a jump host on the way to "devbox".
+
+If the message says `managed settings on this computer`, add the name to the list on the user’s computer. If more than one jump host is missing, the error names one at a time. To find every name before users update, use a terminal on a user’s computer:
+
+1
+
+Find the route
+
+Run `ssh -G` with a host that users connect to, such as `ssh -G devbox`. Look for a `proxyjump` line, or a `proxycommand` line written as `ssh -W %h:%p <host>`. The command still counts with any of `-l`, `-p`, `-J`, `-q`, `-v`, `-N`, `-T`, `-x`, or `-a`, and the hosts after `-J` are jump hosts too. If a `proxycommand` line runs a program other than `ssh`, add nothing for it.
+
+2
+
+Look up each jump host
+
+Run `ssh -G` with each jump host on that line, without any `:port`, and note the `hostname` that it prints. If the output for the first jump host on that line has a line of either kind, repeat this step with it. Ignore such a line in a later jump host’s output.
+
+3
+
+Add the names
+
+Add each hostname, or a wildcard that covers it, to `sshHostAllowlist` in every managed source where you set a list. Then have users quit and reopen Desktop, because it fetches server-managed settings at launch.
####
@@ -1699,7 +1729,7 @@
When you adapt the example, check the hostnames, the Desktop version, and the file’s permissions:
- * **Hostnames** : make sure that a pattern in `sshHostAllowlist` matches the hostname of each `sshConfigs` entry, without `user@`, or developers can’t connect to it. For how Desktop matches a hostname, see Restrict which SSH hosts users can connect to.
+ * **Hostnames** : make sure that a pattern in `sshHostAllowlist` matches the hostname of each `sshConfigs` entry, without `user@`, or developers can’t connect to it. Also add a pattern that matches each jump host that Desktop checks on the way to it. For how Desktop matches a hostname, see Restrict which SSH hosts users can connect to.
* **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.
@@ -1966,7 +1996,7 @@
* **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
- * `/config` opens Settings → Claude Code. Text after the command is ignored, so `/config theme=dark` doesn’t set the theme.
+ * `/config` opens **Settings > Claude Code**.
##
@@ -2083,7 +2113,7 @@
`SFTP doesn't start on <host>`| `[SFTP_NOT_STARTED]`| Connect to the same host with `sftp` in a terminal on your computer to see what stops it, then check the settings and files that Desktop’s message names
`<host> allows too few SSH sessions per connection`| `[SESSION_LIMIT]`| Raise `MaxSessions` in the server’s `sshd_config`, for example to OpenSSH’s default of 10
`<host> is out of disk space`| `[ENOSPC]` or `[EDQUOT]`| Free space or quota on the remote machine, in your home directory or `/tmp`
-`This computer is out of disk space`| `[ENOSPC]` or `[EDQUOT]`, in a message that starts with `Couldn't prepare the deploy locally`| Free space on your computer
+`Free up disk space on this computer`| `[ENOSPC]` or `[EDQUOT]`, in a message that starts with `Couldn't prepare the deploy locally`| Free space on your computer
`Claude Code won't start on <host>`| `[CLI_UNRESPONSIVE]`| Wait a minute, then try again. If it keeps failing, run the command that the message names on the remote machine to see whether Claude Code answers there.
For any other message, check the remote machine requirements.
Show diff (185 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1,4 +1,4 @@
-The Claude Desktop app has three tabs: **Chat** for conversations, **Cowork** for [Dispatch and longer agentic work](<https://claude.com/product/cowork>), and **Code** for software development. This page is the reference for the Code tab.
+In the Claude Desktop app, Claude Code is the **Code** tab. The app also has chat and [Cowork](<https://claude.com/product/cowork>), which handles Dispatch and longer agentic work. This page is the reference for the Code tab.
## Download for macOS
@@ -220,7 +220,12 @@
Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Click **Terminal** , **Changes** , or **Browser** in the session’s title bar to open the terminal, diff, or Browser pane. The **⋮** menu beside them opens more panes, such as **Files** , and holds those buttons when the window is too narrow to show them. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. To open another pane, click its icon button in the session’s title bar. Hover to see each button’s name, such as **Terminal** , **Changes** for the diff view, **Browser** , and **Files**. If the pane you want has no button in the title bar, select it from the **⋮** menu beside the buttons:
+
+ * **When the window is narrow** : buttons that don’t fit move into the menu
+ * **For panes with no button** : panes such as **Background tasks** and **Plan** are listed once the session has something to show in those panes
+
+To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows to update.
@@ -230,7 +235,7 @@
See session details
-The session details panel is a set of cards beside the chat that show where the session runs, what it changed, and what it’s running. The panel appears after you start a session, while the chat is wide enough for it.
+The session details panel is a set of cards beside the chat that show where the session runs, what it changed, what it’s running, and its context usage. The panel appears after you start a session, while the chat is wide enough for it.
####
@@ -278,7 +283,7 @@
* **Attach as context** : add the file to your next prompt
* **Open in** : open the file in an installed editor such as VS Code, Cursor, or Zed
* **Show in Finder** on macOS, **Show in Explorer** on Windows: open the containing folder
- * **Copy path** : copy the absolute path to your clipboard
+ * **Copy** : a submenu that copies the file’s **Absolute path** , **Relative path** , or **Filename**
###
@@ -305,6 +310,7 @@
Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. The table in this section shows the macOS keys. On Windows and Linux, change these keys:
* **Cmd+Option** : press **Alt**
+ * **Cmd+Ctrl** : press **Ctrl+Alt**
* **Cmd** : press **Ctrl**
Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
@@ -325,6 +331,7 @@
`Cmd` `Shift` `S`| Select an element in the Browser
`Ctrl` ```| Toggle terminal pane
`Cmd` `\`| Close focused pane
+`Cmd` `Ctrl` `W`| Take focused session out of split view
`Cmd` `;`| Open side chat
`Ctrl` `O`| Cycle view modes
`Cmd` `Shift` `M`| Open permission mode menu
@@ -340,7 +347,12 @@
Check usage
-Click the usage ring next to the model picker to see your current context window usage and your plan usage for the period. Context usage is per session; plan usage is shared across all your Claude Code surfaces.
+To see how full this session’s context window is, find your Code tab layout:
+
+ * **Current layout** : the header of the **Context** card in the session details panel shows it as a percentage. Open the card to see what is using the window by category.
+ * **Earlier layout** : click the usage ring next to the model picker. Its popover shows your context window usage.
+
+In either layout, type `/context` in the prompt box to print a per-category breakdown of this session’s context window in the chat. Both layouts have the usage ring next to the model picker. Click it to see your plan usage, which is shared across all your Claude Code surfaces.
##
@@ -350,7 +362,7 @@
Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
-Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
+Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running. On macOS, computer use requires macOS 14 or later.
Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
@@ -436,7 +448,12 @@
Work in parallel with sessions
-Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session.
+Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. You can also open a second session next to the current session or in a window of its own:
+
+ * **Side by side** : hold **Option** on macOS or **Alt** on Windows and click a session in the sidebar, or right-click the session and select **Open in** , then **Split view**
+ * **In its own window** : hold **Cmd** on macOS or **Ctrl** on Windows and click a session, or right-click the session and select **Open in** , then **New window**
+
+In the split view, the pane you opened or clicked last has focus, and the other pane is dimmed. To change which session a pane shows, click in that pane to give it focus, then click a session in the sidebar. To take the focused session out of the split view, press **Cmd+Ctrl+W** on macOS or **Ctrl+Alt+W** on Windows.
####
@@ -456,7 +473,7 @@
You can also set a **Branch prefix** in **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
-Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
+Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in [Cowork](<https://claude.com/product/cowork>) to help troubleshoot your setup.
###
@@ -540,14 +557,26 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. For example, ask it to archive the sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. For example, ask it to archive the sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
* You get an approval card before Claude archives a session, except in Auto mode and Bypass permissions mode, where Claude can archive a session without one. To be asked, switch to Manual.
- * Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
* Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
-Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
+###
+
+
+
+Start a task that Claude suggests
+
+When Claude notices something worth fixing outside your current task, it suggests that work as a task. In local and SSH sessions on the current layout, the suggestion is a card in the chat, and its buttons either start the task or keep it in this session:
+
+ * **Start** : starts the task in another session. By default the task runs in the current session’s environment. The card then shows the started session’s state, and the sidebar lists the started session under the current session.
+ * **Do it here** : sends the task to the current session as a message
+ * **Options** : review or change settings such as the environment, model, worktree, and permissions before you click **Start**
+ * **Start all** : when the card lists several tasks, starts each task in its own session without waiting for one task to finish before starting the next
+
+In cloud sessions, and in local and SSH sessions on the earlier layout, the suggestion is a **Suggested task** card. To start the task where the card’s main button says, for example **Send to cloud** or **Start with worktree** , click that button. Click the caret beside the main button for other ways to start the task, including **Do it here**.
###
@@ -600,7 +629,23 @@
Sessions from Dispatch
-[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
+[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in [Cowork](<https://claude.com/product/cowork>). You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork.
+
+####
+
+
+
+Follow a session that Dispatch started
+
+The session that Dispatch starts appears in the Code tab’s sidebar with your other sessions. With the sidebar’s default grouping and sorting, look for the newest session in the group for the folder it runs in. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions.
+
+####
+
+
+
+Set up Dispatch
+
+For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
##
@@ -608,7 +653,7 @@
Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. [Cowork](<https://claude.com/product/cowork>) in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
###
@@ -848,7 +893,7 @@
Create a saved environment
-A saved environment is an entry in the environment selector that records where Claude runs, so you can start later sessions there. A local or SSH environment also holds the folders Claude works in. Saved local and SSH environments require Claude Desktop v2.37337.0 or later.
+A saved environment is an entry in the environment selector that records where Claude runs, so you can start later sessions there. A local or SSH environment also holds the folders Claude works in. Saved local and SSH environments are part of the current layout, so if you don’t see them, check which layout you have and how to get the current one.
1
@@ -1961,7 +2006,8 @@
If a new session has no environment selector under the prompt box, you have the earlier layout:
* **Desktop older than v2.37337.0** : update to get the current layout. Select **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows.
- * **[Third-party provider](</docs/en/third-party-integrations>)** : you keep the earlier layout, so there is nothing to do.
+ * **[Third-party provider](</docs/en/third-party-integrations>) with sessions on your computer**: the current layout requires Claude Desktop v3.1623.0 or later, so check your version. To update, select **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows. If your organization turns off auto-updates, **Check for Updates…** is hidden, so ask your administrator for v3.1623.0 or later.
+ * **Third-party provider with sessions on your organization’s infrastructure** : when your organization runs sessions on its own infrastructure rather than on your computer, Desktop keeps the earlier layout, and updating doesn’t change the layout. If you don’t know where your sessions run, ask your administrator.
In the earlier layout, choose the environment and project folder above the prompt box, and the permission mode and model in the row under it. The earlier layout lacks the session details panel and saved local and SSH environments.
--- a/desktop.md
+++ b/desktop.md
@@ -1782,6 +1782,7 @@
*.livepreview.claude.ai
claude.com
platform.claude.com
+ sso.claude.com
*.livepreview.claude.app
*.claudeusercontent.com
*.claudemcpcontent.com
Show diff (707 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -32,12 +32,15 @@
Start a session
-Before you send your first message, configure four things in the prompt area:
-
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for a cloud session that continues after you close the app, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). A task in an SSH session can keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires. See environment configuration.
- * **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
- * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
- * **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
+Before you send your first message, choose the environment, project folder, permission mode, and model in the row under the prompt box:
+
+ * **Environment** : use the environment selector, the first control in the row, to choose where Claude runs. See environment configuration.
+ * If a new session has no environment selector under the prompt box, follow the earlier layout’s steps.
+ * **Project folder** : click the project folder control, next to the environment selector, to choose the folder Claude works in.
+ * **Cloud session** : select repositories instead of a folder
+ * **Saved local or SSH environment** : the environment already holds its folders, so the row shows no project folder control. To change the folders, edit the environment.
+ * **Permission mode** : use the mode selector to choose how much autonomy Claude has. You can change the permission mode during the session.
+ * **Model** : pick a [model](</docs/en/model-config#available-models>) from the model picker toward the right end of the row. You can change the model during the session.
Type your task and press **Enter** to start. Each session tracks its own context and changes independently.
@@ -55,7 +58,7 @@
Use the prompt box
-Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Claude reads the correction as soon as the current action completes and adjusts before its next step. The **+** button next to the prompt box gives you access to file attachments, skills, connectors, and plugins.
+Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Claude reads the correction as soon as the current action completes and adjusts before its next step. Click the **+** button next to the prompt box for file attachments, skills, connectors, and plugins.
###
@@ -76,10 +79,12 @@
Add files and context to prompts
-The prompt box supports two ways to bring in external context:
-
- * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in cloud or WSL sessions.
- * **Attach files** : attach images, PDFs, and other files to your prompt using the attachment button, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
+To give Claude a file, @mention it or attach it in the prompt box:
+
+ * **@mention files** : type `@` followed by a filename to add a file to the conversation context.
+ * **In a cloud session** : `@` can list files only after you send your first message. If `@` lists none, send your first message without the file, then @mention the file in your next message.
+ * **Attach files** : attach images, PDFs, and other files to your prompt from the **+** button next to the prompt box, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
+ * **In a[WSL session](</docs/en/desktop-wsl>)**: if the **+** menu shows **Add image** instead of **Add files or photos** , you can attach only images. To give Claude any other file from the session’s folder, @mention it.
###
@@ -87,7 +92,7 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector in the row under the prompt box. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
Mode| Settings key| Behavior
---|---|---
@@ -117,11 +122,11 @@
Preview your app
-Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The Browser pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it there.
+Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane.
In an SSH session, Claude can’t open your app in the Browser pane, because it doesn’t have the pane’s tools there. To look at the app yourself, forward its port to your computer.
-From the Browser pane, you can:
+If the Browser pane isn’t open after Claude starts a server in a local session, click **Open** on the server’s card in the chat. From the Browser pane, you can:
* Interact with your running app directly in the Browser pane
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
@@ -171,7 +176,7 @@
Review changes with diff view
-After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. When Claude changes files, a diff stats indicator appears showing the number of lines added and removed, such as `+12 -1`. Click this indicator to open the diff viewer, which displays a file list on the left and the changes for each file on the right. To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
+After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. To open the diff view, click the line counts, such as `+12 -1`, in the **Changes** card of the session details panel. You can also click **Changes** in the session’s title bar. To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
* **macOS** : press **Cmd+Enter**
* **Windows** : press **Ctrl+Enter**
@@ -197,12 +202,15 @@
Monitor pull request status
-After you open a pull request, a CI status bar appears in the session. Claude Code uses the GitHub CLI to poll check results and surface failures.
-
- * **Auto-fix CI & address comments**: when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating. In a local session, Claude also addresses new review comments that someone other than you leaves, when the author is the repository’s owner, an organization member, a collaborator, or a GitHub App.
- * **Auto-merge when ready** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR.
-
-To turn these on, click **CI** in the status bar. To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**.
+To have Claude fix failing checks, or to have GitHub merge the pull request, turn on **Auto-fix** or **Merge when ready**. After you open a pull request, it appears in the **Changes** card of the session details panel with the status of its CI checks. Open the **⋮** menu beside its title:
+
+ * **Auto-fix** : in a local session, Claude also addresses new review comments that someone other than you leaves. The comment’s author has to be the repository’s owner, an organization member, a collaborator, or a GitHub App.
+ * **Merge when ready** : turns on GitHub’s auto-merge for the PR. In a local session, Desktop requests a squash merge unless the base branch uses a merge queue.
+ * **In SSH and WSL sessions** : **Merge when ready** is disabled, so turn on auto-merge for the pull request on GitHub
+ * **If the repository doesn’t allow auto-merge** : **Merge when ready** doesn’t turn on, so enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first
+ * **Earlier layout** : once the session has a pull request, click **CI** on its status bar.
+
+To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**.
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.In an SSH session, set up `git` and `gh` on the remote machine before you click **Create PR** , because Claude pushes the branch and runs `gh pr create` there. Install `gh` there yourself, because Desktop doesn’t prompt you to in an SSH session. Then check there that `git push` works and that `gh auth status` reports that you are logged in.
@@ -214,7 +222,23 @@
The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Click **Terminal** , **Changes** , or **Browser** in the session’s title bar to open the terminal, diff, or Browser pane. The **⋮** menu beside them opens more panes, such as **Files** , and holds those buttons when the window is too narrow to show them. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
-The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
+The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows to update.
+
+###
+
+
+
+See session details
+
+The session details panel is a set of cards beside the chat that show where the session runs, what it changed, and what it’s running. The panel appears after you start a session, while the chat is wide enough for it.
+
+####
+
+
+
+Hide or show the session details panel
+
+To hide or show the panel, click **Hide session rail** or **Show session rail** in the session’s title bar, or in the bar’s **⋮** menu when the window is narrow. If you still don’t see the panel, check which Code tab layout you have.
###
@@ -222,7 +246,7 @@
Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
+The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. If a WSL session has no terminal, see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>). The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
###
@@ -230,7 +254,18 @@
Open and edit files
-Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the Browser pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For cloud sessions, ask Claude to make the change.
+To open a file Claude mentions, click its path in the chat. To edit a file yourself, use the file pane:
+
+ * **Local sessions** : you can edit files inside the session’s working directory, except some view-only ones such as `.mcp.json` and `.claude/settings.json`. To change one, open it in another app.
+ * **Cloud, SSH, and WSL sessions** : the file pane is view-only, so ask Claude to make edits.
+
+####
+
+
+
+Save edits in the file pane
+
+By default, your edits in the file pane save on their own, so the pane shows no **Save** button. To save your edits yourself, uncheck **Auto save** in the pane’s **⋮** menu. With **Auto save** off, click **Save** after you change a file to write your edits, or **Cancel** to revert them. If the pane warns that the file changed on disk, click **Override** to write your edits over the version on disk, or **Discard** to drop your edits.
###
@@ -267,12 +302,19 @@
Keyboard shortcuts
-Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. On Windows, use **Ctrl** in place of **Cmd** for the shortcuts below. Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
+Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. The table in this section shows the macOS keys. On Windows and Linux, change these keys:
+
+ * **Cmd+Option** : press **Alt**
+ * **Cmd** : press **Ctrl**
+
+Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
Shortcut| Action
---|---
`Cmd` `/`| Show keyboard shortcuts
`Cmd` `N`| New session
+`Cmd` `Option` `1`–`9`| On the new session screen in the current layout, select an environment
+`Cmd` `Option` `0`| On the new session screen in the current layout, open the **New environment** dialog
`Cmd` `W`| Close session
`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Next or previous session
`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
@@ -394,16 +436,87 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>). To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory:
+Click **\+ New** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session.
+
+####
+
+
+
+Run a session in its own worktree
+
+In a project that’s a Git repository, turn on **Worktree** before you start a session to run it in its own [Git worktree](</docs/en/worktrees>), an isolated copy of the project. By default, **Worktree** is off and Claude works in the project folder itself. Click the project folder control in the row under the prompt box and turn on **Worktree**.
+
+ * **With asaved environment**: set **Worktree** when you create or edit the environment
+ * **Earlier layout** : select the **worktree** checkbox beside the branch name, above the prompt box
+
+Worktrees are stored in `<project-root>/.claude/worktrees/` by default. To store them in a custom directory instead:
* **Local sessions** : set **Worktree location** in **Settings > Claude Code**
* **SSH sessions** : set **Worktree folder** on the SSH connection
-You can also set a **Branch prefix** in **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Claude Code**. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
+You can also set a **Branch prefix** in **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session. For sessions that belong to a [project](</docs/en/claude-projects#see-what-needs-you-in-overview>), you get the project’s notifications instead.
+###
+
+
+
+Add folders to a session
+
+Add folders before the session starts or while it runs:
+
+ * **Before a local session starts** : add the folders under **Folders** when you create a saved environment or edit one, then start the session from that saved environment.
+ * **While a local orSSH session runs**: click **+** next to the prompt box and select **Add folder**. Claude works in that folder itself, with no worktree.
+
+###
+
+
+
+Archive a session
+
+Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived. To archive a session, hover over it in the sidebar, open its menu, and select **Archive**. The session moves to your archived sessions. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Claude Code**. Cloud sessions and sessions that are still running don’t archive themselves.
+
+####
+
+
+
+Keep uncommitted changes when a session is archived
+
+You can lose uncommitted changes in a session’s worktree when the session is archived, so commit what you want to keep first:
+
+ * **If Desktop asks about the changes** : select **Archive anyway** to discard them, or cancel and commit them
+ * **If the only changes are untracked files** : commit the ones you want to keep before a pull request that Claude opened in the session merges, because Desktop can then delete them without asking
+ * **In any other case** : the worktree stays on disk with its changes. For a local session, Desktop removes both about 30 days after the session is archived or you last open it, whichever is later. To keep the changes, open the session from the **Archived** tab and select **Unarchive**
+
+###
+
+
+
+Organize and find sessions
+
+You group, sort, and find sessions from an icon in the sidebar’s session list:
+
+ * **Current layout** : hover over a heading in the session list to show the **Group and sort** icon, then click it. To find archived sessions, select **View all** , the menu’s last row, then open the **Archived** tab.
+ * **Earlier layout** : the **Filter** icon shows without hovering. Click it to arrange the list with **Group by** or **Sort by**. To show archived sessions, select **Status** , then **Archived**.
+
+To rename a session, open it and click the session title in the title bar.
+
+###
+
+
+
+Check and free up context
+
+To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+
+###
+
+
+
+Get notified when a session finishes
+
+The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session. For sessions that belong to a [project](</docs/en/claude-projects#see-what-needs-you-in-overview>), you get the project’s notifications instead.
###
@@ -427,7 +540,7 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. For example, ask it to archive the sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
* You get an approval card before Claude archives a session, except in Auto mode and Bypass permissions mode, where Claude can archive a session without one. To be asked, switch to Manual.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
@@ -442,7 +555,12 @@
Run long-running tasks in the cloud
-For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, select **Projects** in the sidebar to create a [project](</docs/en/claude-projects>), where Claude starts and tracks the sessions for you from one conversation.
+For large refactors, test suites, migrations, or other long-running tasks, select an environment under **Cloud** in the environment selector when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. Choose the repositories:
+
+ * **Current layout** : in the row under the prompt box, once you select a cloud environment.
+ * **Earlier layout** : above the prompt box. To add another repository, click **+** beside the selected one.
+
+See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, select **Projects** in the sidebar to create a [project](</docs/en/claude-projects>), where Claude starts and tracks the sessions for you from one conversation.
A task in an SSH session can also keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
@@ -468,7 +586,7 @@
* **You turn it on for that session** : with the session’s **Remote Control** switch, or by typing `/remote-control` in its prompt box.
* **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Claude Code**. If you’ve never changed that setting, Desktop follows [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) in your user or managed settings, then your organization’s default.
-To see whether a session is connected, look at the laptop icon before the session title in the toolbar. The icon is highlighted while the session is connected or connecting. Click it to open the session’s **Remote Control** switch. To keep sessions off your other devices, turn Remote Control off at the level you need:
+To see whether a session is connected, check the **Remote Control** switch in the **Environment** card of its session details panel. To keep sessions off your other devices, turn Remote Control off at the level you need:
* **One session** : turn off its **Remote Control** switch. In a session that connected when it started, typing `/remote-control` leaves Remote Control on and shows `Remote Control is already on. This session connected automatically when it started.` Click **Turn off** on that line to disconnect.
* **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over `remoteControlAtStartup` and the defaults.
@@ -498,7 +616,14 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in cloud or WSL sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Click **+** next to the prompt box, before or during the session, to add connectors in a local or SSH session with a Claude account. Select **Add connectors** to open the connector directory. If the menu shows **Connectors** instead, select it, then **Browse connectors**.
+
+These cases are covered on other pages:
+
+ * **Connectors is grayed out in a WSL session** : see [If the terminal or connectors are unavailable](</docs/en/desktop-wsl#check-for-the-terminal-and-connectors>)
+ * **Cloud sessions** : see [How connectors reach Claude Code](</docs/en/mcp#how-connectors-reach-claude-code>)
+
+Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. To manage or disconnect connectors, go to **Settings > Connectors** in the desktop app. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -514,7 +639,7 @@
Install plugins
-[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugins/overview>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
+[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. In a local session or an SSH session, click **+** next to the prompt box and select **Add plugins** to open the plugin browser. If the menu shows **Plugins** instead, select it, then **Browse plugins** , or **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
###
@@ -576,7 +701,7 @@
`runtimeArgs`| string[]| Arguments passed to `runtimeExecutable`, such as `["run", "dev"]`
`port`| number| The port your server listens on. Defaults to 3000
`cwd`| string| Working directory relative to your project root. Defaults to the project root. Use `${workspaceFolder}` to reference the project root explicitly
-`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. To pass secrets to your dev server, set them in the local environment editor instead.
+`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. For secrets, see Set environment variables for dev servers.
`autoPort`| boolean| How to handle port conflicts. See Port conflicts
`program`| string| A script to run with `node`. See when to use `program` vs `runtimeExecutable`
`args`| string[]| Arguments passed to `program`. Only used when `program` is set
@@ -721,9 +846,139 @@
+Create a saved environment
+
+A saved environment is an entry in the environment selector that records where Claude runs, so you can start later sessions there. A local or SSH environment also holds the folders Claude works in. Saved local and SSH environments require Claude Desktop v2.37337.0 or later.
+
+1
+
+Open the New environment dialog
+
+Open the environment selector under the prompt box and select **New environment** at the bottom of its menu.
+
+2
+
+Choose where Claude runs
+
+Select the **Local** , **SSH** , or **Cloud** tab and fill in the form on that tab. On the **SSH** tab, choose a connection and a folder on the remote machine.
+
+3
+
+Save the environment
+
+Select **Create environment** , or **Add environment** on the **Cloud** tab.
+
+####
+
+
+
+Environments that Desktop creates for you
+
+If the environment selector lists local or SSH environments you didn’t create, Desktop created them for you. The first time you open the Code tab in the current layout, Desktop creates up to eight environments. The environments come from the local and SSH folders you used most in the last month. You can edit or delete them.
+
+####
+
+
+
+Use, edit, or remove a saved environment
+
+Find the environment’s entry in the environment selector:
+
+ * **Start a session** : select the entry.
+ * **Edit or delete** : hover over the entry and click the gear icon. To delete a local or SSH environment, click **Delete environment** in **Edit environment**.
+ * **Archive cloud environments** : see [Archive an environment](</docs/en/cloud-environments#archive-an-environment>).
+
+###
+
+
+
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to give Claude Code `PATH` and a fixed set of Claude Code variables, but not other variables you export there. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to give Claude Code `PATH` and a fixed set of Claude Code variables, but not other variables you export there. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles.
+
+####
+
+
+
+Set environment variables for local sessions
+
+Add the variables to a saved local environment and start your sessions from it. Desktop sets some variables itself, such as `API_TIMEOUT_MS`, and your sessions get its value for those instead of yours.
+
+If your environment selector is above the prompt box, you have the earlier layout, which has no saved local environments. Use the local environment editor instead.
+
+1
+
+Open the environment's form
+
+Open **New environment** or **Edit environment**.
+
+2
+
+Enter the variables
+
+Select **Environment variables** , enter one `KEY=value` per line, and select **Done**.
+
+3
+
+Save the environment
+
+Select **Create environment** or **Save**.
+
+Only sessions you start from that environment get the variables. To set a variable for every local session, add it to the [`env` key](</docs/en/env-vars#set-variables-in-settings-files>) in your `~/.claude/settings.json` file. Claude Code [ignores the value](</docs/en/settings-reference#how-env-values-interact-with-your-shell>) if that variable is already in the environment Desktop starts the session with. See [environment variables](</docs/en/env-vars>) for the full list of supported variables.
+
+####
+
+
+
+Set environment variables for dev servers
+
+To give a dev server a secret without committing it to `launch.json`, set it in one of these places, then restart Desktop:
+
+ * **macOS and Linux** : export it in your shell profile
+ * **Windows** : add it to your user or system environment variables
+ * **Any platform** : save it in the local environment editor, if you can open it
+
+Dev servers don’t get the variables you add to a saved environment or to `~/.claude/settings.json`.
+
+####
+
+
+
+Use the local environment editor
+
+To open the local environment editor, click the gear icon on the entry for your own computer, not the one on a saved environment:
+
+ * **Selector under the prompt box** : hover over the entry for your computer, the first under **Local**. If a gear icon appears, click it. If not, the editor isn’t available, so set the variable for local sessions or dev servers another way.
+ * **Selector above the prompt box** : hover over **Local** and click the gear icon
+
+Enter one `KEY=value` per line and select **Save changes**. Variables you save here are stored encrypted on your machine. Local sessions get them, except any variable that Desktop sets itself, such as `API_TIMEOUT_MS`. Restart Desktop to give your variables to dev servers.
+
+####
+
+
+
+Environment variables Desktop sets itself
+
+If you set `API_TIMEOUT_MS` or `ANTHROPIC_BASE_URL` and nothing changed in your local sessions, it’s because Desktop sets those [variables](</docs/en/env-vars#variables>), among others, itself. A local session gets Desktop’s value whether you set yours in your shell profile, your Windows user or system variables, the local environment editor, or a saved environment. Moving yours to a settings file doesn’t help, because Claude Code [ignores that value](</docs/en/settings-reference#how-env-values-interact-with-your-shell>) in a local session.
+
+ * `API_TIMEOUT_MS`: a local session gets `900000`, which is 15 minutes. For a longer timeout, [install the Claude Code CLI](</docs/en/quickstart>) and use it instead of Desktop. [Set the variable in your shell](</docs/en/env-vars#set-variables-in-your-shell>) and run `claude` in your terminal.
+ * `ANTHROPIC_BASE_URL`: a local session gets Anthropic’s API host when you’re signed in with a Claude account. To use a gateway, set up Desktop’s [third-party inference configuration](</docs/en/llm-gateway-connect#desktop-app>) instead.
+
+####
+
+
+
+Turn off extended thinking
+
+[Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To turn it off, set `MAX_THINKING_TOKENS` to `0` in a saved local environment or the local environment editor. Thinking then turns off on the Anthropic API, except on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, which always use extended thinking. On Opus 5, also select effort `high` or lower before you start the session. In the current layout, open the model picker and select a level under **Effort**. If you started the session at a higher level, start a new one at `high` or lower.
+
+####
+
+
+
+Fixed thinking budgets
+
+On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
@@ -731,7 +986,7 @@
Local sessions on managed devices
-Your administrator can turn off local sessions with the `disableDesktopLocalSessions` managed setting. When they have, **Local** stays in the environment dropdown but is grayed out and can’t be selected, with a tooltip saying your organization turned it off, and on Windows the [WSL](</docs/en/desktop-wsl>) entry, whose availability on managed devices is [governed separately](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>), is grayed out the same way. New sessions default to the first SSH connection if one is configured, and Desktop shows a message that local sessions aren’t available on this device if you try to continue an existing one. Choose an SSH or cloud environment instead, or contact your IT team.
+If the entry for your computer is grayed out in the environment selector, with the tooltip **Disabled by your organization** , your administrator has turned off local sessions. On Windows the [WSL](</docs/en/desktop-wsl>) entry, whose availability on managed devices is [governed separately](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>), is grayed out the same way. New sessions default to the first SSH connection if one is configured. If you try to continue an existing local session, Desktop shows a message that local sessions aren’t available on this device. Saved local environments show this error when you select one: `Couldn’t switch environments: the Local environment isn’t available anymore.` Choose an SSH or cloud environment instead, or contact your IT team.
###
@@ -739,9 +994,9 @@
Cloud sessions
-Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. To manage them, open the environment dropdown in the prompt box and select **Cloud** :
-
- * **Add an environment** : select **Add cloud environment**
+Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. To add, edit, or [archive](</docs/en/cloud-environments#archive-an-environment>) a cloud environment, open the environment selector:
+
+ * **Add an environment** : select **New environment** at the bottom of the selector’s menu, then the **Cloud** tab of the **New environment** dialog
* **Edit or archive one of your own environments** : hover over it and click the gear icon
See [Configure cloud environments](</docs/en/cloud-environments>) for details on configuring network access and environment variables.
@@ -756,15 +1011,35 @@
If you use Desktop with a [third-party provider](</docs/en/third-party-integrations>), SSH sessions need their own setup. See [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
-To add an SSH connection, open the environment dropdown in the prompt box before you start a session, then select **SSH > Add SSH connection…** and fill in the connection details:
-
- * **Name** : a friendly label for this connection
- * **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`
- * **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config
+Add an SSH connection in the **New environment** dialog, then start a session on that connection. If a new session has no environment selector under the prompt box, you have the earlier layout. See Check which layout you have.
+
+1
+
+Open the New environment dialog
+
+Before you start a session, open the environment selector under the prompt box and select **New environment** at the bottom of its menu.
+
+2
+
+Add the connection
+
+On the **SSH** tab of the **New environment** dialog, open the **Host** list, select **Add SSH connection…** , and fill in the connection details:
+
+ * **Name** : a friendly label for this connection.
+ * **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`.
+ * **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config.
* **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent.
* **Worktree folder** : a folder on the remote machine, such as `~/worktrees`, where new sessions create their worktrees. Leave empty to use the remote machine’s default.
-Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+Then select **Add SSH connection**.
+
+3
+
+Start a session on the connection
+
+Select a folder on the remote machine and click **Create environment**. You keep the machine and folder together as a saved environment for later sessions. Desktop selects it for the new session, so type your task and press **Enter**.
+
+The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
####
@@ -1124,13 +1399,35 @@
Choose where SSH session worktrees go
-Unless your organization restricts which folders sessions may use, new SSH sessions create their worktrees in the first of these that is set:
+Unless your organization restricts which folders sessions may use, new SSH sessions create their worktrees in the first of these locations that is set:
1. **Worktree folder** on the SSH connection
2. [`worktree.location`](</docs/en/settings-reference#worktree-location>) in `~/.claude/settings.json` on the remote machine
3. `<project-root>/.claude/worktrees/`, the default
-Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. On a Windows remote machine, Desktop always uses the default. To set **Worktree folder** on a connection you added earlier or one your organization manages, hover over it in the environment dropdown and click the gear icon. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
+Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. On a Windows remote machine, Desktop always uses the default.
+
+##### Set the worktree folder on an existing connection
+
+Set **Worktree folder** in the settings of a connection you added earlier or one your organization manages. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
+
+1
+
+Find the connection
+
+Open the environment selector and find the connection under **SSH**.
+
+2
+
+Open the connection's settings
+
+Hover over the connection and click the gear icon. If the dialog that opens shows **Edit connection…** next to **Host** , select **Edit connection…**.
+
+3
+
+Set the folder
+
+In **Worktree folder** , enter a folder on the remote machine, such as `~/worktrees`, and select **Save changes**.
####
@@ -1175,7 +1472,7 @@
##### End one session’s process
-To end one session’s Claude Code process, archive the session in Desktop while Desktop is connected to the remote machine. The process keeps running after its task is done and after you quit Desktop. Before you archive a session that has a worktree, see Work in parallel with sessions.
+To end one session’s Claude Code process, archive the session in Desktop while Desktop is connected to the remote machine. The process keeps running after its task is done and after you quit Desktop. Before you archive a session whose worktree has uncommitted changes, see Keep uncommitted changes when a session is archived.
##### See which user the processes run as
@@ -1286,7 +1583,12 @@
Pre-configure SSH connections for your team
-Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>). Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed. Users can select them and set their own **Worktree folder** for them, but can’t edit anything else or delete them in the app. The following example pre-configures a single connection:
+Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>).
+
+ * **What users see** : connections defined this way appear in each user’s environment selector automatically.
+ * **What users can change** : users can select a managed connection and set their own **Worktree folder** for it. They can’t edit its other fields or delete it in the app.
+
+The following example pre-configures a single connection:
{
"sshConfigs": [
@@ -1360,9 +1662,18 @@
1
-Check the environment dropdown
-
-Quit and reopen Desktop, then open the environment dropdown in the prompt box. **Local** is grayed out, and **Shared Dev VM** appears under **SSH**. If **Local** is still available, check the Desktop version, that the file is valid JSON, and which managed source the computer reads.
+Check the environment selector
+
+Quit and reopen Desktop, then open the environment selector. The settings applied if it shows:
+
+ * The entry for that computer, in gray
+ * **Shared Dev VM** under **SSH**. If it isn’t listed there, click the single **SSH** row, or **More** at the end of the group.
+
+If the entry for the computer is still available, check for these causes:
+
+ * **Desktop version** : update Desktop if it’s earlier than v1.37937.0.
+ * **Managed settings file** : make sure that the file is valid JSON.
+ * **Managed source** : make sure that the computer reads the [managed source](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) that holds the keys.
2
@@ -1410,7 +1721,7 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
-`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users can’t delete managed connections or edit anything but their own **Worktree folder**.
+`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**.
`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.
@@ -1536,16 +1847,16 @@
CLI| Desktop equivalent
---|---
-`--model sonnet`| Model dropdown next to the send button
+`--model sonnet`| Model picker in the row under the prompt box
`--resume`, `--continue`| Click a session in the sidebar, or type `/resume` in the prompt box to pick up a session you started from the CLI
-`--permission-mode`| Mode selector next to the send button
+`--permission-mode`| Mode selector in the row under the prompt box
`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
-`--add-dir`| Add multiple repos with the **+** button in cloud sessions
+`--add-dir`| Add folders to a session in local and SSH sessions, or select several repositories in a cloud session
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode
`--print`, `--output-format`| Not available. Desktop is interactive only.
-`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
-`MAX_THINKING_TOKENS` env var| Set in the local environment editor. See environment configuration.
+`ANTHROPIC_MODEL` env var| Model picker in the row under the prompt box
+`MAX_THINKING_TOKENS` env var| See Turn off extended thinking
###
@@ -1559,7 +1870,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.
- * **Models** : the same [models](</docs/en/model-config#available-models>) are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
+ * **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.
####
@@ -1585,9 +1896,9 @@
[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. For gateway routing, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins/overview>)| `/plugin` command| Plugin manager UI
-@mention files| Text-based| With autocomplete; local and SSH sessions only
+@mention files| Text-based| With autocomplete, except for a cloud session’s first message
File attachments| Not available| Images, PDFs
-Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| **worktree** option when starting a session
+Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Run a session in its own worktree
Multiple sessions| Separate terminals| Sidebar tabs
Recurring tasks| Cron jobs, CI pipelines| [Scheduled tasks](</docs/en/desktop-scheduled-tasks>)
Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS and Windows
@@ -1617,7 +1928,7 @@
Troubleshooting
-The sections below cover issues specific to the desktop app. For runtime API errors that appear in the chat such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>). Those errors and their fixes are the same across the CLI, desktop, and web.
+The sections below cover issues specific to the desktop app. For runtime API errors that appear in the chat such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>).
###
@@ -1638,7 +1949,20 @@
Claude Code version in the Code tab
-To see which version of Claude Code a session runs, type `/status` in a local session in the **Code** tab and read the **Claude Code** row, which shows a version such as `2.1.286`. To get a newer version for local sessions, open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows, then start a new session. In a local session, the **Code** tab runs its own copy of Claude Code, which has its own version number. The desktop app downloads and updates that copy, so it can differ from the `claude` command in your terminal, and updating one doesn’t update the other.
+To see which version of Claude Code a session runs, type `/status` in a local session in the **Code** tab and read the **Claude Code** row, which shows a version such as `2.1.286`. To get a newer version for local sessions, open **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows, then start a new session. In a local session, the **Code** tab runs its own copy of Claude Code, which has its own version number. The desktop app downloads and updates that copy, so it can differ from the `claude` command in your terminal, and updating one doesn’t update the other.
+
+###
+
+
+
+Check which layout you have
+
+If a new session has no environment selector under the prompt box, you have the earlier layout:
+
+ * **Desktop older than v2.37337.0** : update to get the current layout. Select **Claude > Check for Updates…** on macOS or **Help > Check for Updates…** on Windows.
+ * **[Third-party provider](</docs/en/third-party-integrations>)** : you keep the earlier layout, so there is nothing to do.
+
+In the earlier layout, choose the environment and project folder above the prompt box, and the permission mode and model in the row under it. The earlier layout lacks the session details panel and saved local and SSH environments.
###
--- a/desktop.md
+++ b/desktop.md
@@ -1031,8 +1031,7 @@
For a task that must run while your computer is asleep or off, start a cloud session instead.
* **After sleep or a network loss** : you get the running task back if the process still runs and Desktop can log in without a prompt. If it can’t, send a message.
- * **After a quit, with Desktop on macOS or Linux and a Claude account** : you get the running task back if Desktop can rejoin the process. If it can’t, the task stops. If it stays stopped, send a message.
- * **After a quit, with Desktop on Windows or a[third-party provider](</docs/en/third-party-integrations>)**: you lose the running task, because Desktop ends the process when the session opens. Send a message to continue.
+ * **After a quit** : the task keeps running, but you lose it when the session opens again unless Desktop can rejoin its process. Check when Desktop can rejoin before you quit. If you lost the task, send a message to continue.
When you come back and the task isn’t done, check for word that Desktop can’t reconnect, an authentication error, or a waiting request:
@@ -1044,7 +1043,7 @@
##### Prepare a long task
* **Update first** : update Desktop before you start a long task. On macOS and Windows, Desktop can restart on its own to install an update that it has downloaded. That restart waits while Claude is working on an SSH task. On macOS with a Claude account, by default the restart can go ahead anyway once the update has waited 72 hours.
- * **Don’t quit Desktop** : if Desktop runs on Windows or uses a third-party provider, leave it open while the long task runs. After a quit, it ends the running task when the session opens. Leaving it open doesn’t protect a request that waits for you.
+ * **Don’t quit on Windows, or before v2.42304.0 with a third-party provider** : after a quit there you lose the running task, so leave Desktop open during the task. In any other case, see what you get back before you quit.
* **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.
@@ -1082,7 +1081,7 @@
##### Handle requests that arrive while you are away
-If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. While a task waits for you, Desktop can restart on its own, for example to install an update. If Desktop runs on Windows or uses a third-party provider, you lose the request after that restart. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:
+If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. If a request that waited for you is gone when you come back, one cause is that Desktop restarted on its own, for example to install an update. You keep a request through a restart only if Desktop can rejoin the process, so check when Desktop can rejoin before you leave a task running. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:
* **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>).
* **Allow rules** : in your user settings file on the remote machine, `~/.claude/settings.json`, add [allow rules](</docs/en/permissions#manage-permissions>) for the commands the task needs. If your organization [accepts permission rules from managed settings only](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add them to the managed settings that reach the remote machine. For allow rules in a project’s `.claude/settings.json`, see [Project allow rules and workspace trust](</docs/en/permissions#project-allow-rules-and-workspace-trust>).
@@ -1105,17 +1104,17 @@
* **Jump host, pushes keep coming** : where Desktop can’t tell that nobody answers, as with Desktop on Windows, it keeps trying while it has a process to rejoin, whether or not that process still runs. You can get another push with each attempt. To end the attempts, quit Desktop, which can cost you the running task.
* **Long outage** : Desktop slows to about one attempt every five minutes. To reconnect sooner, retry in the session or send a message, which Desktop delivers once it is connected.
* **Missing output** : while Desktop is disconnected, the helper keeps each session’s most recent Claude Code output in a 16 MiB buffer and drops older output. After Desktop reconnects, the session can show `Loading recent output from <host>…`. If Desktop can’t load all of the output, you see the row `Some output produced while you were disconnected may be missing here.` The row doesn’t mean that the task stopped.
- * **Process gone** : if the process is gone when Desktop reconnects, Desktop can start a new one from the conversation’s saved history and tell Claude to continue the task. Desktop doesn’t continue the task on its own if the process keeps ending, or if Desktop uses a third-party provider. Send a message to continue.
+ * **Process gone** : the process ended while Desktop was disconnected, as when the remote machine restarts. Desktop can then start a new one from the conversation’s saved history and tell Claude to continue the task. If the task stays stopped, send a message. With a third-party provider, update to Claude Desktop v2.42304.0 or later, because earlier versions never continue the task on their own.
##### Reopen a session after you quit Desktop
-After you quit Desktop, the task keeps running on the remote machine until it finishes, needs you, or reaches one of the limits.
-
- * **Desktop on macOS or Linux, with a Claude account** : start Desktop and open the session. You get the running task back when Desktop can rejoin the process. It can’t always rejoin, for example after some Desktop updates or after your organization changes its managed settings.
- * **On macOS or Linux, when Desktop can’t rejoin** : Desktop ends the process and starts a new one from the conversation’s saved history. Your running task stops, and you lose any approval or question that was waiting for you. After an update, Desktop can then tell Claude to continue. If the task stays stopped, send a message.
- * **Desktop on Windows, or with a third-party provider on any platform** : start Desktop again only when you expect the task to be done. You don’t get the running task back, because Desktop never rejoins after a quit. It ends the process when the session opens, which can happen as Desktop starts. Send a message to continue.
-
-For third-party deployments, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+After you quit Desktop, the task keeps running on the remote machine, but it stops when the session opens again unless Desktop can rejoin its process. While Desktop is closed, the task runs until it finishes, needs you, or reaches one of the limits.
+
+ * **Desktop on Windows** : you don’t get the running task back, because Desktop never rejoins after a quit. Start Desktop again only when you expect the task to be done, because the session can open as Desktop starts.
+ * **Third-party provider, task from an earlier version** : if you started the task in a Desktop version before v2.42304.0, you don’t get it back on macOS or Linux either. Start Desktop again only when you expect the task to be done.
+ * **Any other task, with Desktop on macOS or Linux** : start Desktop and open the session, and the task goes on if Desktop rejoins. It can’t always rejoin, for example after some Desktop updates, so update before a long task.
+
+When Desktop can’t rejoin, you also lose any approval or question that was waiting for you. If the task doesn’t continue on its own, send a message, and Claude continues from the conversation’s saved history. For third-party deployments, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
While a conversation’s Claude Code process is still running, don’t run [`claude --resume`](</docs/en/cli-reference#cli-flags>) for it on the remote machine. Claude Code doesn’t stop you, and both processes then write to the same conversation. If you aren’t sure, add `--fork-session`, which continues in a copy of the conversation, but both processes still work on the same files.
--- a/desktop.md
+++ b/desktop.md
@@ -189,7 +189,7 @@
* Click **Walk through in diff** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
* Click **Apply fixes** to ask Claude to fix the findings that are still open.
-In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review a diff locally](</docs/en/code-review#review-a-diff-locally>).
+In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review locally with `/code-review`](</docs/en/code-review-local>).
###
Show diff (455 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -95,7 +95,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request. Appears when auto mode is available; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions such as deleting a session, though not archiving one. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
@@ -117,7 +117,11 @@
Preview your app
-Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The Browser pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it there. From the Browser pane, you can:
+Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The Browser pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it there.
+
+In an SSH session, Claude can’t open your app in the Browser pane, because it doesn’t have the pane’s tools there. To look at the app yourself, forward its port to your computer.
+
+From the Browser pane, you can:
* Interact with your running app directly in the Browser pane
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
@@ -200,7 +204,7 @@
To turn these on, click **CI** in the status bar. To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**.
-PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.
+PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.In an SSH session, set up `git` and `gh` on the remote machine before you click **Create PR** , because Claude pushes the branch and runs `gh pr create` there. Install `gh` there yourself, because Desktop doesn’t prompt you to in an SSH session. Then check there that `git push` works and that `gh auth status` reports that you are logged in.
##
@@ -425,7 +429,7 @@
Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
- * Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
+ * You get an approval card before Claude archives a session, except in Auto mode and Bypass permissions mode, where Claude can archive a session without one. To be asked, switch to Manual.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
* Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
@@ -623,9 +627,15 @@
* **`true`** : Claude finds and uses a free port automatically. Suitable for most dev servers.
* **`false`** : Claude fails with an error. Use this when your server must use a specific port, such as for OAuth callbacks or CORS allowlists.
- * **Not set (default)** : Claude asks whether the server needs that exact port, then saves your answer.
-
-When Claude picks a different port, it passes the assigned port to your server via the `PORT` environment variable.
+ * **Not set (default)** : your server gets the next free port, as with `true`, except in the one case below. Before Claude Desktop v2.37337.0, Claude asks whether the server needs that exact port instead, then saves your answer in `launch.json`.
+
+If your preferred port is in use and `autoPort` is unset, your server stays stopped when all of these hold:
+
+ * You start the server through an `npm`, `yarn`, `pnpm`, or `bun` script.
+ * Your preferred port is hardcoded in that script, or Claude can’t inspect the script.
+ * You don’t pass the port in `runtimeArgs`.
+
+In that case, free the port, remove the hardcoded value, or change `port` to match the script. Setting `"autoPort": true` instead works only for a script that reads `PORT`. Have your server read its port from the `PORT` environment variable, which carries the assigned port. When Claude moves your server to a different port, it also rewrites a `--port` or `-p` value in `runtimeArgs` to match.
####
@@ -713,7 +723,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to give Claude Code `PATH` and a fixed set of Claude Code variables, but not other variables you export there. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
@@ -764,12 +774,63 @@
A Linux or macOS remote machine needs a supported processor, an SSH server with SFTP, an install folder that isn’t mounted `noexec`, a working shell, and network access. Check each requirement before you connect, or when a connection fails after you log in:
- * **System** : an x86_64 or arm64 processor. The machine also has to meet Claude Code’s [system requirements](</docs/en/setup#system-requirements>).
+ * **System** : an x86_64 or arm64 processor. The machine also has to meet Claude Code’s [system requirements](</docs/en/setup#system-requirements>). On Linux, Claude Code needs glibc 2.17 or later, or musl. To see which one the machine has, run `ldd --version` there. On a musl-based distribution such as Alpine Linux, also install the [packages that Claude Code needs](</docs/en/setup#alpine-linux-and-musl-based-distributions>).
* **SFTP** : the SSH server has to offer the SFTP subsystem, which a `Subsystem sftp` line in its `sshd_config` turns on. To check, connect to the same host and port with `sftp` in a terminal on your computer. A working server shows the `sftp>` prompt.
* **Sessions per connection** : Desktop on macOS and Linux opens several sessions on one SSH connection. If the server’s `sshd_config` sets `MaxSessions 1`, raise it, for example to OpenSSH’s default of 10.
- * **Install folder** : Desktop installs a helper program and Claude Code under `~/.claude/remote/` in your home directory. It runs them from there, so that folder can’t be on a file system mounted `noexec`. Allow about 1 GB of disk space in the home directory of each user who connects.
+ * **Install folder** : Desktop installs a helper program and Claude Code under `~/.claude/remote/` in your home directory. It runs them from there, so that folder can’t be on a file system mounted `noexec`. Allow about 1 GB of disk space in the home directory of each user who connects. For what that folder holds, see Files and processes on the remote machine.
* **Shell** : the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and `sh` do
- * **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine.
+ * **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine. On a Linux remote machine, if those requests need a proxy, set it for SSH sessions.
+
+####
+
+
+
+Set a proxy or a CA certificate for SSH sessions
+
+If a Linux remote machine reaches the internet through a proxy or needs a CA certificate, add the [proxy and CA variables](</docs/en/network-config>) under `env` in `~/.claude/settings.json` there. Add them even if you already export them in `~/.profile`, `~/.bash_profile`, `~/.zprofile`, or `~/.zshrc` on that machine. An SSH session doesn’t get them from those files, even when `claude` in a terminal on that machine does. The session can then hang, or show **The connection from … to the API failed** or **Authentication failed** , and signing in again doesn’t help.
+
+1
+
+Add the variables
+
+For the CA file, use [`NODE_EXTRA_CA_CERTS`](</docs/en/network-config#custom-ca-certificates>), because Claude Code doesn’t trust a CA from `SSL_CERT_FILE` in `~/.claude/settings.json`. This example sets a proxy and a CA file:
+
+~/.claude/settings.json
+
+ {
+ "env": {
+ "HTTPS_PROXY": "http://proxy.example.com:8080",
+ "NODE_EXTRA_CA_CERTS": "/etc/ssl/certs/example-ca.pem"
+ }
+ }
+
+2
+
+Send your message again
+
+Send your message again, because a variable that you add or change in that file takes effect within seconds. Start a new session if it still fails.
+
+##### Find a proxy or CA variable set elsewhere on the remote machine
+
+Check whether the Linux remote machine sets the proxy or CA variable elsewhere, because sessions use that value and [ignore the one in any settings file](</docs/en/settings-reference#how-env-values-interact-with-your-shell>):
+
+1
+
+List the variables that the remote machine sets
+
+In a terminal on your computer, run `ssh devbox env`, with your own host.
+
+2
+
+Change the variable where it is set
+
+If the list has the variable, change it in the file that sets it, such as `~/.zshenv`, `/etc/environment`, or `~/.bashrc` on the remote machine.
+
+3
+
+Give sessions the new value
+
+Restart the remote machine, or quit Desktop and end the helper’s processes, as in the first two steps to remove the helper. Do this when no task is running, because either way interrupts Claude’s work.
####
@@ -799,6 +860,93 @@
ProxyJump bastion.example.com
Enter `devbox` in the **SSH host** field.
+
+##### Reach a container on a remote machine
+
+To run a session inside a container that publishes no SSH port, reach it with a `ProxyCommand`, because Desktop doesn’t run the `RemoteCommand` of the entry you connect to. If your entry uses `RemoteCommand` to step into the container, the session runs on the machine that the entry logs in to, not in the container.
+
+1
+
+Add the entry
+
+Add the following entry at the end of your `~/.ssh/config`, or directly above your first `Host *` entry if you have one. Replace the Docker container `devbox`, its user `dev`, and the machine `build.example.com` with your own. The entry’s command starts an SSH server inside the container for each connection:
+
+~/.ssh/config
+
+ Host devbox-container
+ User dev
+ ProxyCommand ssh build.example.com docker exec -i devbox /usr/sbin/sshd -i
+
+2
+
+Prepare the container
+
+ * Install the OpenSSH server, with a host key that stays the same when you rebuild the image or recreate the container
+ * Give the account named in `User` a way to log in, such as an `authorized_keys` file
+ * Check that the container meets the remote machine requirements
+
+3
+
+Check the allowlist
+
+If your administrator restricts SSH hosts, run `ssh -G devbox-container` in a terminal on your computer. Ask them to allow the `hostname` that it prints, here `devbox-container`, in `sshHostAllowlist`. When they allow that name, they allow whatever your entry’s `ProxyCommand` connects to.
+
+4
+
+Test the entry, then connect
+
+Run `ssh devbox-container` in a terminal on your computer. Fix what it reports, and run it again until it opens a shell in the container without asking you anything:
+
+ * **If`ssh` asks for a password, passphrase, or code**: switch to a login that works without a prompt, such as a key that your SSH agent holds
+ * **If`ssh` reports `Cannot execute command-line and remote command.` or `Bad packet length`**: take `RemoteCommand` and `RequestTTY` out of your entry for `build.example.com`. After that, `ssh build.example.com` in a terminal on your computer opens a shell on that machine, not in the container.
+ * **If`ssh` reports `Connection closed by UNKNOWN port 65535`**: run `ssh build.example.com docker exec devbox /usr/sbin/sshd -t` in the same terminal.
+ * If it prints `Missing privilege separation directory: /run/sshd`, create that folder in the container.
+ * If it prints `no hostkeys available` and the container has host keys, add `-u root` after `exec` in this command and in the entry.
+
+Then enter `devbox-container` in the **SSH host** field.
+
+##### Use variables from your shell in a `ProxyCommand`
+
+To use an environment variable of your own in a `ProxyCommand` or `Match exec` command, export it in a shell startup file, such as `~/.zshrc`, then quit and reopen Desktop. When Desktop starts, it reads what your login shell exports, and it keeps those values until you quit. This requires Claude Desktop v2.37337.0 or later and an `env` command that accepts `-0`, which you can check by running `env -0` in a terminal on your computer.
+
+If your shell sets temporary AWS credentials, give the AWS CLI a profile instead of exporting `AWS_*` variables.
+
+##### Use AWS credentials in a `ProxyCommand`
+
+If you set temporary AWS credentials in a shell startup file, a `ProxyCommand` that runs the AWS CLI can connect in a terminal and fail in Desktop. When your shell exports `AWS_SESSION_TOKEN`, `AWS_SECURITY_TOKEN`, or `AWS_CREDENTIAL_EXPIRATION`, `ssh` and your `ProxyCommand` in Desktop don’t get the shell’s AWS credentials, `AWS_REGION`, or `AWS_PROFILE`. If the AWS CLI has no other source for a region or credentials, it fails with `You must specify a region` or `Unable to locate credentials`. To connect from Desktop, give the AWS CLI a profile that it reads from `~/.aws/config`:
+
+1
+
+Add a profile with a region and a source of credentials
+
+This example adds a profile named `corp` that gets its credentials from a helper program:
+
+~/.aws/config
+
+ [profile corp]
+ region = us-east-1
+ credential_process = /full/path/to/your-credential-helper
+
+ * **`region`** : give the AWS Region of the machines you connect to
+ * **`credential_process`** : give the full path of a program that prints credentials in the [JSON form that AWS documents](<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html>). Choose a program that needs no input from you, because the AWS CLI runs it at every connection, including reconnects while you’re away.
+ * **IAM Identity Center** : add the profile’s [IAM Identity Center settings](<https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>) in place of `credential_process`. Run `aws sso login --profile corp` in a terminal before you connect, and again when that sign-in lapses.
+
+2
+
+Name the profile in the ProxyCommand
+
+This example adds `--profile` to the [command that AWS documents for Session Manager](<https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-enable-ssh-connections.html>):
+
+~/.ssh/config
+
+ Host i-*
+ ProxyCommand sh -c "aws ssm start-session --profile corp --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
+
+3
+
+Connect again
+
+Run `ssh` with the host in a terminal to confirm that the entry still connects there, then connect from Desktop.
##### Raise the SSH connection timeout
@@ -812,7 +960,42 @@
ProxyJump bastion.example.com
ConnectTimeout 120
-`ssh` uses the first value it finds for a host, so keep the entry above any `Host *` entry that sets `ConnectTimeout`. To confirm, run `ssh -G devbox` in a terminal on your computer. Its output includes `connecttimeout 120`. After you change the value, quit and reopen Desktop.
+`ssh` uses the first value it finds for a host, so keep the entry above any `Host *` entry that sets `ConnectTimeout`. To confirm, run `ssh -G devbox` in a terminal on your computer. Its output includes `connecttimeout 120`. After you change the value, quit and reopen Desktop. 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. If a jump host or a `ProxyCommand` waits for you instead, raise `ConnectTimeout` in the remote machine’s entry to cover that time.
+
+##### Fix a `Match host` block that only Desktop applies
+
+If Desktop uses a setting that `ssh devbox` in a terminal doesn’t, look for a `Match host` block above the entry’s `HostName` line. In a terminal, `ssh` reads a block there before the `HostName` line, so it compares the block with `devbox`. Desktop gives `ssh` the `HostName` value on the command line, so `ssh` compares the block with that value. To check, run `ssh -G` in a terminal on your computer with the entry’s `HostName` and `User` values on the command line, as Desktop does:
+
+ ssh -G -o HostName=devbox.internal.example.com -l alice devbox
+
+Compare the output with that of `ssh -G devbox`. If the block’s settings, such as `proxycommand`, show only in the first output, the block takes effect only in Desktop. To have Desktop skip it too, add `!originalhost devbox` to its `Match` line:
+
+~/.ssh/config
+
+ Match host *.internal.example.com !originalhost devbox
+
+To confirm, run the first command again. The block’s settings no longer show in its output.
+
+##### Forwarding settings that Desktop leaves off
+
+On its connection to the remote machine, Desktop leaves `ForwardAgent`, `ForwardX11`, `LocalForward`, `RemoteForward`, `DynamicForward`, and `Tunnel` off, even where your SSH configuration turns them on. In the terminal or a `!` command, expect your forwarding settings to apply only sometimes, because Desktop can start a separate `ssh` there that follows them.
+
+ * **To reach a port on the remote machine** : forward it yourself
+ * **To use your own keys from the remote machine** : set up a credential on the remote machine itself, for example for `git push`
+
+To keep Desktop from forwarding your SSH agent or a port, run `ssh -G devbox` in a terminal on your computer. Then run it again as Desktop can run it, with the `hostname` and `user` values that it prints, as in `ssh -G -o HostName=devbox.internal.example.com -l alice devbox`. The second output can show settings from a `Match` block that the first skips. Look in both outputs for a `forwardagent` line that says anything but `no`, and for lines that begin with `localforward`, `remoteforward`, or `dynamicforward`. If you find one, remove that setting from your SSH configuration. Do the same for a host that your `ProxyCommand` reaches with `ssh`.
+
+####
+
+
+
+Reach a port on the remote machine
+
+To open a server that runs on the remote machine, such as a dev server on port 3000, forward the port yourself. In a terminal on your computer, run `ssh` with `-L` and the host you connect to, such as `devbox`:
+
+ ssh -N -L 3000:localhost:3000 devbox
+
+If you filled in **SSH port** or **SSH key (optional)** on the connection, add `-p` or `-i` with the same value. Leave that command running, and open `http://localhost:3000` in a browser on your computer to reach port 3000 of the remote machine. If `ssh` prints `open failed: administratively prohibited`, ask the machine’s administrator to allow TCP forwarding, which `AllowTcpForwarding` in the SSH server’s `sshd_config` controls.
####
@@ -840,7 +1023,7 @@
If your computer sleeps, you lose your network, or you quit Desktop, the task goes on until it finishes, needs you, or reaches one of the limits. Closing the lid counts as sleep. A restart of Desktop or of your computer, including for an update, counts as a quit. Claude Code runs as a process on the remote machine, under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running. The behavior in this section requires Claude Desktop v2.31226.0 or later.
-If you sign in to Desktop with a Claude account, don’t count on a task to run overnight. Desktop renews that sign-in for the task only while Desktop is running and connected, so the task’s sign-in can expire after you disconnect, and the task then stops. How much time is left when you disconnect varies.The work done so far stays on the remote machine, and you can continue with a message when you return.If the task must run through the night:
+If you sign in to Desktop with a Claude account, don’t count on a task to run overnight. Desktop renews that sign-in for the task only while Desktop is running and connected, so the task’s sign-in can expire after you disconnect, and the task then stops. How much time is left when you disconnect varies, and it can be only a few minutes.The work done so far stays on the remote machine, and you can continue with a message when you return.If the task must run through the night:
* [Keep your computer awake](</docs/en/desktop-scheduled-tasks#how-scheduled-tasks-run>) and online, with the lid open and Desktop running
* Use a login that works without a prompt, such as a key that your SSH agent holds, for the remote machine and for any jump host on the way. Desktop can then reconnect on its own after a drop.
@@ -949,6 +1132,117 @@
3. `<project-root>/.claude/worktrees/`, the default
Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. On a Windows remote machine, Desktop always uses the default. To set **Worktree folder** on a connection you added earlier or one your organization manages, hover over it in the environment dropdown and click the gear icon. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
+
+####
+
+
+
+Files and processes on the remote machine
+
+Desktop installs a helper program and Claude Code under `~/.claude/remote/` in the home directory of each user who connects to a Linux or macOS remote machine. The helper listens on no network port, but Claude Code and the programs it starts, such as MCP servers and development servers, can.
+
+Folder| Contents
+---|---
+`~/.claude/remote/srv/`| The helper, in one folder per version
+`~/.claude/remote/ccd-cli/`| Claude Code, in one file per version
+`~/.claude/remote/run/`| The helper’s runtime files, such as its socket and log, in one folder per computer that connects
+`~/.claude/remote/plugins/`| Plugins that Desktop copies from the user’s computer
+[`~/.claude/uploads/`](</docs/en/claude-directory#clear-local-data>)| Files that the user attaches to messages, in one folder per session
+
+To list one user’s processes, run `pgrep -fl "$HOME/.claude/remote/"` on the remote machine as that user, or with the user’s home directory in place of `$HOME`:
+
+ * **Helper** : one or more `server` processes for each computer that connects
+ * **Claude Code** : the processes that the helper starts for the user’s sessions, each from a file named after its version, such as `2.1.295-…`
+
+Desktop reaches the helper through the user’s SSH connection, over the Unix socket `rpc.sock` in the helper’s folder under `~/.claude/remote/run/`. Apart from root, other users on the machine can’t connect to that socket, because it has mode 600 and its folder has mode 700. For when the helper stops on its own, see Limits while Desktop is disconnected. To remove the helper and Claude Code for one user:
+
+1
+
+Quit Desktop
+
+Quit Desktop on each computer that the user connects from. It installs both programs again the next time it connects, and it can reconnect on its own.
+
+2
+
+End the processes
+
+Logged in as that user on the remote machine, run `kill` with the ID of each Claude Code process that `pgrep` lists. Once those are gone from the list, run `kill` with the ID of each `server` process. If you end a `server` process first, a command that Claude Code is running can keep running.Then list the user’s remaining processes, for example with `ps -u "$(id -un)" -f`, and end any that you recognize as started by Claude Code. Programs that it left in the background can keep running after it ends, without being in the `pgrep` list.
+
+3
+
+Delete the folder
+
+Delete `~/.claude/remote/`. To remove Claude Code’s own files in `~/.claude/` and `~/.claude.json`, see [Remove configuration files](</docs/en/setup#remove-configuration-files>).
+
+##### End one session’s process
+
+To end one session’s Claude Code process, archive the session in Desktop while Desktop is connected to the remote machine. The process keeps running after its task is done and after you quit Desktop. Before you archive a session that has a worktree, see Work in parallel with sessions.
+
+##### See which user the processes run as
+
+The helper and Claude Code run as the user that Desktop logs in as over SSH. Installing and starting them takes no `sudo`. To check the user, run `ps -o user= -p` on the remote machine with a process ID that `pgrep` lists. Programs that Claude Code starts, such as shell commands and MCP servers, start as that user too. Review that user’s rights on the remote machine, its `sudo` rules included, as you would for a person who runs commands there.
+
+##### See who connected to the remote machine
+
+To find out who connected to a remote machine, read the SSH server’s log on that machine, where a login from Desktop looks like one from a terminal. With Desktop on macOS or Linux, expect an entry each time Desktop connects, not one for each session. You won’t find Desktop’s SSH connections in Claude Code’s [metrics and events](</docs/en/monitoring-usage#available-metrics-and-events>). To find out from them which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>). For Desktop’s own record of its connections, see Get Desktop’s logs for an SSH problem.
+
+####
+
+
+
+Connections that close before login
+
+If the SSH server’s log shows connections that close before any login, they can be Desktop’s tests of the SSH port. Desktop tests whether a machine answers, for example after a connection to it failed. It opens a connection to the port and closes it at once, without sending anything. Expect one test or several in a row, for example eight in about two minutes. If nothing bans or refuses addresses for such connections, you don’t have to do anything about Desktop’s tests. If an address that Desktop connects from is refused or banned, check whether the SSH server itself refuses the address and whether fail2ban counts Desktop’s tests.
+
+##### Recognize a test in the SSH server’s log
+
+Compare the lines in your log with those that an OpenSSH server on Linux writes for a test at the default `LogLevel`, in the row for your server’s version. You can see the lines in the last column instead if the server’s greeting arrives before Desktop closes the connection:
+
+OpenSSH version| Lines for a test| Lines if the greeting arrives first
+---|---|---
+6.6 to 7.9| A line with `Did not receive identification string from 203.0.113.7`| The same line
+8.0 to 8.2| `error: kex_exchange_identification: Connection closed by remote host`| `error: kex_exchange_identification: read: Connection reset by peer`
+8.3 to 9.4| `error: kex_exchange_identification: Connection closed by remote host`, then `Connection closed by 203.0.113.7 port 51234`| `error: kex_exchange_identification: read: Connection reset by peer`, then `Connection reset by 203.0.113.7 port 51234`
+9.5 to 10.2| `Connection closed by 203.0.113.7 port 51234`| `error: kex_exchange_identification: read: Connection reset by peer`, then `Connection reset by 203.0.113.7 port 51234`
+10.3 to 10.5| `Connection closed by 203.0.113.7 port 51234 [preauth]`| `error: kex_exchange_identification: read: Connection reset by peer [preauth]`, then `Connection reset by 203.0.113.7 port 51234 [preauth]`
+
+Other programs that open the port and close it can leave the same lines. Where a line has an address, check that it is one that a computer with Desktop connects from. The lines of 8.0 to 8.2 have no address. To get one, set `LogLevel VERBOSE` in `sshd_config` and run `sshd -T | grep -i loglevel` as root. If it prints `loglevel VERBOSE`, reload the SSH server. Then look for a line with `Connection from 203.0.113.7 port 51234` before the test’s line.
+
+##### Check whether the SSH server itself refuses the address
+
+If connections are refused from an address that many computers with Desktop share, look in the SSH server’s log for a line that ends like this one:
+
+ drop connection #0 from [203.0.113.7]:51234 on [192.0.2.10]:22 penalty: connections without attempting authentication
+
+With the default `LogLevel`, OpenSSH 9.8 and later can write such a line when refusing an address for connections that closed without trying to log in, as Desktop’s tests do. With the default settings, you don’t see such a line after a few tests alone. To prevent the refusal, set `PerSourcePenaltyExemptList` in `sshd_config` to the addresses that people connect from, for example `PerSourcePenaltyExemptList 203.0.113.7`. The server then applies none of its penalties to those addresses, including those for failed logins. To check the file, run `sshd -T | grep -i persourcepenalt` as root. If it prints your list, reload the SSH server.
+
+##### Check whether fail2ban counts Desktop’s tests
+
+If fail2ban 0.10.5 or later banned an address that Desktop connects from, find your jail’s mode in `jail.conf`, `jail.local` or under `jail.d/`:
+
+ * **A`filter` line that names a mode in brackets**, such as `filter = sshd[mode=aggressive]`: use that mode.
+ * **Only the stock`filter` line**, with `[mode=%(mode)s]`: use the `mode` line, or `normal` if there is none.
+
+If the mode is `normal`, fail2ban doesn’t count the lines of Desktop’s tests, so look for another cause of the ban. For another mode, copy the lines from your own log to a file on the remote machine. Copy each line whole, from its date to its end, and both lines where a test leaves two. Run `fail2ban-regex` there with the file and your jail’s mode, for example `aggressive`:
+
+ fail2ban-regex -o ip lines.log "sshd[mode=aggressive]"
+
+For each failure that fail2ban counts, the command prints the address on a line of its own, such as `203.0.113.7`. In that case, prevent a ban. If it prints nothing, fail2ban counts none of those lines in that mode, so look for another cause of the ban.
+
+##### Prevent a ban by fail2ban
+
+To keep fail2ban from banning an address for Desktop’s tests, change one of two settings of the jail, each at a cost:
+
+ * **`mode`** : set it to `normal` wherever your jail sets it, in a `mode` line or in the brackets of a line such as `filter = sshd[mode=aggressive]`. You give up every count that only the other modes make, for example of clients that connect and leave without trying to log in.
+ * **`ignoreip`** : set it to the addresses that people connect from, for example `ignoreip = 203.0.113.7`. fail2ban then counts nothing from those addresses, failed logins included.
+
+####
+
+
+
+Use MCP servers set up on the remote machine
+
+To use an [MCP server](</docs/en/mcp>) from `~/.claude.json` or a project’s `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see Limits while Desktop is disconnected.
####
@@ -1057,10 +1351,11 @@
* **Cowork** : none of the keys applies to [Cowork](<https://claude.com/docs/cowork/overview>) sessions or Cowork scheduled tasks
* **Cloud sessions** : none of the keys changes whether cloud sessions are available. To turn them off, use the **Cloud sessions** setting under Admin console controls.
-When you adapt the example, check the hostnames and the Desktop version:
+When you adapt the example, check the hostnames, the Desktop version, and the file’s permissions:
* **Hostnames** : make sure that a pattern in `sshHostAllowlist` matches the hostname of each `sshConfigs` entry, without `user@`, or developers can’t connect to it. For how Desktop matches a hostname, see Restrict which SSH hosts users can connect to.
* **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:
@@ -1408,6 +1703,39 @@
+SSH connection fails after you log in
+
+Find the card’s title, or the code that ends the error message, in this table, then do what the last column says. To see the message, select **View details** on the failure card.
+
+Title on the card| Code| What to do
+---|---|---
+`<host>'s SSH server has SFTP turned off`| `[SFTP_UNAVAILABLE]`| Turn on SFTP in the server’s `sshd_config`, as described under remote machine requirements
+`SFTP doesn't start on <host>`| `[SFTP_NOT_STARTED]`| Connect to the same host with `sftp` in a terminal on your computer to see what stops it, then check the settings and files that Desktop’s message names
+`<host> allows too few SSH sessions per connection`| `[SESSION_LIMIT]`| Raise `MaxSessions` in the server’s `sshd_config`, for example to OpenSSH’s default of 10
+`<host> is out of disk space`| `[ENOSPC]` or `[EDQUOT]`| Free space or quota on the remote machine, in your home directory or `/tmp`
+`This computer is out of disk space`| `[ENOSPC]` or `[EDQUOT]`, in a message that starts with `Couldn't prepare the deploy locally`| Free space on your computer
+`Claude Code won't start on <host>`| `[CLI_UNRESPONSIVE]`| Wait a minute, then try again. If it keeps failing, run the command that the message names on the remote machine to see whether Claude Code answers there.
+
+For any other message, check the remote machine requirements.
+
+###
+
+
+
+Get Desktop’s logs for an SSH problem
+
+You get `ssh.log`, Desktop’s record of its SSH connections, in a zip file of Desktop’s logs that you save from the **Help** menu. To save it, open **Help > Troubleshooting** and select the item for your system:
+
+ * **macOS** : **Show Logs in Finder**
+ * **Windows** : **Show Logs in File Explorer**
+ * **Linux** : **Show Logs in File Manager**
+
+Look through the files before you send them, because they can include names and other details from your environment. `<host>` and `<user>` stand for names that Desktop replaced. Desktop doesn’t replace every name, and an SSH host or user name can still appear as written. If you send the zip file to someone, tell them which host failed and when, because the logs may not name it. The zip file doesn’t hold the log of the helper program that Desktop installs on the remote machine. To get that log as well, copy `remote-server.log` from the helper’s folder under `~/.claude/remote/run/` in the home directory of the user who connected. Look through that file too before you send it.
+
+###
+
+
+
App won’t quit
* **macOS** : press Cmd+Q. If the app doesn’t respond, use Force Quit with Cmd+Option+Esc, select Claude, and click Force Quit.
Show diff (258 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -34,7 +34,7 @@
Before you send your first message, configure four things in the prompt area:
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for a cloud session that continues after you close the app, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for a cloud session that continues after you close the app, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). A task in an SSH session can keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires. See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -218,7 +218,7 @@
Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local and SSH sessions.
+The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local and SSH sessions, with a limit on Windows remote machines.
###
@@ -440,6 +440,8 @@
For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, select **Projects** in the sidebar to create a [project](</docs/en/claude-projects>), where Claude starts and tracks the sessions for you from one conversation.
+A task in an SSH session can also keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
+
###
@@ -500,7 +502,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account, except local sessions when your organization sets [`disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account, except local sessions when your organization sets [`disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
###
@@ -702,7 +704,7 @@
* **Local** : runs on your machine with direct access to your files
* **Cloud** : runs on Anthropic-managed infrastructure by default. Sessions continue even if you close the app.
- * **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers
+ * **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers. A running task can keep going while Desktop is disconnected, but with a Claude account it can stop when its sign-in expires.
* **WSL** (Windows): runs inside a [WSL 2 distribution](</docs/en/desktop-wsl>) on your machine, using its Linux toolchain and native paths
###
@@ -740,7 +742,11 @@
SSH sessions
-SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, open the environment dropdown in the prompt box before you start a session, then select **SSH > Add SSH connection…** and fill in the connection details:
+SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies.
+
+If you use Desktop with a [third-party provider](</docs/en/third-party-integrations>), SSH sessions need their own setup. See [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+
+To add an SSH connection, open the environment dropdown in the prompt box before you start a session, then select **SSH > Add SSH connection…** and fill in the connection details:
* **Name** : a friendly label for this connection
* **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`
@@ -748,7 +754,187 @@
* **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent.
* **Worktree folder** : a folder on the remote machine, such as `~/worktrees`, where new sessions create their worktrees. Leave empty to use the remote machine’s default.
-Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine can run Linux, macOS, or Windows. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+
+####
+
+
+
+Remote machine requirements for SSH sessions
+
+A Linux or macOS remote machine needs a supported processor, an SSH server with SFTP, an install folder that isn’t mounted `noexec`, a working shell, and network access. Check each requirement before you connect, or when a connection fails after you log in:
+
+ * **System** : an x86_64 or arm64 processor. The machine also has to meet Claude Code’s [system requirements](</docs/en/setup#system-requirements>).
+ * **SFTP** : the SSH server has to offer the SFTP subsystem, which a `Subsystem sftp` line in its `sshd_config` turns on. To check, connect to the same host and port with `sftp` in a terminal on your computer. A working server shows the `sftp>` prompt.
+ * **Sessions per connection** : Desktop on macOS and Linux opens several sessions on one SSH connection. If the server’s `sshd_config` sets `MaxSessions 1`, raise it, for example to OpenSSH’s default of 10.
+ * **Install folder** : Desktop installs a helper program and Claude Code under `~/.claude/remote/` in your home directory. It runs them from there, so that folder can’t be on a file system mounted `noexec`. Allow about 1 GB of disk space in the home directory of each user who connects.
+ * **Shell** : the shell set for your account on the remote machine has to run commands sent over SSH, as Bash, Zsh, and `sh` do
+ * **Network** : Claude Code runs on the remote machine and makes its network requests from there, so the machine needs the [network access that Claude Code requires](</docs/en/network-config#network-access-requirements>). If the machine can’t download Claude Code, Desktop downloads it on your computer and uploads it. Claude Code’s other requests still go out from the remote machine.
+
+####
+
+
+
+Use your SSH configuration on macOS and Linux
+
+On macOS and Linux, Desktop connects by running the OpenSSH client on your computer, so it uses your `~/.ssh/config`. Connecting through the OpenSSH client requires Claude Desktop v1.37937.0 or later. Enter a `Host` name from that file in the **SSH host** field to use settings from its entry, such as `HostName`, `User`, `IdentityFile`, `CertificateFile`, `ProxyJump`, and `ProxyCommand`. Before you add the connection, check the client and the entry in a terminal on your computer:
+
+ * **Client version** : run `ssh -V`. The client has to be OpenSSH 7.6 or later.
+ * **Entry** : run `ssh` with the `Host` name, such as `ssh devbox`. If that fails, fix the entry first.
+
+You can leave the **SSH port** and **SSH key (optional)** fields empty. If you fill one in, Desktop uses it with the entry:
+
+ * **SSH port** : a value here overrides the entry’s `Port`
+ * **SSH key (optional)** : Desktop offers the key file you pick in addition to the entry’s `IdentityFile` and the keys in your SSH agent
+
+##### Reach a machine behind a jump host
+
+To reach a machine behind a jump host, also called a bastion, set `ProxyJump` or `ProxyCommand` in the entry. The following entry reaches `devbox.internal.example.com` through `bastion.example.com`:
+
+~/.ssh/config
+
+ Host devbox
+ HostName devbox.internal.example.com
+ User alice
+ ProxyJump bastion.example.com
+
+Enter `devbox` in the **SSH host** field.
+
+##### Raise the SSH connection timeout
+
+If your SSH configuration sets no `ConnectTimeout` for the host, Desktop gives `ssh` 30 seconds to connect. Through a jump host or a `ProxyCommand`, that time includes the time the route takes to connect. If your route needs longer, add a higher value to the entry:
+
+~/.ssh/config
+
+ Host devbox
+ HostName devbox.internal.example.com
+ User alice
+ ProxyJump bastion.example.com
+ ConnectTimeout 120
+
+`ssh` uses the first value it finds for a host, so keep the entry above any `Host *` entry that sets `ConnectTimeout`. To confirm, run `ssh -G devbox` in a terminal on your computer. Its output includes `connecttimeout 120`. After you change the value, quit and reopen Desktop.
+
+####
+
+
+
+Windows remote machines
+
+A Windows remote machine requires Claude Desktop v2.31226.0 or later. Use Microsoft’s OpenSSH Server. The machine can be x64 or ARM64. The shell that the SSH server starts can be `cmd.exe`, Windows PowerShell 5.1, or Git Bash. Windows remote machines get less testing than Linux ones. Try your own work there before you rely on it. Expect these limits, among others, on a Windows remote machine:
+
+ * **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.
+ * **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
+ * **Running while disconnected** : a task keeps running while Desktop is disconnected only if the SSH server lets a program outlive the connection that started it. To find out, test the remote machine.
+ * **Leftover processes** : after a session ends, check the machine for programs that Claude Code started, because they can keep running. The background helper that Desktop installs doesn’t stop on its own there.
+
+####
+
+
+
+Keep a task running while Desktop is disconnected
+
+If your computer sleeps, you lose your network, or you quit Desktop, the task goes on until it finishes, needs you, or reaches one of the limits. Closing the lid counts as sleep. A restart of Desktop or of your computer, including for an update, counts as a quit. Claude Code runs as a process on the remote machine, under a background helper that Desktop installs there, so it doesn’t need your SSH connection to keep running. The behavior in this section requires Claude Desktop v2.31226.0 or later.
+
+If you sign in to Desktop with a Claude account, don’t count on a task to run overnight. Desktop renews that sign-in for the task only while Desktop is running and connected, so the task’s sign-in can expire after you disconnect, and the task then stops. How much time is left when you disconnect varies.The work done so far stays on the remote machine, and you can continue with a message when you return.If the task must run through the night:
+
+ * [Keep your computer awake](</docs/en/desktop-scheduled-tasks#how-scheduled-tasks-run>) and online, with the lid open and Desktop running
+ * Use a login that works without a prompt, such as a key that your SSH agent holds, for the remote machine and for any jump host on the way. Desktop can then reconnect on its own after a drop.
+
+For a task that must run while your computer is asleep or off, start a cloud session instead.
+
+ * **After sleep or a network loss** : you get the running task back if the process still runs and Desktop can log in without a prompt. If it can’t, send a message.
+ * **After a quit, with Desktop on macOS or Linux and a Claude account** : you get the running task back if Desktop can rejoin the process. If it can’t, the task stops. If it stays stopped, send a message.
+ * **After a quit, with Desktop on Windows or a[third-party provider](</docs/en/third-party-integrations>)**: you lose the running task, because Desktop ends the process when the session opens. Send a message to continue.
+
+When you come back and the task isn’t done, check for word that Desktop can’t reconnect, an authentication error, or a waiting request:
+
+ * **Desktop can’t reconnect** : the session says why, and a notification may say so too. Desktop may need you to log in.
+ * **Authentication error** : the sign-in token or credential may have expired. With a Claude account, send a message to continue. With a third-party provider, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+ * **Waiting request** : answer it
+ * **None of these** : send a message to continue
+
+##### Prepare a long task
+
+ * **Update first** : update Desktop before you start a long task. On macOS and Windows, Desktop can restart on its own to install an update that it has downloaded. That restart waits while Claude is working on an SSH task. On macOS with a Claude account, by default the restart can go ahead anyway once the update has waited 72 hours.
+ * **Don’t quit Desktop** : if Desktop runs on Windows or uses a third-party provider, leave it open while the long task runs. After a quit, it ends the running task when the session opens. Leaving it open doesn’t protect a request that waits for you.
+ * **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.
+ * **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
+
+A task that you leave running can end when its sign-in expires, when the remote machine ends it, or when the helper stops or is replaced:
+
+ * **Sign-in token or credential** : with a Claude account, the task stops with an authentication error when the token expires. With a third-party provider, the same holds for a credential that expires, such as one from single sign-on or a credential helper. See [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>). With a Claude account, keep Desktop running and connected so that it can renew the sign-in.
+ * **The remote machine** : if the remote machine restarts, or ends your processes when your SSH connection closes, the running task ends. Nothing starts it again while Desktop is disconnected. Linux machines where systemd-logind’s `KillUserProcesses` is `yes` and applies to your user end your processes this way. To keep a task running there, ask the administrator to exempt your user, for example with `KillExcludeUsers`.
+ * **Idle terminals** : some Linux remote machines log out a terminal that nobody types in for a set time (systemd-logind’s `StopIdleSessionSec`). With Desktop on macOS or Linux, a session’s terminal and `!` commands share Desktop’s SSH connection by default. That logout then ends the connection while Desktop is connected, and the running task can end with it. Closing the terminal pane doesn’t prevent it, so keep commands out of that terminal.
+ * **Desktop updates** : if an update brings a new helper, Desktop replaces the helper on the remote machine at a later connection, which can end a task that still runs
+ * **Long absences** : on a Linux or macOS remote machine, if Desktop doesn’t connect for 30 days, the helper stops and ends every Claude Code process that runs under it. Connect before then.
+
+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.
+ * **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
+ * **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
+
+On a Linux or macOS remote machine, the check doesn’t go through Desktop, so edits inside the worktree keep working while Desktop is disconnected. Before Claude Desktop v2.37337.0, this holds on a Linux remote machine only.Edits still fail in some cases, including these:
+
+ * **Built-in SSH client** : Desktop uses it, for example in a Microsoft Store install, on a Windows computer without Microsoft’s OpenSSH 9.4 or later, or by default on Windows with a third-party provider
+ * **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
+ * **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.
+
+##### Handle requests that arrive while you are away
+
+If Claude needs your approval or asks you a question while Desktop is disconnected, Claude waits on the remote machine. The wait has no time limit of its own. When Desktop rejoins the process, it shows you the request. If Desktop starts a new process instead, you lose the request. While a task waits for you, Desktop can restart on its own, for example to install an update. If Desktop runs on Windows or uses a third-party provider, you lose the request after that restart. If you lose a request, send a message to continue. To reduce how often a task stops to wait for you, and to hear from it while you are away, set up any of these before you leave:
+
+ * **Auto mode** : choose Auto mode if it is available to you. After repeated blocks, you are [asked again](</docs/en/permission-modes#when-auto-mode-falls-back>).
+ * **Allow rules** : in your user settings file on the remote machine, `~/.claude/settings.json`, add [allow rules](</docs/en/permissions#manage-permissions>) for the commands the task needs. If your organization [accepts permission rules from managed settings only](</docs/en/settings-reference#allowmanagedpermissionrulesonly>), ask your administrator to add them to the managed settings that reach the remote machine. For allow rules in a project’s `.claude/settings.json`, see [Project allow rules and workspace trust](</docs/en/permissions#project-allow-rules-and-workspace-trust>).
+ * **A hook that answers** : configure a [`PermissionRequest` hook](</docs/en/hooks#permissionrequest>) in `~/.claude/settings.json` on the remote machine to allow or deny requests in your place
+ * **A hook that alerts you** : configure a [`Notification` hook](</docs/en/hooks#notification>) with the `permission_prompt` matcher in the same file to send yourself a message when a request is waiting
+ * **A hook that tells you when Claude is done** : configure a [`Stop` hook](</docs/en/hooks#stop>) in the same file to send yourself a message when Claude has finished responding. It doesn’t run when an API error ends the turn. For that case, configure a [`StopFailure` hook](</docs/en/hooks#stopfailure>).
+
+If your organization [runs managed hooks only](</docs/en/settings-reference#allowmanagedhooksonly>), ask your administrator to add the hook to the managed settings that reach the remote machine. Claude Code doesn’t auto-approve [a few actions](</docs/en/permission-modes#actions-no-mode-auto-approves>) in any permission mode, including Bypass permissions. Depending on the permission mode, Claude Code denies such an action or asks you, and the task then waits for your answer.
+
+##### Reconnect after sleep or a network loss
+
+If Desktop hasn’t reconnected when you come back, send a message in the session. Desktop reconnects on its own only where it can log in without a prompt, for example with a key that your SSH agent holds.
+
+ * **Remembered password** : a password that you let Desktop remember also works without a prompt, but for a long absence prefer a key that your SSH agent holds. If sign-ins with that password break off or hang, Desktop can stop reconnecting and wait for you.
+ * **Any other prompt** : if the remote machine prompts for anything else, such as a one-time code, you can get a notification on your computer. Click the notification, or send a message in the session, and Desktop shows the prompt.
+
+If a jump host asks for a sign-in, the outage is long, output is missing, or the process is gone
+
+ * **Jump host, pushes stop while you’re away** : this can happen with Desktop on macOS or Linux when nobody answers a jump host’s sign-in, for example a push to a phone. Desktop then stops reconnecting while nobody is at your computer. When you unlock or use the computer, you can get another push, because Desktop can try again. After three unanswered attempts it waits until you retry or send a message.
+ * **Jump host, pushes keep coming** : where Desktop can’t tell that nobody answers, as with Desktop on Windows, it keeps trying while it has a process to rejoin, whether or not that process still runs. You can get another push with each attempt. To end the attempts, quit Desktop, which can cost you the running task.
+ * **Long outage** : Desktop slows to about one attempt every five minutes. To reconnect sooner, retry in the session or send a message, which Desktop delivers once it is connected.
+ * **Missing output** : while Desktop is disconnected, the helper keeps each session’s most recent Claude Code output in a 16 MiB buffer and drops older output. After Desktop reconnects, the session can show `Loading recent output from <host>…`. If Desktop can’t load all of the output, you see the row `Some output produced while you were disconnected may be missing here.` The row doesn’t mean that the task stopped.
+ * **Process gone** : if the process is gone when Desktop reconnects, Desktop can start a new one from the conversation’s saved history and tell Claude to continue the task. Desktop doesn’t continue the task on its own if the process keeps ending, or if Desktop uses a third-party provider. Send a message to continue.
+
+##### Reopen a session after you quit Desktop
+
+After you quit Desktop, the task keeps running on the remote machine until it finishes, needs you, or reaches one of the limits.
+
+ * **Desktop on macOS or Linux, with a Claude account** : start Desktop and open the session. You get the running task back when Desktop can rejoin the process. It can’t always rejoin, for example after some Desktop updates or after your organization changes its managed settings.
+ * **On macOS or Linux, when Desktop can’t rejoin** : Desktop ends the process and starts a new one from the conversation’s saved history. Your running task stops, and you lose any approval or question that was waiting for you. After an update, Desktop can then tell Claude to continue. If the task stays stopped, send a message.
+ * **Desktop on Windows, or with a third-party provider on any platform** : start Desktop again only when you expect the task to be done. You don’t get the running task back, because Desktop never rejoins after a quit. It ends the process when the session opens, which can happen as Desktop starts. Send a message to continue.
+
+For third-party deployments, see [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>).
+
+While a conversation’s Claude Code process is still running, don’t run [`claude --resume`](</docs/en/cli-reference#cli-flags>) for it on the remote machine. Claude Code doesn’t stop you, and both processes then write to the same conversation. If you aren’t sure, add `--fork-session`, which continues in a copy of the conversation, but both processes still work on the same files.
####
@@ -762,7 +948,7 @@
2. [`worktree.location`](</docs/en/settings-reference#worktree-location>) in `~/.claude/settings.json` on the remote machine
3. `<project-root>/.claude/worktrees/`, the default
-Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. To set **Worktree folder** on a connection you added earlier or one your organization manages, hover over it in the environment dropdown and click the gear icon. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
+Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. On a Windows remote machine, Desktop always uses the default. To set **Worktree folder** on a connection you added earlier or one your organization manages, hover over it in the environment dropdown and click the gear icon. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
####
--- a/desktop.md
+++ b/desktop.md
@@ -821,7 +821,7 @@
]
}
-Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`.
+Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`. If you leave `user@` out of `sshHost`, Desktop connects as the `User` that each developer’s `~/.ssh/config` sets for the host, or else as their username on their own computer.
####
@@ -838,6 +838,57 @@
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.
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 `Host` aliases and `ProxyCommand`/`ProxyJump` entries are permitted as long as the resolved `HostName` matches. `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.
+
+####
+
+
+
+Turn off local sessions and distribute SSH connections
+
+To turn off local sessions and limit SSH sessions to hosts that you choose, deploy [`disableDesktopLocalSessions`](</docs/en/settings-reference#disabledesktoplocalsessions>), `sshConfigs`, and `sshHostAllowlist` together.
+
+This setup is for users who sign in with a Claude account. With a [third-party provider](</docs/en/third-party-integrations>), SSH sessions are off by default, and setting `sshHostAllowlist` can turn them on. Read [SSH remote sessions in Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions>) before you deploy these keys.
+
+The following example turns off local sessions, adds one connection, and limits SSH sessions to that connection’s host:
+
+managed-settings.json
+
+ {
+ "disableDesktopLocalSessions": true,
+ "sshConfigs": [
+ {
+ "id": "shared-dev-vm",
+ "name": "Shared Dev VM",
+ "sshHost": "dev.example.com"
+ }
+ ],
+ "sshHostAllowlist": ["dev.example.com"]
+ }
+
+The keys apply to the desktop app. They leave other ways to run Claude Code as they are, such as the CLI, Cowork, and cloud sessions:
+
+ * **The CLI** : none of the keys stops a developer from running the Claude Code CLI on their own computer
+ * **Cowork** : none of the keys applies to [Cowork](<https://claude.com/docs/cowork/overview>) sessions or Cowork scheduled tasks
+ * **Cloud sessions** : none of the keys changes whether cloud sessions are available. To turn them off, use the **Cloud sessions** setting under Admin console controls.
+
+When you adapt the example, check the hostnames and the Desktop version:
+
+ * **Hostnames** : make sure that a pattern in `sshHostAllowlist` matches the hostname of each `sshConfigs` entry, without `user@`, or developers can’t connect to it. For how Desktop matches a hostname, see Restrict which SSH hosts users can connect to.
+ * **Version** : `disableDesktopLocalSessions` requires Claude Desktop v1.37937.0 or later
+
+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:
+
+1
+
+Check the environment dropdown
+
+Quit and reopen Desktop, then open the environment dropdown in the prompt box. **Local** is grayed out, and **Shared Dev VM** appears under **SSH**. If **Local** is still available, check the Desktop version, that the file is valid JSON, and which managed source the computer reads.
+
+2
+
+Add a host that isn't on the allowlist
+
+Add an SSH connection with a hostname that isn’t on the allowlist, such as `other.example.com`. Desktop saves the connection but refuses to connect, and says that your organization’s settings don’t allow the connection.
##
--- a/desktop.md
+++ b/desktop.md
@@ -390,7 +390,12 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>). To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>). To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory:
+
+ * **Local sessions** : set **Worktree location** in **Settings > Claude Code**
+ * **SSH sessions** : set **Worktree folder** on the SSH connection
+
+You can also set a **Branch prefix** in **Settings > Claude Code**. Desktop prepends it to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in **Settings > Claude Code**. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root. See [What worktrees share with the main checkout](</docs/en/worktrees#what-worktrees-share-with-the-main-checkout>) for where a worktree session reads project settings, hooks, and skills.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
@@ -741,8 +746,23 @@
* **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`
* **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config
* **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent.
+ * **Worktree folder** : a folder on the remote machine, such as `~/worktrees`, where new sessions create their worktrees. Leave empty to use the remote machine’s default.
Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+
+####
+
+
+
+Choose where SSH session worktrees go
+
+Unless your organization restricts which folders sessions may use, new SSH sessions create their worktrees in the first of these that is set:
+
+ 1. **Worktree folder** on the SSH connection
+ 2. [`worktree.location`](</docs/en/settings-reference#worktree-location>) in `~/.claude/settings.json` on the remote machine
+ 3. `<project-root>/.claude/worktrees/`, the default
+
+Each project gets its own subfolder in the folder you set, so with `~/worktrees` a worktree’s path is `~/worktrees/<project>-<id>/<worktree-name>`. If the folder you set is inside the project, Desktop ignores it for that project and uses the default. To set **Worktree folder** on a connection you added earlier or one your organization manages, hover over it in the environment dropdown and click the gear icon. The field requires Claude Desktop v1.44121.0 or later. If your organization restricts which folders sessions may use, Desktop hides the field and keeps worktrees inside the project.
####
@@ -787,7 +807,7 @@
Pre-configure SSH connections for your team
-Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>). Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but can’t edit or delete them in the app. The following example pre-configures a single connection:
+Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>). Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed. Users can select them and set their own **Worktree folder** for them, but can’t edit anything else or delete them in the app. The following example pre-configures a single connection:
{
"sshConfigs": [
@@ -841,7 +861,7 @@
In Enterprise organizations that have HIPAA enabled, the **Desktop** toggle is off by default and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on. Applying the [HIPAA configuration](</docs/en/hipaa-setup>) turns it off, even if it was on, so an Owner has to turn it on afterward. **Cloud sessions** and **Remote Control** are also off by default, and an Owner can’t turn them on once the organization has the HIPAA configuration applied.
-The OpenTelemetry form for Cowork under **Monitoring** in the admin console’s [Data and privacy settings](<https://claude.ai/admin-settings/data-privacy-controls>) applies to Cowork sessions only. In a Cowork session on this machine, the desktop app passes that collector to Claude Code as `OTEL_*` environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [administrator configuration for monitoring](</docs/en/monitoring-usage#administrator-configuration>). Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see [network access](</docs/en/cloud-environments#network-access>). For the `service.name` that Code tab sessions report, see [service information](</docs/en/monitoring-usage#service-information>).
+The OpenTelemetry form for Cowork under **Monitoring** in the admin console’s [Data and privacy settings](<https://claude.ai/admin-settings/data-privacy-controls>) applies to Cowork sessions only. In a Cowork session on this machine, the desktop app passes that collector to Claude Code as `OTEL_*` environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [administrator configuration for monitoring](</docs/en/monitoring-usage#administrator-configuration>). Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see [network access](</docs/en/cloud-environments#network-access>). For the `service.name` that Code tab sessions report, see [service information](</docs/en/monitoring-usage#service-information>).To find out which remote machine an SSH session ran on, see [Attribute telemetry to Desktop SSH sessions](</docs/en/monitoring-usage#attribute-telemetry-to-desktop-ssh-sessions>).
###
@@ -859,7 +879,7 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
-`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
+`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users can’t delete managed connections or edit anything but their own **Worktree folder**.
`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.
--- a/desktop.md
+++ b/desktop.md
@@ -390,7 +390,7 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>). To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
@@ -867,7 +867,7 @@
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
- * **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 or key](</docs/en/server-managed-settings#platform-availability>), following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
+ * **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>).
* **[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.
@@ -1081,6 +1081,14 @@
Click the version number to copy it to your clipboard.
+####
+
+
+
+Claude Code version in the Code tab
+
+To see which version of Claude Code a session runs, type `/status` in a local session in the **Code** tab and read the **Claude Code** row, which shows a version such as `2.1.286`. To get a newer version for local sessions, open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows, then start a new session. In a local session, the **Code** tab runs its own copy of Claude Code, which has its own version number. The desktop app downloads and updates that copy, so it can differ from the `claude` command in your terminal, and updating one doesn’t update the other.
+
###
Show diff (213 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -61,6 +61,19 @@
+Accept a suggested prompt
+
+After Claude replies, the Code tab can show a suggested next prompt as gray text in the empty prompt box. Claude Code [generates each suggestion](</docs/en/interactive-mode#prompt-suggestions>) from your conversation with a short background request that counts toward your plan’s usage limits or your API costs.
+
+ * **Use the suggestion** : press **Tab** or **Right arrow** to place it in the prompt box, edit it if you want, then press **Enter** to send it. Pressing **Enter** before you accept the suggestion doesn’t send it.
+ * **Write your own prompt** : start typing. The suggestion shows only while the prompt box is empty and has no attached files.
+
+Go to **Settings > Claude Code** and turn off **Prompt suggestions** under **Sessions** to stop suggestions in each session from the next time it starts or resumes.
+
+###
+
+
+
Add files and context to prompts
The prompt box supports two ways to bring in external context:
@@ -96,7 +109,7 @@
Auto mode availability
-Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
+Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
###
@@ -205,7 +218,7 @@
Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only.
+The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local and SSH sessions.
###
@@ -260,6 +273,7 @@
`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Next or previous session
`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
`Esc`| Stop Claude’s response
+`Tab` / `Right arrow`| Accept the suggested prompt in an empty prompt box
`Cmd` `Shift` `D`| Toggle diff pane
`Cmd` `Shift` `B`| Toggle Browser pane
`Cmd` `Shift` `S`| Select an element in the Browser
@@ -272,7 +286,7 @@
`Cmd` `Shift` `E`| Open effort menu
`1`–`9`| Select item in an open menu
-These shortcuts apply only to the Code tab. The terminal-based [interactive mode shortcuts](</docs/en/interactive-mode#keyboard-shortcuts>), such as `Shift+Tab` to cycle permission modes, do not apply in Desktop.
+These shortcuts apply to the Code tab. In Desktop, `Shift+Tab` doesn’t cycle permission modes as it does in the terminal’s [interactive mode](</docs/en/interactive-mode#keyboard-shortcuts>).
###
@@ -431,6 +445,25 @@
* Select **Cloud** to continue the session as a [cloud session](</docs/en/claude-code-on-the-web>), with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in [WSL](</docs/en/desktop-wsl>) this way.
* Select an installed editor or your file manager to open the session’s folder on disk there.
+
+###
+
+
+
+Control which sessions appear on your other devices
+
+A local session shows up on your other devices once [Remote Control](</docs/en/remote-control>) connects it. A connected session appears in the session list at [claude.ai/code](<https://claude.ai/code>) and in the Claude apps on devices signed in to your claude.ai account. A local session connects when you turn Remote Control on for it, or when it connects automatically as it starts:
+
+ * **You turn it on for that session** : with the session’s **Remote Control** switch, or by typing `/remote-control` in its prompt box.
+ * **It connects when it starts** : new sessions connect automatically while **Connect new sessions to Remote Control** is on in **Settings > Claude Code**. If you’ve never changed that setting, Desktop follows [`remoteControlAtStartup`](</docs/en/settings-reference#remotecontrolatstartup>) in your user or managed settings, then your organization’s default.
+
+To see whether a session is connected, look at the laptop icon before the session title in the toolbar. The icon is highlighted while the session is connected or connecting. Click it to open the session’s **Remote Control** switch. To keep sessions off your other devices, turn Remote Control off at the level you need:
+
+ * **One session** : turn off its **Remote Control** switch. In a session that connected when it started, typing `/remote-control` leaves Remote Control on and shows `Remote Control is already on. This session connected automatically when it started.` Click **Turn off** on that line to disconnect.
+ * **New Desktop sessions on this computer** : turn off **Connect new sessions to Remote Control** in **Settings > Claude Code**. If it already shows off, turn it on and then off so Desktop saves your choice. Once saved, it takes precedence over `remoteControlAtStartup` and the defaults.
+ * **Any session on this computer, including the CLI** : set [`disableRemoteControl`](</docs/en/settings-reference#disableremotecontrol>) to `true` in `~/.claude/settings.json` to stop sessions from connecting. A session that was already connected when you saved the file stays connected until you turn Remote Control off for it.
+
+To hide a session that already appears on your other devices, archive it in Desktop. Desktop archives the session’s Remote Control copy too, so it leaves the default session list on those devices. To view or delete it there, see [Archive sessions](</docs/en/claude-code-on-the-web#archive-sessions>).
###
@@ -673,7 +706,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
@@ -715,9 +748,46 @@
+Open an SSH session from a link
+
+A `claude://code/new` link opens Desktop’s new-session page, and it can name an SSH connection. Put such a link in a runbook, dashboard, or wiki page to open Desktop set up for the right machine and folder. For platforms that strip such links, see [The link renders as plain text instead of being clickable](</docs/en/deep-links#the-link-renders-as-plain-text-instead-of-being-clickable>). SSH links require Claude Desktop v2.110.0 or later. The following link names the user `dev` on `build.example.com`, port 2222, and the folder `/srv/payments`, and fills in a prompt:
+
+ claude://code/new?ssh_host=dev%40build.example.com&ssh_port=2222&ssh_folder=/srv/payments&q=Investigate%20the%20failed%20deploy
+
+An SSH link takes these parameters, and only `ssh_host` is required:
+
+Parameter| Value
+---|---
+`ssh_host`| `host` or `user@host`, written as in the **SSH host** field. The value can’t start with `-`, and the host part takes only letters, digits, `.`, `_`, `:`, and `-`
+`ssh_port`| A port number from 1 to 65535
+`ssh_folder`| A folder on the remote machine. Start it with `/` or `~/`, or use `~`
+`q`| URL-encoded text for the prompt box
+
+An alias from `~/.ssh/config` works as `ssh_host` only for people who have that entry. To match a connection people already have, give the link the same user, host, and port as that connection. When you open the link, Desktop asks you to confirm before it selects the connection:
+
+ * **A connection you already have** : if the host, user, and port match one of your connections, Desktop asks whether to use it, and shows you the connection’s name and host, and the folder if the link names one.
+ * **A new connection** : otherwise Desktop opens the dialog for adding an SSH connection. When you add the connection, Desktop asks whether to connect before it saves anything, and shows you the host from the link, and the port and folder if the link names them.
+
+Until you confirm, Desktop doesn’t save the host, port, or folder from the link, and doesn’t select or open a connection with them. If an SSH connection is already selected, the new-session page can still connect to it on its own, as it does without a link, even when the link names the same host. A link can’t carry a key file, a password, or a command. Anyone can write a link, so check what it filled in:
+
+ * **Before you confirm** : check the host and folder.
+ * **Before you send** : check the prompt and the selected environment.
+
+Desktop fills in the prompt when the link opens, in place of any text you haven’t sent, and never sends it for you. It treats the prompt as plain text, so a leading `/` or `!` and an `@` file mention don’t act as a command or a mention. If you cancel, the prompt stays in the box and the environment you had selected doesn’t change. A link doesn’t bypass `sshHostAllowlist`. Desktop checks the allowlist when it connects. If the link opens Desktop without a dialog about the connection, look for one of these causes:
+
+ * **You’re signed out** : sign in, then open the link again.
+ * **Another dialog is open** : close it, then open the link again.
+ * **The link isn’t valid** : Desktop shows a message that says what to fix, and doesn’t fill in the prompt.
+ * **Desktop is older than v2.110.0** : earlier versions ignore the SSH parameters and open the new-session page with only the prompt.
+ * **SSH sessions are turned off** : if your administrator sets the allowlist to an empty array, Desktop refuses SSH links.
+
+####
+
+
+
Pre-configure SSH connections for your team
-Administrators can distribute SSH connections to team members by adding `sshConfigs` to a [managed settings](</docs/en/managed-settings>) file. Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but cannot edit or delete them in the app. The following example pre-configures a single connection:
+Administrators can distribute SSH connections to team members by setting `sshConfigs` in [managed settings](</docs/en/managed-settings>). Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but can’t edit or delete them in the app. The following example pre-configures a single connection:
{
"sshConfigs": [
@@ -731,7 +801,7 @@
]
}
-Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`, which is where connections added through the dialog are stored.
+Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`.
####
@@ -739,11 +809,13 @@
Restrict which SSH hosts users can connect to
-Administrators can limit Desktop’s SSH sessions to an approved set of hosts by adding `sshHostAllowlist` to a [managed settings](</docs/en/managed-settings>) file. When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions entirely. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
+Administrators can limit Desktop’s SSH sessions to an approved set of hosts by setting `sshHostAllowlist` in [managed settings](</docs/en/managed-settings>). When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions. The [`sshHostAllowlist` reference entry](</docs/en/settings-reference#sshhostallowlist>) says how an empty array combines with lists in other managed sources. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
{
"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.
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 `Host` aliases and `ProxyCommand`/`ProxyJump` entries are permitted as long as the resolved `HostName` matches. `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.
@@ -788,15 +860,16 @@
`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
-`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
+`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.
`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.
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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 or key](</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`, and `disableDesktopLocalSessions` from the local machine’s managed settings.
+ * **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>).
* **[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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
@@ -807,10 +880,11 @@
Device management policies
-IT teams can manage the desktop app through MDM on macOS or group policy on Windows. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates, and setting a custom deployment URL.
+IT teams can manage the desktop app through MDM on macOS, group policy on Windows, or a policy file on Linux. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates on macOS and Windows, and setting a custom deployment URL.
* **macOS** : configure via `com.anthropic.claudefordesktop` preference domain using tools like Jamf or Kandji
* **Windows** : configure via registry at `SOFTWARE\Policies\Claude`
+ * **Linux** : configure via a root-owned file at `/etc/claude-desktop/managed-settings.json`, which holds the policy keys as a JSON object. Desktop refuses the file if anyone but root can write to it or to its folder. It’s a different file from Claude Code’s [managed settings file](</docs/en/managed-settings>).
###
@@ -841,7 +915,6 @@
assets-proxy.anthropic.com
claude.ai
a.claude.ai
- a-cdn.claude.ai
assets.claude.ai
downloads.claude.ai
*.livepreview.claude.ai
@@ -981,7 +1054,7 @@
* **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, or to run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, follow the links in the Third-party providers row.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
- * **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
+ * **Inline code suggestions** : Desktop doesn’t offer autocomplete-style code completions. It works through conversational prompts and explicit code changes, and can suggest your next prompt after Claude replies.
* **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
--- a/desktop.md
+++ b/desktop.md
@@ -1004,7 +1004,7 @@
To see which version of the desktop app you’re running:
* **macOS** : click **Claude** in the menu bar, then **About Claude**
- * **Windows** : click **Help** , then **About**
+ * **Windows** : click **Help** , then **About Claude**
Click the version number to copy it to your clipboard.
Show diff (139 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -108,11 +108,10 @@
* Interact with your running app directly in the Browser pane
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
- * Start or stop servers from the server dropdown in the session toolbar
- * Persist cookies and local storage across server restarts by selecting **Persist sessions** in the dropdown, so you don’t have to re-login during development
- * Edit the server configuration or stop all servers at once
-
-Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear saved session data, or to turn the Browser off entirely, use the toggles in Settings → Claude Code.
+ * Start or stop servers, or stop them all at once, from the **Dev servers** menu in the Browser pane’s header
+ * Choose whether the Browser keeps cookies after you quit the app with **Keep cookies** in the Browser pane’s **⋮** menu, so you don’t have to sign in again during development
+
+Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Claude Code**.
###
@@ -120,7 +119,7 @@
Browse external sites
-The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select it from the **Views** menu. When you click an external link in the chat, a chooser offers **Open in app** to use the Browser pane or **Default browser** to use your own; **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your system browser directly. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
+The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or click **Browser** in the session’s title bar. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. The first time you click an external link in the chat, a dialog asks whether links open in the Browser pane or in your default browser. To change your choice later, use **Open links in built-in browser** in the Browser pane’s **⋮** menu. **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your default browser directly. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
* Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode.
* In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
@@ -168,7 +167,12 @@
Review your code
-In the diff view, click **Review code** in the top-right toolbar to ask Claude to evaluate the changes before you commit. Claude examines the current diffs and leaves comments directly in the diff view. You can respond to any comment or ask Claude to revise. The review focuses on high-signal issues: compile errors, definite logic errors, security vulnerabilities, and obvious bugs. It does not flag style, formatting, pre-existing issues, or anything a linter would catch.
+To have Claude review your changes before you commit, enter `/code-review` in the prompt box. The findings arrive in the conversation when the review completes. In local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions, the findings appear as a **Code review** card, grouped by file. Use the card to act on them:
+
+ * Click **Walk through in diff** to open the diff view and step through the findings one at a time. A finding in the current diff appears at its line, where you can click **Fix this one** or dismiss it.
+ * Click **Apply fixes** to ask Claude to fix the findings that are still open.
+
+In any session, you can also ask Claude in the prompt box to fix what the review found. For what `/code-review` looks for and the arguments it takes, see [Review a diff locally](</docs/en/code-review#review-a-diff-locally>).
###
@@ -178,10 +182,10 @@
After you open a pull request, a CI status bar appears in the session. Claude Code uses the GitHub CLI to poll check results and surface failures.
- * **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating.
- * **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR.
-
-Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes. To archive the session automatically once the PR merges or closes, turn on auto-archive in Settings → Claude Code.
+ * **Auto-fix CI & address comments**: when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating. In a local session, Claude also addresses new review comments that someone other than you leaves, when the author is the repository’s owner, an organization member, a collaborator, or a GitHub App.
+ * **Auto-merge when ready** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR.
+
+To turn these on, click **CI** in the status bar. To archive the session automatically once the PR merges or closes, turn on auto-archive in **Settings > Claude Code**.
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.
@@ -191,7 +195,7 @@
Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Click **Terminal** , **Changes** , or **Browser** in the session’s title bar to open the terminal, diff, or Browser pane. The **⋮** menu beside them opens more panes, such as **Files** , and holds those buttons when the window is too narrow to show them. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
@@ -201,7 +205,7 @@
Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only.
+The integrated terminal lets you run commands alongside your session without switching to another app. Click **Terminal** in the session’s title bar or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only.
###
@@ -392,7 +396,7 @@
Watch background tasks
-The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Once the session has background work, open the pane with **Background tasks** in the title bar’s **⋮** menu. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
###
@@ -474,7 +478,7 @@
Configure preview servers
-Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the server dropdown to open it in your code editor. The file supports JSON with comments.
+Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit `.claude/launch.json`. The file supports JSON with comments.
{
"version": "0.0.1",
@@ -496,7 +500,7 @@
Auto-verify changes
-When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the server dropdown menu.
+When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or turn off **Auto-verify changes** in the Browser pane’s **⋮** menu.
{
"version": "0.0.1",
@@ -698,14 +702,14 @@
SSH sessions
-SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, click the environment dropdown before starting a session and select **\+ Add SSH connection**. The dialog asks for:
+SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, open the environment dropdown in the prompt box before you start a session, then select **SSH > Add SSH connection…** and fill in the connection details:
* **Name** : a friendly label for this connection
- * **SSH Host** : `user@hostname` or a host defined in `~/.ssh/config`
- * **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config
- * **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config.
-
-Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+ * **SSH host** : `user@hostname` or a host defined in `~/.ssh/config`
+ * **SSH port** : defaults to 22 if left empty, or uses the port from your SSH config
+ * **SSH key (optional)** : path to your private key, such as `~/.ssh/id_ed25519`. Leave empty to use your SSH config or SSH agent.
+
+Once added, the connection appears under **SSH** in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
####
@@ -762,7 +766,6 @@
* **Desktop** : control whether users in your organization can access Claude Code in the desktop app
* **Cloud sessions** : enable or disable [cloud sessions](</docs/en/claude-code-on-the-web>) for your organization
* **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization
- * **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode
In Enterprise organizations that have HIPAA enabled, the **Desktop** toggle is off by default and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on. Applying the [HIPAA configuration](</docs/en/hipaa-setup>) turns it off, even if it was on, so an Owner has to turn it on afterward. **Cloud sessions** and **Remote Control** are also off by default, and an Owner can’t turn them on once the organization has the HIPAA configuration applied.
@@ -1087,7 +1090,7 @@
”Branch doesn’t exist yet” when opening in CLI
-Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally:
+Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session and select **Copy branch name** , then fetch it locally:
git fetch origin <branch-name>
git checkout <branch-name>
--- a/desktop.md
+++ b/desktop.md
@@ -230,7 +230,7 @@
Switch view modes
-View modes control how much detail appears in the chat transcript. Switch modes from the **Transcript view** dropdown next to the send button, or press **Ctrl+O** on macOS or Windows to cycle through them. The Thinking mode appears in the dropdown only after Claude has produced thinking in the session you’re viewing.
+View modes control how much detail appears in the chat transcript. To switch view modes, open the session menu from the caret beside the session title and select **Transcript view** , or press **Ctrl+O** on macOS or Windows to cycle through them. The Thinking mode appears in the menu only after Claude has produced thinking in the session you’re viewing.
Mode| What it shows
---|---
@@ -759,10 +759,12 @@
These settings are configured through the [admin settings console](<https://claude.ai/admin-settings/claude-code>):
- * **Code in the desktop** : control whether users in your organization can access Claude Code in the desktop app
- * **Code in the web** : enable or disable [cloud sessions](</docs/en/claude-code-on-the-web>) for your organization
+ * **Desktop** : control whether users in your organization can access Claude Code in the desktop app
+ * **Cloud sessions** : enable or disable [cloud sessions](</docs/en/claude-code-on-the-web>) for your organization
* **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization
* **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode
+
+In Enterprise organizations that have HIPAA enabled, the **Desktop** toggle is off by default and an [Owner](</docs/en/server-managed-settings#access-control>) can turn it on. Applying the [HIPAA configuration](</docs/en/hipaa-setup>) turns it off, even if it was on, so an Owner has to turn it on afterward. **Cloud sessions** and **Remote Control** are also off by default, and an Owner can’t turn them on once the organization has the HIPAA configuration applied.
The OpenTelemetry form for Cowork under **Monitoring** in the admin console’s [Data and privacy settings](<https://claude.ai/admin-settings/data-privacy-controls>) applies to Cowork sessions only. In a Cowork session on this machine, the desktop app passes that collector to Claude Code as `OTEL_*` environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [administrator configuration for monitoring](</docs/en/monitoring-usage#administrator-configuration>). Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see [network access](</docs/en/cloud-environments#network-access>). For the `service.name` that Code tab sessions report, see [service information](</docs/en/monitoring-usage#service-information>).
@@ -913,7 +915,7 @@
`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
`--add-dir`| Add multiple repos with the **+** button in cloud sessions
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
-`--verbose`| Verbose view mode in the Transcript view dropdown
+`--verbose`| Verbose view mode
`--print`, `--output-format`| Not available. Desktop is interactive only.
`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
`MAX_THINKING_TOKENS` env var| Set in the local environment editor. See environment configuration.
--- a/desktop.md
+++ b/desktop.md
@@ -326,7 +326,7 @@
Turn on the toggle
-In the desktop app, go to **Settings > General** (under **Desktop app**). Find the **Computer use** toggle and turn it on. On Windows, the toggle takes effect immediately and setup is complete. On macOS, continue to the next step.If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
+In the desktop app, go to **Settings > This computer > System**. Under **Computer use** , turn on **Enable computer use**. On Windows, the toggle takes effect immediately and setup is complete. On macOS, continue to the next step.If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
3
@@ -353,7 +353,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full control| Click, type, drag, and use keyboard shortcuts| Everything else
-Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > General** (under **Desktop app**):
+Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. The **Computer use** section in **Settings > This computer > System** includes these options:
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -423,10 +423,10 @@
Continue in another surface
-The **Continue in** menu, accessible from the VS Code icon in the bottom right of the session toolbar, lets you move your session to another surface:
-
- * **Claude Code on the Web** : sends your local session to continue running in the cloud. Desktop pushes your branch, generates a summary of the conversation, and creates a new cloud session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
- * **Your IDE** : opens your project in a supported IDE at the current working directory.
+To continue a session somewhere else, open the session menu from the caret beside the session title or from the session’s row in the sidebar, then select **Open in** :
+
+ * Select **Cloud** to continue the session as a [cloud session](</docs/en/claude-code-on-the-web>), with your conversation carried over as a summary. Before you confirm, the dialog states whether your files move too and whether this session is archived once the cloud one is ready. You can’t move a session that runs over SSH or in [WSL](</docs/en/desktop-wsl>) this way.
+ * Select an installed editor or your file manager to open the session’s folder on disk there.
###
@@ -669,7 +669,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), Claude Code ignores the number itself in a positive `MAX_THINKING_TOKENS` value because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
--- a/desktop.md
+++ b/desktop.md
@@ -84,11 +84,19 @@
**Auto**| `auto`| Claude runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request. Appears when auto mode is available; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions isn’t available in cloud sessions, including sessions in a [self-hosted environment](</docs/en/self-hosted-environments>). Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+
+####
+
+
+
+Auto mode availability
+
+Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
###
@@ -677,7 +685,7 @@
Cloud sessions
-Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. When you start a cloud session, open the environment dropdown in the prompt box to manage them:
+Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. To manage them, open the environment dropdown in the prompt box and select **Cloud** :
* **Add an environment** : select **Add cloud environment**
* **Edit or archive one of your own environments** : hover over it and click the gear icon
--- a/desktop.md
+++ b/desktop.md
@@ -81,7 +81,7 @@
**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change.
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when auto mode is available; there is no separate Settings toggle for it.
+**Auto**| `auto`| Claude runs without routine prompts; before actions such as shell commands and network requests run, a background classifier checks that they align with your request. Appears when auto mode is available; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
@@ -450,7 +450,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account. Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account, except local sessions when your organization sets [`disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
###
@@ -458,7 +458,7 @@
Install plugins
-[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugins/overview>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
+[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugins/overview>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](</docs/en/settings-reference#disablesideloadflags>). The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
###
@@ -875,7 +875,11 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. You can also pick up a CLI session from inside Desktop with `/resume`. The command is available in local sessions, not in SSH, WSL, or cloud sessions. To continue a terminal session in Desktop:
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. From your shell, [`claude --desktop`](</docs/en/cli-reference#cli-flags>) opens Desktop directly without starting a terminal session. It requires Claude Code v2.1.285 or later and has the same platform and sign-in requirements as `/desktop`. With no other arguments, it opens Desktop on the current directory. To open an existing CLI session in Desktop, add `--continue` for the most recent conversation in this directory, or `--resume` with the session ID that `/status` shows:
+
+ claude --desktop --resume <session-id>
+
+Claude Code prints `Opening session <session-id> in Claude Desktop`, the session opens in the app, and the command exits. A session name doesn’t work in place of the ID. Claude Code doesn’t move a session that is open in another terminal or still running in the background. If Claude Desktop isn’t installed, the command prints a download link and exits. You can also pick up a CLI session from inside Desktop with `/resume`. The command is available in local sessions, not in SSH, WSL, or cloud sessions. To continue a terminal session in Desktop:
1. Close the session in the terminal.
2. In the Desktop prompt box, type `/resume`. Desktop lists the sessions you started from the CLI on this computer. Search by title, folder, or branch, and preview where each one left off.
--- a/desktop.md
+++ b/desktop.md
@@ -756,6 +756,8 @@
* **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization
* **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode
+The OpenTelemetry form for Cowork under **Monitoring** in the admin console’s [Data and privacy settings](<https://claude.ai/admin-settings/data-privacy-controls>) applies to Cowork sessions only. In a Cowork session on this machine, the desktop app passes that collector to Claude Code as `OTEL_*` environment variables, so the form takes effect even though Claude Code in that session never fetches admin-console settings.To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [administrator configuration for monitoring](</docs/en/monitoring-usage#administrator-configuration>). Local, cloud, and SSH sessions each read managed settings from different sources. For the hosts a cloud session can reach, see [network access](</docs/en/cloud-environments#network-access>). For the `service.name` that Code tab sessions report, see [service information](</docs/en/monitoring-usage#service-information>).
+
###
@@ -844,7 +846,7 @@
Authentication and SSO
-Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML configuration; OIDC setup is covered in the [Claude Enterprise Administrator Guide](<https://claude.com/resources/tutorials/claude-enterprise-administrator-guide>).
+Team and Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML configuration; OIDC setup is covered in the [Claude Enterprise Administrator Guide](<https://claude.com/resources/tutorials/claude-enterprise-administrator-guide>).
###
@@ -873,7 +875,13 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. To pick up a CLI session from inside Desktop instead, type `/resume` in the prompt box. Desktop lists the sessions you started from the CLI, and you can search them by title, folder, or branch and preview where each one left off. Select a session and it continues in the app with its full conversation and context.
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. You can also pick up a CLI session from inside Desktop with `/resume`. The command is available in local sessions, not in SSH, WSL, or cloud sessions. To continue a terminal session in Desktop:
+
+ 1. Close the session in the terminal.
+ 2. In the Desktop prompt box, type `/resume`. Desktop lists the sessions you started from the CLI on this computer. Search by title, folder, or branch, and preview where each one left off.
+ 3. Select the session. It continues in the app with its full conversation and context.
+
+Desktop continues the same session rather than a copy, so `claude --resume` in the terminal still finds it afterwards.
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
--- a/desktop.md
+++ b/desktop.md
@@ -661,7 +661,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5 or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5, Sonnet 5.5, or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5 and later, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
--- a/desktop.md
+++ b/desktop.md
@@ -434,7 +434,7 @@
Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins-reference#synced-plugins>).
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins/loading#synced-plugins>).
###
@@ -450,7 +450,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account. Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins/install>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account. Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
###
@@ -458,7 +458,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. To use a plugin in a cloud session, enable it for your claude.ai account so Claude Code loads it as a [synced plugin](</docs/en/plugins-reference#synced-plugins>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins/overview>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugins/overview>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins/overview>).
###
@@ -935,7 +935,7 @@
Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro and Max plans, or through organization policy on Team and Enterprise plans
[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. For gateway routing, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
-[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
+[Plugins](</docs/en/plugins/overview>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
File attachments| Not available| Images, PDFs
Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| **worktree** option when starting a session
--- a/desktop.md
+++ b/desktop.md
@@ -661,7 +661,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Opus 5.5 or the Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
--- a/desktop.md
+++ b/desktop.md
@@ -458,7 +458,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. To use a plugin in a cloud session, either declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>) so Claude Code [installs it at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>), or enable it for your claude.ai account so Claude Code loads it as a [synced plugin](</docs/en/plugins-reference#synced-plugins>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. A cloud session also doesn’t install plugins that the repository’s `.claude/settings.json` declares, as [What carries over from your setup](</docs/en/cloud-environments#what-carries-over-from-your-setup>) explains. To use a plugin in a cloud session, enable it for your claude.ai account so Claude Code loads it as a [synced plugin](</docs/en/plugins-reference#synced-plugins>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -836,7 +836,7 @@
*.claudeusercontent.com
*.claudemcpcontent.com
-If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, and `code.jquery.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
+If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, `code.jquery.com`, and `unpkg.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
###
--- a/desktop.md
+++ b/desktop.md
@@ -222,15 +222,15 @@
Switch view modes
-View modes control how much detail appears in the chat transcript. Switch modes from the **Transcript view** dropdown next to the send button, or press **Ctrl+O** on macOS or Windows to cycle through them.
+View modes control how much detail appears in the chat transcript. Switch modes from the **Transcript view** dropdown next to the send button, or press **Ctrl+O** on macOS or Windows to cycle through them. The Thinking mode appears in the dropdown only after Claude has produced thinking in the session you’re viewing.
Mode| What it shows
---|---
**Normal**| Tool calls collapsed into summaries, with full text responses
-**Verbose**| Every tool call, file read, and intermediate step Claude takes
-**Summary**| Only Claude’s final responses and the changes it made
-
-Use Verbose when debugging why Claude took a particular action. Use Summary when you’re running multiple sessions and want to scan results quickly.
+**Thinking**| Tool calls collapsed into summaries, plus Claude’s thinking
+**Verbose**| Every tool call, file read, and intermediate step Claude takes, plus Claude’s thinking
+
+Use Thinking to follow Claude’s reasoning with tool calls still collapsed. Use Verbose when debugging why Claude took a particular action. Claude Desktop versions before 1.46388.1 also list a Summary mode, and a session still set to Summary opens in Normal once you update.
###
--- a/desktop.md
+++ b/desktop.md
@@ -368,7 +368,7 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session. For sessions that belong to a [project](</docs/en/claude-projects#see-what-needs-you-in-overview>), you get the project’s notifications instead.
###
@@ -407,7 +407,7 @@
Run long-running tasks in the cloud
-For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work. When one body of work needs many cloud sessions, select **Projects** in the sidebar to create a [project](</docs/en/claude-projects>), where Claude starts and tracks the sessions for you from one conversation.
###
--- a/desktop.md
+++ b/desktop.md
@@ -434,7 +434,7 @@
Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory.
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory. Claude Code also loads the skills and plugins enabled for your claude.ai account in terminal sessions where you sign in with the same account. See [Skills synced from claude.ai](</docs/en/skills#how-synced-skills-behave>) and [Plugins synced from claude.ai](</docs/en/plugins-reference#synced-plugins>).
###
@@ -450,7 +450,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Personal skills in `~/.claude/skills/` apply to local sessions; an SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Cloud sessions load the skills enabled for your claude.ai account instead. See [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>).
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Local sessions load your personal skills from `~/.claude/skills/`. An SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Local and cloud sessions also load the skills enabled for your claude.ai account. Cloud sessions load them instead of `~/.claude/skills/`, as [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>) describes.
###
--- a/desktop.md
+++ b/desktop.md
@@ -139,7 +139,7 @@
Restrict external browsing for your organization
-The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still navigate to external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
+The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
###
@@ -405,9 +405,9 @@
-Run long-running tasks remotely
-
-For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+Run long-running tasks in the cloud
+
+For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -417,7 +417,7 @@
The **Continue in** menu, accessible from the VS Code icon in the bottom right of the session toolbar, lets you move your session to another surface:
- * **Claude Code on the Web** : sends your local session to continue running remotely. Desktop pushes your branch, generates a summary of the conversation, and creates a new cloud session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
+ * **Claude Code on the Web** : sends your local session to continue running in the cloud. Desktop pushes your branch, generates a summary of the conversation, and creates a new cloud session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
* **Your IDE** : opens your project in a supported IDE at the current working directory.
###
@@ -521,7 +521,7 @@
`port`| number| The port your server listens on. Defaults to 3000
`cwd`| string| Working directory relative to your project root. Defaults to the project root. Use `${workspaceFolder}` to reference the project root explicitly
`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. To pass secrets to your dev server, set them in the local environment editor instead.
-`autoPort`| boolean| How to handle port conflicts. See below
+`autoPort`| boolean| How to handle port conflicts. See Port conflicts
`program`| string| A script to run with `node`. See when to use `program` vs `runtimeExecutable`
`args`| string[]| Arguments passed to `program`. Only used when `program` is set
`url`| string| The address the preview opens instead of `http://localhost:<port>`. See open the preview at a specific URL
@@ -547,7 +547,7 @@
]
}
-Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be just your server’s origin — no path or query, and the port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. For any other address, Desktop asks for your permission the first time the preview opens it, the same as when you browse to a new site in the preview. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
+Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be your server’s origin alone, with no path or query. Its port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. For any other address, Desktop asks for your permission the first time the preview opens it, the same as when you browse to a new site in the preview. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
{
"version": "0.0.1",
@@ -752,7 +752,7 @@
These settings are configured through the [admin settings console](<https://claude.ai/admin-settings/claude-code>):
* **Code in the desktop** : control whether users in your organization can access Claude Code in the desktop app
- * **Code in the web** : enable or disable [web sessions](</docs/en/claude-code-on-the-web>) for your organization
+ * **Code in the web** : enable or disable [cloud sessions](</docs/en/claude-code-on-the-web>) for your organization
* **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization
* **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode
--- a/desktop.md
+++ b/desktop.md
@@ -183,7 +183,7 @@
Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar. To work across screens, pop a pane such as the diff or terminal out into its own window, and dock it back when you’re done. Claude keeps working in the main window.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
@@ -280,7 +280,7 @@
Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
-Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions.
+Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions. On macOS, computer use can also run in the background: Claude works in the apps you’ve approved while you keep working.
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
@@ -348,7 +348,7 @@
Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > General** (under **Desktop app**):
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
- * **Unhide apps when Claude finishes** : while Claude is working, your other windows are hidden so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
+ * **Unhide apps when Claude finishes** : when computer use isn’t running in the background, Claude hides your other windows while it works so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
##
@@ -873,7 +873,7 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each keeps its own session list, and you can bring a CLI session into Desktop. They share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. To pick up a CLI session from inside Desktop instead, type `/resume` in the prompt box. Desktop lists the sessions you started from the CLI, and you can search them by title, folder, or branch and preview where each one left off. Select a session and it continues in the app with its full conversation and context.
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
@@ -888,7 +888,7 @@
CLI| Desktop equivalent
---|---
`--model sonnet`| Model dropdown next to the send button
-`--resume`, `--continue`| Click a session in the sidebar
+`--resume`, `--continue`| Click a session in the sidebar, or type `/resume` in the prompt box to pick up a session you started from the CLI
`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
`--add-dir`| Add multiple repos with the **+** button in cloud sessions
--- a/desktop.md
+++ b/desktop.md
@@ -407,7 +407,7 @@
Run long-running tasks remotely
-For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the selected repository to add more repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -770,7 +770,7 @@
`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>).
`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.
+`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 navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
--- a/desktop.md
+++ b/desktop.md
@@ -12,7 +12,7 @@
apt or .deb for Ubuntu and Debian
-For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history and project folder, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
* Review and comment on diffs, then watch the resulting PR through CI
* Preview your running app in the Browser pane while Claude verifies its own changes, and open external sites alongside it
@@ -364,9 +364,9 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
-
-Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, select the **worktree** option next to the branch name to give the session its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
+
+Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
@@ -938,7 +938,7 @@
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
File attachments| Not available| Images, PDFs
-Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
+Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| **worktree** option when starting a session
Multiple sessions| Separate terminals| Sidebar tabs
Recurring tasks| Cron jobs, CI pipelines| [Scheduled tasks](</docs/en/desktop-scheduled-tasks>)
Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS and Windows
@@ -1031,7 +1031,7 @@
Git and Git LFS errors
-On Windows, Git is required for the Code tab to start local sessions. If you see “Git is required,” install [Git for Windows](<https://git-scm.com/downloads/win>) and restart the app. If you see “Git LFS is required by this repository but is not installed,” install Git LFS from [git-lfs.com](<https://git-lfs.com/>), run `git lfs install`, and restart the app.
+Sessions that run in their own worktree need Git. If you see “Git is required,” install [Git](<https://git-scm.com/downloads>), or [Git for Windows](<https://git-scm.com/downloads/win>) on Windows, and try again. On Windows, Claude Desktop versions before 1.49585.0 asked for Git before starting any local session; if you see that prompt and aren’t using worktrees, update the app. If you see “Git LFS is required by this repository but is not installed,” install Git LFS from [git-lfs.com](<https://git-lfs.com/>), run `git lfs install`, and restart the app.
###
--- a/desktop.md
+++ b/desktop.md
@@ -677,7 +677,12 @@
Cloud sessions
-Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a cloud session and choose **Add cloud environment**. See [Configure cloud environments](</docs/en/cloud-environments>) for details on configuring network access and environment variables.
+Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. When you start a cloud session, open the environment dropdown in the prompt box to manage them:
+
+ * **Add an environment** : select **Add cloud environment**
+ * **Edit or archive one of your own environments** : hover over it and click the gear icon
+
+See [Configure cloud environments](</docs/en/cloud-environments>) for details on configuring network access and environment variables.
###
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when auto mode is available; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a Fable model. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a [Fable model](</docs/en/model-config#work-with-fable>). Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -770,7 +770,7 @@
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. 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.
-`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.
+`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.
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when auto mode is available; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or a Fable model. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -661,7 +661,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable 5, which always uses extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable models, which always use extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable models, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
--- a/desktop.md
+++ b/desktop.md
@@ -81,7 +81,7 @@
**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change.
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when auto mode is available; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
--- a/desktop.md
+++ b/desktop.md
@@ -392,7 +392,7 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. The receiving Claude can reply, and Claude Code delivers the reply back through this surface. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
@@ -661,7 +661,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable 5, which always uses extended thinking. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable 5, which always uses extended thinking. With thinking turned off on the Anthropic API, Claude Code sends effort `high` instead of a higher level to models it knows [don’t accept that combination](</docs/en/errors#effort-isnt-available-with-thinking-turned-off>), such as Opus 5. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), `MAX_THINKING_TOKENS` values other than `0` are ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
####
--- a/desktop.md
+++ b/desktop.md
@@ -769,16 +769,17 @@
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. 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.
+`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.
`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.
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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 or key](</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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>), apart from the [keys Claude Code reads from every admin source](</docs/en/managed-settings#keys-read-from-every-admin-source>).
+ * **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`, and `disableDesktopLocalSessions` from the local machine’s managed settings.
-
-`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
+ * **[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. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
###
@@ -830,7 +831,7 @@
*.claudeusercontent.com
*.claudemcpcontent.com
-If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render.
+If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render. Artifacts can also load JavaScript libraries, such as React or a charting package, from `cdnjs.cloudflare.com`, `cdn.jsdelivr.net`, `cdn.tailwindcss.com`, and `code.jquery.com`, and from no other external host. If you block those hosts, the parts of an artifact that depend on a library don’t work, and unlike a blocked font, a blocked library has no fallback. Block with a fast rejection here too, so a blocked library request fails at once rather than hanging until it times out.
###
--- a/desktop.md
+++ b/desktop.md
@@ -830,7 +830,7 @@
*.claudeusercontent.com
*.claudemcpcontent.com
-An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render.
+If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled for Claude, route `bridge.claudeusercontent.com` through the same proxy egress as `claude.ai` and `api.anthropic.com`. If you can’t route it that way, add the egress address your proxy uses for that host to your organization’s IP allowlist, but only when that address is dedicated to your organization: a shared proxy egress range also admits the proxy vendor’s other customers. Anthropic checks connections to that host against your organization’s IP allowlist using the address they arrive from. If your proxy sends traffic for it out through an address that isn’t on that allowlist, Claude in Chrome and other features that connect through the bridge stop working while the rest of the app keeps working. An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render.
###
--- a/desktop.md
+++ b/desktop.md
@@ -663,6 +663,14 @@
The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable 5, which always uses extended thinking. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+####
+
+
+
+Local sessions on managed devices
+
+Your administrator can turn off local sessions with the `disableDesktopLocalSessions` managed setting. When they have, **Local** stays in the environment dropdown but is grayed out and can’t be selected, with a tooltip saying your organization turned it off, and on Windows the [WSL](</docs/en/desktop-wsl>) entry, whose availability on managed devices is [governed separately](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>), is grayed out the same way. New sessions default to the first SSH connection if one is configured, and Desktop shows a message that local sessions aren’t available on this device if you try to continue an existing one. Choose an SSH or cloud environment instead, or contact your IT team.
+
###
@@ -761,13 +769,14 @@
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. 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.
`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.
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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 or key](</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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>), apart from the [keys Claude Code reads from every admin source](</docs/en/managed-settings#keys-read-from-every-admin-source>).
- * **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
+ * **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs`, `sshHostAllowlist`, and `disableDesktopLocalSessions` from the local machine’s managed settings.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
--- a/desktop.md
+++ b/desktop.md
@@ -458,7 +458,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>) so it [installs at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions. To use a plugin in a cloud session, either declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>) so Claude Code [installs it at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>), or enable it for your claude.ai account so Claude Code loads it as a [synced plugin](</docs/en/plugins-reference#synced-plugins>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -766,7 +766,7 @@
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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 or key](</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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>).
+ * **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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>), apart from the [keys Claude Code reads from every admin source](</docs/en/managed-settings#keys-read-from-every-admin-source>).
* **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
--- a/desktop.md
+++ b/desktop.md
@@ -74,7 +74,7 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#where-settings-live>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
Mode| Settings key| Behavior
---|---|---
@@ -396,7 +396,7 @@
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
- * Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings#available-settings>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
+ * Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings-reference#crosssessioninbound>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
@@ -458,7 +458,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) so it [installs at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings-reference#enabledplugins>) so it [installs at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -692,7 +692,7 @@
Pre-configure SSH connections for your team
-Administrators can distribute SSH connections to team members by adding `sshConfigs` to a [managed settings](</docs/en/settings#settings-precedence>) file. Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but cannot edit or delete them in the app. The following example pre-configures a single connection that opens in `~/projects` on the remote host:
+Administrators can distribute SSH connections to team members by adding `sshConfigs` to a [managed settings](</docs/en/managed-settings>) file. Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but cannot edit or delete them in the app. The following example pre-configures a single connection:
{
"sshConfigs": [
@@ -701,13 +701,12 @@
"name": "Shared Dev VM",
"sshHost": "user@dev.example.com",
"sshPort": 22,
- "sshIdentityFile": "~/.ssh/id_ed25519",
- "startDirectory": "~/projects"
+ "sshIdentityFile": "~/.ssh/id_ed25519"
}
]
}
-Each entry requires `id`, `name`, and `sshHost`. The `sshPort`, `sshIdentityFile`, and `startDirectory` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`, which is where connections added through the dialog are stored.
+Each entry requires `id`, `name`, and `sshHost`. The `sshPort` and `sshIdentityFile` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`, which is where connections added through the dialog are stored.
####
@@ -715,7 +714,7 @@
Restrict which SSH hosts users can connect to
-Administrators can limit Desktop’s SSH sessions to an approved set of hosts by adding `sshHostAllowlist` to a [managed settings](</docs/en/settings#settings-precedence>) file. When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions entirely. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
+Administrators can limit Desktop’s SSH sessions to an approved set of hosts by adding `sshHostAllowlist` to a [managed settings](</docs/en/managed-settings>) file. When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions entirely. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
{
"sshHostAllowlist": ["*.devboxes.example.com", "bastion.example.com"]
@@ -750,7 +749,7 @@
Managed settings
-Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/settings#settings-precedence>) file or push them remotely through the admin console.
+Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/managed-settings>) file or push them remotely through the admin console.
Key| Description
---|---
@@ -766,11 +765,11 @@
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
- * **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 organization login or a directly configured API key, following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
+ * **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 or key](</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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>).
* **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
-`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
+`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. 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>).
###
@@ -938,7 +937,7 @@
What’s not available in Desktop
-The following features are only available in the CLI or VS Code extension, except where noted:
+The following features aren’t available in Desktop, except where noted:
* **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, or to run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, follow the links in the Third-party providers row.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
--- a/desktop.md
+++ b/desktop.md
@@ -396,7 +396,7 @@
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
- * Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>). If you set [`crossSessionInbound`](</docs/en/settings#available-settings>) to `refuse` in the receiving session, Claude Code drops messages from this surface. The check runs even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
+ * Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>), even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. If you set [`crossSessionInbound`](</docs/en/settings#available-settings>) to `refuse` in the receiving session, Claude Code drops messages from this surface. Claude Code reports the refusal to the Claude desktop app. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
--- a/desktop.md
+++ b/desktop.md
@@ -74,7 +74,7 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch permission modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
Mode| Settings key| Behavior
---|---|---
@@ -260,7 +260,7 @@
`Cmd` `Shift` `E`| Open effort menu
`1`–`9`| Select item in an open menu
-These shortcuts apply only to the Code tab. The terminal-based [interactive mode shortcuts](</docs/en/interactive-mode#keyboard-shortcuts>), such as `Shift+Tab` to cycle modes, do not apply in Desktop.
+These shortcuts apply only to the Code tab. The terminal-based [interactive mode shortcuts](</docs/en/interactive-mode#keyboard-shortcuts>), such as `Shift+Tab` to cycle permission modes, do not apply in Desktop.
###
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), removals targeting `/` or your home directory, safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session; the CLI’s [cross-session messaging safeguards](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) also still apply. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except for the [actions no mode auto-approves](</docs/en/permission-modes#actions-no-mode-auto-approves>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
@@ -392,10 +392,11 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies four safety behaviors across sessions:
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
+ * Claude Code checks each message from this surface against the receiving session’s [inbound controls](</docs/en/cross-session-messaging#control-inbound-messages>). If you set [`crossSessionInbound`](</docs/en/settings#available-settings>) to `refuse` in the receiving session, Claude Code drops messages from this surface. The check runs even when the receiving session doesn’t have [cross-session messaging](</docs/en/cross-session-messaging#availability>) itself. Before v2.1.234, Claude Code dropped every message from this surface to a receiving session without cross-session messaging.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
@@ -769,7 +770,7 @@
* **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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>).
* **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
-`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. Claude Code reads `autoMode` from user settings, the `--settings` flag, and managed settings, but not from `.claude/settings.json` or `.claude/settings.local.json`: both files live in the repo directory, so a cloned repo or build step can’t inject its own classifier rules. Before v2.1.207, Claude Code also read `.claude/settings.local.json`. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
+`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
###
@@ -918,7 +919,6 @@
Feature| CLI| Desktop
---|---|---
Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro and Max plans, or through organization policy on Team and Enterprise plans
-`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. For gateway routing, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@@ -940,7 +940,7 @@
The following features are only available in the CLI or VS Code extension, except where noted:
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://claude.com/docs/third-party/claude-desktop/configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, or to run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, follow the links in the Third-party providers row.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
--- a/desktop.md
+++ b/desktop.md
@@ -74,11 +74,11 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Manual to see exactly what Claude does, then move to Accept edits or Plan as you get comfortable. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. To approve each change yourself, switch to Manual. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
Mode| Settings key| Behavior
---|---|---
-**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
+**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change.
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
@@ -754,14 +754,14 @@
Key| Description
---|---
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
-`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto from the mode selector. Also accepted under `permissions`.
+`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>).
`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.
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
-`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only. Deliver this key through the managed settings file or MDM, since third-party deployments do not receive admin-console settings.
+`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.
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
@@ -821,6 +821,8 @@
*.claudeusercontent.com
*.claudemcpcontent.com
+An [artifact](</docs/en/artifacts>) that loads a typeface from [Google Fonts](</docs/en/artifacts#improve-the-visual-design>) also requests `fonts.googleapis.com` and `fonts.gstatic.com`. Both hosts are optional. If you block them, artifacts render in fallback typefaces. Block with a fast rejection rather than a silent drop so the font request fails immediately instead of delaying the page’s first render.
+
###
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), removals targeting `/` or your home directory, safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session; the CLI’s [cross-session messaging safeguards](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) also still apply. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7 or later, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is also available by default; see [Auto mode on Bedrock, Agent Platform, or Foundry](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>) for the supported models.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -660,7 +660,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking, set `MAX_THINKING_TOKENS` to `0` in the local environment editor; this has no effect on Fable 5, which always uses extended thinking. On [third-party providers](</docs/en/third-party-integrations>), `0` omits the `thinking` parameter instead, and adaptive-reasoning models may still think. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. On the Anthropic API, set `MAX_THINKING_TOKENS` to `0` in the local environment editor to turn thinking off; this has no effect on Fable 5, which always uses extended thinking. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
###
--- a/desktop.md
+++ b/desktop.md
@@ -34,7 +34,7 @@
Before you send your first message, configure four things in the prompt area:
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for a cloud session that continues after you close the app, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -88,7 +88,7 @@
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
-Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available in cloud sessions. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions isn’t available in cloud sessions, including sessions in a [self-hosted environment](</docs/en/self-hosted-environments>). Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
###
@@ -425,7 +425,7 @@
Sessions from Dispatch
-[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. See [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>) to compare it with Remote Control, Channels, Slack, and scheduled tasks.
+[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. For a comparison with the other options, see [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>).
##
@@ -835,7 +835,7 @@
Data handling
-Claude Code processes your code locally in local sessions, or in cloud sessions on Anthropic-managed infrastructure, unless your organization routes them to a [self-hosted environment](</docs/en/self-hosted-environments>). Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
+Claude Code processes your code locally in local sessions, or in cloud sessions on Anthropic-managed infrastructure, unless your organization routes them to a [self-hosted environment](</docs/en/self-hosted-environments>). Cloud sessions, including in a self-hosted environment, send conversations and code context to Anthropic’s API for processing; local and SSH sessions send them to whichever model provider your deployment configures, Anthropic’s API by default. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
###
--- a/desktop.md
+++ b/desktop.md
@@ -392,7 +392,7 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. In sessions where [cross-session messaging](</docs/en/cross-session-messaging>) is enabled, Claude can separately list and message your other Claude Code sessions on the machine, including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. [Cross-session messaging](</docs/en/cross-session-messaging>) separately lets Claude message [your other Claude Code sessions](</docs/en/cross-session-messaging#see-which-sessions-claude-can-reach>), including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
* Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), removals targeting `/` or your home directory, safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session; the CLI’s [cross-session messaging safeguards](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) also still apply. Equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7 or later, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
@@ -392,10 +392,10 @@
Work across sessions
-Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, and doesn’t see sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. When Claude sends a message to another session, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Through this surface, Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, or sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. In sessions where [cross-session messaging](</docs/en/cross-session-messaging>) is enabled, Claude can separately list and message your other Claude Code sessions on the machine, including terminal sessions. When Claude messages another session through this surface, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
* Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
- * Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
+ * Through this surface, Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
* Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
--- a/desktop.md
+++ b/desktop.md
@@ -34,7 +34,7 @@
Before you send your first message, configure four things in the prompt area:
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for Anthropic-hosted cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -88,7 +88,7 @@
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
-Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available because cloud sessions already run in a sandboxed VM. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available in cloud sessions. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
###
@@ -368,7 +368,7 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. For a session on a local environment, Claude Code applies the rename to the session’s underlying CLI name too, so the new name appears in the `claude agents` listing on that machine; the shared rename requires Claude Code v2.1.221 or later. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
###
@@ -406,7 +406,7 @@
Run long-running tasks remotely
-For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic-managed infrastructure by default and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -650,7 +650,7 @@
The environment you pick when starting a session determines where Claude executes and how you connect:
* **Local** : runs on your machine with direct access to your files
- * **Cloud** : runs on Anthropic’s cloud infrastructure. Sessions continue even if you close the app.
+ * **Cloud** : runs on Anthropic-managed infrastructure by default. Sessions continue even if you close the app.
* **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers
* **WSL** (Windows): runs inside a [WSL 2 distribution](</docs/en/desktop-wsl>) on your machine, using its Linux toolchain and native paths
@@ -766,7 +766,7 @@
Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **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 organization login or a directly configured API key, following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
- * **Cloud sessions** : run on Anthropic-managed VMs and receive [server-managed settings](</docs/en/server-managed-settings>) only.
+ * **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>) fall back to the managed settings file in the runner image when server-managed settings deliver no keys, per [settings precedence](</docs/en/server-managed-settings#settings-precedence>).
* **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. Claude Code reads `autoMode` from user settings, the `--settings` flag, and managed settings, but not from `.claude/settings.json` or `.claude/settings.local.json`: both files live in the repo directory, so a cloned repo or build step can’t inject its own classifier rules. Before v2.1.207, Claude Code also read `.claude/settings.local.json`. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
@@ -835,7 +835,7 @@
Data handling
-Claude Code processes your code locally in local sessions or on Anthropic’s cloud infrastructure in cloud sessions. Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
+Claude Code processes your code locally in local sessions, or in cloud sessions on Anthropic-managed infrastructure, unless your organization routes them to a [self-hosted environment](</docs/en/self-hosted-environments>). Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
###
--- a/desktop.md
+++ b/desktop.md
@@ -368,7 +368,7 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. Claude Code applies the rename to the session’s underlying CLI name too, so the new name appears when you list sessions from a terminal with `claude agents`; the shared rename requires Claude Code v2.1.221 or later. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. For a session on a local environment, Claude Code applies the rename to the session’s underlying CLI name too, so the new name appears in the `claude agents` listing on that machine; the shared rename requires Claude Code v2.1.221 or later. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
###
--- a/desktop.md
+++ b/desktop.md
@@ -368,7 +368,7 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. Claude Code applies the rename to the session’s underlying CLI name too, so the new name appears when you list sessions from a terminal with `claude agents`; the shared rename requires Claude Code v2.1.221 or later. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
###
--- a/desktop.md
+++ b/desktop.md
@@ -376,7 +376,7 @@
Ask a side question without derailing the session
-A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local, SSH, and WSL sessions.
+A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local, SSH, and WSL sessions. The desktop app doesn’t save side chats to disk, so you can’t return to one after you close the app.
###
--- a/desktop.md
+++ b/desktop.md
@@ -19,6 +19,7 @@
* Watch Claude [run and test your iOS app](</docs/en/desktop-ios-simulator>) in the iOS Simulator pane
* Arrange panes for the chat, diff, browser, terminal, and file editor side by side
* Ask a side question that uses the session’s context without derailing it
+ * Let Claude check on, message, or archive your other sessions
* Connect external tools like GitHub, Slack, and Linear
* Let Claude open apps and control your screen
* Run on your machine, in the cloud, or over SSH
@@ -81,7 +82,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), or safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), safety classifiers when Claude acts on external sites, or desktop actions where Claude always asks first, such as archiving a session; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7 or later, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
@@ -170,7 +171,7 @@
After you open a pull request, a CI status bar appears in the session. Claude Code uses the GitHub CLI to poll check results and surface failures.
* **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating.
- * **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Auto-merge must be [enabled in your GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) for this to work.
+ * **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Enable auto-merge in your [GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) first; without it, Claude can’t merge the PR.
Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes. To archive the session automatically once the PR merges or closes, turn on auto-archive in Settings → Claude Code.
@@ -355,7 +356,7 @@
Manage sessions
-Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, send work to the cloud, or let Dispatch start sessions for you from your phone.
+Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, let Claude check on and message your other sessions, send work to the cloud, or let Dispatch start sessions for you from your phone.
###
@@ -383,7 +384,21 @@
Watch background tasks
-The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar, or ask Claude to check on them for you.
+
+###
+
+
+
+Work across sessions
+
+Claude can list your other Code tab sessions, read what each has been doing, and send messages between them. Ask in plain language: “which session touched the auth refactor?”, “what did the API session conclude?”, or “tell the payments session the schema changed”. You can also ask Claude to rename or archive a session. Claude archives a session the same way the sidebar’s archive icon does, so ask it to clean up sessions whose PRs have merged. Claude sees only the sessions the desktop app runs itself: local, SSH, and [WSL](</docs/en/desktop-wsl>) sessions in the Code tab. Claude doesn’t see cloud sessions, and doesn’t see sessions you started from the terminal CLI or the VS Code extension, even in worktrees of the same project, so with nine terminal worktrees open and two desktop sessions, Claude answering in one of them reports the one other desktop session. Claude never lists the session you’re asking from. By default it sees the 20 most recently active sessions and skips archived sessions unless you ask for them. When Claude sends a message to another session, Claude Code shows it there as a card labeled with the sending session’s title and a link back, so you can always tell where a message came from. If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes. Claude can’t deliver to an archived session, and tells you when a message doesn’t go through. Claude Code applies three safety behaviors across sessions:
+
+ * Before archiving any session, Claude asks you first. You see the approval card in every permission mode, including Auto and Bypass permissions.
+ * Claude can’t send cross-session messages from a session nobody is watching, such as a scheduled-task run, and can’t deliver messages into one.
+ * Claude Code quotes each incoming message and attributes it to the session that sent it, and Claude still follows the receiving session’s own permission settings when acting on one.
+
+Claude can also suggest new sessions. When it notices something worth fixing that’s out of scope for the current task, it offers the work as a task chip in the chat. Click the chip to start that work in a new session with its own worktree; Claude continues your current session uninterrupted.
###
@@ -531,7 +546,7 @@
]
}
-Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be just your server’s origin — no path or query, and the port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. Any other address asks for your permission the first time it opens, the same way browsing to a new site in the preview does. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
+Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be just your server’s origin — no path or query, and the port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. For any other address, Desktop asks for your permission the first time the preview opens it, the same as when you browse to a new site in the preview. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
{
"version": "0.0.1",
@@ -926,7 +941,7 @@
* **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://claude.com/docs/third-party/claude-desktop/configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
- * **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
+ * **Agent teams** : coordinated teams, where Claude as the team lead assigns tasks to teammates from a shared task list, are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop; Claude can also message and manage your other sessions directly.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
* Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
* `/config` opens Settings → Claude Code. Text after the command is ignored, so `/config theme=dark` doesn’t set the theme.
--- a/desktop.md
+++ b/desktop.md
@@ -87,7 +87,7 @@
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
-Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available because the cloud environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available because cloud sessions already run in a sandboxed VM. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
###
@@ -365,7 +365,7 @@
Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
-Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
+Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check; if it prints a version number, Git is installed. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
@@ -442,7 +442,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) so it [installs at session start](</docs/en/claude-code-on-the-web#what%E2%80%99s-available-in-cloud-sessions>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) so it [installs at session start](</docs/en/cloud-environments#what-carries-over-from-your-setup>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -477,7 +477,14 @@
{
"version": "0.0.1",
"autoVerify": false,
- "configurations": [...]
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
}
When disabled, preview tools are still available and you can ask Claude to verify at any time. Auto-verify makes it automatic after every edit.
@@ -646,7 +653,7 @@
Cloud sessions
-Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a cloud session and choose **Add environment**. See [the cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for details on configuring network access and environment variables.
+Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a cloud session and choose **Add cloud environment**. See [Configure cloud environments](</docs/en/cloud-environments>) for details on configuring network access and environment variables.
###
@@ -834,7 +841,7 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and x64 Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
@@ -873,7 +880,15 @@
* **[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.
* **Models** : the same [models](</docs/en/model-config#available-models>) are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
-**MCP servers from the Claude Desktop chat app** : the Desktop app loads MCP servers from `claude_desktop_config.json` into Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server defined in `claude_desktop_config.json` is available in both the Desktop chat surface and the Code tab.The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
+####
+
+
+
+MCP servers from the Claude Desktop chat app
+
+The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server you define in `claude_desktop_config.json` is available in both the Desktop chat surface and local Code tab sessions. If you define the same server name in `claude_desktop_config.json` and in `~/.claude.json` or `.mcp.json`, the Code tab in local sessions connects once and uses the `claude_desktop_config.json` definition. The app also re-delivers stdio servers from `~/.claude.json` to the embedded CLI in local sessions. When the top level of `~/.claude.json` (user scope) and `.mcp.json` define the same stdio server name, the Code tab uses the `~/.claude.json` definition, departing from the CLI [scope hierarchy](</docs/en/mcp#scope-hierarchy-and-precedence>).
+
+The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
###
--- a/desktop.md
+++ b/desktop.md
@@ -83,7 +83,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), or safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, Opus 4.8, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7 or later, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
--- a/desktop.md
+++ b/desktop.md
@@ -33,7 +33,7 @@
Before you send your first message, configure four things in the prompt area:
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Cloud** for Anthropic-hosted cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -391,7 +391,7 @@
Run long-running tasks remotely
-For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Cloud** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -628,7 +628,7 @@
The environment you pick when starting a session determines where Claude executes and how you connect:
* **Local** : runs on your machine with direct access to your files
- * **Remote** : runs on Anthropic’s cloud infrastructure. Sessions continue even if you close the app.
+ * **Cloud** : runs on Anthropic’s cloud infrastructure. Sessions continue even if you close the app.
* **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers
* **WSL** (Windows): runs inside a [WSL 2 distribution](</docs/en/desktop-wsl>) on your machine, using its Linux toolchain and native paths
--- a/desktop.md
+++ b/desktop.md
@@ -16,6 +16,7 @@
* Review and comment on diffs, then watch the resulting PR through CI
* Preview your running app in the Browser pane while Claude verifies its own changes, and open external sites alongside it
+ * Watch Claude [run and test your iOS app](</docs/en/desktop-ios-simulator>) in the iOS Simulator pane
* Arrange panes for the chat, diff, browser, terminal, and file editor side by side
* Ask a side question that uses the session’s context without derailing it
* Connect external tools like GitHub, Slack, and Linear
@@ -181,7 +182,7 @@
Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent, along with the [iOS Simulator](</docs/en/desktop-ios-simulator>) on macOS. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
@@ -274,7 +275,7 @@
Let Claude use your computer
-Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to test a native app in a mobile simulator, interact with a desktop tool that has no CLI, or automate something that only works through a GUI.
+Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to interact with a desktop tool that has no CLI, or automate something that only works through a GUI. For running and testing iOS apps, Desktop opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of controlling your screen; the pane works without enabling computer use.
Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
@@ -293,9 +294,10 @@
* If you have a connector for a service, Claude uses the connector.
* If the task is a shell command, Claude uses Bash.
* If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
+ * If the task is running or testing an iOS app, Claude uses the [iOS Simulator pane](</docs/en/desktop-ios-simulator>), which doesn’t use screen control.
* If none of those apply, Claude uses computer use.
-The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, mobile simulators, or proprietary tools without an API.
+The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, or proprietary tools without an API.
###
@@ -499,10 +501,42 @@
`autoPort`| boolean| How to handle port conflicts. See below
`program`| string| A script to run with `node`. See when to use `program` vs `runtimeExecutable`
`args`| string[]| Arguments passed to `program`. Only used when `program` is set
+`url`| string| The address the preview opens instead of `http://localhost:<port>`. See open the preview at a specific URL
##### When to use `program` vs `runtimeExecutable`
Use `runtimeExecutable` with `runtimeArgs` to start a dev server through a package manager. For example, `"runtimeExecutable": "npm"` with `"runtimeArgs": ["run", "dev"]` runs `npm run dev`. Use `program` when you have a standalone script you want to run with `node` directly. For example, `"program": "server.js"` runs `node server.js`. Pass additional flags with `args`.
+
+##### Open the preview at a specific URL
+
+By default, the preview opens `http://localhost:<port>`. Set `url` when your server needs a different address. Common cases are servers that require local HTTPS, apps that use `*.localhost` subdomains, and apps that sign you in through a redirect.
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 8443,
+ "url": "https://localhost:8443"
+ }
+ ]
+ }
+
+Localhost addresses open directly, exactly like the default port address. This includes `localhost`, any `*.localhost` subdomain, `127.0.0.1`, and `::1`. For security, a localhost `url` must be just your server’s origin — no path or query, and the port must match the entry’s port. To show a specific page, ask Claude to navigate there after the preview opens. A localhost `url` with a path, query, or mismatched port is reported as a configuration error that names the url and shows the fix. Any other address asks for your permission the first time it opens, the same way browsing to a new site in the preview does. External addresses may include paths. Choose **Always allow** to skip the prompt for that site in the future. Organization policies that restrict external sites in the preview still apply. To preview a server you already run yourself, set `url` without a command. Claude attaches the preview to your running server instead of starting one:
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "url": "https://app.localhost:3000"
+ }
+ ]
+ }
+
+The `url` must be `http` or `https`, and must not contain a username or password.
####
@@ -701,6 +735,7 @@
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto 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>).
`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.
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
@@ -861,6 +896,7 @@
Multiple sessions| Separate terminals| Sidebar tabs
Recurring tasks| Cron jobs, CI pipelines| [Scheduled tasks](</docs/en/desktop-scheduled-tasks>)
Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS and Windows
+iOS simulator| Drive the simulator via [computer use](</docs/en/computer-use#test-a-simulator-flow>)| [iOS Simulator pane](</docs/en/desktop-ios-simulator>) opens automatically
Dispatch integration| Not available| Dispatch sessions in the sidebar
Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
--- a/desktop.md
+++ b/desktop.md
@@ -389,7 +389,7 @@
Run long-running tasks remotely
-For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the Claude iOS app. Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the [Claude mobile app](</docs/en/mobile>). Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -416,7 +416,7 @@
Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar.
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar. The [Cowork](<https://claude.com/product/cowork>) tab in the Desktop app sources its skills, plugins, and connectors from this Customize configuration, which syncs through your claude.ai account, not from the CLI’s `~/.claude` directory.
###
@@ -432,7 +432,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered. Personal skills in `~/.claude/skills/` apply to local sessions; an SSH session reads `~/.claude/skills/` from the remote host’s home directory, not from your machine. Cloud sessions load the skills enabled for your claude.ai account instead. See [Skills in Cowork and cloud sessions](</docs/en/skills#skills-in-cowork-and-cloud-sessions>).
###
@@ -440,7 +440,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, but plugins declared in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) still load. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, and plugins you install from the desktop app aren’t available for cloud sessions; to use a plugin in a cloud session, declare it in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) so it [installs at session start](</docs/en/claude-code-on-the-web#what%E2%80%99s-available-in-cloud-sessions>). Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -997,4 +997,4 @@
* Open Help → Get Support in the desktop app, or visit the [Claude support center](<https://support.claude.com/>) directly
* For problems that also reproduce in the standalone `claude` CLI, search or file a bug on [GitHub Issues](<https://github.com/anthropics/claude-code/issues>)
-When reporting a problem, include your desktop app version, your operating system, the exact error message, and relevant logs. On macOS, check Console.app. On Windows, check Event Viewer → Windows Logs → Application.
+When reporting a problem, include your desktop app version, your operating system, the exact error message, and relevant logs. On macOS, check Console.app. On Windows, check Event Viewer → Windows Logs → Application. Review log excerpts before posting them to a public issue; they can include file paths and other details from your environment.
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), or safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, or Fable 5. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, Opus 4.8, and Fable 5 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -440,7 +440,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for cloud or WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. The plugin browser is not available in cloud sessions, but plugins declared in the repository’s `.claude/settings.json` under [`enabledPlugins`](</docs/en/settings#enabledplugins>) still load. Plugins aren’t available in WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
--- a/desktop.md
+++ b/desktop.md
@@ -80,7 +80,7 @@
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>), connector tools [your organization set to `ask`](</docs/en/mcp#organization-controls-on-connector-tools>), MCP tools marked [`requiresUserInteraction`](</docs/en/mcp#require-approval-for-a-specific-tool>), or safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
@@ -137,7 +137,7 @@
Restrict external browsing for your organization
-The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still navigate to external sites; Claude’s tools can’t read or act on them.
+The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still navigate to external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude.
###
@@ -701,6 +701,7 @@
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto 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>).
`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.
+`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only. Deliver this key through the managed settings file or MDM, since third-party deployments do not receive admin-console settings.
@@ -851,7 +852,7 @@
---|---|---
Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro and Max plans, or through organization policy on Team and Enterprise plans
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
-[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
+[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. For gateway routing, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -871,11 +872,13 @@
The following features are only available in the CLI or VS Code extension, except where noted:
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://claude.com/docs/third-party/claude-desktop/configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. To route Desktop through a gateway, see [connect the desktop app to a gateway](</docs/en/llm-gateway-connect#desktop-app>). Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://claude.com/docs/third-party/claude-desktop/configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
- * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions` and `/config`, are not available in the Code tab and reply with `isn't available in this environment`. `/config` sets a setting when you pass `key=value`, for example `/config theme=dark`; only its picker form is unavailable. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
+ * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal behave differently in the Code tab. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the commands from the standalone CLI.
+ * Commands with no argument form, such as `/permissions`, reply with `isn't available in this environment`.
+ * `/config` opens Settings → Claude Code. Text after the command is ignored, so `/config theme=dark` doesn’t set the theme.
##
Show diff (218 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -32,7 +32,7 @@
Before you send your first message, configure four things in the prompt area:
- * **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, or an **SSH connection** for a remote machine you manage. See environment configuration.
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, an **SSH connection** for a remote machine you manage, or on Windows a [**WSL distribution**](</docs/en/desktop-wsl>). See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -63,7 +63,7 @@
The prompt box supports two ways to bring in external context:
- * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in cloud sessions.
+ * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in cloud or WSL sessions.
* **Attach files** : attach images, PDFs, and other files to your prompt using the attachment button, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
###
@@ -72,17 +72,17 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Manual to see exactly what Claude does, then move to Accept edits or Plan as you get comfortable.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Manual to see exactly what Claude does, then move to Accept edits or Plan as you get comfortable. To set a default mode for new local sessions, add `permissions.defaultMode` to your [settings file](</docs/en/settings#settings-files>). The desktop app reads the same settings files as the CLI. A mode you pick in the selector is remembered per folder and takes precedence over `defaultMode` for that folder, except Plan, which applies to the current session only.
Mode| Settings key| Behavior
---|---|---
**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Appears when your account meets the availability requirements below; there is no separate Settings toggle for it.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. On Pro and Max plans, enable it in your Settings → Claude Code under “Allow bypass permissions mode”; on Team and Enterprise plans there is no Settings toggle, and organization policy controls it instead. Only use this in sandboxed containers or VMs.
+
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. Organization administrators can turn auto mode off with the `disableAutoMode` key in managed settings. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is [available by default](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there. Before Claude Code v2.1.207, Enterprise deployments on Google Cloud’s Agent Platform had to set `CLAUDE_CODE_ENABLE_AUTO_MODE` to enable auto mode.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -309,7 +309,7 @@
Update the desktop app
-Make sure you have the latest version of Claude Desktop. Download or update at [claude.com/download](<https://claude.com/download>), then restart the app.
+Make sure you have the latest version of Claude Desktop. On macOS and Windows, download or update at [claude.com/download](<https://claude.com/download>); on Linux, update through your package manager ([instructions](</docs/en/desktop-linux>)). Then restart the app.
2
@@ -373,7 +373,7 @@
Ask a side question without derailing the session
-A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local and SSH sessions.
+A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local, SSH, and WSL sessions.
###
@@ -408,7 +408,7 @@
Sessions from Dispatch
-[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork#dispatch-and-computer-use>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. See [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>) to compare it with Remote Control, Channels, Slack, and scheduled tasks.
+[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. See [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>) to compare it with Remote Control, Channels, Slack, and scheduled tasks.
##
@@ -424,7 +424,7 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in cloud sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in cloud or WSL sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -432,7 +432,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual. You can send a command while Claude is working, the same as any other message, and the session returns to idle once the turn finishes. Before v2.1.206, a command sent mid-turn could leave the session showing as running and messages you sent afterward weren’t delivered.
###
@@ -440,7 +440,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for cloud sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for cloud or WSL sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -596,6 +596,7 @@
* **Local** : runs on your machine with direct access to your files
* **Remote** : runs on Anthropic’s cloud infrastructure. Sessions continue even if you close the app.
* **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers
+ * **WSL** (Windows): runs inside a [WSL 2 distribution](</docs/en/desktop-wsl>) on your machine, using its Linux toolchain and native paths
###
@@ -710,7 +711,7 @@
* **Cloud sessions** : run on Anthropic-managed VMs and receive [server-managed settings](</docs/en/server-managed-settings>) only.
* **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
-`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
+`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. Claude Code reads `autoMode` from user settings, the `--settings` flag, and managed settings, but not from `.claude/settings.json` or `.claude/settings.local.json`: both files live in the repo directory, so a cloned repo or build step can’t inject its own classifier rules. Before v2.1.207, Claude Code also read `.claude/settings.local.json`. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
###
@@ -727,9 +728,48 @@
+Network access requirements
+
+Desktop loads its application code and user content from Anthropic CDN hosts.
+
+ anthropic.com
+ *.anthropic.com
+ claude.ai
+ *.claude.ai
+ claude.com
+ *.claude.com
+ claude.app
+ *.claude.app
+ *.claudeusercontent.com
+ *.claudemcpcontent.com
+
+Traffic is HTTPS on port 443 unless you configure a custom port for [OTLP](</docs/en/monitoring-usage>), an LLM gateway, or an MCP server. For proxy servers, custom certificate authorities, mTLS, and the domains the standalone CLI needs, see [network configuration](</docs/en/network-config>). To reduce the number of firewall wildcards, allow these Anthropic hosts instead. Certain subdomains are dynamically generated and must remain wildcards.
+
+ anthropic.com
+ api.anthropic.com
+ a-api.anthropic.com
+ a-cdn.anthropic.com
+ s-cdn.anthropic.com
+ assets-proxy.anthropic.com
+ claude.ai
+ a.claude.ai
+ a-cdn.claude.ai
+ assets.claude.ai
+ downloads.claude.ai
+ *.livepreview.claude.ai
+ claude.com
+ platform.claude.com
+ *.livepreview.claude.app
+ *.claudeusercontent.com
+ *.claudemcpcontent.com
+
+###
+
+
+
Authentication and SSO
-Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML and OIDC configuration.
+Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML configuration; OIDC setup is covered in the [Claude Enterprise Administrator Guide](<https://claude.com/resources/tutorials/claude-enterprise-administrator-guide>).
###
@@ -748,9 +788,9 @@
Desktop can be distributed through enterprise deployment tools:
* **macOS** : distribute via MDM such as Jamf or Kandji using the `.dmg` installer
- * **Windows** : deploy via MSIX package or `.exe` installer. See [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) for enterprise deployment options including silent installation
-
-For network configuration such as proxy settings, firewall allowlisting, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
+ * **Windows** : deploy via the MSIX package. See [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) for enterprise deployment options including silent installation
+
+For the domains to allowlist in your firewall, see network access requirements above. For proxy settings, custom certificate authorities, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
##
@@ -775,7 +815,7 @@
`--model sonnet`| Model dropdown next to the send button
`--resume`, `--continue`| Click a session in the sidebar
`--permission-mode`| Mode selector next to the send button
-`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
+`--dangerously-skip-permissions`| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
`--add-dir`| Add multiple repos with the **+** button in cloud sessions
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode in the Transcript view dropdown
@@ -809,9 +849,9 @@
Feature| CLI| Desktop
---|---|---
-Permission modes| All modes including `dontAsk`| Manual, Accept edits, and Plan. Auto and Bypass permissions appear in the mode selector after you enable them in Settings
-`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
+Permission modes| All modes including `dontAsk`| Manual, Accept edits, Plan, and Auto. Bypass permissions appears in the mode selector once enabled: through the Settings toggle on Pro and Max plans, or through organization policy on Team and Enterprise plans
+`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. On Pro and Max plans, enable it in Settings → Claude Code → “Allow bypass permissions mode”; on Team and Enterprise plans, organization policy controls it
+[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -831,7 +871,7 @@
The following features are only available in the CLI or VS Code extension, except where noted:
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://claude.com/docs/third-party/claude-desktop/configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
@@ -881,7 +921,8 @@
1. Restart the app.
2. Check for pending updates. On macOS and Windows the app auto-updates on launch; on Linux, update through apt as described in [Claude Desktop on Linux](</docs/en/desktop-linux>).
- 3. On Windows, check Event Viewer for crash logs under **Windows Logs → Application**.
+ 3. On a managed network, confirm your firewall allows the CDN hosts in network access requirements.
+ 4. On Windows, check Event Viewer for crash logs under **Windows Logs → Application**.
###
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
Show diff (183 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -15,8 +15,8 @@
For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
* Review and comment on diffs, then watch the resulting PR through CI
- * Preview your running app in an embedded browser while Claude verifies its own changes
- * Arrange panes for the chat, diff, preview, terminal, and file editor side by side
+ * Preview your running app in the Browser pane while Claude verifies its own changes, and open external sites alongside it
+ * Arrange panes for the chat, diff, browser, terminal, and file editor side by side
* Ask a side question that uses the session’s context without derailing it
* Connect external tools like GitHub, Slack, and Linear
* Let Claude open apps and control your screen
@@ -72,21 +72,21 @@
Choose a permission mode
-Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Ask permissions to see exactly what Claude does, then move to Auto accept edits or Plan mode as you get comfortable.
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Manual to see exactly what Claude does, then move to Accept edits or Plan as you get comfortable.
Mode| Settings key| Behavior
---|---|---
-**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
-**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
-**Plan mode**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
+**Manual**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
+**Accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
+**Plan**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>); equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
-
-Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
-
-Cloud sessions support Accept edits, Plan mode, and Auto mode. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Ask permissions. Bypass permissions is not available because the cloud environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
+
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
+
+Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
+
+Cloud sessions support Accept edits, Plan, and Auto. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Manual. Bypass permissions is not available because the cloud environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
###
@@ -94,15 +94,50 @@
Preview your app
-Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The preview pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it in preview. From the preview pane, you can:
-
- * Interact with your running app directly in the embedded browser
+Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The Browser pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it there. From the Browser pane, you can:
+
+ * Interact with your running app directly in the Browser pane
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
- * Start or stop servers from the **Preview** dropdown in the session toolbar
+ * Start or stop servers from the server dropdown in the session toolbar
* Persist cookies and local storage across server restarts by selecting **Persist sessions** in the dropdown, so you don’t have to re-login during development
* Edit the server configuration or stop all servers at once
-Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear saved session data, toggle **Persist preview sessions** off in Settings → Claude Code. To disable preview entirely, toggle off **Preview** in Settings → Claude Code.
+Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear saved session data, or to turn the Browser off entirely, use the toggles in Settings → Claude Code.
+
+###
+
+
+
+Browse external sites
+
+The Browser pane is a tabbed browser, so you can open documentation, issue trackers, or any other site next to your running app. To open the Browser, press **Cmd+Shift+B** on macOS or **Ctrl+Shift+B** on Windows, or select it from the **Views** menu. When you click an external link in the chat, a chooser offers **Open in app** to use the Browser pane or **Default browser** to use your own; **Cmd** -click on macOS or **Ctrl** -click on Windows opens a link in your system browser directly. You can sign in to sites in the pane, including popup sign-in flows such as Google OAuth. Claude can read and interact with external pages using the same tools it uses to verify your app, with two additional safety checks:
+
+ * Safety classifiers review Claude’s write actions on external pages, such as clicking and typing, in every permission mode. These are the same classifiers auto mode uses, and when they flag an action, you get a permission prompt regardless of mode.
+ * In permission modes other than Auto and Bypass permissions, a domain allowlist check also applies before Claude navigates to a new site.
+
+####
+
+
+
+Approve Claude’s actions on a site
+
+The first time Claude acts on an external site, a permission card appears and Claude waits for your choice: **Allow once** , **Always allow** , or **Deny**. **Allow once** approves the action without saving anything. **Always allow** saves the approval for that site on your device, and you can revoke it in Settings. Each site needs its own approval, including subdomains. Your local dev servers and project files don’t need approval, so auto-verify keeps working without prompts. Even on an approved site, Claude won’t purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the [Claude in Chrome extension](</docs/en/chrome>). See [Using Claude in Chrome safely](<https://support.claude.com/en/articles/12902428-using-claude-in-chrome-safely>) for how Claude handles sensitive sites and risky actions.
+
+####
+
+
+
+Choose between the Browser and the Chrome extension
+
+The Browser pane uses a clean browser profile, separate from your personal browser, with none of your saved logins or history. Use it for building and testing your app and for sites that don’t need your identity. When you want Claude to act as you in your logged-in sessions, use the [Claude in Chrome extension](</docs/en/chrome>) instead, which shares your browser’s login state.
+
+####
+
+
+
+Restrict external browsing for your organization
+
+The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still navigate to external sites; Claude’s tools can’t read or act on them.
###
@@ -146,7 +181,7 @@
Arrange your workspace
-The Code tab is built around panes you can arrange in any layout: chat, diff, preview, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+The Code tab is built around panes you can arrange in any layout: chat, diff, browser, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
@@ -164,7 +199,7 @@
Open and edit files
-Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For cloud sessions, ask Claude to make the change.
+Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the Browser pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For cloud sessions, ask Claude to make the change.
###
@@ -212,8 +247,8 @@
`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
`Esc`| Stop Claude’s response
`Cmd` `Shift` `D`| Toggle diff pane
-`Cmd` `Shift` `P`| Toggle preview pane
-`Cmd` `Shift` `S`| Select an element in preview
+`Cmd` `Shift` `B`| Toggle Browser pane
+`Cmd` `Shift` `S`| Select an element in the Browser
`Ctrl` ```| Toggle terminal pane
`Cmd` `\`| Close focused pane
`Cmd` `;`| Open side chat
@@ -413,7 +448,7 @@
Configure preview servers
-Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the Preview dropdown to open it in your code editor. The file supports JSON with comments.
+Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the server dropdown to open it in your code editor. The file supports JSON with comments.
{
"version": "0.0.1",
@@ -435,7 +470,7 @@
Auto-verify changes
-When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the **Preview** dropdown menu.
+When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the server dropdown menu.
{
"version": "0.0.1",
@@ -664,6 +699,7 @@
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto 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>).
+`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.
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only. Deliver this key through the managed settings file or MDM, since third-party deployments do not receive admin-console settings.
@@ -773,9 +809,9 @@
Feature| CLI| Desktop
---|---|---
-Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
+Permission modes| All modes including `dontAsk`| Manual, Accept edits, and Plan. Auto and Bypass permissions appear in the mode selector after you enable them in Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>).
+[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -795,11 +831,11 @@
The following features are only available in the CLI or VS Code extension, except where noted:
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, [Claude Desktop on 3P](<https://claude.com/docs/third-party/claude-desktop/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
- * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
+ * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions` and `/config`, are not available in the Code tab and reply with `isn't available in this environment`. `/config` sets a setting when you pass `key=value`, for example `/config theme=dark`; only its picker form is unavailable. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
##
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>); equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud Vertex AI, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-vertex-ai-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -722,7 +722,7 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Bedrock, Vertex, or Foundry.
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
@@ -775,7 +775,7 @@
---|---|---
Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex AI, Foundry| Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Bedrock, Vertex AI, Foundry, or a self-hosted LLM gateway, see the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>).
+[Third-party providers](</docs/en/third-party-integrations>)| Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry| Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway, see the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -795,7 +795,7 @@
The following features are only available in the CLI or VS Code extension, except where noted:
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>) runs the Code tab on Bedrock, Vertex AI, Foundry, or a self-hosted LLM gateway.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Google Cloud’s Agent Platform and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Amazon Bedrock or Microsoft Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>) runs the Code tab on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or a self-hosted LLM gateway.
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
--- a/desktop.md
+++ b/desktop.md
@@ -799,7 +799,7 @@
* **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
- * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, `/agents`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
+ * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
##
--- a/desktop.md
+++ b/desktop.md
@@ -8,7 +8,11 @@
For x64 processors
-For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). The desktop app is not available on Linux; use the [CLI](</docs/en/quickstart>) instead. After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
+## Get Claude for Linux (beta)
+
+apt or .deb for Ubuntu and Debian
+
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). On Linux, install with apt; see [Claude Desktop on Linux](</docs/en/desktop-linux>). After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
* Review and comment on diffs, then watch the resulting PR through CI
* Preview your running app in an embedded browser while Claude verifies its own changes
@@ -78,7 +82,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>); equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6. In Enterprise deployments that route Desktop to Google Cloud Vertex AI, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-vertex-ai-or-foundry>), and only Claude Opus 4.7 and Opus 4.8 are supported there.
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud Vertex AI, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-vertex-ai-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -564,7 +568,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking, set `MAX_THINKING_TOKENS` to `0` in the local environment editor; this has no effect on Fable 5, which always uses extended thinking. On [third-party providers](</docs/en/third-party-integrations>), `0` omits the `thinking` parameter instead, and adaptive-reasoning models may still think. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking, set `MAX_THINKING_TOKENS` to `0` in the local environment editor; this has no effect on Fable 5, which always uses extended thinking. On [third-party providers](</docs/en/third-party-integrations>), `0` omits the `thinking` parameter instead, and adaptive-reasoning models may still think. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Fable 5, Sonnet 5, and Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
###
@@ -792,7 +796,7 @@
The following features are only available in the CLI or VS Code extension, except where noted:
* **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>) runs the Code tab on Bedrock, Vertex AI, Foundry, or a self-hosted LLM gateway.
- * **Linux** : the desktop app is available on macOS and Windows only. On Linux, use the [CLI](</docs/en/quickstart>).
+ * **Linux (beta)** : Computer Use isn’t yet available in the Linux desktop app. See [Claude Desktop on Linux](</docs/en/desktop-linux>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, `/agents`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
@@ -840,7 +844,7 @@
If the app opens but shows a blank or unresponsive screen:
1. Restart the app.
- 2. Check for pending updates. The app auto-updates on launch.
+ 2. Check for pending updates. On macOS and Windows the app auto-updates on launch; on Linux, update through apt as described in [Claude Desktop on Linux](</docs/en/desktop-linux>).
3. On Windows, check Event Viewer for crash logs under **Windows Logs → Application**.
###
--- a/desktop.md
+++ b/desktop.md
@@ -653,7 +653,7 @@
Managed settings
-Managed settings override project and user settings and apply when Desktop spawns CLI sessions. You can set these keys in your organization’s [managed settings](</docs/en/settings#settings-precedence>) file or push them remotely through the admin console.
+Managed settings override project and user settings and apply to Claude Code sessions in Desktop. You can set these keys in your organization’s [managed settings](</docs/en/settings#settings-precedence>) file or push them remotely through the admin console.
Key| Description
---|---
@@ -662,9 +662,15 @@
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
-`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only.
-
-A managed settings file deployed to disk on each machine applies to Desktop sessions. Managed settings pushed remotely through the admin console currently reach CLI and IDE sessions only, so for Desktop deployments either distribute the file via MDM or use the admin console controls above. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
+`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only. Deliver this key through the managed settings file or MDM, since third-party deployments do not receive admin-console settings.
+
+Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
+
+ * **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 organization login or a directly configured API key, following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
+ * **Cloud sessions** : run on Anthropic-managed VMs and receive [server-managed settings](</docs/en/server-managed-settings>) only.
+ * **SSH sessions** : the session reads the managed settings file from the remote host. Desktop itself reads `sshConfigs` and `sshHostAllowlist` from the local machine’s managed settings when creating the connection.
+
+`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
###
--- a/desktop.md
+++ b/desktop.md
@@ -904,7 +904,7 @@
Still stuck?
- * Search or file a bug on [GitHub Issues](<https://github.com/anthropics/claude-code/issues>)
- * Visit the [Claude support center](<https://support.claude.com/>)
-
-When filing a bug, include your desktop app version, your operating system, the exact error message, and relevant logs. On macOS, check Console.app. On Windows, check Event Viewer → Windows Logs → Application.
+ * Open Help → Get Support in the desktop app, or visit the [Claude support center](<https://support.claude.com/>) directly
+ * For problems that also reproduce in the standalone `claude` CLI, search or file a bug on [GitHub Issues](<https://github.com/anthropics/claude-code/issues>)
+
+When reporting a problem, include your desktop app version, your operating system, the exact error message, and relevant logs. On macOS, check Console.app. On Windows, check Event Viewer → Windows Logs → Application.
Show diff (173 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -29,7 +29,7 @@
Before you send your first message, configure four things in the prompt area:
* **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, or an **SSH connection** for a remote machine you manage. See environment configuration.
- * **Project folder** : select the folder or repository Claude works in. For remote sessions, you can add multiple repositories.
+ * **Project folder** : select the folder or repository Claude works in. For cloud sessions, you can add multiple repositories.
* **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
@@ -59,7 +59,7 @@
The prompt box supports two ways to bring in external context:
- * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in remote sessions.
+ * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in cloud sessions.
* **Attach files** : attach images, PDFs, and other files to your prompt using the attachment button, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
###
@@ -76,13 +76,13 @@
**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan mode**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
-**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>); equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6. In Enterprise deployments that route Desktop to Google Cloud Vertex AI, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-vertex-ai-or-foundry>), and only Claude Opus 4.7 and Opus 4.8 are supported there.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
-Remote sessions support Auto accept edits and Plan mode. Ask permissions is not available because remote sessions auto-accept file edits by default, and Bypass permissions is not available because the remote environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+Cloud sessions support Accept edits, Plan mode, and Auto mode. Accept edits corresponds to `default` mode: cloud sessions pre-approve file edits, so the selector shows Accept edits instead of Ask permissions. Bypass permissions is not available because the cloud environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
###
@@ -160,7 +160,7 @@
Open and edit files
-Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For remote sessions, ask Claude to make the change.
+Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For cloud sessions, ask Claude to make the change.
###
@@ -350,7 +350,7 @@
Run long-running tasks remotely
-For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Remote sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor remote sessions from [claude.ai/code](<https://claude.ai/code>) or the Claude iOS app. Remote sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how remote sessions work.
+For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Cloud sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor cloud sessions from [claude.ai/code](<https://claude.ai/code>) or the Claude iOS app. Cloud sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how cloud sessions work.
###
@@ -360,7 +360,7 @@
The **Continue in** menu, accessible from the VS Code icon in the bottom right of the session toolbar, lets you move your session to another surface:
- * **Claude Code on the Web** : sends your local session to continue running remotely. Desktop pushes your branch, generates a summary of the conversation, and creates a new remote session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
+ * **Claude Code on the Web** : sends your local session to continue running remotely. Desktop pushes your branch, generates a summary of the conversation, and creates a new cloud session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
* **Your IDE** : opens your project in a supported IDE at the current working directory.
###
@@ -385,7 +385,7 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in cloud sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -401,7 +401,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for cloud sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -564,15 +564,15 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
-
-###
-
-
-
-Remote sessions
-
-Remote sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a remote session and choose **Add environment**. See [the cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for details on configuring network access and environment variables.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking, set `MAX_THINKING_TOKENS` to `0` in the local environment editor; this has no effect on Fable 5, which always uses extended thinking. On [third-party providers](</docs/en/third-party-integrations>), `0` omits the `thinking` parameter instead, and adaptive-reasoning models may still think. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
+
+###
+
+
+
+Cloud sessions
+
+Cloud sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a cloud session and choose **Add environment**. See [the cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for details on configuring network access and environment variables.
###
@@ -674,7 +674,7 @@
IT teams can manage the desktop app through MDM on macOS or group policy on Windows. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates, and setting a custom deployment URL.
- * **macOS** : configure via `com.anthropic.Claude` preference domain using tools like Jamf or Kandji
+ * **macOS** : configure via `com.anthropic.claudefordesktop` preference domain using tools like Jamf or Kandji
* **Windows** : configure via registry at `SOFTWARE\Policies\Claude`
###
@@ -691,7 +691,7 @@
Data handling
-Claude Code processes your code locally in local sessions or on Anthropic’s cloud infrastructure in remote sessions. Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
+Claude Code processes your code locally in local sessions or on Anthropic’s cloud infrastructure in cloud sessions. Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
###
@@ -730,7 +730,7 @@
`--resume`, `--continue`| Click a session in the sidebar
`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
-`--add-dir`| Add multiple repos with the **+** button in remote sessions
+`--add-dir`| Add multiple repos with the **+** button in cloud sessions
`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode in the Transcript view dropdown
`--print`, `--output-format`| Not available. Desktop is interactive only.
@@ -749,7 +749,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.
- * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
+ * **Models** : the same [models](</docs/en/model-config#available-models>) are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
**MCP servers from the Claude Desktop chat app** : the Desktop app loads MCP servers from `claude_desktop_config.json` into Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server defined in `claude_desktop_config.json` is available in both the Desktop chat surface and the Code tab.The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
@@ -765,7 +765,7 @@
---|---|---
Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
+[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex AI, Foundry| Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). To run the Code tab on Bedrock, Vertex AI, Foundry, or a self-hosted LLM gateway, see the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -783,9 +783,9 @@
What’s not available in Desktop
-The following features are only available in the CLI or VS Code extension:
-
- * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry, use the [CLI](</docs/en/quickstart>).
+The following features are only available in the CLI or VS Code extension, except where noted:
+
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry in the CLI, see the [quickstart](</docs/en/quickstart>). As an exception to the section above, the [Cowork on 3P research preview](<https://claude.com/docs/cowork/3p/overview>) runs the Code tab on Bedrock, Vertex AI, Foundry, or a self-hosted LLM gateway.
* **Linux** : the desktop app is available on macOS and Windows only. On Linux, use the [CLI](</docs/en/quickstart>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
@@ -893,7 +893,7 @@
”Branch doesn’t exist yet” when opening in CLI
-Remote sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally:
+Cloud sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally:
git fetch origin <branch-name>
git checkout <branch-name>
--- a/desktop.md
+++ b/desktop.md
@@ -1,9 +1,3 @@
-> ## Documentation Index
->
-> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
->
-> Use this file to discover all available pages before exploring further.
-
The Claude Desktop app has three tabs: **Chat** for conversations, **Cowork** for [Dispatch and longer agentic work](<https://claude.com/product/cowork>), and **Code** for software development. This page is the reference for the Code tab.
## Download for macOS
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API. It is not available on third-party providers. It requires Claude Opus 4.6 or later, or Sonnet 4.6.
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6. In Enterprise deployments that route Desktop to Google Cloud Vertex AI, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-vertex-ai-or-foundry>), and only Claude Opus 4.7 and Opus 4.8 are supported there.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
--- a/desktop.md
+++ b/desktop.md
@@ -757,7 +757,7 @@
* **[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.
* **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
-**MCP servers: desktop chat app vs Claude Code** : MCP servers configured for the Claude Desktop chat app in `claude_desktop_config.json` are separate from Claude Code and will not appear in the Code tab. To use MCP servers in Claude Code, configure them in `~/.claude.json` or your project’s `.mcp.json` file. See [MCP configuration](</docs/en/mcp#installing-mcp-servers>) for details.
+**MCP servers from the Claude Desktop chat app** : the Desktop app loads MCP servers from `claude_desktop_config.json` into Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. A server defined in `claude_desktop_config.json` is available in both the Desktop chat surface and the Code tab.The standalone CLI does not read `claude_desktop_config.json`. On macOS and WSL, run `claude mcp add-from-claude-desktop` to copy those servers into `~/.claude.json`. See [Import MCP servers from Claude Desktop](</docs/en/mcp#import-mcp-servers-from-claude-desktop>) for the import flow and scope options.
###
--- a/desktop.md
+++ b/desktop.md
@@ -348,7 +348,7 @@
Watch background tasks
-The tasks pane shows the background work running inside the current session: subagents, background shell commands, and dynamic workflows. Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and [dynamic workflows](</docs/en/workflows>). Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
###
@@ -794,7 +794,7 @@
* **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry, use the [CLI](</docs/en/quickstart>).
* **Linux** : the desktop app is available on macOS and Windows only. On Linux, use the [CLI](</docs/en/quickstart>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
- * **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
+ * **Agent teams** : parallel Claude Code sessions that message each other are available in the [CLI](</docs/en/agent-teams>), not in Desktop. For multi-agent work inside one session, use [dynamic workflows](</docs/en/workflows>), which run in Desktop.
* **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, `/agents`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
##
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API. It is not available on third-party providers. It requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7.
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API. It is not available on third-party providers. It requires Claude Opus 4.6 or later, or Sonnet 4.6.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -348,7 +348,7 @@
Watch background tasks
-The tasks pane shows the background work running inside the current session: subagents, background shell commands, and workflows. Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and dynamic workflows. Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
###
@@ -570,7 +570,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 always uses adaptive reasoning and has no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 and later always use adaptive reasoning and have no fixed-budget mode.
###
--- a/desktop.md
+++ b/desktop.md
@@ -84,7 +84,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available on Max, Team, Enterprise, and API plans. It is not available on Pro plans or third-party providers. On Team, Enterprise, and API plans it requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7. On Max plans it requires Claude Opus 4.7.
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API. It is not available on third-party providers. It requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
--- a/desktop.md
+++ b/desktop.md
@@ -55,7 +55,7 @@
Use the prompt box
-Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can interrupt Claude at any point: click the stop button or type your correction and press **Enter**. Claude stops what it’s doing and adjusts based on your input. The **+** button next to the prompt box gives you access to file attachments, skills, connectors, and plugins.
+Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can redirect Claude at any point: click the stop button to interrupt immediately, or type a correction and press **Enter** to send it without stopping the running action. Claude reads the correction as soon as the current action completes and adjusts before its next step. The **+** button next to the prompt box gives you access to file attachments, skills, connectors, and plugins.
###
@@ -718,7 +718,7 @@
Coming from the CLI?
-If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows only.
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows when you are signed in with a Claude subscription. It is not available with API key authentication or on Bedrock, Vertex, or Foundry.
When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
--- a/desktop.md
+++ b/desktop.md
@@ -795,6 +795,7 @@
* **Linux** : the desktop app is available on macOS and Windows only. On Linux, use the [CLI](</docs/en/quickstart>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
+ * **Terminal-dialog commands** : built-in commands that open an interactive panel in the terminal, such as `/permissions`, `/config`, `/agents`, and `/doctor`, are not available in the Code tab and reply with `isn't available in this environment`. Edit [settings files](</docs/en/settings>) directly to manage permission rules and configuration, or run the command from the standalone CLI.
##
--- a/desktop.md
+++ b/desktop.md
@@ -158,7 +158,7 @@
Run commands in the terminal
-The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. The terminal is available in local sessions only.
+The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. To open a second terminal tab, click **+** in the terminal pane header or right-click a folder in the chat to choose **Open in terminal**. The terminal is available in local sessions only.
###
@@ -332,7 +332,7 @@
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
-Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works. The desktop app sends an OS notification when a Code session finishes a task and you aren’t currently viewing that session.
###
@@ -668,6 +668,7 @@
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
+`managedMcpServers`| push MCP server configurations to all users in a third-party deployment. Each entry specifies a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map that restricts which tools in that server users can invoke. Available in third-party (3P) Desktop deployments only.
A managed settings file deployed to disk on each machine applies to Desktop sessions. Managed settings pushed remotely through the admin console currently reach CLI and IDE sessions only, so for Desktop deployments either distribute the file via MDM or use the admin console controls above. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
--- a/desktop.md
+++ b/desktop.md
@@ -618,6 +618,20 @@
Each entry requires `id`, `name`, and `sshHost`. The `sshPort`, `sshIdentityFile`, and `startDirectory` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`, which is where connections added through the dialog are stored.
+####
+
+
+
+Restrict which SSH hosts users can connect to
+
+Administrators can limit Desktop’s SSH sessions to an approved set of hosts by adding `sshHostAllowlist` to a [managed settings](</docs/en/settings#settings-precedence>) file. When set, users can only connect to hosts whose resolved hostname matches one of the patterns. Set it to an empty array to disable SSH sessions entirely. The following example allows connections to any host under `devboxes.example.com` and to a single named bastion host:
+
+ {
+ "sshHostAllowlist": ["*.devboxes.example.com", "bastion.example.com"]
+ }
+
+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 `Host` aliases and `ProxyCommand`/`ProxyJump` entries are permitted as long as the resolved `HostName` matches. `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.
+
##
@@ -653,6 +667,7 @@
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto 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>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
+`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. An empty array disables SSH sessions. Read from managed settings only.
A managed settings file deployed to disk on each machine applies to Desktop sessions. Managed settings pushed remotely through the admin console currently reach CLI and IDE sessions only, so for Desktop deployments either distribute the file via MDM or use the admin console controls above. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
--- a/desktop.md
+++ b/desktop.md
@@ -328,7 +328,7 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. To view two sessions at once, hold **Cmd** on macOS or **Ctrl** on Windows and click a session in the sidebar. The session opens in a second pane alongside the one you already have open. While the split is active, clicking another sidebar session replaces whichever pane has focus. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane and return to a single session. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
--- a/desktop.md
+++ b/desktop.md
@@ -328,7 +328,7 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/worktrees#copy-gitignored-files-into-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
@@ -570,7 +570,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 always uses adaptive reasoning and has no fixed-budget mode.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/model-config#extended-thinking>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 always uses adaptive reasoning and has no fixed-budget mode.
###
--- a/desktop.md
+++ b/desktop.md
@@ -14,7 +14,7 @@
For x64 processors
-For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). Linux is not supported. After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). The desktop app is not available on Linux; use the [CLI](</docs/en/quickstart>) instead. After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
* Review and comment on diffs, then watch the resulting PR through CI
* Preview your running app in an embedded browser while Claude verifies its own changes
@@ -776,7 +776,7 @@
The following features are only available in the CLI or VS Code extension:
* **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry, use the [CLI](</docs/en/quickstart>).
- * **Linux** : the desktop app is available on macOS and Windows only.
+ * **Linux** : the desktop app is available on macOS and Windows only. On Linux, use the [CLI](</docs/en/quickstart>).
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
--- a/desktop.md
+++ b/desktop.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Claude Desktop app has three tabs: **Chat** for conversations, **Cowork** for [Dispatch and longer agentic work](<https://claude.com/product/cowork>), and **Code** for software development. This page is the reference for the Code tab.
## Download for macOS
Show diff (130 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1,4 +1,4 @@
-The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal.
+The Claude Desktop app has three tabs: **Chat** for conversations, **Cowork** for [Dispatch and longer agentic work](<https://claude.com/product/cowork>), and **Code** for software development. This page is the reference for the Code tab.
## Download for macOS
@@ -8,23 +8,17 @@
For x64 processors
-For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). Linux is not supported. After installing, launch Claude, sign in, and click the **Code** tab. See the [Get started guide](</docs/en/desktop-quickstart>) for a full walkthrough of your first session. Desktop adds these capabilities on top of the standard Claude Code experience:
-
- * Parallel sessions with automatic Git worktree isolation
- * Drag-and-drop layout with an integrated terminal, file editor, and preview pane
- * Side chats that branch off without affecting the main thread
- * Visual diff review with inline comments
- * Live app preview with dev servers, HTML files, and PDFs
- * Computer use to open apps and control your screen on macOS and Windows
- * GitHub PR monitoring with auto-fix, auto-merge, and auto-archive
- * Dispatch integration: send a task from your phone, get a session here
- * [Scheduled tasks](</docs/en/desktop-scheduled-tasks>) that run Claude on a recurring schedule
- * Connectors for GitHub, Slack, Linear, and more
- * Local, SSH, and cloud environments
-
-The workspace layout, terminal, file editor, side chats, and view modes described on this page require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
-
-This page covers working with code, arranging your workspace, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). Linux is not supported. After installing, launch Claude, sign in, and click the **Code** tab. The first time you open it on Windows, you need [Git for Windows](<https://git-scm.com/downloads/win>) installed; restart the app after installing it. For a walkthrough of your first session, see the [Get started guide](</docs/en/desktop-quickstart>). In the Code tab, each conversation is a **session** : it has its own chat history, project folder, and code changes, independent of any other session. The sidebar lists your sessions and lets you run several in parallel. Within a session you can:
+
+ * Review and comment on diffs, then watch the resulting PR through CI
+ * Preview your running app in an embedded browser while Claude verifies its own changes
+ * Arrange panes for the chat, diff, preview, terminal, and file editor side by side
+ * Ask a side question that uses the session’s context without derailing it
+ * Connect external tools like GitHub, Slack, and Linear
+ * Let Claude open apps and control your screen
+ * Run on your machine, in the cloud, or over SSH
+
+For [scheduled recurring work](</docs/en/desktop-scheduled-tasks>), keyboard shortcuts, or sending tasks from your phone, see the linked pages and sections. If you already use the terminal-based CLI, see the CLI comparison for what carries over.
##
@@ -81,10 +75,10 @@
**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan mode**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Max, Team, Enterprise, and API plans. Requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7 on Team, Enterprise, and API plans; Claude Opus 4.7 only on Max plans. Not available on Pro plans or third-party providers. Enable in your Settings → Claude Code.
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available on Max, Team, Enterprise, and API plans. It is not available on Pro plans or third-party providers. On Team, Enterprise, and API plans it requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7. On Max plans it requires Claude Opus 4.7.
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -96,7 +90,7 @@
Preview your app
-Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The preview pane can also open static HTML files, PDFs, and images from your project. Click an HTML, PDF, or image path in the chat to open it in preview. From the preview pane, you can:
+Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The preview pane can also open static HTML files, PDFs, images, and videos from your project. Click an HTML, PDF, image, or video path in the chat to open it in preview. From the preview pane, you can:
* Interact with your running app directly in the embedded browser
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
@@ -148,7 +142,9 @@
Arrange your workspace
-The desktop app is built around panes you can arrange in any layout: chat, diff, preview, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+The Code tab is built around panes you can arrange in any layout: chat, diff, preview, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+
+The pane layout, terminal, file editor, and view modes in this section require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
###
@@ -164,7 +160,7 @@
Open and edit files
-Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, and image paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For remote sessions, ask Claude to make the change.
+Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, image, and video paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For remote sessions, ask Claude to make the change.
###
@@ -328,7 +324,7 @@
Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
-Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, try a Cowork session to help troubleshoot your setup.
+Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, ask Claude in the [Cowork tab](<https://claude.com/product/cowork>) to help troubleshoot your setup.
Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
@@ -381,7 +377,7 @@
Extend Claude Code
-Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers.
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers. To manage connectors, skills, and plugins in one place, click **Customize** in the sidebar.
###
@@ -591,7 +587,7 @@
* **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config
* **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config.
-Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS, and Claude Code must be installed on it. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS. Desktop installs Claude Code on the remote machine automatically the first time you connect. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
####
@@ -652,7 +648,7 @@
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
-`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
+A managed settings file deployed to disk on each machine applies to Desktop sessions. Managed settings pushed remotely through the admin console currently reach CLI and IDE sessions only, so for Desktop deployments either distribute the file via MDM or use the admin console controls above. `permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>).
###
@@ -719,7 +715,7 @@
`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
`--add-dir`| Add multiple repos with the **+** button in remote sessions
-`--allowedTools`, `--disallowedTools`| Not available in Desktop
+`--allowedTools`, `--disallowedTools`| No per-session equivalent. Permission rules in [settings files](</docs/en/settings>) still apply.
`--verbose`| Verbose view mode in the Transcript view dropdown
`--print`, `--output-format`| Not available. Desktop is interactive only.
`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
--- a/desktop.md
+++ b/desktop.md
@@ -649,7 +649,7 @@
---|---
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto from the mode selector. Also accepted under `permissions`.
-`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>).
+`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>).
`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
--- a/desktop.md
+++ b/desktop.md
@@ -593,6 +593,29 @@
Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS, and Claude Code must be installed on it. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+####
+
+
+
+Pre-configure SSH connections for your team
+
+Administrators can distribute SSH connections to team members by adding `sshConfigs` to a [managed settings](</docs/en/settings#settings-precedence>) file. Connections defined this way appear in each user’s environment dropdown automatically and are shown as managed, so users can select them but cannot edit or delete them in the app. The following example pre-configures a single connection that opens in `~/projects` on the remote host:
+
+ {
+ "sshConfigs": [
+ {
+ "id": "shared-dev-vm",
+ "name": "Shared Dev VM",
+ "sshHost": "user@dev.example.com",
+ "sshPort": 22,
+ "sshIdentityFile": "~/.ssh/id_ed25519",
+ "startDirectory": "~/projects"
+ }
+ ]
+ }
+
+Each entry requires `id`, `name`, and `sshHost`. The `sshPort`, `sshIdentityFile`, and `startDirectory` fields are optional. Users can also add `sshConfigs` to their own `~/.claude/settings.json`, which is where connections added through the dialog are stored.
+
##
@@ -627,6 +650,7 @@
`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto from the mode selector. Also accepted under `permissions`.
`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>).
+`sshConfigs`| pre-configure SSH connections that appear in the environment dropdown. Users cannot edit or delete managed connections.
`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
--- a/desktop.md
+++ b/desktop.md
@@ -1,4 +1,14 @@
-The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal. Desktop adds these capabilities on top of the standard Claude Code experience:
+The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal.
+
+## Download for macOS
+
+Universal build for Intel and Apple Silicon
+
+## Download for Windows
+
+For x64 processors
+
+For Windows ARM64, download the [ARM64 installer](<https://claude.ai/api/desktop/win32/arm64/setup/latest/redirect?utm_source=claude_code&utm_medium=docs>). Linux is not supported. After installing, launch Claude, sign in, and click the **Code** tab. See the [Get started guide](</docs/en/desktop-quickstart>) for a full walkthrough of your first session. Desktop adds these capabilities on top of the standard Claude Code experience:
* Parallel sessions with automatic Git worktree isolation
* Drag-and-drop layout with an integrated terminal, file editor, and preview pane
@@ -12,8 +22,6 @@
* Connectors for GitHub, Slack, Linear, and more
* Local, SSH, and cloud environments
-New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
-
The workspace layout, terminal, file editor, side chats, and view modes described on this page require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
This page covers working with code, arranging your workspace, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
@@ -73,7 +81,7 @@
**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
**Plan mode**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Team, Enterprise, and API plans. Requires Claude Sonnet 4.6 or Opus 4.6. Enable in your Settings → Claude Code.
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Max, Team, Enterprise, and API plans. Requires Claude Sonnet 4.6, Opus 4.6, or Opus 4.7 on Team, Enterprise, and API plans; Claude Opus 4.7 only on Max plans. Not available on Pro plans or third-party providers. Enable in your Settings → Claude Code.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
@@ -560,7 +568,7 @@
Local sessions
-The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On Opus 4.6 and Sonnet 4.6, any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. To use a fixed thinking budget on these models, also set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1`.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On models with [adaptive reasoning](</docs/en/model-config#adjust-effort-level>), any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. On Opus 4.6 and Sonnet 4.6, set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1` to use a fixed thinking budget; Opus 4.7 always uses adaptive reasoning and has no fixed-budget mode.
###
@@ -752,6 +760,8 @@
Troubleshooting
+The sections below cover issues specific to the desktop app. For runtime API errors that appear in the chat such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>). Those errors and their fixes are the same across the CLI, desktop, and web.
+
###
@@ -839,15 +849,6 @@
* **PATH not updated after install** : open a new terminal window. PATH updates only apply to new terminal sessions.
* **Concurrent installation error** : if you see an error about another installation in progress but there isn’t one, try running the installer as Administrator.
- * **ARM64** : Windows ARM64 devices are fully supported.
-
-###
-
-
-
-Cowork tab unavailable on Intel Macs
-
-The Cowork tab requires Apple Silicon (M1 or later) on macOS. On Windows, Cowork is available on all supported hardware. The Chat and Code tabs work normally on Intel Macs.
###
Show diff (267 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1,10 +1,12 @@
The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal. Desktop adds these capabilities on top of the standard Claude Code experience:
+ * Parallel sessions with automatic Git worktree isolation
+ * Drag-and-drop layout with an integrated terminal, file editor, and preview pane
+ * Side chats that branch off without affecting the main thread
* Visual diff review with inline comments
- * Live app preview with dev servers
+ * Live app preview with dev servers, HTML files, and PDFs
* Computer use to open apps and control your screen on macOS and Windows
- * GitHub PR monitoring with auto-fix and auto-merge
- * Parallel sessions with automatic Git worktree isolation
+ * GitHub PR monitoring with auto-fix, auto-merge, and auto-archive
* Dispatch integration: send a task from your phone, get a session here
* [Scheduled tasks](</docs/en/desktop-scheduled-tasks>) that run Claude on a recurring schedule
* Connectors for GitHub, Slack, Linear, and more
@@ -12,7 +14,9 @@
New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
-This page covers working with code, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
+The workspace layout, terminal, file editor, side chats, and view modes described on this page require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
+
+This page covers working with code, arranging your workspace, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
##
@@ -24,7 +28,7 @@
* **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, or an **SSH connection** for a remote machine you manage. See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For remote sessions, you can add multiple repositories.
- * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. The model is locked once the session starts.
+ * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
Type your task and press **Enter** to start. Each session tracks its own context and changes independently.
@@ -84,7 +88,7 @@
Preview your app
-Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. From the preview panel, you can:
+Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The preview pane can also open static HTML files, PDFs, and images from your project. Click an HTML, PDF, or image path in the chat to open it in preview. From the preview pane, you can:
* Interact with your running app directly in the embedded browser
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
@@ -126,9 +130,100 @@
* **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating.
* **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Auto-merge must be [enabled in your GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) for this to work.
-Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes.
+Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes. To archive the session automatically once the PR merges or closes, turn on auto-archive in Settings → Claude Code.
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.
+
+##
+
+
+
+Arrange your workspace
+
+The desktop app is built around panes you can arrange in any layout: chat, diff, preview, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+
+###
+
+
+
+Run commands in the terminal
+
+The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. The terminal is available in local sessions only.
+
+###
+
+
+
+Open and edit files
+
+Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, and image paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For remote sessions, ask Claude to make the change.
+
+###
+
+
+
+Open files in other apps
+
+Right-click any file path in the chat, diff viewer, or file pane to open a context menu:
+
+ * **Attach as context** : add the file to your next prompt
+ * **Open in** : open the file in an installed editor such as VS Code, Cursor, or Zed
+ * **Show in Finder** on macOS, **Show in Explorer** on Windows: open the containing folder
+ * **Copy path** : copy the absolute path to your clipboard
+
+###
+
+
+
+Switch view modes
+
+View modes control how much detail appears in the chat transcript. Switch modes from the **Transcript view** dropdown next to the send button, or press **Ctrl+O** on macOS or Windows to cycle through them.
+
+Mode| What it shows
+---|---
+**Normal**| Tool calls collapsed into summaries, with full text responses
+**Verbose**| Every tool call, file read, and intermediate step Claude takes
+**Summary**| Only Claude’s final responses and the changes it made
+
+Use Verbose when debugging why Claude took a particular action. Use Summary when you’re running multiple sessions and want to scan results quickly.
+
+###
+
+
+
+Keyboard shortcuts
+
+Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. On Windows, use **Ctrl** in place of **Cmd** for the shortcuts below. Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
+
+Shortcut| Action
+---|---
+`Cmd` `/`| Show keyboard shortcuts
+`Cmd` `N`| New session
+`Cmd` `W`| Close session
+`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Next or previous session
+`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
+`Esc`| Stop Claude’s response
+`Cmd` `Shift` `D`| Toggle diff pane
+`Cmd` `Shift` `P`| Toggle preview pane
+`Cmd` `Shift` `S`| Select an element in preview
+`Ctrl` ```| Toggle terminal pane
+`Cmd` `\`| Close focused pane
+`Cmd` `;`| Open side chat
+`Ctrl` `O`| Cycle view modes
+`Cmd` `Shift` `M`| Open permission mode menu
+`Cmd` `Shift` `I`| Open model menu
+`Cmd` `Shift` `E`| Open effort menu
+`1`–`9`| Select item in an open menu
+
+These shortcuts apply only to the Code tab. The terminal-based [interactive mode shortcuts](</docs/en/interactive-mode#keyboard-shortcuts>), such as `Shift+Tab` to cycle modes, do not apply in Desktop.
+
+###
+
+
+
+Check usage
+
+Click the usage ring next to the model picker to see your current context window usage and your plan usage for the period. Context usage is per session; plan usage is shared across all your Claude Code surfaces.
##
@@ -215,7 +310,7 @@
Manage sessions
-Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, send work to the cloud, or let Dispatch start sessions for you from your phone.
+Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, send work to the cloud, or let Dispatch start sessions for you from your phone.
###
@@ -223,11 +318,27 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar to work on multiple tasks in parallel. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, try a Cowork session to help troubleshoot your setup.
-Use the filter icon at the top of the sidebar to filter sessions by status (Active, Archived) and environment (Local, Cloud). To rename a session or check context usage, click the session title in the toolbar at the top of the active session. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+
+###
+
+
+
+Ask a side question without derailing the session
+
+A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you’re done, close the side chat and continue the main session where you left off. Side chats are available in local and SSH sessions.
+
+###
+
+
+
+Watch background tasks
+
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and workflows. Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
###
@@ -270,7 +381,7 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [scheduled tasks](</docs/en/web-scheduled-tasks>) configure connectors at task creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -286,7 +397,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -472,7 +583,7 @@
* **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config
* **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config.
-Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. Claude Code must be installed on the remote machine. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS, and Claude Code must be installed on it. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
##
@@ -559,7 +670,7 @@
If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows only.
-When to use Desktop vs CLI: use Desktop when you want visual diff review, file attachments, or session management in a sidebar. Use the CLI when you need scripting, automation, third-party providers, or prefer a terminal workflow.
+When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
###
@@ -571,13 +682,13 @@
CLI| Desktop equivalent
---|---
-`--model sonnet`| Model dropdown next to the send button, before starting a session
+`--model sonnet`| Model dropdown next to the send button
`--resume`, `--continue`| Click a session in the sidebar
`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
`--add-dir`| Add multiple repos with the **+** button in remote sessions
`--allowedTools`, `--disallowedTools`| Not available in Desktop
-`--verbose`| Not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
+`--verbose`| Verbose view mode in the Transcript view dropdown
`--print`, `--output-format`| Not available. Desktop is interactive only.
`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
`MAX_THINKING_TOKENS` env var| Set in the local environment editor. See environment configuration.
@@ -594,7 +705,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.
- * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button before starting a session. You cannot change the model during an active session.
+ * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
**MCP servers: desktop chat app vs Claude Code** : MCP servers configured for the Claude Desktop chat app in `claude_desktop_config.json` are separate from Claude Code and will not appear in the Code tab. To use MCP servers in Claude Code, configure them in `~/.claude.json` or your project’s `.mcp.json` file. See [MCP configuration](</docs/en/mcp#installing-mcp-servers>) for details.
@@ -610,7 +721,7 @@
---|---|---
Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Not available. Desktop connects to Anthropic’s API directly.
+[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -630,7 +741,7 @@
The following features are only available in the CLI or VS Code extension:
- * **Third-party providers** : Desktop connects to Anthropic’s API directly. Use the [CLI](</docs/en/quickstart>) with Bedrock, Vertex, or Foundry instead.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry, use the [CLI](</docs/en/quickstart>).
* **Linux** : the desktop app is available on macOS and Windows only.
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
--- a/desktop.md
+++ b/desktop.md
@@ -286,7 +286,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their commands. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
--- a/desktop.md
+++ b/desktop.md
@@ -67,8 +67,8 @@
Mode| Settings key| Behavior
---|---|---
**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
-**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits but still asks before running terminal commands. Use this when you trust file changes and want faster iteration.
-**Plan mode**| `plan`| Claude analyzes your code and creates a plan without modifying files or running commands. Good for complex tasks where you want to review the approach first.
+**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits and common filesystem commands like `mkdir`, `touch`, and `mv`, but still asks before running other terminal commands. Use this when you trust file changes and want faster iteration.
+**Plan mode**| `plan`| Claude reads files and runs commands to explore, then proposes a plan without editing your source code. Good for complex tasks where you want to review the approach first.
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Team, Enterprise, and API plans. Requires Claude Sonnet 4.6 or Opus 4.6. Enable in your Settings → Claude Code.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
@@ -341,7 +341,7 @@
`runtimeArgs`| string[]| Arguments passed to `runtimeExecutable`, such as `["run", "dev"]`
`port`| number| The port your server listens on. Defaults to 3000
`cwd`| string| Working directory relative to your project root. Defaults to the project root. Use `${workspaceFolder}` to reference the project root explicitly
-`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. Secrets set in your shell profile are inherited automatically.
+`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. To pass secrets to your dev server, set them in the local environment editor instead.
`autoPort`| boolean| How to handle port conflicts. See below
`program`| string| A script to run with `node`. See when to use `program` vs `runtimeExecutable`
`args`| string[]| Arguments passed to `program`. Only used when `program` is set
@@ -449,7 +449,7 @@
Local sessions
-Local sessions inherit environment variables from your shell. If you need additional variables, set them in your shell profile, such as `~/.zshrc` or `~/.bashrc`, and restart the desktop app. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS=0` in your shell profile. On Opus, `MAX_THINKING_TOKENS` is ignored except for `0` because adaptive reasoning controls thinking depth instead.
+The desktop app does not always inherit your full shell environment. On macOS, when you launch the app from the Dock or Finder, it reads your shell profile, such as `~/.zshrc` or `~/.bashrc`, to extract `PATH` and a fixed set of Claude Code variables, but other variables you export there are not picked up. On Windows, the app inherits user and system environment variables but does not read PowerShell profiles. To set environment variables for local sessions and dev servers on any platform, open the environment dropdown in the prompt box, hover over **Local** , and click the gear icon to open the local environment editor. Variables you save here are stored encrypted on your machine and apply to every local session and preview server you start. You can also add variables to the `env` key in your `~/.claude/settings.json` file, though these reach Claude sessions only and not dev servers. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS` to `0` in the local environment editor. On Opus 4.6 and Sonnet 4.6, any other `MAX_THINKING_TOKENS` value is ignored because adaptive reasoning controls thinking depth instead. To use a fixed thinking budget on these models, also set `CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING` to `1`.
###
@@ -457,7 +457,7 @@
Remote sessions
-Remote sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a remote session and choose **Add environment**. See [cloud environments](</docs/en/claude-code-on-the-web#cloud-environment>) for details on configuring network access and environment variables.
+Remote sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a remote session and choose **Add environment**. See [the cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for details on configuring network access and environment variables.
###
@@ -580,7 +580,7 @@
`--verbose`| Not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
`--print`, `--output-format`| Not available. Desktop is interactive only.
`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
-`MAX_THINKING_TOKENS` env var| Set in shell profile; applies to local sessions. See environment configuration.
+`MAX_THINKING_TOKENS` env var| Set in the local environment editor. See environment configuration.
###
Show diff (139 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -6,13 +6,13 @@
* GitHub PR monitoring with auto-fix and auto-merge
* Parallel sessions with automatic Git worktree isolation
* Dispatch integration: send a task from your phone, get a session here
- * Scheduled tasks that run Claude on a recurring schedule
+ * [Scheduled tasks](</docs/en/desktop-scheduled-tasks>) that run Claude on a recurring schedule
* Connectors for GitHub, Slack, Linear, and more
* Local, SSH, and cloud environments
New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
-This page covers working with code, computer use, managing sessions, extending Claude Code, scheduled tasks, and configuration. It also includes a CLI comparison and troubleshooting.
+This page covers working with code, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
##
@@ -435,111 +435,6 @@
-Schedule recurring tasks
-
-By default, scheduled tasks start a new session automatically at a time and frequency you choose. Use them for recurring work like daily code reviews, dependency update checks, or morning briefings that pull from your calendar and inbox.
-
-###
-
-
-
-Compare scheduling options
-
-Claude Code offers three ways to schedule recurring work:
-
-| [Cloud](</docs/en/web-scheduled-tasks>)| [Desktop](</docs/en/desktop#schedule-recurring-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
----|---|---|---
-Runs on| Anthropic cloud| Your machine| Your machine
-Requires machine on| No| Yes| Yes
-Requires open session| No| No| Yes
-Persistent across restarts| Yes| Yes| No (session-scoped)
-Access to local files| No (fresh clone)| Yes| Yes
-MCP servers| Connectors configured per task| [Config files](</docs/en/mcp>) and connectors| Inherits from session
-Permission prompts| No (runs autonomously)| Configurable per task| Inherits from session
-Customizable schedule| Via `/schedule` in the CLI| Yes| Yes
-Minimum interval| 1 hour| 1 minute| 1 minute
-
-Use **cloud tasks** for work that should run reliably without your machine. Use **Desktop tasks** when you need access to local files and tools. Use **`/loop`** for quick polling during a session.
-
-The Schedule page supports two kinds of tasks:
-
- * **Local tasks** : run on your machine. They have direct access to your local files and tools, but the desktop app must be open and your computer awake for them to run.
- * **Remote tasks** : run on Anthropic-managed cloud infrastructure. They keep running even when your computer is off, but work against a fresh clone of your repository rather than your local checkout.
-
-Both kinds appear in the same task grid. Click **New task** to pick which kind to create. The rest of this section covers local tasks; for remote tasks, see [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>). See How scheduled tasks run for details on missed runs and catch-up behavior for local tasks.
-
-By default, local scheduled tasks run against whatever state your working directory is in, including uncommitted changes. Enable the worktree toggle in the prompt input to give each run its own isolated Git worktree, the same way parallel sessions work.
-
-To create a local scheduled task, click **Schedule** in the sidebar, click **New task** , and choose **New local task**. Configure these fields:
-
-Field| Description
----|---
-Name| Identifier for the task. Converted to lowercase kebab-case and used as the folder name on disk. Must be unique across your tasks.
-Description| Short summary shown in the task list.
-Prompt| The instructions sent to Claude when the task runs. Write this the same way you’d write any message in the prompt box. The prompt input also includes controls for model, permission mode, working folder, and worktree.
-Frequency| How often the task runs. See frequency options below.
-
-You can also create a task by describing what you want in any session. For example, “set up a daily code review that runs every morning at 9am.”
-
-###
-
-
-
-Frequency options
-
- * **Manual** : no schedule, only runs when you click **Run now**. Useful for saving a prompt you trigger on demand
- * **Hourly** : runs every hour. Each task gets a fixed offset of up to 10 minutes from the top of the hour to stagger API traffic
- * **Daily** : shows a time picker, defaults to 9:00 AM local time
- * **Weekdays** : same as Daily but skips Saturday and Sunday
- * **Weekly** : shows a time picker and a day picker
-
-For intervals the picker doesn’t offer (every 15 minutes, first of each month, etc.), ask Claude in any Desktop session to set the schedule. Use plain language; for example, “schedule a task to run all the tests every 6 hours.”
-
-###
-
-
-
-How scheduled tasks run
-
-Local scheduled tasks run on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep. For tasks that need to run even when your computer is off, use a [remote task](</docs/en/web-scheduled-tasks>) instead.
-
-###
-
-
-
-Missed runs
-
-When the app starts or your computer wakes, Desktop checks whether each task missed any runs in the last seven days. If it did, Desktop starts exactly one catch-up run for the most recently missed time and discards anything older. A daily task that missed six days runs once on wake. Desktop shows a notification when a catch-up run starts. Keep this in mind when writing prompts. A task scheduled for 9am might run at 11pm if your computer was asleep all day. If timing matters, add guardrails to the prompt itself, for example: “Only review today’s commits. If it’s after 5pm, skip the review and just post a summary of what was missed.”
-
-###
-
-
-
-Permissions for scheduled tasks
-
-Each task has its own permission mode, which you set when creating or editing the task. Allow rules from `~/.claude/settings.json` also apply to scheduled task sessions. If a task runs in Ask mode and needs to run a tool it doesn’t have permission for, the run stalls until you approve it. The session stays open in the sidebar so you can answer later. To avoid stalls, click **Run now** after creating a task, watch for permission prompts, and select “always allow” for each one. Future runs of that task auto-approve the same tools without prompting. You can review and revoke these approvals from the task’s detail page.
-
-###
-
-
-
-Manage scheduled tasks
-
-Click a task in the **Schedule** list to open its detail page. From here you can:
-
- * **Run now** : start the task immediately without waiting for the next scheduled time
- * **Toggle repeats** : pause or resume scheduled runs without deleting the task
- * **Edit** : change the prompt, frequency, folder, or other settings
- * **Review history** : see every past run, including ones that were skipped because your computer was asleep
- * **Review allowed permissions** : see and revoke saved tool approvals for this task from the **Always allowed** panel
- * **Delete** : remove the task and archive all sessions it created
-
-You can also manage tasks by asking Claude in any Desktop session. For example, “pause my dependency-audit task”, “delete the standup-prep task”, or “show me my scheduled tasks.” To edit a task’s prompt on disk, open `~/.claude/scheduled-tasks/<task-name>/SKILL.md` (or under [`CLAUDE_CONFIG_DIR`](</docs/en/env-vars>) if set). The file uses YAML frontmatter for `name` and `description`, with the prompt as the body. Changes take effect on the next run. Schedule, folder, model, and enabled state are not in this file: change them through the Edit form or ask Claude.
-
-##
-
-
-
Environment configuration
The environment you pick when starting a session determines where Claude executes and how you connect:
@@ -722,7 +617,7 @@
File attachments| Not available| Images, PDFs
Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
Multiple sessions| Separate terminals| Sidebar tabs
-Recurring tasks| Cron jobs, CI pipelines| Scheduled tasks
+Recurring tasks| Cron jobs, CI pipelines| [Scheduled tasks](</docs/en/desktop-scheduled-tasks>)
Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS and Windows
Dispatch integration| Not available| Dispatch sessions in the sidebar
Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
Show diff (107 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -2,7 +2,7 @@
* Visual diff review with inline comments
* Live app preview with dev servers
- * Computer use to open apps and control your screen on macOS
+ * Computer use to open apps and control your screen on macOS and Windows
* GitHub PR monitoring with auto-fix and auto-merge
* Parallel sessions with automatic Git worktree isolation
* Dispatch integration: send a task from your phone, get a session here
@@ -136,11 +136,11 @@
Let Claude use your computer
-Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to test a native app in the iOS simulator, interact with a desktop tool that has no CLI, or automate something that only works through a GUI.
-
-Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
-
-Computer use is off by default. Enable it in Settings and grant the required macOS permissions before Claude can control your screen.
+Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to test a native app in a mobile simulator, interact with a desktop tool that has no CLI, or automate something that only works through a GUI.
+
+Computer use is a research preview on macOS and Windows that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
+
+Computer use is off by default. Enable it in Settings before Claude can control your screen. On macOS, you also need to grant Accessibility and Screen Recording permissions.
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
@@ -157,7 +157,7 @@
* If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
* If none of those apply, Claude uses computer use.
-The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, the iOS simulator, or proprietary tools without an API.
+The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, mobile simulators, or proprietary tools without an API.
###
@@ -177,13 +177,13 @@
Turn on the toggle
-In the desktop app, go to **Settings > General** (under **Desktop app**). Find the **Computer use** toggle and turn it on.If you don’t see the toggle, confirm you’re on macOS with a Pro or Max plan, then update and restart the app.
+In the desktop app, go to **Settings > General** (under **Desktop app**). Find the **Computer use** toggle and turn it on. On Windows, the toggle takes effect immediately and setup is complete. On macOS, continue to the next step.If you don’t see the toggle, confirm you’re on macOS or Windows with a Pro or Max plan, then update and restart the app.
3
Grant macOS permissions
-Before the toggle takes effect, grant two macOS system permissions:
+On macOS, grant two system permissions before the toggle takes effect:
* **Accessibility** : lets Claude click, type, and scroll
* **Screen Recording** : lets Claude see what’s on your screen
@@ -204,7 +204,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full control| Click, type, drag, and use keyboard shortcuts| Everything else
-Apps with broad reach like Terminal, Finder, and System Settings show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > General** (under **Desktop app**):
+Apps with broad reach, like terminals, Finder or File Explorer, and System Settings or Settings, show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > General** (under **Desktop app**):
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : while Claude is working, your other windows are hidden so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -278,7 +278,7 @@
Use skills
-[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-custom-skills>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual.
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-your-first-skill>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual.
###
@@ -585,7 +585,7 @@
Enterprise configuration
-Organizations on Teams or Enterprise plans can manage desktop app behavior through admin console controls, managed settings files, and device management policies.
+Organizations on Team or Enterprise plans can manage desktop app behavior through admin console controls, managed settings files, and device management policies.
###
@@ -695,7 +695,7 @@
Desktop and CLI read the same configuration files, so your setup carries over:
- * **[CLAUDE.md](</docs/en/memory>)** files in your project are used by both
+ * **[CLAUDE.md](</docs/en/memory>)** and `CLAUDE.local.md` files in your project are used by both
* **[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.
@@ -723,7 +723,7 @@
Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
Multiple sessions| Separate terminals| Sidebar tabs
Recurring tasks| Cron jobs, CI pipelines| Scheduled tasks
-Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS
+Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS and Windows
Dispatch integration| Not available| Dispatch sessions in the sidebar
Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
@@ -768,7 +768,7 @@
If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
1. Sign out and back in from the app menu. This is the most common fix.
- 2. Verify you have an active paid subscription: Pro, Max, Teams, or Enterprise.
+ 2. Verify you have an active paid subscription: Pro, Max, Team, or Enterprise.
3. If the CLI works but Desktop does not, quit the desktop app completely, not just close the window, then reopen and sign in again.
4. Check your internet connection and proxy settings.
--- a/desktop.md
+++ b/desktop.md
@@ -69,7 +69,7 @@
**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits but still asks before running terminal commands. Use this when you trust file changes and want faster iteration.
**Plan mode**| `plan`| Claude analyzes your code and creates a plan without modifying files or running commands. Good for complex tasks where you want to review the approach first.
-**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Team plans (Enterprise rolling out shortly). Requires Claude Sonnet 4.6 or Opus 4.6. Enable in your Settings → Claude Code.
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Team, Enterprise, and API plans. Requires Claude Sonnet 4.6 or Opus 4.6. Enable in your Settings → Claude Code.
**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
@@ -165,7 +165,25 @@
Enable computer use
-Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings. To enable it, open **Settings > Desktop app > General** and toggle **Computer use** on. Before the toggle takes effect, you need to grant two macOS system permissions:
+Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings.
+
+1
+
+Update the desktop app
+
+Make sure you have the latest version of Claude Desktop. Download or update at [claude.com/download](<https://claude.com/download>), then restart the app.
+
+2
+
+Turn on the toggle
+
+In the desktop app, go to **Settings > General** (under **Desktop app**). Find the **Computer use** toggle and turn it on.If you don’t see the toggle, confirm you’re on macOS with a Pro or Max plan, then update and restart the app.
+
+3
+
+Grant macOS permissions
+
+Before the toggle takes effect, grant two macOS system permissions:
* **Accessibility** : lets Claude click, type, and scroll
* **Screen Recording** : lets Claude see what’s on your screen
@@ -186,7 +204,7 @@
Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
Full control| Click, type, drag, and use keyboard shortcuts| Everything else
-Apps with broad reach like Terminal, Finder, and System Settings show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > Desktop app > General**:
+Apps with broad reach like Terminal, Finder, and System Settings show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > General** (under **Desktop app**):
* **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
* **Unhide apps when Claude finishes** : while Claude is working, your other windows are hidden so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
@@ -705,7 +723,7 @@
Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
Multiple sessions| Separate terminals| Sidebar tabs
Recurring tasks| Cron jobs, CI pipelines| Scheduled tasks
-Computer use| Not available| App and screen control on macOS
+Computer use| [Enable via `/mcp`](</docs/en/computer-use>) on macOS| App and screen control on macOS
Dispatch integration| Not available| Dispatch sessions in the sidebar
Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
--- a/desktop.md
+++ b/desktop.md
@@ -205,7 +205,7 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar to work on multiple tasks in parallel. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon.
+Click **\+ New session** in the sidebar to work on multiple tasks in parallel. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, try a Cowork session to help troubleshoot your setup.
@@ -277,12 +277,6 @@
Configure preview servers
Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the Preview dropdown to open it in your code editor. The file supports JSON with comments.
-
-Report incorrect code
-
-Copy
-
-Ask AI
{
"version": "0.0.1",
@@ -306,12 +300,6 @@
When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the **Preview** dropdown menu.
-Report incorrect code
-
-Copy
-
-Ask AI
-
{
"version": "0.0.1",
"autoVerify": false,
@@ -374,12 +362,6 @@
This configuration runs a Next.js app using Yarn on port 3000:
-Report incorrect code
-
-Copy
-
-Ask AI
-
{
"version": "0.0.1",
"configurations": [
@@ -393,12 +375,6 @@
}
For a monorepo with a frontend and an API server, define multiple configurations. The frontend uses `autoPort: true` so it picks a free port if 3000 is taken, while the API server requires port 8080 exactly:
-
-Report incorrect code
-
-Copy
-
-Ask AI
{
"version": "0.0.1",
@@ -425,12 +401,6 @@
To run a Node.js script directly instead of using a package manager command, use the `program` field:
-Report incorrect code
-
-Copy
-
-Ask AI
-
{
"version": "0.0.1",
"configurations": [
@@ -863,12 +833,6 @@
Remote sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally:
-Report incorrect code
-
-Copy
-
-Ask AI
-
git fetch origin <branch-name>
git checkout <branch-name>
--- a/desktop.md
+++ b/desktop.md
@@ -53,7 +53,7 @@
The prompt box supports two ways to bring in external context:
- * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file.
+ * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file. @mention is not available in remote sessions.
* **Attach files** : attach images, PDFs, and other files to your prompt using the attachment button, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
###
@@ -69,9 +69,10 @@
**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits but still asks before running terminal commands. Use this when you trust file changes and want faster iteration.
**Plan mode**| `plan`| Claude analyzes your code and creates a plan without modifying files or running commands. Good for complex tasks where you want to review the approach first.
-**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. See [permission modes](</docs/en/permissions#permission-modes>) for what is and isn’t skipped. Enterprise admins can disable this option.
-
-The `dontAsk` permission mode is available only in the [CLI](</docs/en/permissions#permission-modes>).
+**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Currently a research preview. Available on Team plans (Enterprise rolling out shortly). Requires Claude Sonnet 4.6 or Opus 4.6. Enable in your Settings → Claude Code.
+**Bypass permissions**| `bypassPermissions`| Claude runs without any permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
+
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>).
Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
@@ -621,9 +622,11 @@
Key| Description
---|---
-`disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode. See [managed settings](</docs/en/permissions#managed-only-settings>).
-
-For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
+`permissions.disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode.
+`disableAutoMode`| set to `"disable"` to prevent users from enabling [Auto](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) mode. Removes Auto from the mode selector. Also accepted under `permissions`.
+`autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure the auto mode classifier](</docs/en/permissions#configure-the-auto-mode-classifier>).
+
+`permissions.disableBypassPermissionsMode` and `disableAutoMode` also work in user and project settings, but placing them in managed settings prevents users from overriding them. `autoMode` is read from user settings, `.claude/settings.local.json`, and managed settings, but not from the checked-in `.claude/settings.json`: a cloned repo cannot inject its own classifier rules. For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
###
@@ -722,12 +725,12 @@
Feature| CLI| Desktop
---|---|---
-Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, and Bypass permissions via Settings
+Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Not available. Desktop connects to Anthropic’s API directly.
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
-@mention files| Text-based| With autocomplete
+@mention files| Text-based| With autocomplete; local and SSH sessions only
File attachments| Not available| Images, PDFs
Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
Multiple sessions| Separate terminals| Sidebar tabs
Show diff (228 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -2,15 +2,17 @@
* Visual diff review with inline comments
* Live app preview with dev servers
+ * Computer use to open apps and control your screen on macOS
* GitHub PR monitoring with auto-fix and auto-merge
* Parallel sessions with automatic Git worktree isolation
+ * Dispatch integration: send a task from your phone, get a session here
* Scheduled tasks that run Claude on a recurring schedule
* Connectors for GitHub, Slack, Linear, and more
* Local, SSH, and cloud environments
New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
-This page covers working with code, managing sessions, extending Claude Code, scheduled tasks, and configuration. It also includes a CLI comparison and troubleshooting.
+This page covers working with code, computer use, managing sessions, extending Claude Code, scheduled tasks, and configuration. It also includes a CLI comparison and troubleshooting.
##
@@ -131,9 +133,70 @@
+Let Claude use your computer
+
+Computer use lets Claude open your apps, control your screen, and work directly on your machine the way you would. Ask Claude to test a native app in the iOS simulator, interact with a desktop tool that has no CLI, or automate something that only works through a GUI.
+
+Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. The Claude Desktop app must be running.
+
+Computer use is off by default. Enable it in Settings and grant the required macOS permissions before Claude can control your screen.
+
+Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to whatever you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
+
+###
+
+
+
+When computer use applies
+
+Claude has several ways to interact with an app or service, and computer use is the broadest and slowest. It tries the most precise tool first:
+
+ * If you have a connector for a service, Claude uses the connector.
+ * If the task is a shell command, Claude uses Bash.
+ * If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
+ * If none of those apply, Claude uses computer use.
+
+The per-app access tiers reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even when computer use is active. Screen control is reserved for things nothing else can reach, like native apps, hardware control panels, the iOS simulator, or proprietary tools without an API.
+
+###
+
+
+
+Enable computer use
+
+Computer use is off by default. If you ask Claude to do something that needs it while it’s off, Claude tells you it could do the task if you enable computer use in Settings. To enable it, open **Settings > Desktop app > General** and toggle **Computer use** on. Before the toggle takes effect, you need to grant two macOS system permissions:
+
+ * **Accessibility** : lets Claude click, type, and scroll
+ * **Screen Recording** : lets Claude see what’s on your screen
+
+The Settings page shows the current status of each permission. If either is denied, click the badge to open the relevant System Settings pane.
+
+###
+
+
+
+App permissions
+
+The first time Claude needs to use an app, a prompt appears in your session. Click **Allow for this session** or **Deny**. Approvals last for the current session, or 30 minutes in Dispatch-spawned sessions. The prompt also shows what level of control Claude gets for that app. These tiers are fixed by app category and can’t be changed:
+
+Tier| What Claude can do| Applies to
+---|---|---
+View only| See the app in screenshots| Browsers, trading platforms
+Click only| Click and scroll, but not type or use keyboard shortcuts| Terminals, IDEs
+Full control| Click, type, drag, and use keyboard shortcuts| Everything else
+
+Apps with broad reach like Terminal, Finder, and System Settings show an extra warning in the prompt so you know what approving them grants. You can configure two settings in **Settings > Desktop app > General**:
+
+ * **Denied apps** : add apps here to reject them without prompting. Claude may still affect a denied app indirectly through actions in an allowed app, but it can’t interact with the denied app directly.
+ * **Unhide apps when Claude finishes** : while Claude is working, your other windows are hidden so it interacts with only the approved app. When Claude finishes, hidden windows are restored unless you turn this setting off.
+
+##
+
+
+
Manage sessions
-Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel or send work to the cloud.
+Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, send work to the cloud, or let Dispatch start sessions for you from your phone.
###
@@ -166,6 +229,14 @@
* **Claude Code on the Web** : sends your local session to continue running remotely. Desktop pushes your branch, generates a summary of the conversation, and creates a new remote session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
* **Your IDE** : opens your project in a supported IDE at the current working directory.
+###
+
+
+
+Sessions from Dispatch
+
+[Dispatch](<https://support.claude.com/en/articles/13947068>) is a persistent conversation with Claude that lives in the [Cowork](<https://claude.com/product/cowork#dispatch-and-computer-use>) tab. You message Dispatch a task, and it decides how to handle it. A task can end up as a Code session in two ways: you ask for one directly, such as “open a Claude Code session and fix the login bug”, or Dispatch decides the task is development work and spawns one on its own. Tasks that typically route to Code include fixing bugs, updating dependencies, running tests, or opening pull requests. Research, document editing, and spreadsheet work stay in Cowork. Either way, the Code session appears in the Code tab’s sidebar with a **Dispatch** badge. You get a push notification on your phone when it finishes or needs your approval. If you have computer use enabled, Dispatch-spawned Code sessions can use it too. App approvals in those sessions expire after 30 minutes and re-prompt, rather than lasting the full session like regular Code sessions. For setup, pairing, and Dispatch settings, see the [Dispatch help article](<https://support.claude.com/en/articles/13947068>). Dispatch requires a Pro or Max plan and is not available on Team or Enterprise plans. Dispatch is one of several ways to work with Claude when you’re away from your terminal. See [Platforms and integrations](</docs/en/platforms#work-when-you-are-away-from-your-terminal>) to compare it with Remote Control, Channels, Slack, and scheduled tasks.
+
##
@@ -180,7 +251,7 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. Connectors are not available for remote sessions. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [scheduled tasks](</docs/en/web-scheduled-tasks>) configure connectors at task creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -377,11 +448,40 @@
Schedule recurring tasks
-Scheduled tasks start a new local session automatically at a time and frequency you choose. Use them for recurring work like daily code reviews, dependency update checks, or morning briefings that pull from your calendar and inbox. Tasks run on your machine, so the desktop app must be open and your computer awake for them to fire. See How scheduled tasks run for details on missed runs and catch-up behavior.
-
-By default, scheduled tasks run against whatever state your working directory is in, including uncommitted changes. Enable the worktree toggle in the prompt input to give each run its own isolated Git worktree, the same way parallel sessions work.
-
-To create a scheduled task, click **Schedule** in the sidebar, then **\+ New task**. Configure these fields:
+By default, scheduled tasks start a new session automatically at a time and frequency you choose. Use them for recurring work like daily code reviews, dependency update checks, or morning briefings that pull from your calendar and inbox.
+
+###
+
+
+
+Compare scheduling options
+
+Claude Code offers three ways to schedule recurring work:
+
+| [Cloud](</docs/en/web-scheduled-tasks>)| [Desktop](</docs/en/desktop#schedule-recurring-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
+---|---|---|---
+Runs on| Anthropic cloud| Your machine| Your machine
+Requires machine on| No| Yes| Yes
+Requires open session| No| No| Yes
+Persistent across restarts| Yes| Yes| No (session-scoped)
+Access to local files| No (fresh clone)| Yes| Yes
+MCP servers| Connectors configured per task| [Config files](</docs/en/mcp>) and connectors| Inherits from session
+Permission prompts| No (runs autonomously)| Configurable per task| Inherits from session
+Customizable schedule| Via `/schedule` in the CLI| Yes| Yes
+Minimum interval| 1 hour| 1 minute| 1 minute
+
+Use **cloud tasks** for work that should run reliably without your machine. Use **Desktop tasks** when you need access to local files and tools. Use **`/loop`** for quick polling during a session.
+
+The Schedule page supports two kinds of tasks:
+
+ * **Local tasks** : run on your machine. They have direct access to your local files and tools, but the desktop app must be open and your computer awake for them to run.
+ * **Remote tasks** : run on Anthropic-managed cloud infrastructure. They keep running even when your computer is off, but work against a fresh clone of your repository rather than your local checkout.
+
+Both kinds appear in the same task grid. Click **New task** to pick which kind to create. The rest of this section covers local tasks; for remote tasks, see [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>). See How scheduled tasks run for details on missed runs and catch-up behavior for local tasks.
+
+By default, local scheduled tasks run against whatever state your working directory is in, including uncommitted changes. Enable the worktree toggle in the prompt input to give each run its own isolated Git worktree, the same way parallel sessions work.
+
+To create a local scheduled task, click **Schedule** in the sidebar, click **New task** , and choose **New local task**. Configure these fields:
Field| Description
---|---
@@ -412,7 +512,7 @@
How scheduled tasks run
-Scheduled tasks run locally on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep.
+Local scheduled tasks run on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep. For tasks that need to run even when your computer is off, use a [remote task](</docs/en/web-scheduled-tasks>) instead.
###
@@ -585,16 +685,16 @@
CLI| Desktop equivalent
---|---
-`--model sonnet`| model dropdown next to the send button, before starting a session
-`--resume`, `--continue`| click a session in the sidebar
-`--permission-mode`| mode selector next to the send button
+`--model sonnet`| Model dropdown next to the send button, before starting a session
+`--resume`, `--continue`| Click a session in the sidebar
+`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
-`--add-dir`| add multiple repos with the **+** button in remote sessions
-`--allowedTools`, `--disallowedTools`| not available in Desktop
-`--verbose`| not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
-`--print`, `--output-format`| not available. Desktop is interactive only.
-`ANTHROPIC_MODEL` env var| model dropdown next to the send button
-`MAX_THINKING_TOKENS` env var| set in shell profile; applies to local sessions. See environment configuration.
+`--add-dir`| Add multiple repos with the **+** button in remote sessions
+`--allowedTools`, `--disallowedTools`| Not available in Desktop
+`--verbose`| Not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
+`--print`, `--output-format`| Not available. Desktop is interactive only.
+`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
+`MAX_THINKING_TOKENS` env var| Set in shell profile; applies to local sessions. See environment configuration.
###
@@ -622,17 +722,19 @@
Feature| CLI| Desktop
---|---|---
-Permission modes| all modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, and Bypass permissions via Settings
+Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| not available. Desktop connects to Anthropic’s API directly.
-[MCP servers](</docs/en/mcp>)| configure in settings files| Connectors UI for local and SSH sessions, or settings files
-[Plugins](</docs/en/plugins>)| `/plugin` command| plugin manager UI
-@mention files| text-based| with autocomplete
-File attachments| not available| images, PDFs
-Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| automatic worktrees
-Multiple sessions| separate terminals| sidebar tabs
-Recurring tasks| cron jobs, CI pipelines| scheduled tasks
-Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| not available
+[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Not available. Desktop connects to Anthropic’s API directly.
+[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
+[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
+@mention files| Text-based| With autocomplete
+File attachments| Not available| Images, PDFs
+Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| Automatic worktrees
+Multiple sessions| Separate terminals| Sidebar tabs
+Recurring tasks| Cron jobs, CI pipelines| Scheduled tasks
+Computer use| Not available| App and screen control on macOS
+Dispatch integration| Not available| Dispatch sessions in the sidebar
+Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| Not available
###
Show diff (782 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -0,0 +1,779 @@
+The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal. Desktop adds these capabilities on top of the standard Claude Code experience:
+
+ * Visual diff review with inline comments
+ * Live app preview with dev servers
+ * GitHub PR monitoring with auto-fix and auto-merge
+ * Parallel sessions with automatic Git worktree isolation
+ * Scheduled tasks that run Claude on a recurring schedule
+ * Connectors for GitHub, Slack, Linear, and more
+ * Local, SSH, and cloud environments
+
+New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
+
+This page covers working with code, managing sessions, extending Claude Code, scheduled tasks, and configuration. It also includes a CLI comparison and troubleshooting.
+
+##
+
+
+
+Start a session
+
+Before you send your first message, configure four things in the prompt area:
+
+ * **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, or an **SSH connection** for a remote machine you manage. See environment configuration.
+ * **Project folder** : select the folder or repository Claude works in. For remote sessions, you can add multiple repositories.
+ * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. The model is locked once the session starts.
+ * **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
+
+Type your task and press **Enter** to start. Each session tracks its own context and changes independently.
+
+##
+
+
+
+Work with code
+
+Give Claude the right context, control how much it does on its own, and review what it changed.
+
+###
+
+
+
+Use the prompt box
+
+Type what you want Claude to do and press **Enter** to send. Claude reads your project files, makes changes, and runs commands based on your permission mode. You can interrupt Claude at any point: click the stop button or type your correction and press **Enter**. Claude stops what it’s doing and adjusts based on your input. The **+** button next to the prompt box gives you access to file attachments, skills, connectors, and plugins.
+
+###
+
+
+
+Add files and context to prompts
+
+The prompt box supports two ways to bring in external context:
+
+ * **@mention files** : type `@` followed by a filename to add a file to the conversation context. Claude can then read and reference that file.
+ * **Attach files** : attach images, PDFs, and other files to your prompt using the attachment button, or drag and drop files directly into the prompt. This is useful for sharing screenshots of bugs, design mockups, or reference documents.
+
+###
+
+
+
+Choose a permission mode
+
+Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both. You can switch modes at any time using the mode selector next to the send button. Start with Ask permissions to see exactly what Claude does, then move to Auto accept edits or Plan mode as you get comfortable.
+
+Mode| Settings key| Behavior
+---|---|---
+**Ask permissions**| `default`| Claude asks before editing files or running commands. You see a diff and can accept or reject each change. Recommended for new users.
+**Auto accept edits**| `acceptEdits`| Claude auto-accepts file edits but still asks before running terminal commands. Use this when you trust file changes and want faster iteration.
+**Plan mode**| `plan`| Claude analyzes your code and creates a plan without modifying files or running commands. Good for complex tasks where you want to review the approach first.
+**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. See [permission modes](</docs/en/permissions#permission-modes>) for what is and isn’t skipped. Enterprise admins can disable this option.
+
+The `dontAsk` permission mode is available only in the [CLI](</docs/en/permissions#permission-modes>).
+
+Start complex tasks in Plan mode so Claude maps out an approach before making changes. Once you approve the plan, switch to Auto accept edits or Ask permissions to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
+
+Remote sessions support Auto accept edits and Plan mode. Ask permissions is not available because remote sessions auto-accept file edits by default, and Bypass permissions is not available because the remote environment is already sandboxed. Enterprise admins can restrict which permission modes are available. See enterprise configuration for details.
+
+###
+
+
+
+Preview your app
+
+Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. From the preview panel, you can:
+
+ * Interact with your running app directly in the embedded browser
+ * Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
+ * Start or stop servers from the **Preview** dropdown in the session toolbar
+ * Persist cookies and local storage across server restarts by selecting **Persist sessions** in the dropdown, so you don’t have to re-login during development
+ * Edit the server configuration or stop all servers at once
+
+Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear saved session data, toggle **Persist preview sessions** off in Settings → Claude Code. To disable preview entirely, toggle off **Preview** in Settings → Claude Code.
+
+###
+
+
+
+Review changes with diff view
+
+After Claude makes changes to your code, the diff view lets you review modifications file by file before creating a pull request. When Claude changes files, a diff stats indicator appears showing the number of lines added and removed, such as `+12 -1`. Click this indicator to open the diff viewer, which displays a file list on the left and the changes for each file on the right. To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once:
+
+ * **macOS** : press **Cmd+Enter**
+ * **Windows** : press **Ctrl+Enter**
+
+Claude reads your comments and makes the requested changes, which appear as a new diff you can review.
+
+###
+
+
+
+Review your code
+
+In the diff view, click **Review code** in the top-right toolbar to ask Claude to evaluate the changes before you commit. Claude examines the current diffs and leaves comments directly in the diff view. You can respond to any comment or ask Claude to revise. The review focuses on high-signal issues: compile errors, definite logic errors, security vulnerabilities, and obvious bugs. It does not flag style, formatting, pre-existing issues, or anything a linter would catch.
+
+###
+
+
+
+Monitor pull request status
+
+After you open a pull request, a CI status bar appears in the session. Claude Code uses the GitHub CLI to poll check results and surface failures.
+
+ * **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating.
+ * **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Auto-merge must be [enabled in your GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) for this to work.
+
+Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes.
+
+PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.
+
+##
+
+
+
+Manage sessions
+
+Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel or send work to the cloud.
+
+###
+
+
+
+Work in parallel with sessions
+
+Click **\+ New session** in the sidebar to work on multiple tasks in parallel. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon.
+
+Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, try a Cowork session to help troubleshoot your setup.
+
+Use the filter icon at the top of the sidebar to filter sessions by status (Active, Archived) and environment (Local, Cloud). To rename a session or check context usage, click the session title in the toolbar at the top of the active session. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+
+###
+
+
+
+Run long-running tasks remotely
+
+For large refactors, test suites, migrations, or other long-running tasks, select **Remote** instead of **Local** when starting a session. Remote sessions run on Anthropic’s cloud infrastructure and continue even if you close the app or shut down your computer. Check back anytime to see progress or steer Claude in a different direction. You can also monitor remote sessions from [claude.ai/code](<https://claude.ai/code>) or the Claude iOS app. Remote sessions also support multiple repositories. After selecting a cloud environment, click the **+** button next to the repo pill to add additional repositories to the session. Each repo gets its own branch selector. This is useful for tasks that span multiple codebases, such as updating a shared library and its consumers. See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for more on how remote sessions work.
+
+###
+
+
+
+Continue in another surface
+
+The **Continue in** menu, accessible from the VS Code icon in the bottom right of the session toolbar, lets you move your session to another surface:
+
+ * **Claude Code on the Web** : sends your local session to continue running remotely. Desktop pushes your branch, generates a summary of the conversation, and creates a new remote session with the full context. You can then choose to archive the local session or keep it. This requires a clean working tree, and is not available for SSH sessions.
+ * **Your IDE** : opens your project in a supported IDE at the current working directory.
+
+##
+
+
+
+Extend Claude Code
+
+Connect external services, add reusable workflows, customize Claude’s behavior, and configure preview servers.
+
+###
+
+
+
+Connect external tools
+
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. Connectors are not available for remote sessions. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+
+###
+
+
+
+Use skills
+
+[Skills](</docs/en/skills>) extend what Claude can do. Claude loads them automatically when relevant, or you can invoke one directly: type `/` in the prompt box or click the **+** button and select **Slash commands** to browse what’s available. This includes [built-in commands](</docs/en/commands>), your [custom skills](</docs/en/skills#create-custom-skills>), project skills from your codebase, and skills from any [installed plugins](</docs/en/plugins>). Select one and it appears highlighted in the input field. Type your task after it and send as usual.
+
+###
+
+
+
+Install plugins
+
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their commands. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+
+###
+
+
+
+Configure preview servers
+
+Claude automatically detects your dev server setup and stores the configuration in `.claude/launch.json` at the root of the folder you selected when starting the session. Preview uses this folder as its working directory, so if you selected a parent folder, subfolders with their own dev servers won’t be detected automatically. To work with a subfolder’s server, either start a session in that folder directly or add a configuration manually. To customize how your server starts, for example to use `yarn dev` instead of `npm run dev` or to change the port, edit the file manually or click **Edit configuration** in the Preview dropdown to open it in your code editor. The file supports JSON with comments.
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "my-app",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "port": 3000
+ }
+ ]
+ }
+
+You can define multiple configurations to run different servers from the same project, such as a frontend and an API. See the examples below.
+
+####
+
+
+
+Auto-verify changes
+
+When `autoVerify` is enabled, Claude automatically verifies code changes after editing files. It takes screenshots, checks for errors, and confirms changes work before completing its response. Auto-verify is on by default. Disable it per-project by adding `"autoVerify": false` to `.claude/launch.json`, or toggle it from the **Preview** dropdown menu.
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "version": "0.0.1",
+ "autoVerify": false,
+ "configurations": [...]
+ }
+
+When disabled, preview tools are still available and you can ask Claude to verify at any time. Auto-verify makes it automatic after every edit.
+
+####
+
+
+
+Configuration fields
+
+Each entry in the `configurations` array accepts the following fields:
+
+Field| Type| Description
+---|---|---
+`name`| string| A unique identifier for this server
+`runtimeExecutable`| string| The command to run, such as `npm`, `yarn`, or `node`
+`runtimeArgs`| string[]| Arguments passed to `runtimeExecutable`, such as `["run", "dev"]`
+`port`| number| The port your server listens on. Defaults to 3000
+`cwd`| string| Working directory relative to your project root. Defaults to the project root. Use `${workspaceFolder}` to reference the project root explicitly
+`env`| object| Additional environment variables as key-value pairs, such as `{ "NODE_ENV": "development" }`. Don’t put secrets here since this file is committed to your repo. Secrets set in your shell profile are inherited automatically.
+`autoPort`| boolean| How to handle port conflicts. See below
+`program`| string| A script to run with `node`. See when to use `program` vs `runtimeExecutable`
+`args`| string[]| Arguments passed to `program`. Only used when `program` is set
+
+##### When to use `program` vs `runtimeExecutable`
+
+Use `runtimeExecutable` with `runtimeArgs` to start a dev server through a package manager. For example, `"runtimeExecutable": "npm"` with `"runtimeArgs": ["run", "dev"]` runs `npm run dev`. Use `program` when you have a standalone script you want to run with `node` directly. For example, `"program": "server.js"` runs `node server.js`. Pass additional flags with `args`.
+
+####
+
+
+
+Port conflicts
+
+The `autoPort` field controls what happens when your preferred port is already in use:
+
+ * **`true`** : Claude finds and uses a free port automatically. Suitable for most dev servers.
+ * **`false`** : Claude fails with an error. Use this when your server must use a specific port, such as for OAuth callbacks or CORS allowlists.
+ * **Not set (default)** : Claude asks whether the server needs that exact port, then saves your answer.
+
+When Claude picks a different port, it passes the assigned port to your server via the `PORT` environment variable.
+
+####
+
+
+
+Examples
+
+These configurations show common setups for different project types:
+
+ * Next.js
+
+ * Multiple servers
+
+ * Node.js script
+
+This configuration runs a Next.js app using Yarn on port 3000:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "web",
+ "runtimeExecutable": "yarn",
+ "runtimeArgs": ["dev"],
+ "port": 3000
+ }
+ ]
+ }
+
+For a monorepo with a frontend and an API server, define multiple configurations. The frontend uses `autoPort: true` so it picks a free port if 3000 is taken, while the API server requires port 8080 exactly:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "frontend",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "dev"],
+ "cwd": "apps/web",
+ "port": 3000,
+ "autoPort": true
+ },
+ {
+ "name": "api",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["run", "start"],
+ "cwd": "server",
+ "port": 8080,
+ "env": { "NODE_ENV": "development" },
+ "autoPort": false
+ }
+ ]
+ }
+
+To run a Node.js script directly instead of using a package manager command, use the `program` field:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "server",
+ "program": "server.js",
+ "args": ["--verbose"],
+ "port": 4000
+ }
+ ]
+ }
+
+##
+
+
+
+Schedule recurring tasks
+
+Scheduled tasks start a new local session automatically at a time and frequency you choose. Use them for recurring work like daily code reviews, dependency update checks, or morning briefings that pull from your calendar and inbox. Tasks run on your machine, so the desktop app must be open and your computer awake for them to fire. See How scheduled tasks run for details on missed runs and catch-up behavior.
+
+By default, scheduled tasks run against whatever state your working directory is in, including uncommitted changes. Enable the worktree toggle in the prompt input to give each run its own isolated Git worktree, the same way parallel sessions work.
+
+To create a scheduled task, click **Schedule** in the sidebar, then **\+ New task**. Configure these fields:
+
+Field| Description
+---|---
+Name| Identifier for the task. Converted to lowercase kebab-case and used as the folder name on disk. Must be unique across your tasks.
+Description| Short summary shown in the task list.
+Prompt| The instructions sent to Claude when the task runs. Write this the same way you’d write any message in the prompt box. The prompt input also includes controls for model, permission mode, working folder, and worktree.
+Frequency| How often the task runs. See frequency options below.
+
+You can also create a task by describing what you want in any session. For example, “set up a daily code review that runs every morning at 9am.”
+
+###
+
+
+
+Frequency options
+
+ * **Manual** : no schedule, only runs when you click **Run now**. Useful for saving a prompt you trigger on demand
+ * **Hourly** : runs every hour. Each task gets a fixed offset of up to 10 minutes from the top of the hour to stagger API traffic
+ * **Daily** : shows a time picker, defaults to 9:00 AM local time
+ * **Weekdays** : same as Daily but skips Saturday and Sunday
+ * **Weekly** : shows a time picker and a day picker
+
+For intervals the picker doesn’t offer (every 15 minutes, first of each month, etc.), ask Claude in any Desktop session to set the schedule. Use plain language; for example, “schedule a task to run all the tests every 6 hours.”
+
+###
+
+
+
+How scheduled tasks run
+
+Scheduled tasks run locally on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep.
+
+###
+
+
+
+Missed runs
+
+When the app starts or your computer wakes, Desktop checks whether each task missed any runs in the last seven days. If it did, Desktop starts exactly one catch-up run for the most recently missed time and discards anything older. A daily task that missed six days runs once on wake. Desktop shows a notification when a catch-up run starts. Keep this in mind when writing prompts. A task scheduled for 9am might run at 11pm if your computer was asleep all day. If timing matters, add guardrails to the prompt itself, for example: “Only review today’s commits. If it’s after 5pm, skip the review and just post a summary of what was missed.”
+
+###
+
+
+
+Permissions for scheduled tasks
+
+Each task has its own permission mode, which you set when creating or editing the task. Allow rules from `~/.claude/settings.json` also apply to scheduled task sessions. If a task runs in Ask mode and needs to run a tool it doesn’t have permission for, the run stalls until you approve it. The session stays open in the sidebar so you can answer later. To avoid stalls, click **Run now** after creating a task, watch for permission prompts, and select “always allow” for each one. Future runs of that task auto-approve the same tools without prompting. You can review and revoke these approvals from the task’s detail page.
+
+###
+
+
+
+Manage scheduled tasks
+
+Click a task in the **Schedule** list to open its detail page. From here you can:
+
+ * **Run now** : start the task immediately without waiting for the next scheduled time
+ * **Toggle repeats** : pause or resume scheduled runs without deleting the task
+ * **Edit** : change the prompt, frequency, folder, or other settings
+ * **Review history** : see every past run, including ones that were skipped because your computer was asleep
+ * **Review allowed permissions** : see and revoke saved tool approvals for this task from the **Always allowed** panel
+ * **Delete** : remove the task and archive all sessions it created
+
+You can also manage tasks by asking Claude in any Desktop session. For example, “pause my dependency-audit task”, “delete the standup-prep task”, or “show me my scheduled tasks.” To edit a task’s prompt on disk, open `~/.claude/scheduled-tasks/<task-name>/SKILL.md` (or under [`CLAUDE_CONFIG_DIR`](</docs/en/env-vars>) if set). The file uses YAML frontmatter for `name` and `description`, with the prompt as the body. Changes take effect on the next run. Schedule, folder, model, and enabled state are not in this file: change them through the Edit form or ask Claude.
+
+##
+
+
+
+Environment configuration
+
+The environment you pick when starting a session determines where Claude executes and how you connect:
+
+ * **Local** : runs on your machine with direct access to your files
+ * **Remote** : runs on Anthropic’s cloud infrastructure. Sessions continue even if you close the app.
+ * **SSH** : runs on a remote machine you connect to over SSH, such as your own servers, cloud VMs, or dev containers
+
+###
+
+
+
+Local sessions
+
+Local sessions inherit environment variables from your shell. If you need additional variables, set them in your shell profile, such as `~/.zshrc` or `~/.bashrc`, and restart the desktop app. See [environment variables](</docs/en/env-vars>) for the full list of supported variables. [Extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>) is enabled by default, which improves performance on complex reasoning tasks but uses additional tokens. To disable thinking entirely, set `MAX_THINKING_TOKENS=0` in your shell profile. On Opus, `MAX_THINKING_TOKENS` is ignored except for `0` because adaptive reasoning controls thinking depth instead.
+
+###
+
+
+
+Remote sessions
+
+Remote sessions continue in the background even if you close the app. Usage counts toward your [subscription plan limits](</docs/en/costs>) with no separate compute charges. You can create custom cloud environments with different network access levels and environment variables. Select the environment dropdown when starting a remote session and choose **Add environment**. See [cloud environments](</docs/en/claude-code-on-the-web#cloud-environment>) for details on configuring network access and environment variables.
+
+###
+
+
+
+SSH sessions
+
+SSH sessions let you run Claude Code on a remote machine while using the desktop app as your interface. This is useful for working with codebases that live on cloud VMs, dev containers, or servers with specific hardware or dependencies. To add an SSH connection, click the environment dropdown before starting a session and select **\+ Add SSH connection**. The dialog asks for:
+
+ * **Name** : a friendly label for this connection
+ * **SSH Host** : `user@hostname` or a host defined in `~/.ssh/config`
+ * **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config
+ * **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config.
+
+Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. Claude Code must be installed on the remote machine. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+
+##
+
+
+
+Enterprise configuration
+
+Organizations on Teams or Enterprise plans can manage desktop app behavior through admin console controls, managed settings files, and device management policies.
+
+###
+
+
+
+Admin console controls
+
+These settings are configured through the [admin settings console](<https://claude.ai/admin-settings/claude-code>):
+
+ * **Code in the desktop** : control whether users in your organization can access Claude Code in the desktop app
+ * **Code in the web** : enable or disable [web sessions](</docs/en/claude-code-on-the-web>) for your organization
+ * **Remote Control** : enable or disable [Remote Control](</docs/en/remote-control>) for your organization
+ * **Disable Bypass permissions mode** : prevent users in your organization from enabling bypass permissions mode
+
+###
+
+
+
+Managed settings
+
+Managed settings override project and user settings and apply when Desktop spawns CLI sessions. You can set these keys in your organization’s [managed settings](</docs/en/settings#settings-precedence>) file or push them remotely through the admin console.
+
+Key| Description
+---|---
+`disableBypassPermissionsMode`| set to `"disable"` to prevent users from enabling Bypass permissions mode. See [managed settings](</docs/en/permissions#managed-only-settings>).
+
+For the complete list of managed-only settings including `allowManagedPermissionRulesOnly` and `allowManagedHooksOnly`, see [managed-only settings](</docs/en/permissions#managed-only-settings>). Remote managed settings uploaded through the admin console currently apply to CLI and IDE sessions only. For Desktop-specific restrictions, use the admin console controls above.
+
+###
+
+
+
+Device management policies
+
+IT teams can manage the desktop app through MDM on macOS or group policy on Windows. Available policies include enabling or disabling the Claude Code feature, controlling auto-updates, and setting a custom deployment URL.
+
+ * **macOS** : configure via `com.anthropic.Claude` preference domain using tools like Jamf or Kandji
+ * **Windows** : configure via registry at `SOFTWARE\Policies\Claude`
+
+###
+
+
+
+Authentication and SSO
+
+Enterprise organizations can require SSO for all users. See [authentication](</docs/en/authentication>) for plan-level details and [Setting up SSO](<https://support.claude.com/en/articles/13132885-setting-up-single-sign-on-sso>) for SAML and OIDC configuration.
+
+###
+
+
+
+Data handling
+
+Claude Code processes your code locally in local sessions or on Anthropic’s cloud infrastructure in remote sessions. Conversations and code context are sent to Anthropic’s API for processing. See [data handling](</docs/en/data-usage>) for details on data retention, privacy, and compliance.
+
+###
+
+
+
+Deployment
+
+Desktop can be distributed through enterprise deployment tools:
+
+ * **macOS** : distribute via MDM such as Jamf or Kandji using the `.dmg` installer
+ * **Windows** : deploy via MSIX package or `.exe` installer. See [Deploy Claude Desktop for Windows](<https://support.claude.com/en/articles/12622703-deploy-claude-desktop-for-windows>) for enterprise deployment options including silent installation
+
+For network configuration such as proxy settings, firewall allowlisting, and LLM gateways, see [network configuration](</docs/en/network-config>). For the full enterprise configuration reference, see the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
+
+##
+
+
+
+Coming from the CLI?
+
+If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows only.
+
+When to use Desktop vs CLI: use Desktop when you want visual diff review, file attachments, or session management in a sidebar. Use the CLI when you need scripting, automation, third-party providers, or prefer a terminal workflow.
+
+###
+
+
+
+CLI flag equivalents
+
+This table shows the desktop app equivalent for common CLI flags. Flags not listed have no desktop equivalent because they are designed for scripting or automation.
+
+CLI| Desktop equivalent
+---|---
+`--model sonnet`| model dropdown next to the send button, before starting a session
+`--resume`, `--continue`| click a session in the sidebar
+`--permission-mode`| mode selector next to the send button
+`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
+`--add-dir`| add multiple repos with the **+** button in remote sessions
+`--allowedTools`, `--disallowedTools`| not available in Desktop
+`--verbose`| not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
+`--print`, `--output-format`| not available. Desktop is interactive only.
+`ANTHROPIC_MODEL` env var| model dropdown next to the send button
+`MAX_THINKING_TOKENS` env var| set in shell profile; applies to local sessions. See environment configuration.
+
+###
+
+
+
+Shared configuration
+
+Desktop and CLI read the same configuration files, so your setup carries over:
+
+ * **[CLAUDE.md](</docs/en/memory>)** files in your project are used by both
+ * **[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.
+ * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button before starting a session. You cannot change the model during an active session.
+
+**MCP servers: desktop chat app vs Claude Code** : MCP servers configured for the Claude Desktop chat app in `claude_desktop_config.json` are separate from Claude Code and will not appear in the Code tab. To use MCP servers in Claude Code, configure them in `~/.claude.json` or your project’s `.mcp.json` file. See [MCP configuration](</docs/en/mcp#installing-mcp-servers>) for details.
+
+###
+
+
+
+Feature comparison
+
+This table compares core capabilities between the CLI and Desktop. For a full list of CLI flags, see the [CLI reference](</docs/en/cli-reference>).
+
+Feature| CLI| Desktop
+---|---|---
+Permission modes| all modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, and Bypass permissions via Settings
+`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
+[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| not available. Desktop connects to Anthropic’s API directly.
+[MCP servers](</docs/en/mcp>)| configure in settings files| Connectors UI for local and SSH sessions, or settings files
+[Plugins](</docs/en/plugins>)| `/plugin` command| plugin manager UI
+@mention files| text-based| with autocomplete
+File attachments| not available| images, PDFs
+Session isolation| [`--worktree`](</docs/en/cli-reference>) flag| automatic worktrees
+Multiple sessions| separate terminals| sidebar tabs
+Recurring tasks| cron jobs, CI pipelines| scheduled tasks
+Scripting and automation| [`--print`](</docs/en/cli-reference>), [Agent SDK](</docs/en/headless>)| not available
+
+###
+
+
+
+What’s not available in Desktop
+
+The following features are only available in the CLI or VS Code extension:
+
+ * **Third-party providers** : Desktop connects to Anthropic’s API directly. Use the [CLI](</docs/en/quickstart>) with Bedrock, Vertex, or Foundry instead.
+ * **Linux** : the desktop app is available on macOS and Windows only.
+ * **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
+ * **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
+
+##
+
+
+
+Troubleshooting
+
+###
+
+
+
+Check your version
+
+To see which version of the desktop app you’re running:
+
+ * **macOS** : click **Claude** in the menu bar, then **About Claude**
+ * **Windows** : click **Help** , then **About**
+
+Click the version number to copy it to your clipboard.
+
+###
+
+
+
+403 or authentication errors in the Code tab
+
+If you see `Error 403: Forbidden` or other authentication failures when using the Code tab:
+
+ 1. Sign out and back in from the app menu. This is the most common fix.
+ 2. Verify you have an active paid subscription: Pro, Max, Teams, or Enterprise.
+ 3. If the CLI works but Desktop does not, quit the desktop app completely, not just close the window, then reopen and sign in again.
+ 4. Check your internet connection and proxy settings.
+
+###
+
+
+
+Blank or stuck screen on launch
+
+If the app opens but shows a blank or unresponsive screen:
+
+ 1. Restart the app.
+ 2. Check for pending updates. The app auto-updates on launch.
+ 3. On Windows, check Event Viewer for crash logs under **Windows Logs → Application**.
+
+###
+
+
+
+”Failed to load session”
+
+If you see `Failed to load session`, the selected folder may no longer exist, a Git repository may require Git LFS that isn’t installed, or file permissions may prevent access. Try selecting a different folder or restarting the app.
+
+###
+
+
+
+Session not finding installed tools
+
+If Claude can’t find tools like `npm`, `node`, or other CLI commands, verify the tools work in your regular terminal, check that your shell profile properly sets up PATH, and restart the desktop app to reload environment variables.
+
+###
+
+
+
+Git and Git LFS errors
+
+On Windows, Git is required for the Code tab to start local sessions. If you see “Git is required,” install [Git for Windows](<https://git-scm.com/downloads/win>) and restart the app. If you see “Git LFS is required by this repository but is not installed,” install Git LFS from [git-lfs.com](<https://git-lfs.com/>), run `git lfs install`, and restart the app.
+
+###
+
+
+
+MCP servers not working on Windows
+
+If MCP server toggles don’t respond or servers fail to connect on Windows, check that the server is properly configured in your settings, restart the app, verify the server process is running in Task Manager, and review server logs for connection errors.
+
+###
+
+
+
+App won’t quit
+
+ * **macOS** : press Cmd+Q. If the app doesn’t respond, use Force Quit with Cmd+Option+Esc, select Claude, and click Force Quit.
+ * **Windows** : use Task Manager with Ctrl+Shift+Esc to end the Claude process.
+
+###
+
+
+
+Windows-specific issues
+
+ * **PATH not updated after install** : open a new terminal window. PATH updates only apply to new terminal sessions.
+ * **Concurrent installation error** : if you see an error about another installation in progress but there isn’t one, try running the installer as Administrator.
+ * **ARM64** : Windows ARM64 devices are fully supported.
+
+###
+
+
+
+Cowork tab unavailable on Intel Macs
+
+The Cowork tab requires Apple Silicon (M1 or later) on macOS. On Windows, Cowork is available on all supported hardware. The Chat and Code tabs work normally on Intel Macs.
+
+###
+
+
+
+”Branch doesn’t exist yet” when opening in CLI
+
+Remote sessions can create branches that don’t exist on your local machine. Click the branch name in the session toolbar to copy it, then fetch it locally:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ git fetch origin <branch-name>
+ git checkout <branch-name>
+
+###
+
+
+
+Still stuck?
+
+ * Search or file a bug on [GitHub Issues](<https://github.com/anthropics/claude-code/issues>)
+ * Visit the [Claude support center](<https://support.claude.com/>)
+
+When filing a bug, include your desktop app version, your operating system, the exact error message, and relevant logs. On macOS, check Console.app. On Windows, check Event Viewer → Windows Logs → Application.