One read of Claude Documentationclaude-docs-20261125T200705Z
2 pages moved out of 299 read.
Pages moved
2
significant first
Pages read
299
in this capture
Captured
20:07 UTC
Corpus hash
a9245f319851
corpus-hash
What this read moved
1-2 of 2third-party/claude-desktop/code Changed · +4 / -2 lines
from line 51
5151| `userPluginMarketplacesEnabled` | When `false`, a `strictKnownMarketplaces` allowlist. See [Controlling user extensions](https://claude.com/docs/third-party/claude-desktop/extensions.md#controlling-user-extensions) for what the key does. |
5252| `builtinToolPolicy`, argument-scoped rules such as `Bash(curl *)` | A `permissions.ask` rule for each rule set to `"ask"`. |
5353
54The network and filesystem sandboxes apply on macOS. On Linux devices and Linux [SSH hosts](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#managed-configuration-on-the-remote-host), they need Claude Code's [sandbox dependencies](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2), the `bubblewrap` and `socat` packages. Claude Code doesn't sandbox shell commands on Windows devices, and on a Linux device or SSH host without the dependencies, commands run unsandboxed. When `coworkEgressAllowedHosts` contains `*` and `allowedWorkspaceFolders` is unset, Claude Desktop turns on neither sandbox. In all of these cases, `blockReadsOutsideWorkingDirectories` still confines Claude's file tools. For shell commands, the key can only ask the user to approve those that Claude Code recognizes as reading outside the working directories, or whose command lines it can't analyze. On a device whose only configuration is the local configuration file, an unset `coworkEgressAllowedHosts` can also leave both sandboxes off. See [Unset allowlist in Code sessions](https://claude.com/docs/third-party/claude-desktop/web-tools.md#unset-allowlist-in-code-sessions). For what a remote session shows, see [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
54The network and filesystem sandboxes apply on macOS. On Linux devices and Linux [SSH hosts](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#managed-configuration-on-the-remote-host), they need Claude Code's [sandbox dependencies](https://code.claude.com/docs/en/sandboxing#set-up-linux-and-wsl2), the `bubblewrap` and `socat` packages. Claude Code doesn't sandbox shell commands on Windows devices, and on a Linux device or SSH host without the dependencies, commands run unsandboxed. When `coworkEgressAllowedHosts` contains `*` and `allowedWorkspaceFolders` is unset, Claude Desktop turns on neither sandbox. In all of these cases, `blockReadsOutsideWorkingDirectories` still confines Claude's file tools. For shell commands, the key can only ask the user to approve those that Claude Code recognizes as reading outside the working directories, or whose command lines it can't analyze. On a device whose only configuration is the local configuration file, an unset `coworkEgressAllowedHosts` can also leave both sandboxes off. See [Unset allowlist in Code sessions](https://claude.com/docs/third-party/claude-desktop/web-tools.md#unset-allowlist-in-code-sessions).
5555
56On SSH hosts, you can [refuse sessions](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#refuse-sessions-on-a-host-without-a-working-sandbox) where the sandbox from your policy can't start. For what a remote session shows when it runs without the sandbox, see [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
57
5658On Ubuntu 24.04 and later, AppArmor can block the sandbox even when `bubblewrap` and `socat` are installed, and shell commands then fail or run unsandboxed.
5759
5860* **Ubuntu 24.04**: to allow the sandbox, see [Add an AppArmor profile for bubblewrap](https://code.claude.com/docs/en/sandboxing#add-an-apparmor-profile-for-bubblewrap).
from line 62
6062
6163> [!WARNING]
6264>
63> Shell commands that run unsandboxed can reach hosts outside `coworkEgressAllowedHosts`, change files outside `allowedWorkspaceFolders`, and read files outside the working directories. Where the sandbox runs, a command that matches [`sandbox.excludedCommands`](https://code.claude.com/docs/en/sandboxing#run-commands-outside-the-sandbox-with-excludedcommands) in the user's own Claude Code settings also runs outside it, after Claude Code's regular permission flow. To keep Code off devices where the sandbox can't run, [turn off Code](#disabling-code) in the configuration you deploy to them. For SSH hosts, see [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
65> Shell commands that run unsandboxed can reach hosts outside `coworkEgressAllowedHosts`, change files outside `allowedWorkspaceFolders`, and read files outside the working directories. Where the sandbox runs, a command that matches [`sandbox.excludedCommands`](https://code.claude.com/docs/en/sandboxing#run-commands-outside-the-sandbox-with-excludedcommands) in the user's own Claude Code settings also runs outside it, after Claude Code's regular permission flow. To keep Code off devices where the sandbox can't run, [turn off Code](#disabling-code) in the configuration you deploy to them. For SSH hosts, see [Refuse sessions on a host without a working sandbox](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#refuse-sessions-on-a-host-without-a-working-sandbox) and [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
6466>
6567> Even where the sandbox runs, [hooks that run a command](https://code.claude.com/docs/en/hooks#hook-handler-fields), local (stdio) MCP servers, and [Claude Code mods](#claude-code-mods) run outside it, and so do the [other processes that Claude Code starts](https://code.claude.com/docs/en/sandboxing#what-runs-outside-the-sandbox). All of these can reach hosts outside `coworkEgressAllowedHosts`, change files outside `allowedWorkspaceFolders`, and read files that `blockReadsOutsideWorkingDirectories` hides from shell commands. To limit which hooks, local MCP servers, and mods run, follow [Turn off user hooks](https://claude.com/docs/third-party/claude-desktop/extensions.md#turn-off-user-hooks) and [Stop user-installed mods from loading](#stop-user-installed-mods-from-loading), and set [`isLocalDevMcpEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#islocaldevmcpenabled) to `false`.
6668
third-party/claude-desktop/web-tools Changed · +1 / -1 lines
from line 154
154154
155155* **Web Fetch**: each host you list becomes a Claude Code `WebFetch` allow rule. The key doesn't block a fetch to another host. In Auto mode, which new Code sessions start in by default, and in bypass permissions mode, Claude Code doesn't ask the user before that fetch. For the other modes, see [WebFetch tool behavior](https://code.claude.com/docs/en/tools-reference#webfetch-tool-behavior).
156156* **Web Fetch controls**: to require approval for every fetch that Claude makes, set `WebFetch` to `"ask"` in [`builtinToolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#builtintoolpolicy), which also applies in Cowork and Chat. To remove the tool, see [Disabling web tools](#disabling-web-tools).
157* **Shell commands**: commands that run in [Claude Code's sandbox](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy) reach only the hosts you list, and no host while the list is empty. For a key that isn't set, see [Unset allowlist in Code sessions](#unset-allowlist-in-code-sessions). On Windows, and on Linux without Claude Code's sandbox dependencies, shell commands run unsandboxed and can reach any host your network allows. To keep Code off such devices, see [Disabling Code](https://claude.com/docs/third-party/claude-desktop/code.md#disabling-code). For SSH hosts, see [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
157* **Shell commands**: commands that run in [Claude Code's sandbox](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy) reach only the hosts you list, and no host while the list is empty. For a key that isn't set, see [Unset allowlist in Code sessions](#unset-allowlist-in-code-sessions). On Windows, and on Linux without Claude Code's sandbox dependencies, shell commands run unsandboxed and can reach any host your network allows. To keep Code off such devices, see [Disabling Code](https://claude.com/docs/third-party/claude-desktop/code.md#disabling-code). For SSH hosts, see [Refuse sessions on a host without a working sandbox](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#refuse-sessions-on-a-host-without-a-working-sandbox) and [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
158158* **Hooks, local MCP servers, and mods**: [hooks that run a command](https://code.claude.com/docs/en/hooks#hook-handler-fields), local (stdio) MCP servers, and [Claude Code mods](https://claude.com/docs/third-party/claude-desktop/code.md#claude-code-mods) run outside Claude Code's sandbox and can reach any host your network allows. To limit which of them run, see the warning under [Applied as managed policy](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy).
159159* **Preview pane**: Claude Desktop applies the list itself, also while the [built-in browser](https://claude.com/docs/third-party/claude-desktop/browser.md) is off. A page that a user previews in Code, such as one from a local development server, loads content only from the device and from the hosts you list. To let such pages load scripts, fonts, or data from another host, add it to the list, which also opens that host to the agent's shell. An unset list, or one that contains `*`, limits nothing there. Before Claude Desktop 6.6395.0, the list applied to previewed pages only while the built-in browser was on.
160160