Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-docs

SSH remote sessions in Claude Desktop on 3P changedthird-party/claude-desktop/ssh-remote-sessions

Nearest release: v2.1.332, published 3 hours after 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 24 Nov 2026 18:55 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 24 Nov 2026 19:07 UTC.

Upstream edited
Recorded here
Lines+124added
Lines−32removed
From line 2 where the diff opens
First seen 28 Aug 2026 this site's first read of the page
Recorded edits47to this page, all time

### Amazon Bedrock with a named profile ### Plugin hooks on the remote host ### Couldn't start Claude Code: No AWS config found ### Claude Code couldn't sign in to AWS ### This session needs your organization's launcher

The whole hunk

from line 2, old and new numbered
/
lines
from line 2
22 
33> How Code sessions run on a remote host over SSH in Claude Desktop on 3P, the sshHostAllowlist key that enables them, which inference credentials work on a remote host, and what to check before turning them on
44 
5An SSH remote session is a [Code](https://claude.com/docs/third-party/claude-desktop/code.md) session whose Claude Code engine runs on another machine that the user reaches over SSH, while the session's interface stays in Claude Desktop on the user's device. Claude Desktop connects to the host, places the engine there, and starts the session with the inference credential and policy from your managed configuration. Users can work on code that lives on a development server, a build box, or a cloud workstation without copying it to their device. In Claude Desktop on third-party (3P), SSH remote sessions are off until you set the [`sshHostAllowlist`](https://claude.com/docs/third-party/claude-desktop/configuration#sshhostallowlist) key, because enabling them sends your inference credential to the hosts users connect to.
5An SSH remote session is a [Code](https://claude.com/docs/third-party/claude-desktop/code.md) session whose Claude Code engine runs on another machine that the user reaches over SSH, while the session's interface stays in Claude Desktop on the user's device. Claude Desktop connects to the host, places the engine there, and starts the session with the policy from your managed configuration and, for most credential kinds, its inference credential. Users can work on code that lives on a development server, a build box, or a cloud workstation without copying it to their device. In Claude Desktop on third-party (3P), SSH remote sessions are off until you set the [`sshHostAllowlist`](https://claude.com/docs/third-party/claude-desktop/configuration#sshhostallowlist) key, because enabling them sends your inference credential to the hosts users connect to, unless the credential is one that stays on the device (see [Inference credentials on the remote host](#inference-credentials-on-the-remote-host)).
66 
77> [!NOTE]
88>
from line 12
1212 
13131. **Connect.** The user picks an SSH host from the environment picker in Code, or adds one by entering its address, port, and an identity file. Claude Desktop connects through the device's OpenSSH client, or in some cases through its built-in SSH client (see [Host requirements](#host-requirements)), applies the host's entry from the device's `~/.ssh/config` (see [SSH configuration on the device](#ssh-configuration-on-the-device)), and prompts in the app if the host asks for a password or a one-time code.
14142. **Deploy.** Claude Desktop places a remote server and the Claude Code engine under `~/.claude/remote/` in the SSH user's home directory on the host ([Host requirements](#host-requirements) lists every path) and reuses them on later connections.
153. **Run.** The remote server starts the engine on the host with the inference credential and policy from your managed configuration. Every file read, edit, shell command, and git operation runs on the host, in the working directory the user chose there. Claude Desktop connects to [managed MCP servers](https://claude.com/docs/third-party/claude-desktop/extensions.md#managed-mcp-servers-admin) from the device and exposes them to the engine as tools.
153. **Run.** The remote server starts the engine on the host with the policy from your managed configuration and the inference credential that Claude Desktop passes, if it passes one. Every file read, edit, shell command, and git operation runs on the host, in the working directory the user chose there. Claude Desktop connects to [managed MCP servers](https://claude.com/docs/third-party/claude-desktop/extensions.md#managed-mcp-servers-admin) from the device and exposes them to the engine as tools.
16164. **Stream.** Claude's responses and tool output stream back to Claude Desktop. Permission prompts appear in Claude Desktop, and the engine waits on the host until the user answers.
1717 
1818The engine keeps running on the host through a dropped SSH link, device sleep, or the user quitting Claude Desktop. It finishes the current turn, or stops at a permission prompt, then idles. While Claude Desktop is disconnected or closed, an idle engine can still start a turn by itself, for example when scheduled work comes due (a `/loop` task, say) or when a background command ends. An engine that starts while [`scheduledTasksEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#scheduledtasksenabled) is `false` starts without Claude Code's scheduling tools, so `/loop` can't schedule work there. An engine that already runs keeps those tools until Claude Desktop replaces it. Whatever else can start a turn still can, a background command's end included. While Claude Desktop is disconnected or closed, a credential that it passed is not refreshed, so a turn that outlives that credential, or starts after it expires, can fail with an authentication error. A restart of the app for an update counts as a quit.
from line 24
2424 
2525On a host that ends a user's processes at logout, the remote server and the engine end with the SSH connection that started them, so a turn in progress doesn't survive a disconnect. Linux hosts where systemd-logind's `KillUserProcesses` setting is `yes` and applies to the SSH user behave this way. To keep remote sessions running through a disconnect on such a host, ask the host's administrator to exempt the SSH user, for example by listing the user under `KillExcludeUsers` in the systemd-logind configuration.
2626 
27An idle engine stays on the host, and keeps the credential, until one of these happens:
27An idle engine stays on the host, and keeps any credential that Claude Desktop passed, until one of these happens:
2828 
2929* The user archives or deletes the session while Claude Desktop is connected to the host.
3030* The user reopens the session and Claude Desktop ends the engine to start a fresh one.
from line 114
114114* **The last managed server**: if you remove your last server from `managedMcpServers`, Code sessions again load the MCP servers that users define in Claude Code's own configuration.
115115* **Tool policy**: `toolPolicy` doesn't move with the server. To keep it, see [Plugin structure](https://claude.com/docs/third-party/claude-desktop/extensions.md#plugin-structure).
116116* **Users**: with `installationPreference` set to `"required"`, users can't turn off the plugin in the app, but they can in their own Claude Code settings.
117* **Secrets**: a secret in the plugin's `.mcp.json` file reaches every device that installs the plugin and every host where a user starts a remote session.
117* **Secrets**: a secret in the plugin's `.mcp.json` file reaches every device that installs the plugin and every host where a user starts a remote session. So can one in its `hooks` directory (see [Plugin hooks on the remote host](#plugin-hooks-on-the-remote-host)).
118118* **The host's policy**: a [`managed-mcp.json`](https://code.claude.com/docs/en/managed-mcp) file on the host, or `disableSideloadFlags`, `allowedMcpServers`, or `deniedMcpServers` in its Claude Code managed settings, or a setup in which your organization starts Claude Code on the host itself, can keep the server out.
119119 
120120A copy of the server in Claude Code's own configuration on the host is no substitute. The engine never loads a server there that has a managed server's name, and the session shows no message about it.
from line 128
128128On Amazon Bedrock, a user can continue in Claude Desktop a Claude Code session that is saved on a Linux or macOS host, such as one that they began in a terminal there. Requires Claude Desktop 6.28899.6 or later. The user takes these steps:
129129 
1301301. In **Code**, the user starts a new session on the SSH host and picks the folder that the earlier session ran in.
1312. Before sending anything, the user types `/resume` in the message box, and selects **Trust workspace** if Claude Desktop asks about the folder. Claude Desktop lists up to 30 sessions that are saved for that folder, by title and time.
1312. Before sending anything, the user types `/resume` in the message box, and selects **Trust workspace** if Claude Desktop asks about the folder. Claude Desktop lists the newest sessions that are saved for that folder, by title and time.
1321323. The user selects a session. It opens with its earlier messages, and doesn't start yet.
1334. The user sends a message. The engine then starts on the host and resumes the session. It starts with the default model for new Code sessions, unless the user picks a model in the resumed session first. It doesn't go back to the model that the session used before.
1334. The user sends a message. The engine then starts on the host and resumes the session. It starts with the model and effort level that were selected in the new session when the user typed `/resume`, and the user can change both before sending. It doesn't go back to the model that the session used before. Before Claude Desktop 7.37095.0, it starts with the first model in your model list, even where the session shows another, unless, before sending, the user picks a model other than the one shown.
134134 
135135If users don't find `/resume`, or it fails, see [Resume is missing or fails on an SSH host](#resume-is-missing-or-fails-on-an-ssh-host).
136136 
from line 138
138138 
139139A saved session can be resumed on a Linux or macOS host where the device, the host, and the saved session all use Amazon Bedrock. Check these conditions:
140140 
141* **The device sends requests straight to Amazon Bedrock.** [`inferenceProvider`](https://claude.com/docs/third-party/claude-desktop/configuration#inferenceprovider) is `bedrock` or `mantle`, and [`inferenceBedrockBaseUrl`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockbaseurl) is unset or names Amazon's own Bedrock endpoint. A VPC endpoint for `bedrock-runtime` counts. One for `bedrock-runtime-fips` or `bedrock-mantle` doesn't. Identity provider sign-in needs a proxy address in that key, so it doesn't qualify. With an address that doesn't count, such as a proxy or gateway, `/resume` is missing from the slash menu, and no message says why. The other conditions don't hide the command.
142* **The credential reaches the host.** The credential kind [works on a remote host](#inference-credentials-on-the-remote-host), or the host starts Claude Code through a launcher. The launcher then supplies the credential, and must be one that the host's managed settings name (see [Resume through a corporate launcher](#resume-through-a-corporate-launcher)).
143* **The host's Claude Code managed settings hold the session to Amazon Bedrock.** A host without managed settings needs nothing. Where a host has them, they must hold an [`allowedProviders`](https://code.claude.com/docs/en/settings-reference#allowedproviders) list with only `bedrock` and `mantle`, or hold no such list and set `"parentSettingsBehavior": "merge"`. Otherwise the user sees `Sessions on this host can't be listed`.
141* **The device sends requests straight to Amazon Bedrock.** [`inferenceProvider`](https://claude.com/docs/third-party/claude-desktop/configuration#inferenceprovider) is `bedrock` or `mantle`, and [`inferenceBedrockBaseUrl`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockbaseurl) is unset or names Amazon's own Bedrock endpoint. A VPC endpoint for `bedrock-runtime`, `bedrock-runtime-fips`, or `bedrock-mantle` counts. Before Claude Desktop 7.37095.0, a VPC endpoint counts only if it is for `bedrock-runtime`. Identity provider sign-in needs a proxy address in that key, so it doesn't qualify. With an address that doesn't count, such as a proxy or gateway, `/resume` is missing from the slash menu, and no message says why. The other conditions don't hide the command.
142* **The engine has a credential on the host.** The credential kind [works on a remote host](#inference-credentials-on-the-remote-host), or the host starts Claude Code through a launcher. The launcher then supplies the credential, and must be one that the host's managed settings name (see [Resume through a corporate launcher](#resume-through-a-corporate-launcher)).
143* **The host's Claude Code managed settings hold the session to Amazon Bedrock.** A host without managed settings needs nothing. Where a host has them, they must hold an [`allowedProviders`](https://code.claude.com/docs/en/settings-reference#allowedproviders) list with only `bedrock` and `mantle`, or hold no such list and set `"parentSettingsBehavior": "merge"`. Otherwise the user sees `Sessions on this host can't be listed.`
144144* **All of the session ran on Amazon Bedrock.** Claude Desktop leaves out a session that holds a reply from another provider, and one that was ever opened under a Claude sign-in.
145145 
146146These keys refuse both the list and the selection:
from line 153
153153 
154154`/resume` works with a [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) that the host's Claude Code managed settings name, where [`claudeCodeProcessWrapperEnabled`](https://claude.com/docs/third-party/claude-desktop/configuration#claudecodeprocesswrapperenabled) is `true` on the device. It isn't available on a host whose launcher isn't named there and locates Claude Code itself. Check the launcher against these points:
155155 
156* **The provider check**: Claude Desktop calls the launcher with `auth status --json` before it lists sessions, when the user selects one, and at the first message, to learn which provider Claude Code on the host uses. The launcher must pass its arguments on, and print no `{` or `}` of its own to standard output. If that call takes longer than 15 seconds or fails at the list, the user sees `Couldn't load sessions from the host`.
156* **The provider check**: Claude Desktop calls the launcher with `auth status --json` before it lists sessions, when the user selects one, and at the first message, to learn which provider Claude Code on the host uses. The launcher must pass its arguments on, and print no `{` or `}` of its own to standard output. If that call takes longer than 33 seconds or fails at the list, the user sees `Couldn't load sessions from the host.` Before Claude Desktop 7.37095.0, the limit is 15 seconds.
157157* **Options and variables**: have the launcher pass on every option and every environment variable that it receives, apart from the credential that it sets. Some of them hold the session to Amazon Bedrock, and keep the engine from using a system prompt or tool definitions that the session file records. Claude Desktop can't always tell if a launcher drops them.
158* **The Amazon Bedrock address**: a resumed session doesn't start if the launcher points Amazon Bedrock requests at a proxy or gateway address, for example in `ANTHROPIC_BEDROCK_BASE_URL`. The user sees `Your organization doesn't allow this API key or provider`, though a new session through the same launcher starts.
158* **The Amazon Bedrock address**: a resumed session doesn't start if the launcher points Amazon Bedrock requests at a proxy or gateway address, for example in `ANTHROPIC_BEDROCK_BASE_URL`. A new session through the same launcher starts. For the message, see [Resume is missing or fails on an SSH host](#resume-is-missing-or-fails-on-an-ssh-host).
159159* **An expired credential**: if the credential that the launcher supplies has expired, for example because a company sign-in on the host has lapsed, the list and the selection can still work. The first message then fails with the card `Claude Code on <host> has no working credentials`. After signing in again on the host, the user selects **Try again**.
160160 
161161#### What Claude Desktop copies from the host
from line 162
162162 
163163Resuming a session brings its conversation from the host to the user's device:
164164 
165* **At the list**: Claude Desktop first runs `claude auth status` on the host, which opens no session. It then checks the 30 newest session files for the folder, and fetches the first and the last 64 KiB of those that ran on Amazon Bedrock.
166* **At the selection**: it copies the whole conversation to the user's device, before the user sends anything, with the conversation's subagent files and every `agent-*.jsonl` file in the same project folder, which it doesn't check. The copy goes to Claude Code's store on the device, as for every SSH session (see [Where data lives](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives)).
165* **At the list**: Claude Desktop first runs `claude auth status` on the host, which opens no session. It then skips the sessions that it already has for this host, and checks up to 60 of the folder's other session files, from the newest, or fewer on a slow host. Of each one that passes its Amazon Bedrock check, it fetches the first and the last 64 KiB. Of the folder's other session files, up to its 200 newest (more where the folder's path on the host is over 200 characters long) and up to 20 for each of its worktrees, only the name, the project folder's name, the size, and the time reach the device. Before Claude Desktop 7.37095.0, it checks the folder's 30 newest, and the sessions that it already has count among them.
166* **At the selection**: it copies the whole conversation to the user's device, before the user sends anything, with the conversation's subagent files and every `agent-*.jsonl` file in the same project folder, which it doesn't check. The copy goes to Claude Code's store on the device, as for every SSH session (see [Removing data](https://claude.com/docs/third-party/claude-desktop/data-storage.md#removing-data)).
167167* **Afterward**: the copy follows the host's file. What someone later adds to that conversation in a terminal reaches the device too, unchecked.
168168* **On the device**: other Claude Code sessions there can read the copy, in Claude Desktop or in a terminal, under whatever provider or sign-in they use. The conversation can leave Amazon Bedrock that way.
169169* **From the first message**: the engine sends the earlier conversation to Amazon Bedrock, tool results included.
170170 
171The copying stops when the user deletes the session in Claude Desktop. That removes the copy from the device and leaves the host's file, with the turns that Claude Desktop added.
171The copying stops when the user deletes the session in Claude Desktop. That removes the copy from the device and leaves the host's file, with the turns that Claude Desktop added. Automatic deletion with [`codeSessionRetentionDays`](https://claude.com/docs/third-party/claude-desktop/configuration#codesessionretentiondays) leaves the session and the copy in place (see [Automatic deletion of idle sessions](https://claude.com/docs/third-party/claude-desktop/data-storage.md#automatic-deletion-of-idle-sessions)).
172172 
173173`allowedWorkspaceFolders` applies to the folder that the user picks. A terminal session isn't bound by the list, so file contents from elsewhere on the host can be in a conversation that reaches the device.
174174 
from line 228
228228 
229229> [!WARNING]
230230>
231> The allowlist has one kind of entry, so users can also start a session on any host that you list, and that session receives your [inference credential](#inference-credentials-on-the-remote-host). List only jump hosts that you'd also let users run sessions on.
231> The allowlist has one kind of entry, so users can also start a session on any host that you list, and that session receives your [inference credential](#inference-credentials-on-the-remote-host), where Claude Desktop passes one. List only jump hosts that you'd also let users run sessions on.
232232 
233233Claude Desktop checks jump hosts in the `ProxyJump` that the device'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 allowlist when the app connects or reconnects a session, the connection fails. When the user starts a session or sends a message, they see [Your organization doesn't allow this SSH connection](#your-organization-doesn%E2%80%99t-allow-this-ssh-connection), and the card's details give that jump host's `HostName`.
234234 
from line 385
385385 
386386> [!WARNING]
387387>
388> A remote session runs Claude Code on the SSH host with your organization's inference credential, for as long as that process runs, including while Claude Desktop is closed. The same user account on the host, or a root user, can get the credential. List only hosts you trust with it, and prefer a credential that expires (single sign-on, or a credential helper that issues short-lived tokens) over a long-lived key.
388> List only hosts you trust in `sshHostAllowlist`. Where Claude Desktop passes a credential, a remote session runs Claude Code on the SSH host with your organization's inference credential, for as long as that process runs, including while Claude Desktop is closed. The same user account on the host, or a root user, can get the credential, so prefer one that expires (single sign-on, or a credential helper that issues short-lived tokens) over a long-lived key. With [Amazon Bedrock and a named profile](#amazon-bedrock-with-a-named-profile), the engine uses AWS credentials that are kept on the host, also while Claude Desktop is closed, and the same accounts can get those.
389389 
390Unless the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code, Claude Desktop passes the session's credential to the remote engine. For model requests, the engine then doesn't use these on the host: an AWS profile, SSO cache, or instance or container role; an Azure CLI sign-in or managed identity; or Google application default credentials. Commands, hooks, and local MCP servers that run on the host run as the SSH user, and may be able to use them. Claude Desktop copies no AWS, Azure, or Google credential files to the host. Which credential kinds work on a remote host depends on the provider:
390Unless the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code or the deployment uses [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile), Claude Desktop passes the session's credential to the remote engine. For model requests, the engine then doesn't use these on the host: an AWS profile, SSO cache, or instance or container role; an Azure CLI sign-in or managed identity; or Google application default credentials. Commands, hooks, and local MCP servers that run on the host run as the SSH user, and may be able to use them. Claude Desktop copies no AWS, Azure, or Google credential files to the host. Which credential kinds work on a remote host depends on the provider:
391391 
392392| Provider | Works on a remote host | Refused at session start |
393393| - | - | - |
from line 394
394394| [LLM gateway](https://claude.com/docs/third-party/claude-desktop/gateway.md) | Static API key, single sign-on, credential helper | |
395395| [Claude API](https://claude.com/docs/third-party/claude-desktop/claude-api.md) | Static API key, Sign in with Claude Console, credential helper | |
396396| [Microsoft Foundry](https://claude.com/docs/third-party/claude-desktop/foundry.md) | API key, in-app Entra ID sign-in, credential helper | |
397| [Amazon Bedrock](https://claude.com/docs/third-party/claude-desktop/bedrock.md) | Bearer token, identity provider sign-in, credential helper | In-app AWS sign-in (IAM Identity Center), named profile |
397| [Amazon Bedrock](https://claude.com/docs/third-party/claude-desktop/bedrock.md) | Bearer token, identity provider sign-in, credential helper, [named profile](#amazon-bedrock-with-a-named-profile) on a Linux or macOS host | In-app AWS sign-in (IAM Identity Center); named profile on a Windows host, or with `inferenceBedrockAwsDir` not below the user's home directory, or with no `inferenceBedrockProfile` where the folder is `~/.aws` |
398398| [Amazon Bedrock Mantle](https://claude.com/docs/third-party/claude-desktop/mantle.md) | Bearer token, credential helper | |
399399| [Google Cloud's Agent Platform](https://claude.com/docs/third-party/claude-desktop/vertex.md) | In-app Workforce Identity sign-in, credential helper | In-app Google sign-in, service-account key or credentials file, application default credentials on the device |
400400 
401When the configured credential is a refused kind, the session fails at session start, with the card [SSH sessions can't use your model provider settings](#ssh-sessions-can%E2%80%99t-use-your-model-provider-settings).
401When the configured credential is a refused kind, the session fails at session start unless a launcher starts Claude Code. The card is [SSH sessions can't use your model provider settings](#ssh-sessions-can%E2%80%99t-use-your-model-provider-settings). Where `claudeCodeProcessWrapperEnabled` is on and a Linux or macOS host names no launcher, the card is `Your organization's launcher isn't set up on <host>` instead.
402402 
403When the remote engine's credential expires during a turn, Claude Desktop obtains a new one on the device, by re-running a [credential helper](https://claude.com/docs/third-party/claude-desktop/credential-helper.md) or using a sign-in's refresh token, and sends it over the SSH connection.
403When a credential that Claude Desktop passed expires during a turn, Claude Desktop obtains a new one on the device, by re-running a [credential helper](https://claude.com/docs/third-party/claude-desktop/credential-helper.md) or using a sign-in's refresh token, and sends it over the SSH connection.
404404 
405405Where the host's [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) starts Claude Code, Claude Desktop passes no inference credential and refuses no credential kind. Claude Code uses the credential that the launcher or the SSH account's own environment sets, or, on Google Cloud's Agent Platform, the account's application default credentials.
406406 
407407The host needs its own network route to the inference endpoint and must trust the endpoint's certificate. Claude Desktop passes the endpoint address to the remote engine but not the device's proxy settings, CA certificates, or the `AWS_*` and `GOOGLE_*` variables in the user's shell. A gateway at `localhost` on the device is refused for remote sessions, because the host cannot reach it.
408408 
409### Amazon Bedrock with a named profile
410 
411Requires Claude Desktop 7.37095.0 or later, and a Linux or macOS host. Before Claude Desktop 7.37095.0, SSH sessions with a named profile are refused unless a launcher starts Claude Code.
412 
413With a [named profile](https://claude.com/docs/third-party/claude-desktop/bedrock.md#named-profile), the device's AWS credentials stay on the device. Claude Desktop sends the host the profile's name and the folder that holds the AWS files, and nothing else from the profile. The engine signs in to AWS with the profile of that name on the host, in the AWS Region that your Claude Desktop configuration sets. Your `inferenceCustomHeaders` and your collector's endpoint and headers still go to the host. Session titles, Cowork, and the connection test still use the profile on the device.
414 
415This has no configuration key of its own. It applies to every Linux or macOS host that `sshHostAllowlist` allows, and sessions start where the host has the files as the steps here describe. A profile of that name that is already on a host is used as it is, so check existing hosts before you update Claude Desktop. Windows hosts aren't supported. You can keep new sessions from using the host's profile in three ways:
416 
417* **On one host**: keep the host's name off `sshHostAllowlist` and outside its wildcards, which refuses new SSH sessions and connections under that name (see [Enable SSH remote sessions](#enable-ssh-remote-sessions)).
418* **On a host that names a launcher**: turn `claudeCodeProcessWrapperEnabled` on, and the launcher starts Claude Code there, as the last paragraph of this section describes.
419* **For the whole deployment**: set `inferenceBedrockAwsDir` to a folder outside the user's home directory, and move the device's AWS files there. SSH sessions are then refused unless a launcher on the host starts Claude Code. This doesn't suit a single sign-on profile, which must stay in `~/.aws`.
420 
421Don't count on any of them to end an engine that already runs: stop its processes on the host, and revoke its credentials in AWS. Deliver these keys where users can't change them.
422 
423Set up each host, for each user who connects to it:
424 
4251. **Add the profile.** Create it on the host, in `~/.aws` or in the folder that `inferenceBedrockAwsDir` names: a `config` file, a `credentials` file, or both. Claude Desktop copies nothing there. Claude Code runs on the host as the user and must be able to read the files. Where security software on the host keeps it out of `~/.aws`, the engine can't sign in: agree an exception or another folder with your security team. Keep a single sign-on profile in `~/.aws`, on the host and on the device: AWS keeps its token cache in `~/.aws/sso/cache`, whichever folder holds the profile. Give the profile the name that you set in [`inferenceBedrockProfile`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockprofile). Set that key: with no name, and `~/.aws` as the folder, SSH sessions are refused unless a launcher starts Claude Code. With another folder and no name, the engine uses the profile `default`.
4262. **Limit its permissions.** Give the profile access to Amazon Bedrock only. The `aws` commands that Claude runs on the host use the same profile. The files on the host decide which AWS account receives the engine's requests and which `credential_process` program runs, outside the sandbox.
4273. **Keep the files separate.** Use regular files, not links, in a folder of their own directly under the home directory, such as `~/.aws`, that holds no project files. Only the user who signs in should be able to read or write the files and their folder. Claude's file-editing tools are blocked for everything under that folder. Where [Claude Code's sandbox](#sandbox-status-on-the-remote-host) runs, it also keeps sandboxed shell commands from writing to the `config` and `credentials` files. Don't rely on that in a session that can write to their folder, such as one opened in the home directory. Your policy includes the sandbox where you set `allowedWorkspaceFolders`. Without that key, the sandbox can be off (see [Applied as managed policy](https://claude.com/docs/third-party/claude-desktop/code.md#applied-as-managed-policy)). The block is Claude Code's own check, not a file permission: Claude can read these files, and other programs that run as the user can change them. Keep sessions from starting in the home directory itself with [`allowedWorkspaceFolders`](#managed-configuration-on-the-remote-host), and prefer credentials that expire. If the profile names a `credential_process` program, keep that program where the user can't write.
4284. **Sign in, if the profile needs it.** The user signs in to AWS from a terminal on the host, which for single sign-on needs version 2 of the AWS CLI there. Claude Desktop can't sign in on the host or renew the sign-in there. When it expires, turns fail until the user signs in on the host again.
429 
430The engine signs in only through the named profile. An instance role on the host isn't enough by itself: the profile must name its own source of credentials. The host must also reach the AWS hosts that the profile signs in through (see [Inference provider](https://claude.com/docs/third-party/claude-desktop/telemetry.md#inference-provider)). On a host that reaches AWS only through a proxy, a profile that assumes a role doesn't sign in, even where a terminal on that host does.
431 
432[`inferenceBedrockAwsDir`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencebedrockawsdir) names the folder on the device and on the host alike, so the device's files must be there too. Use a folder under the user's home directory, not the home directory itself, for example `~/corp-aws`, and put each machine's files in it. With a folder anywhere else, SSH sessions are refused unless a launcher on the host starts Claude Code. Keep a single sign-on profile in `~/.aws`: `aws sso login` saves its token in `~/.aws/sso/cache` whichever folder holds the profile, and Claude Code looks for it first beside the profile's files. With the profile in another folder, the engine doesn't sign in on a host that reaches AWS only through a proxy. Each folder name in the files' path on the host, the home directory's included, can hold only letters, digits, and `. _ @ + = : ~ -`. With a space or another symbol in one, the session is refused, and the details of the card `Couldn't start Claude Code on <host>` say so.
433 
434With [`claudeCodeProcessWrapperEnabled`](https://claude.com/docs/third-party/claude-desktop/code#start-code-sessions-through-a-corporate-launcher) on, a launcher that the host names starts Claude Code. Where the key is off or unset, or Claude Desktop finds no launcher on the host, a new session signs in with the host's profile. To keep sessions on a launcher, name it on every host that `sshHostAllowlist` allows, and set the key in the device's [managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#devices-with-a-managed-profile) so that users can't turn it off. To have sessions refused where no launcher is found, also set `inferenceBedrockAwsDir` to a folder outside the user's home directory, as under **For the whole deployment**. Claude Desktop learns whether a host names a launcher, and which, from the host itself, as the account that signed in, so it can't make sure that a host with no launcher really has none, or that the launcher is yours. Keeping Claude Code from running without your launcher stays the work of your own controls on the host.
435 
409436## Managed configuration on the remote host
410437 
411438Most of the policy that Claude Desktop applies to a local Code session applies on the remote host too. The [Code page](https://claude.com/docs/third-party/claude-desktop/code.md#how-configuration-propagates) describes how each key reaches Claude Code.
from line 444
417444* [`blockReadsOutsideWorkingDirectories`](https://claude.com/docs/third-party/claude-desktop/configuration#blockreadsoutsideworkingdirectories), evaluated on the host, so the working directories and the home directory it hides from shell commands are the SSH user's there. Hiding files from shell commands needs the host's sandbox dependencies (next item). On a host without those dependencies, or a Windows host, the key 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. Files a user attaches to a remote session stay readable, except on a Windows host, where the session's plugin files and attachments stay outside the file tools' reach under this key.
418445* `coworkEgressAllowedHosts`, as Claude Code managed settings. The network and filesystem sandbox it produces with `allowedWorkspaceFolders` depends on the host having Claude Code's sandbox dependencies installed (see [Claude Code sandboxing](https://code.claude.com/docs/en/sandboxing)). Without them, commands run unsandboxed, unless you [refuse such sessions](#refuse-sessions-on-a-host-without-a-working-sandbox). See [Sandbox status on the remote host](#sandbox-status-on-the-remote-host) for the message the session shows.
419446* `managedMcpServers`, as the Claude Code managed setting that keeps the session from loading MCP servers that users define in Claude Code's own configuration on the host. The managed servers themselves are reached from the device (see [Where MCP servers run in a remote session](#where-mcp-servers-run-in-a-remote-session)).
420* Plugins from your [allowed marketplaces](https://claude.com/docs/third-party/claude-desktop/extensions.md), copied to the host. A plugin's `hooks` directory is not copied, so its hooks do not run in a remote session, and a plugin whose manifest declares hooks elsewhere is not copied at all. To run your organization's hooks on the host, see [Run a hook for every user](https://claude.com/docs/third-party/claude-desktop/extensions.md#run-a-hook-for-every-user).
447* Plugins from your [allowed marketplaces](https://claude.com/docs/third-party/claude-desktop/extensions.md), copied to the host. A plugin's `hooks` directory is copied too, within the limits under [Plugin hooks on the remote host](#plugin-hooks-on-the-remote-host). For a hook that has to run on every host, see [Run a hook for every user](https://claude.com/docs/third-party/claude-desktop/extensions.md#run-a-hook-for-every-user).
421448 
422449If the host has its own Claude Code managed settings, those take precedence over the policy Claude Desktop supplies, as described under [Interaction with Claude Code's own managed settings](https://claude.com/docs/third-party/claude-desktop/code.md#interaction-with-claude-code%E2%80%99s-own-managed-settings) for local sessions.
423450 
451### Plugin hooks on the remote host
452 
453Requires Claude Desktop 7.37095.0 or later. From a macOS or Linux device to a macOS or Linux host, Claude Desktop copies a plugin's `hooks` directory with the rest of the plugin. The plugin's [hooks](https://code.claude.com/docs/en/hooks) then run on the host in a remote session. Plugins that users add themselves are copied this way too. In this section, a plugin's hooks are those in its `hooks` directory.
454 
455This is on by default for deployments on Amazon Bedrock, Amazon Bedrock Mantle, Google Cloud's Agent Platform, Microsoft Foundry, or an [LLM gateway](https://claude.com/docs/third-party/claude-desktop/gateway.md), including a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) that serves Code sessions no `code` settings, for example because its policies use [`cli`](https://code.claude.com/docs/en/claude-apps-gateway-config#choose-cli-or-code). To stop it, use the settings in the table below.
456 
457Hooks run as the SSH user, outside the [sandbox](#sandbox-status-on-the-remote-host), on each host that the user connects to, and nobody is asked first. As on a device, a hook can approve Claude's tool calls, so that the user isn't asked. Deny rules in the host's managed settings still hold for Claude's calls, but not for what a hook itself does.
458 
459A plugin runs on the host without its hooks in cases such as these:
460 
461* **Mods**: the plugin has a [mod](https://claude.com/docs/third-party/claude-desktop/code.md#claude-code-mods). Claude Desktop leaves out the whole `hooks` directory, which declares the mod, so neither the mod nor the plugin's hooks run on the host.
462* **Enterprise Admin Console**: the device gets its configuration from the [console](https://claude.com/docs/third-party/claude-desktop/admin-console.md)
463* **Inference provider**: it is the [Claude API](https://claude.com/docs/third-party/claude-desktop/claude-api.md), or Code sessions get [`code` (not `cli`) settings from a Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway-config#apply-code-settings-in-the-code-tab)
464* **Policy on the device**: the device's Claude Code managed settings set a key such as `allowManagedHooksOnly`, `pluginConfigs`, or `disableSideloadFlags`
465* **The plugin**: it declares `userConfig` options or dependencies, or comes from a marketplace that the user added from a folder or file on the device, or from one whose address in the device's Claude Code managed settings differs from where the device fetched it, until the device fetches it again
466 
467In other cases, such as these, the plugin isn't copied at all:
468 
469* **Hooks in the manifest**: the plugin's manifest declares hooks
470* **Plugins that only managed settings turn on**: a plugin that only the device's Claude Code managed settings install and turn on stays on the device
471* **A launcher that locates Claude Code itself**: where the session starts through a [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) on the host that the host's managed settings don't name, no plugin from the device is copied
472 
473Where a plugin runs without its hooks, a session shows a message, in some cases only the first time on a host, such as `A plugin from your organization runs without its hooks on <host>`, followed by the reason, or `A plugin from your organization has hooks that can’t be sent over SSH, so it runs without them on <host>.` Where `allowManagedHooksOnly` or `disableAllHooks` on the device stops plugin hooks in local sessions too, the session shows no message. No message doesn't mean that the hooks run.
474 
475Don't count on the deployment, the plugin, or a launcher to keep hooks off a host. To keep these hooks from running on your hosts, set one of these to `true` in [Claude Code managed settings](https://code.claude.com/docs/en/managed-settings#where-each-mechanism-stores-the-policy), deployed as a file or an OS policy on the device or the host. A Claude apps gateway's `cli` settings don't reach these sessions on a Claude Desktop that gets its configuration from the gateway.
476 
477| Setting | Where to set it | Effect |
478| - | - | - |
479| [`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly) or [`disableAllHooks`](https://code.claude.com/docs/en/settings-reference#disableallhooks) | Each device | Claude Desktop copies no `hooks` directory to any host. The setting also stops plugins' and users' hooks in [Cowork, Chat, and local Code sessions](https://claude.com/docs/third-party/claude-desktop/extensions.md#turn-off-user-hooks) on the device (under `allowManagedHooksOnly`, except those of plugins that the managed settings themselves turn on), and `disableAllHooks` stops the hooks in the device's own managed settings too. |
480| [`disableSideloadFlags`](https://code.claude.com/docs/en/settings-reference#disablesideloadflags) | The host | Sessions load no plugin from the device, and show `Desktop skills and plugins are off in this session.` Hooks that are set up on the host keep running. |
481| [`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly) or [`disableAllHooks`](https://code.claude.com/docs/en/settings-reference#disableallhooks) | The host | Copied plugins' hooks don't run. Neither do the hooks that users set up on the host, such as [alert hooks](#alert-the-user-with-hooks-on-the-host), or those of plugins that they installed there. `disableAllHooks` also stops the hooks in the host's own managed settings. |
482 
483For a host where no hook from any part of a copied plugin may run, use one of the host's settings. Under `allowManagedHooksOnly` or `disableAllHooks`, the plugins themselves still load on the host, with their MCP servers and skills. To keep those off too, use `disableSideloadFlags`.
484 
485A change on a device applies to sessions that start after it: a remote session that is already running keeps the hooks that were copied for it. `disableSideloadFlags` on a host also applies only to sessions that start after it. To stop the hooks of a session that is already running, [end its engine on the host](#how-a-remote-session-works).
486 
487In a device's or a host's first Claude Code managed settings, also set `parentSettingsBehavior` to `"merge"`, or they replace the [policy that Claude Desktop supplies](#managed-configuration-on-the-remote-host) (for a device, see [Interaction with Claude Code managed settings on the device](#interaction-with-claude-code-managed-settings-on-the-device)). Where managed settings exist already, add the key to them and leave `parentSettingsBehavior` as it is.
488 
489A plugin's hooks aren't guaranteed to run on a host: some sessions start without them, and by default a hook that can't start lets the action go ahead. Check these limits before you rely on hooks, or on your policy, in remote sessions:
490 
491* **Policy that only devices have**: Claude Code on the host doesn't read the device's Claude Code managed settings. A [policy mod](https://code.claude.com/docs/en/plugins/mods/admin#enforce-a-policy-with-a-mod-of-your-own) that those settings install isn't copied, so copied hooks run without it. Install it through each host's managed settings too.
492* **Policy on files and network**: `allowedWorkspaceFolders`, `blockReadsOutsideWorkingDirectories`, `coworkEgressAllowedHosts`, and permission rules don't bind a command that a hook runs.
493* **Marketplace lists on a host**: `strictKnownMarketplaces` and `blockedMarketplaces` in the host's managed settings don't stop a copied plugin's hooks. To stop them, set `disableSideloadFlags` there.
494* **A [launcher](https://claude.com/docs/third-party/claude-desktop/code.md#start-code-sessions-through-a-corporate-launcher) that the host's managed settings name**: hooks are copied to such a host too
495* **The host's environment**: hooks run with the host's environment, not the device's. A variable that only the device sets, and that Claude Desktop doesn't send, is empty on the host, so a hook that deletes or writes under it can hit other files.
496* **A hook that can't start on the host**: the tool call goes ahead. For a `PreToolUse` hook, the session shows `A hook of the "<plugin>" plugin gave no usable answer, so it didn't check this action.` the first time only; later calls go ahead with no message. To stop the call instead, see [Block the action when a hook fails](https://code.claude.com/docs/en/hooks#block-the-action-when-a-hook-fails).
497* **Files in the `hooks` directory**: files that a hook wrote there on the device, such as logs or state, are copied with it, and whoever administers the host can read them. The copy stays on the host for at least 30 days after its last use, or for good if no session starts there again, and of the settings above, count on the device's alone to stop the copying. Have hooks write outside the plugin's directory, for example in [`${CLAUDE_PLUGIN_DATA}`](https://code.claude.com/docs/en/plugins/components#path-variables-and-persistent-data).
498* **A plugin that is turned off or removed on the device**: new sessions start without it. Remote sessions that are already running keep its hooks until you end their engines, as above.
499 
424500### Read-only folders on the remote host
425501 
426502On a Linux or macOS host, Claude Desktop applies `mode` set to `ro` on an [`allowedWorkspaceFolders`](https://claude.com/docs/third-party/claude-desktop/configuration#allowedworkspacefolders) entry by supplying Claude Code with permission rules that deny edits under the entry's path. The rules are Claude Code's own checks on what Claude does, not file permissions on the host. Where a folder must not change, use the host's file permissions to keep the SSH user from writing to it. Before Claude Desktop 2.31226.0, a folder with `mode` set to `ro` was allowed on the host but not read-only there.
from line 512
436512* **Claude's file tools**: they refuse to create or change a file under the path, even in bypass permissions mode. A writable entry listed inside a read-only one is read-only for them too.
437513* **Shell commands that Claude runs with its Bash tool**: Claude Code's sandbox keeps them from writing under the path on a host where it runs, which on Linux needs Claude Code's [sandbox dependencies](https://code.claude.com/docs/en/sandboxing). The sandbox doesn't cover commands listed in Claude Code's `sandbox.excludedCommands`, or a path that contains one of `* ? [ ] ( ) { } | +` or a double quote. It may not stop commands in a folder that is listed through a symbolic link, so list each read-only folder by its real path, and keep it outside writable entries. On a host where the sandbox doesn't run, shell commands can still change the folder. For how the app reports that, see [Sandbox status on the remote host](#sandbox-status-on-the-remote-host).
438514 
439The rules don't bind the SSH user, or other programs that run under that account. MCP servers on the host, hooks from Claude Code's configuration on the host, [mods](https://code.claude.com/docs/en/plugins/mods/overview) in plugins installed on the host, and the session's terminal (including commands that Claude runs there) can change the folder, and Claude Desktop and Claude Code can create git worktrees inside it.
515The rules don't bind the SSH user, or other programs that run under that account. MCP servers on the host, hooks from Claude Code's configuration on the host, [mods](https://code.claude.com/docs/en/plugins/mods/overview) in plugins installed on the host, the [hooks of copied plugins](#plugin-hooks-on-the-remote-host), and the session's terminal (including commands that Claude runs there) can change the folder, and Claude Desktop and Claude Code can create git worktrees inside it.
440516 
441517### Sandbox status on the remote host
442518 
from line 946
870946 
871947### SSH sessions can't use your model provider settings
872948 
873The configured inference credential is one of the kinds listed as refused under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host), or the inference endpoint is on the device itself. The card's details say which. Switch the deployment to a credential kind that works on a remote host, or point the app at an endpoint the host can reach. Before Claude Desktop 2.31226.0, the card's title was "Remote sessions aren't available with this inference setup".
949The configured inference credential is one of the kinds listed as refused under [Inference credentials on the remote host](#inference-credentials-on-the-remote-host), or the inference endpoint is on the device itself. The card's details say which. Switch the deployment to a credential kind that works on a remote host, or point the app at an endpoint the host can reach. For a named profile that is refused, see what [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile) needs. Before Claude Desktop 2.31226.0, the card's title was "Remote sessions aren't available with this inference setup".
874950 
951### Couldn't start Claude Code: No AWS config found
952 
953The card's title is `Couldn't start Claude Code on <host>`, and its details start with `No AWS config found`. The deployment uses [Amazon Bedrock with a named profile](#amazon-bedrock-with-a-named-profile), and the host has neither a `config` nor a `credentials` file in the folder that holds the AWS files, or Claude Desktop can't see them there. The details name the folder and the profile. Add the profile on the host, or make the files readable for the user's account, then have the user try again. If the host should start Claude Code through a launcher, check that the host names one: with `claudeCodeProcessWrapperEnabled` on, the details say that none was found. These details require Claude Desktop 7.37095.0 or later.
954 
955### Claude Code couldn't sign in to AWS
956 
957The card's title is `Claude Code on <host> couldn't sign in to AWS`. The host has the AWS files, but Claude Code couldn't get working credentials from the profile, or AWS refused the request, for example because the profile lacks permission for Amazon Bedrock. The card's details show what the host reported. In a terminal on the host, check that the profile exists under the name in `inferenceBedrockProfile` and has that permission, and sign in again. Then have the user select **Try again**. This card requires Claude Desktop 7.37095.0 or later.
958 
959### This session needs your organization's launcher
960 
961A launcher started this session, or the session that it was made from, and now the host names no launcher or `claudeCodeProcessWrapperEnabled` is off. The card shows only where a new session can use [the host's own AWS profile](#amazon-bedrock-with-a-named-profile). The user can select **New session**, and the new session signs in with the host's own AWS profile, if the host has one. To continue the old session, name the launcher on the host again and turn `claudeCodeProcessWrapperEnabled` on.
962 
963This card requires Claude Desktop 7.37095.0 or later.
964 
875965### SSH host key verification failed
876966 
877967The host's key has changed, or it is not in the device's `~/.ssh/known_hosts` and was not trusted in the app (the built-in client never asks). Connect to the host from a terminal on the device to check and record the current key, then retry.
from line 1091
10011091| `Your organization's settings don't allow resuming sessions from this host or folder.` | `sshHostAllowlist` refuses the host, `allowedWorkspaceFolders` refuses the folder, or the credential kind doesn't [work on a remote host](#inference-credentials-on-the-remote-host) | Change the key or the credential kind, or have the user pick a folder inside the list |
10021092| `Sessions on this host can't be listed.` | The host doesn't qualify. Check first whether its managed settings lack both `"merge"` and an `allowedProviders` list. Other causes include a Windows host, a launcher that locates Claude Code itself or sets another provider, and a wider `allowedProviders` list on the host | See [Where resuming a saved session is available](#where-resuming-a-saved-session-is-available). To tell the causes apart, see [Find why resume refuses a host](#find-why-resume-refuses-a-host) |
10031093| `Couldn't load sessions from the host.` | The connection to the host isn't up, or the host gave no usable answer. For example, a launcher was too slow to answer | Have the user select **Try again**. If the message returns and you have a launcher, see [Resume through a corporate launcher](#resume-through-a-corporate-launcher). To tell the causes apart, see [Find why resume refuses a host](#find-why-resume-refuses-a-host) |
1004| `Some sessions aren't listed.`, under the list or alone | The folder has more than 30 session files, of which Claude Desktop checks the 30 newest, or some of those didn't run wholly on Amazon Bedrock. The message stands alone where nothing is left to list | Have the user resume the session in a terminal on the host |
1094| `Some sessions aren't listed.`, under the list or alone | The folder holds more session files than Claude Desktop goes through for one list, or some of them are too large (over 64 MiB) or too slow to check, or hold another provider's reply. The message stands alone where nothing is left to list | Have the user resume the session in a terminal on the host |
10051095| `Couldn't resume that session.` | No reason is shown. For example, a key refuses the selection, the file is gone, or the host or the session no longer passes the checks | See [Where resuming a saved session is available](#where-resuming-a-saved-session-is-available) |
10061096| `The host says that another user owns or can change that session's file` | For example, `sudo claude` wrote the file as root, or its mode is `0664` | Check the owner and mode of the session's file, under `~/.claude/projects` on the host |
10071097| `Claude Code on <host> has no working credentials` | At the first message, Claude Code on the host got no working credential for Amazon Bedrock. For example, a company sign-in behind the launcher's credential has lapsed | Have the user sign in again on the host, then select **Try again** |
1008| `Your organization doesn't allow this API key or provider`, at a resumed session's first message | The launcher points Amazon Bedrock requests at a proxy or gateway address. The same happens where `AWS_ENDPOINT_URL`, `AWS_ENDPOINT_URL_BEDROCK`, or `AWS_ENDPOINT_URL_BEDROCK_RUNTIME`, in the SSH user's environment on the host, names an address that isn't an Amazon Bedrock endpoint | See [Resume through a corporate launcher](#resume-through-a-corporate-launcher), or unset the variable. Don't widen `allowedProviders` on the host |
1009| `Claude Code wasn't started, because this session's file on the host couldn't be checked, can be changed by another user, or holds a command that would run by itself.` | At the first message, Claude Desktop checks the session's files again, and refuses one that records a deferred tool call. No answer from the host also refuses the start | Check the owner and mode of the session's file, under `~/.claude/projects` on the host |
1010| `Claude Code wasn't started, because this session can only continue on Amazon Bedrock.` | The device, the host, or the session file no longer passes the checks | See [Where resuming a saved session is available](#where-resuming-a-saved-session-is-available) |
1011| `Claude Code wasn't started, because a check on the host didn't finish.` | Claude Code on the host gave no usable answer | If the message returns and you have a launcher, see [Resume through a corporate launcher](#resume-through-a-corporate-launcher) |
1098| `A resumed session can only use Amazon Bedrock's own address, and Claude Code was started with another address or provider.`, at a resumed session's first message. Before Claude Desktop 7.37095.0, the card is titled `Your organization doesn't allow this API key or provider` | The launcher points Amazon Bedrock requests at a proxy or gateway address. The same happens where `AWS_ENDPOINT_URL`, `AWS_ENDPOINT_URL_BEDROCK`, or `AWS_ENDPOINT_URL_BEDROCK_RUNTIME`, in the SSH user's environment on the host, names an address that isn't an Amazon Bedrock endpoint. If a new session fails too, an `allowedProviders` list in the host's managed settings lacks the provider in use | Have the launcher send resumed sessions to Amazon Bedrock's own address, or unset the variable. See [Resume through a corporate launcher](#resume-through-a-corporate-launcher). Otherwise, have the user start a new session, or resume this one in a terminal on the host. Don't widen `allowedProviders` on the host, unless a new session fails too. In that case, add the provider in use to the list, and no provider other than `bedrock` and `mantle` |
1099| `This session's file or folder on the host is missing or didn't pass a safety check.`, with `Claude Code wasn't started, because this session's file on the host couldn't be checked, can be changed by another user, or holds a command that would run by itself.` under **View details** | At the first message, Claude Desktop checks the session's files again, and refuses one that records a deferred tool call. It also refuses the start if the folder that the session ran in is gone, or the SSH user can't enter it. Before Claude Desktop 7.37095.0, no answer from the host to this check gives the text under **View details** too | Check that the folder that the session ran in exists on the host, and that the SSH user can enter it. Then check that the session's file exists, and its owner and mode, under `~/.claude/projects` |
1100| `This session can only continue on Amazon Bedrock, and that isn't possible here right now.`, with `Claude Code wasn't started, because this session can only continue on Amazon Bedrock.` under **View details** | The device, the host, or the session file no longer passes the checks | See [Where resuming a saved session is available](#where-resuming-a-saved-session-is-available) |
1101| `A check on the host didn't finish.`, with `Claude Code wasn't started, because a check on the host didn't finish.` under **View details** | Claude Code on the host, or the host itself, gave no usable answer | Have the user try again. If the message returns and you have a launcher, see [Resume through a corporate launcher](#resume-through-a-corporate-launcher) |
10121102 
1103The cards in the last four rows are titled `Couldn't start Claude Code on <host>`. Before Claude Desktop 7.37095.0, a card with `Claude Code wasn't started, because` under **View details** is titled `Something went wrong`, and only that text says why. A later version can still show `Something went wrong`, for example after Claude Desktop restarts. Have the user try again to see the reason.
1104 
10131105If the list is empty (`No Claude Code sessions found in this folder on the host.`) or lacks a session, check for these causes:
10141106 
10151107* **This Claude Desktop already has the session for this host**, in the sidebar or archived
1016* **The session isn't among the folder's 30 newest session files**: sessions that aren't listed count among the 30, such as those that this Claude Desktop already has. A user who often works in the folder from Claude Desktop can get a short list, or none, though older terminal sessions are saved there. The user then sees `Some sessions aren't listed.`, under the list or alone. Have the user resume such a session in a terminal on the host.
1108* **The folder has many newer session files**: Claude Desktop takes the folder's 200 newest session files, skips the sessions that it already has for this host, and goes through the rest from the newest. It stops once it has 30 sessions that began in a terminal, or at 60 files, or sooner on a slow host. The user then sees `Some sessions aren't listed.`, under the list or alone. Have the user resume such a session in a terminal on the host. Before Claude Desktop 7.37095.0, it goes through the 30 newest files, and the sessions that it already has count among them.
10171109* **The session was saved for another folder**, a subfolder included: the list goes by the real path of the folder that the user picked, and takes in that folder's Claude Code worktrees
10181110* **A program started the session**: for example, `claude -p`
10191111 
10201112#### Find why resume refuses a host
10211113 
1022To learn why a host doesn't qualify, open `main.log` in the device's [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives). Find the newest line that contains `[SSH] Whether Claude Code on <host> goes to Amazon Bedrock and is held to it:`. Claude Desktop writes such a line each time it asks Claude Code on a connected Linux or macOS host which provider it uses. The line usually ends in one of these words:
1114To learn why a host doesn't qualify, open `main.log` in the device's [logs directory](https://claude.com/docs/third-party/claude-desktop/data-storage.md#where-data-lives). Find the newest line that contains `[SSH] Whether Claude Code on <host> goes to Amazon Bedrock and is held to it:`. Claude Desktop writes such a line each time it asks Claude Code on a connected Linux or macOS host which provider it uses. The line's last word gives the result:
10231115 
10241116| The line ends in | What it means |
10251117| - | - |
Feedback