Desktop application changeddesktop
Nearest release: v2.1.334, published 6 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 2 Dec 2026 01:25 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 01:37 UTC.
Upstream edited
Recorded here
Lines+36added
Lines−8removed
From line
1,735
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits154to this page, all time
#### Restrict hooks in SSH sessions #### Run the Code tab on Windows virtual desktops (VDI)
The whole hunk
from line 1735, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 1735
17351735
17361736#### Plugin hooks that don't run in an SSH session
17371737
1738Desktop doesn't always send a plugin's [hooks](https://code.claude.com/docs/en/hooks.md) with the copy of the plugin that it puts on the remote machine, and hooks that it omits 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:
1738When Desktop copies a plugin to the remote machine, it sometimes omits the plugin's [hooks](https://code.claude.com/docs/en/hooks.md), 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:
17391739
1740* **With a Claude account**: Anthropic has turned on sending hooks for only some people's accounts, and you can't look up which, so don't count on them for a guardrail.
1740* **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.
17411741* **With a [third-party provider](https://code.claude.com/docs/en/third-party-integrations.md)**: 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.
17421742
17431743A 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](#fix-a-hook-that-gave-no-usable-answer).
from line 1746
17461746
17471747* **A message says to install the plugin on the remote machine**: see [Install a plugin on the remote machine](#install-a-plugin-on-the-remote-machine)
17481748* **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.
1749* **That message names no step or comes back, or the hook doesn't run and the session shows no message**: define the hook on the remote machine
1749* **That message comes back, or anything else**: define the hook on the remote machine
17501750
17511751##### Define a plugin's hook on the remote machine
17521752
1753To make a plugin's hook run in SSH sessions whether or not Desktop sends it, define the same hook in [settings](https://code.claude.com/docs/en/hooks.md#hook-locations) on the remote machine. Do this on each machine that people connect to.
1753To make a plugin's hook run in SSH sessions whether or not Desktop sends it, define the same hook in [settings](https://code.claude.com/docs/en/hooks.md#hook-locations) on each remote machine that people connect to.
17541754
17551755**1. Copy the hook's scripts**
17561756
from line 1777
17771777Put a guardrail in managed settings, and a hook for your own use in your user settings:
17781778
17791779* **A guardrail**: add the hook to a [managed settings file or policy](https://code.claude.com/docs/en/managed-settings.md#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](https://code.claude.com/docs/en/server-managed-settings.md), because those settings also reach other computers where people sign in to your organization, and those computers lack its scripts.
1780* **Your own use**: add the hook to `~/.claude/settings.json` on the remote machine. If your organization limits hooks, as [`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly) and [`strictPluginOnlyCustomization.hooks`](https://code.claude.com/docs/en/settings-reference#strictpluginonlycustomization-hooks) do, ask your administrator to add it to managed settings instead. Ask them wherever the limit is set: on your computer, on the remote machine, or in [server-managed settings](https://code.claude.com/docs/en/server-managed-settings.md).
1780* **Your own use**: add the hook to `~/.claude/settings.json` on the remote machine. If your organization limits hooks, as [`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly) and [`strictPluginOnlyCustomization.hooks`](https://code.claude.com/docs/en/settings-reference#strictpluginonlycustomization-hooks) do, ask your administrator to add it to managed settings instead.
17811781
17821782For 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/`.
17831783
from line 1821
182118212. Try a harmless action that the new hook blocks or changes, and one that it leaves alone
182218223. Check both results, and check that the file is there
18231823
1824When 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. See [How Claude Code combines managed sources](https://code.claude.com/docs/en/managed-settings.md#how-claude-code-combines-managed-sources) for when Claude Code skips a managed settings file. For other causes, see [Hook not firing](https://code.claude.com/docs/en/hooks-guide.md#hook-not-firing).
1824When 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](https://code.claude.com/docs/en/hooks-guide.md#hook-not-firing).
18251825
18261826If 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.
18271827
18281828**5. Block the action when the hook fails**
18291829
1830For a guardrail, add `"onFailure": "block"` beside `"command"` in the new hook, so that Claude Code blocks the action when the hook itself fails. Add it only once the test has passed, because with it a broken hook blocks the action too. To test the setting, follow [Block the action when a hook fails](https://code.claude.com/docs/en/hooks.md#block-the-action-when-a-hook-fails).
1830For 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](https://code.claude.com/docs/en/hooks.md#block-the-action-when-a-hook-fails).
18311831
18321832If 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.
18331833
from line 1843
18431843
18441844To block the action when the hook fails, set [`onFailure: "block"`](https://code.claude.com/docs/en/hooks#block-the-action-when-a-hook-fails) on the hook.
18451845
1846#### Restrict hooks in SSH sessions
1847
1848To restrict the hooks that run in SSH sessions, set one of these keys to `true` in [managed settings](#managed-settings) on the remote machine, not on your computer:
1849
1850* **[`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly)**: only [hooks that your organization deploys](https://code.claude.com/docs/en/settings-reference.md#what-runs-under-allowmanagedhooksonly) run. Hooks from the plugins that Desktop copies don't
1851* **[`disableAllHooks`](https://code.claude.com/docs/en/settings-reference#disableallhooks)**: every configured hook is disabled, managed ones included
1852
1853On a machine that had no managed settings before, also set [`parentSettingsBehavior`](https://code.claude.com/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](#define-a-plugins-hook-on-the-remote-machine). Then start a new session, and check that a hook that the key disables doesn't run.
1854
18461855#### Open an SSH session from a link
18471856
18481857A `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](https://code.claude.com/docs/en/deep-links.md#the-link-renders-as-plain-text-instead-of-being-clickable).
from line 2497
24882497*.claudemcpcontent.com
24892498```
24902499
2500With 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.
2501
24912502If 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.
24922503
24932504Anthropic 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.
from line 2526
25152526
25162527For the full enterprise configuration reference, see the [enterprise configuration guide](https://support.claude.com/en/articles/12622667-enterprise-configuration).
25172528
2529#### Run the Code tab on Windows virtual desktops (VDI)
2530
2531[Local, cloud, and SSH sessions](#environment-configuration) in the Code tab don't need nested virtualization on a Windows virtual desktop. [Cowork](https://claude.com/docs/cowork/overview) and [WSL sessions](https://code.claude.com/docs/en/desktop-wsl.md) need nested virtualization for the virtual machine that each uses inside the virtual desktop. You can install and start Desktop without nested virtualization.
2532
2533To deploy Desktop, add it to your base image and persist its data:
2534
2535* **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
2536* **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).
2537
2538Without 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](#reopen-a-session-after-you-quit-desktop) still running on a remote machine.
2539
2540To run Code tab sessions on remote machines instead of on your virtual desktops, [turn off local sessions and distribute SSH connections](#turn-off-local-sessions-and-distribute-ssh-connections).
2541
2542> [!NOTE]
2543>
2544> 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).
2545
25182546## Coming from the CLI?
25192547
25202548If 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.
from line 2804
27762804
27772805### SSH host key refused on Windows without an OpenSSH client
27782806
2779On 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.
2780
2781Then connect again. If Desktop asks whether to connect for the first time, [check the machine's host key](#check-a-remote-machines-host-key) before you trust it. If Desktop still refuses the key, follow the other cases under [SSH host key verification failed](#ssh-host-key-verification-failed).
2782
2783### SSH connection fails after you log in
2784
2785Find 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.
2786
2787| Title on the card | Code | What to do |
2788| - | - | - |
2789| `<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](#remote-machine-requirements-for-ssh-sessions) |
2790| `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 |
2791| `<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 |
2792| `<host> is out of disk space` | `[ENOSPC]` or `[EDQUOT]` | Free space or quota on the remote machine, in your home directory or `/tmp` |
2793| `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 |
2794| `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. |
2795| `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](#remote-machine-requirements-for-ssh-sessions) say |
2796| `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
2807On Windows without an OpenSSH client, Desktop refuses e
No line in this hunk matches that.