Use Claude Code in the cloud
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -65,11 +65,11 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. If the terminal prints `Branch <name> is not on GitHub`, see Branch is not on GitHub. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
+This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. If the terminal prints `Branch <name> is not on GitHub`, see Branch is not on GitHub. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it lets you monitor and steer a local CLI session from claude.ai or the Claude app. See [Remote Control](</docs/en/remote-control>).
-Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
+Open the session on claude.ai or the Claude mobile app to check progress or interact directly. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
#### Tips for cloud tasks
@@ -204,7 +204,7 @@
#### Troubleshoot a missing file in the diff view
-A file you expected can be missing from the diff view’s file list when it compares against the base branch, whether or not the session has pushed changes:
+A file you expected can be missing from the diff view’s file list when it compares against the base branch:
* **No changes pushed yet** : the list has Claude’s own edits, but not changes made by commands Claude ran, such as a formatter
* **Changes pushed** : the list has pushed commits, but not changes made after the last push
@@ -227,7 +227,12 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| Yes| Starts a fresh conversation with empty context in the same cloud session
-Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set.
+On these models, a cloud session can reach the context limit before it compacts:
+
+ * Claude Haiku 4.5, Claude Sonnet 4.5, Claude Opus 4.5, and earlier models
+ * Sonnet 4.6 and Opus 4.6 with [extended context](</docs/en/model-config#extended-context>)
+
+On other models, a cloud session compacts automatically before the conversation fills the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>). To compact earlier on any model, set a smaller window, such as `150000`, with [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
#### Use subagents and agent teams
@@ -281,7 +286,7 @@
## Auto-fix pull requests
-Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
+Claude can watch a pull request and automatically respond to CI failures and review comments.
Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>).
@@ -308,15 +313,15 @@
## Security and isolation
-By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility.
-
- * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation and network egress are your deployment’s responsibility.
+
+ * **Network access controls** : in Anthropic-hosted environments, network access from the session’s VM is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. With network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
* **Network secrets** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets
## Troubleshooting
-For runtime API errors that appear in the conversation 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 shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
+For runtime API errors that appear in the conversation such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](</docs/en/errors>).
### Session creation failed
@@ -383,7 +388,7 @@
* **Not restored** : other background work that was still running or pending when the VM was reclaimed, including:
* **Shell commands** : Claude Code tells Claude which commands stopped. Ask Claude to rerun the ones you still need.
* **Subagents** : Claude Code tells Claude which subagents stopped, and which of those can be [resumed](</docs/en/sub-agents#resume-subagents>) instead of started over. Ask Claude to continue their work.
- * **Session-scoped scheduled tasks** : tasks you [scheduled in the session](</docs/en/scheduled-tasks>) and a `/loop` waiting for its next iteration don’t carry over to the reopened session. Ask Claude to schedule the tasks again, or run `/loop` again to restart the loop.
+ * **Session-scoped scheduled tasks** : Ask Claude to [schedule the tasks](</docs/en/scheduled-tasks>) again, or rerun your earlier `/loop` command.
## Limitations
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -57,7 +57,7 @@
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) can send a local session in its Code tab to the cloud from its **Open in** menu.
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository. With `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>).To send a local session from the Code tab of the [Desktop app](</docs/en/desktop#continue-in-another-surface>) to the cloud, select **Continue in cloud** in the session menu.
### Start a cloud session from your terminal
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -172,7 +172,7 @@
* **You’re signed in with an API key or Console account** : run `claude auth login` in your shell, then sign in with claude.ai
* **The error names your provider** : cloud sessions aren’t available through third-party providers. See the error table
- * **You’re already signed in via claude.ai** : your organization may have disabled cloud sessions
+ * **You sign in to claude.ai through an organization** : ask an [Owner](</docs/en/server-managed-settings#access-control>) whether [cloud sessions are turned on](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>)
## Work with sessions
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -217,7 +217,7 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens **Settings > Code** or **Settings > Claude Code** instead of setting a value. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+ * **`/config`** : in your browser at claude.ai/code, opens **Settings > Code** instead of setting a value. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
For context management in a cloud session outside a [project’s threads](</docs/en/claude-projects#choose-models-and-let-claude-manage-context>):
@@ -379,8 +379,8 @@
Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM:
- * **Restored** : your conversation history
- * **Not restored** : background work that was still running or pending when the VM was reclaimed, including:
+ * **Restored** : your conversation history, and tracking of [MCP tasks](</docs/en/mcp#mcp-task-results-in-the-cloud>) still running on a connector
+ * **Not restored** : other background work that was still running or pending when the VM was reclaimed, including:
* **Shell commands** : Claude Code tells Claude which commands stopped. Ask Claude to rerun the ones you still need.
* **Subagents** : Claude Code tells Claude which subagents stopped, and which of those can be [resumed](</docs/en/sub-agents#resume-subagents>) instead of started over. Ask Claude to continue their work.
* **Session-scoped scheduled tasks** : tasks you [scheduled in the session](</docs/en/scheduled-tasks>) and a `/loop` waiting for its next iteration don’t carry over to the reopened session. Ask Claude to schedule the tasks again, or run `/loop` again to restart the loop.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -213,7 +213,7 @@
### Manage context
-Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
+Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
@@ -259,27 +259,7 @@
### Share sessions
-To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients see the latest state when they open the link, but their view doesn’t update in real time.
-
-#### Share from an Enterprise or Team account
-
-Sharing works as follows for Enterprise and Team accounts:
-
- * **Visibility options** : **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization
- * **Repository access** : verification is enabled by default, based on the GitHub account connected to the recipient’s account
- * **Your name** : your account’s display name is visible to all recipients with access
- * **Slack sessions** : [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility
-
-#### Share from a Max, Ultra, or Pro account
-
- * **Visibility options** : **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai
- * **Repository access** : verification isn’t enabled by default
- * **Sensitive content** : check your session before sharing. Sessions may contain code and credentials from private GitHub repositories
-
-To require recipients to have repository access, or to hide your name from shared sessions, open Settings on claude.ai, then:
-
- * **If the Settings menu shows Code instead of Claude Code** : go to [**Privacy**](<https://claude.ai/settings/data-privacy-controls>), which has these settings
- * **Otherwise** : go to [**Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>)
+See [Share a cloud or Remote Control session](</docs/en/share-sessions>) for how to share a session by link, what recipients can read, and how to stop sharing.
### Archive sessions
@@ -312,7 +292,7 @@
* **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
* **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
-To stop monitoring, turn off **Auto-fix** in the pull request’s **⋮** menu in the session’s **Changes** card, or tell Claude to stop watching the PR.
+To stop monitoring, turn off **Auto-fix** in the pull request’s **⋮** menu in the session’s **Changes** card, or tell Claude to stop watching the PR. In a repository where PR Steward works on your pull requests, the **Auto-fix** toggle is unavailable. A request to auto-fix a pull request that PR Steward is watching fails. See [Auto-fix is unavailable](</docs/en/pr-steward-troubleshooting#auto-fix-is-unavailable>).
### How Claude responds to PR activity
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -141,13 +141,13 @@
Pull a cloud session into your terminal using any of these:
- * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first. [`--resume`](</docs/en/sessions#resume-a-session>) reopens a conversation from this machine’s local history and doesn’t list cloud sessions.
+ * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. [`--resume`](</docs/en/sessions#resume-a-session>) reopens a conversation from this machine’s local history and doesn’t list cloud sessions.
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
* **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository.
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation into your terminal.
+When you teleport a session, Claude verifies you’re in the correct repository and loads the conversation into your terminal. To get the session’s branch too, check the requirements and run `claude --teleport`.
If Claude Code has [compacted](</docs/en/context-window#what-survives-compaction>) the cloud session, which it does automatically in a long session, the earlier messages it summarized aren’t copied to your terminal. Claude continues from the summary. To read the original messages, scroll up in the cloud session on claude.ai or in the Claude mobile app.
@@ -155,13 +155,13 @@
#### Teleport requirements
-Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
+Check these requirements before you teleport a session.
Requirement| Details
---|---
-Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
+Clean git state| Commit your changes first, or stash them when Teleport prompts you.
Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
-Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
+Branch available| The branch from the cloud session must have been pushed to the remote. If `claude --teleport` prints `was not checked out`, stop any commands Claude is still running in your checkout, then run the git commands it prints in your own terminal.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
@@ -227,7 +227,11 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| Yes| Starts a fresh conversation with empty context in the same cloud session
-Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set.
+
+#### Use subagents and agent teams
+
+[Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` load automatically. For a project, check [which threads load them](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>). [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
### Plugin suggestions in the conversation
@@ -389,6 +393,7 @@
`Attaching to an existing cloud session is not enabled for your account.`| You ran `--cloud <session-id>` without `-p`. Send the message with `claude -p "your message" --cloud <session-id>`.
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
+`--fork-session can't fork a cloud session, so nothing was opened or sent.`| To message the existing cloud session, run `claude -p "your message" --cloud <session-id>` without `--fork-session`.
### Environment expired
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,6 +1,6 @@
Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If [custom roles](<https://support.claude.com/en/articles/13930452>) govern your access, you also need a role with the cloud sessions permission to start sessions on Anthropic’s infrastructure from the browser, apps, or terminal. Ask an Owner to add it to one of your roles at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>).
-A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
+A cloud session is a Claude Code session that runs on cloud infrastructure. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
* **Browser** : [claude.ai/code](<https://claude.ai/code>), also called Claude Code on the web
* **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
@@ -189,8 +189,8 @@
After Claude pushes its changes to a branch, the **Changes** card in the panel beside the chat shows the lines added and removed, such as `+42 -18`. Click the line counts on the **Changes** card to open the diff view.
- * You can also click **Changes** in the session’s title bar, or in the bar’s **⋮** menu.
- * To show the panel when it’s hidden, click the **Show session rail** icon in the session’s title bar, or in the bar’s **⋮** menu.
+ * To show the panel when it’s hidden, click **Activity panel** or **Show session rail** in the session’s title bar, or **Show session rail** in the bar’s **⋮** menu.
+ * You can also [open **Changes** as a pane](</docs/en/desktop#arrange-your-workspace>).
In the diff view, you can comment on lines and compare against another branch:
@@ -324,13 +324,11 @@
## Security and isolation
-Each cloud session is separated from your machine and from other sessions through several layers:
-
- * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
+By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility.
+
* **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
* **Network secrets** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets
- * **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
## Troubleshooting
@@ -362,9 +360,9 @@
* `Unable to get organization UUID`
* `Cloud sessions need a claude.ai sign-in. Run `claude auth login` (or /login in a local session), then try again.`
* `Cloud sessions aren't available with this Console sign-in. They need a claude.ai sign-in. Run `claude auth login` (or /login in a local session), then try again.`
- * `Error loading Claude Code sessions` in the session picker, when you run `claude --teleport` without a session ID
-
-Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers. From v2.1.274 through v2.1.289, the sign-in message read `Claude Code cloud sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`
+ * `Couldn't load cloud sessions` in the session picker, when you run `claude --teleport` without a session ID. Before v2.1.328, it read `Couldn't load Claude Code sessions` or `Error loading Claude Code sessions`
+
+Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
### Branch is not on GitHub
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -132,8 +132,8 @@
On success, the command prints the session ID and a link to view the session:
Sent to cloud session.
- Session ID: session_01DiUkqY2kzbUbDmW1w96rfi
- View: https://claude.ai/code/session_01DiUkqY2kzbUbDmW1w96rfi?from=cli&m=0
+ Session ID: session_01HJKLMNOPQRSTUVWXYZ
+ View: https://claude.ai/code/session_01HJKLMNOPQRSTUVWXYZ?from=cli&m=0
Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn’t supported with `--cloud <session-id>`. If the send fails, see Errors when sending to a cloud session.
Show diff (491 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -16,11 +16,7 @@
* **Many cloud sessions for one body of work** : a [project](</docs/en/claude-projects>) has Claude start and keep track of them for you
* **Steering a local session from another device** : sessions in your terminal, IDE, or the Desktop app with **Local** selected run on your machine, and [Remote Control](</docs/en/remote-control>) lets you reach them from your phone or browser
-##
-
-
-
-Cloud environments
+## Cloud environments
Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts.
@@ -29,11 +25,7 @@
* **Change what sessions can reach or run at startup** : see [Configure cloud environments](</docs/en/cloud-environments>)
* **What’s installed without any configuration** : see [Installed tools](</docs/en/cloud-environments#installed-tools>)
-##
-
-
-
-GitHub authentication options
+## GitHub authentication options
Cloud sessions need access to your GitHub repositories to clone code and push branches. You can grant access in two ways:
@@ -51,11 +43,7 @@
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, can’t use `/web-setup` or other cloud session features. Organizations that use [customer-managed encryption keys](<https://platform.claude.com/docs/en/manage-claude/cmek>) (CMEK) can’t start cloud sessions either.
-###
-
-
-
-Quick setup for Team and Enterprise
+### Quick setup for Team and Enterprise
Quick setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default. Here’s what changes for members when it’s on:
@@ -65,21 +53,13 @@
An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick setup** toggle at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
-##
-
-
-
-Move tasks between terminal and cloud
+## Move tasks between terminal and cloud
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) can send a local session in its Code tab to the cloud from its **Open in** menu.
-###
-
-
-
-Start a cloud session from your terminal
+### Start a cloud session from your terminal
Start a cloud session from the command line with the `--cloud` flag:
@@ -91,11 +71,7 @@
Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
-####
-
-
-
-Tips for cloud tasks
+#### Tips for cloud tasks
**Plan locally, execute in the cloud** : for complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the cloud:
@@ -113,11 +89,7 @@
When a session completes, you can create a PR from claude.ai/code or teleport the session to your terminal to continue working.
-####
-
-
-
-Send local repositories without GitHub
+#### Send local repositories without GitHub
When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. For a full clone, the bundle includes your repository history across all branches, plus uncommitted changes to tracked files. What happens to uncommitted changes in sensitive files depends on your platform:
@@ -145,11 +117,7 @@
On macOS, Linux, and WSL, a partial clone made with `git clone --filter` uploads as a snapshot of its working tree without history, as long as the clone holds every tracked file locally. For `claude --cloud`, if the repository is on GitHub, you can avoid the upload and its requirements: push your branch, install the Claude GitHub App on the repository, and start the session again so that it clones from GitHub.
-###
-
-
-
-Send follow-ups from the CLI
+### Send follow-ups from the CLI
Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session. The command posts one message and exits:
@@ -159,11 +127,7 @@
`--cloud` requires an Anthropic account. It’s not available when Claude Code is configured for Amazon Bedrock, Google Cloud’s Agent Platform, or another third-party provider. An [LLM gateway](</docs/en/llm-gateway>) configured only through `ANTHROPIC_BASE_URL` doesn’t count as a third-party provider for this check, but you still need to sign in with `claude auth login`. Your organization’s `allow_remote_sessions` policy must also be enabled. An Owner can turn it on in the Claude Code admin settings at claude.ai/admin-settings/claude-code.
-####
-
-
-
-Output
+#### Output
On success, the command prints the session ID and a link to view the session:
@@ -173,11 +137,7 @@
Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn’t supported with `--cloud <session-id>`. If the send fails, see Errors when sending to a cloud session.
-###
-
-
-
-Continue a cloud session in your terminal
+### Continue a cloud session in your terminal
Pull a cloud session into your terminal using any of these:
@@ -193,11 +153,7 @@
The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session.
-####
-
-
-
-Teleport requirements
+#### Teleport requirements
Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
@@ -210,11 +166,7 @@
When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
-####
-
-
-
-`--teleport` is unavailable
+#### `--teleport` is unavailable
Teleport requires claude.ai subscription authentication. Find the case that matches yours:
@@ -222,30 +174,18 @@
* **The error names your provider** : cloud sessions aren’t available through third-party providers. See the error table
* **You’re already signed in via claude.ai** : your organization may have disabled cloud sessions
-##
-
-
-
-Work with sessions
+## Work with sessions
Sessions appear in the sidebar at claude.ai/code. From there you can review changes, share with teammates, archive finished work, or delete sessions permanently.
-###
-
-
-
-Permission modes in cloud sessions
+### Permission modes in cloud sessions
You pick a cloud session’s [permission mode](</docs/en/permission-modes>) from the [mode dropdown](</docs/en/permission-modes#switch-permission-modes>), both when you create the task and while the session runs. Claude Code resumes a session in the permission mode it was in when you do either of these:
* Reopen a session whose Anthropic-hosted environment expired
* Send a message to a session that a self-hosted runner [released while it was idle](</docs/en/self-hosted-environments-reference#runner-cli-flags>)
-###
-
-
-
-Review changes
+### Review changes
After Claude pushes its changes to a branch, the **Changes** card in the panel beside the chat shows the lines added and removed, such as `+42 -18`. Click the line counts on the **Changes** card to open the diff view.
@@ -262,11 +202,7 @@
* **The full walkthrough, including PR creation** : see [Review and iterate](</docs/en/web-quickstart#review-and-iterate>)
* **Having Claude monitor the PR for CI failures and review comments automatically** : see Auto-fix pull requests
-####
-
-
-
-Troubleshoot a missing file in the diff view
+#### Troubleshoot a missing file in the diff view
A file you expected can be missing from the diff view’s file list when it compares against the base branch, whether or not the session has pushed changes:
@@ -275,11 +211,7 @@
To add a missing change to the list, ask Claude to commit and push.
-###
-
-
-
-Manage context
+### Manage context
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
@@ -297,27 +229,15 @@
Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
-###
-
-
-
-Plugin suggestions in the conversation
+### Plugin suggestions in the conversation
A card in the conversation that lists one or more [plugins](</docs/en/plugins/overview>), with an **Add** button, means Claude is suggesting plugins for your task. Claude can make these suggestions without you asking. You don’t have to respond, and Claude carries on with the task either way.
-####
-
-
-
-Add or remove a suggested plugin
+#### Add or remove a suggested plugin
Select **Add** on a plugin to turn it on for your claude.ai account, where it stays on after the session ends. To undo, open the added plugin from the card, select **Manage** to reach the plugin’s page on claude.ai, and remove the plugin from that page.
-####
-
-
-
-Turn off plugin suggestions
+#### Turn off plugin suggestions
To stop Claude from suggesting plugins, deny the `SearchPlugins` and `SuggestPluginInstall` tools with [permission rules](</docs/en/permissions#manage-permissions>). In a session with one repository outside a [project](</docs/en/claude-projects>), commit the rules to that repository’s `.claude/settings.json`, listing both tool names under `permissions.deny`:
@@ -329,27 +249,15 @@
Claude Code ignores permission rules in the repository’s `.claude/settings.json`, including these deny rules, when the [managed settings](</docs/en/managed-settings>) that apply to the session set [`allowManagedPermissionRulesOnly`](</docs/en/settings-reference#allowmanagedpermissionrulesonly>). In that case, put the rules in those managed settings instead. For other setups, such as a session with several repositories or a cloud thread in a project, see which [settings reach a cloud session](</docs/en/settings#settings-in-cloud-sessions>).
-###
-
-
-
-Take back a queued message
+### Take back a queued message
If you send a message while Claude is working, the message queues until Claude reads it. To take a queued message back, click the ✕ on it. The text returns to the message box so you can edit it or send something else. If Claude has already read the message, it stays in the conversation.
-###
-
-
-
-Share sessions
+### Share sessions
To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients see the latest state when they open the link, but their view doesn’t update in real time.
-####
-
-
-
-Share from an Enterprise or Team account
+#### Share from an Enterprise or Team account
Sharing works as follows for Enterprise and Team accounts:
@@ -358,11 +266,7 @@
* **Your name** : your account’s display name is visible to all recipients with access
* **Slack sessions** : [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility
-####
-
-
-
-Share from a Max, Ultra, or Pro account
+#### Share from a Max, Ultra, or Pro account
* **Visibility options** : **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai
* **Repository access** : verification isn’t enabled by default
@@ -373,27 +277,15 @@
* **If the Settings menu shows Code instead of Claude Code** : go to [**Privacy**](<https://claude.ai/settings/data-privacy-controls>), which has these settings
* **Otherwise** : go to [**Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>)
-###
-
-
-
-Archive sessions
+### Archive sessions
Archive a session to remove it from the sidebar’s session list. To archive one, hover over it in the sidebar, open its **⋯** menu, and select **Archive**.
-####
-
-
-
-Find an archived session
+#### Find an archived session
To see your archived sessions, go to [claude.ai/code/sessions](<https://claude.ai/code/sessions>) and open the **Archived** tab. To put one back in the sidebar’s session list, hover over it on that tab, open its **⋮** menu, and select **Unarchive**.
-###
-
-
-
-Delete sessions
+### Delete sessions
Deleting a session permanently removes the session and its data. This action can’t be undone. Delete a session from the sidebar, from the session menu, or from the **Archived** tab if you’ve already archived it:
@@ -403,11 +295,7 @@
You will be asked to confirm before a session is deleted.
-##
-
-
-
-Auto-fix pull requests
+## Auto-fix pull requests
Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
@@ -422,11 +310,7 @@
To stop monitoring, turn off **Auto-fix** in the pull request’s **⋮** menu in the session’s **Changes** card, or tell Claude to stop watching the PR.
-###
-
-
-
-How Claude responds to PR activity
+### How Claude responds to PR activity
When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
@@ -438,11 +322,7 @@
If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
-##
-
-
-
-Security and isolation
+## Security and isolation
Each cloud session is separated from your machine and from other sessions through several layers:
@@ -452,19 +332,11 @@
* **Network secrets** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
-##
-
-
-
-Troubleshooting
+## Troubleshooting
For runtime API errors that appear in the conversation 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 shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
-###
-
-
-
-Session creation failed
+### Session creation failed
If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a VM for the session.
@@ -472,30 +344,18 @@
* Retry after a minute, as capacity is provisioned on demand
* Confirm your GitHub connection can reach the repository by following [No repositories appear after connecting GitHub](</docs/en/web-quickstart#no-repositories-appear-after-connecting-github>)
-###
-
-
-
-Your new session couldn’t start
+### Your new session couldn’t start
Your prompt is back in the box you sent it from.
* **Connection lost** : check your internet connection and any VPN or proxy you use, then send your prompt again
* **Server error** : wait a moment, then send your prompt again. If the notice reappears, check [status.claude.com](<https://status.claude.com>)
-###
-
-
-
-Can’t rewind to this message
+### Can’t rewind to this message
**Rewind to here** fails with this error on any message except the newest when your session runs on a [self-hosted runner](</docs/en/self-hosted-environments>) with Claude Code before v2.1.246. Ask whoever runs your organization’s runners to [upgrade them](</docs/en/self-hosted-environments-deploy#pin-the-version>).
-###
-
-
-
-Unable to get organization UUID
+### Unable to get organization UUID
`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key or a Console sign-in instead, or your stored account details are stale, you see a message such as:
@@ -506,19 +366,11 @@
Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers. From v2.1.274 through v2.1.289, the sign-in message read `Claude Code cloud sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`
-###
-
-
-
-Branch is not on GitHub
+### Branch is not on GitHub
When `claude --cloud` prints a line starting with `Branch <name> is not on GitHub`, the cloud session still starts, but not from your branch. The line names where the session starts instead: a pushed commit from your branch’s history, or the repository’s default branch. Commits that exist only on your machine and uncommitted changes aren’t in the session. You see this line when, for example, you never pushed the branch, or GitHub deleted it after its pull request merged. If the starting point the line names has what your task needs, use the session as it is. Otherwise, push the branch and start a new session so that it clones your branch.
-###
-
-
-
-Remote Control session expired or access denied
+### Remote Control session expired or access denied
`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session expired` or `Access denied`. The connection token is short-lived and scoped to your account.
@@ -526,11 +378,7 @@
* Confirm you are signed in to the same account that owns the session
* If you see `Remote Control may not be available for this organization`, an Owner has not enabled cloud sessions for your organization
-###
-
-
-
-Errors when sending to a cloud session
+### Errors when sending to a cloud session
These errors come from running `claude` with `--cloud <session-id>`, with or without `-p`. The CLI prefixes errors with `Error: `. A failed delivery is wrapped as `failed to send message to cloud session <id>: <reason>`.
@@ -544,11 +392,7 @@
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
-###
-
-
-
-Environment expired
+### Environment expired
Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM:
@@ -558,11 +402,7 @@
* **Subagents** : Claude Code tells Claude which subagents stopped, and which of those can be [resumed](</docs/en/sub-agents#resume-subagents>) instead of started over. Ask Claude to continue their work.
* **Session-scoped scheduled tasks** : tasks you [scheduled in the session](</docs/en/scheduled-tasks>) and a `/loop` waiting for its next iteration don’t carry over to the reopened session. Ask Claude to schedule the tasks again, or run `/loop` again to restart the loop.
-##
-
-
-
-Limitations
+## Limitations
Before relying on cloud sessions for a workflow, account for these constraints:
@@ -572,11 +412,7 @@
* **Platform restrictions** : repository cloning in Anthropic-hosted environments and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
* **Self-hosted environments** : for a repository on another git host, see the [requirements for starting a session with `--environment`](</docs/en/self-hosted-environments-deploy#start-a-session-on-a-repository-outside-github>).
-##
-
-
-
-Related resources
+## Related resources
* [Cloud environments](</docs/en/cloud-environments>): configure network access, environment variables, and setup scripts for cloud sessions
* [Projects](</docs/en/claude-projects>): one conversation where Claude coordinates parallel cloud sessions on your repositories and reports back
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -24,7 +24,7 @@
Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts.
- * **Your first environment** : if you don’t have one yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan
+ * **Your first environment** : if you don’t have one yet, onboarding sets up a **Default** environment with [**Limited** network access](</docs/en/cloud-environments#access-levels>). See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how that works on your plan
* **Which environment a session uses** : see [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how sessions choose an environment when you have more than one
* **Change what sessions can reach or run at startup** : see [Configure cloud environments](</docs/en/cloud-environments>)
* **What’s installed without any configuration** : see [Installed tools](</docs/en/cloud-environments#installed-tools>)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -185,7 +185,7 @@
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
- * **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
+ * **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository.
When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation into your terminal.
@@ -571,9 +571,6 @@
* **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
* **Platform restrictions** : repository cloning in Anthropic-hosted environments and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
* **Self-hosted environments** : for a repository on another git host, see the [requirements for starting a session with `--environment`](</docs/en/self-hosted-environments-deploy#start-a-session-on-a-repository-outside-github>).
- * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error.
- * **Code Review and scheduled tasks** : the same applies to [Code Review](</docs/en/code-review>) and to [cloud scheduled tasks](</docs/en/routines>) that run on Anthropic-hosted environments. A scheduled task routed to a self-hosted environment calls the API from your own network.
- * **Getting an exemption** : contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,4 +1,4 @@
-Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If [custom roles](<https://support.claude.com/en/articles/13930452>) govern your access, you also need a role with the cloud sessions permission to start sessions on Anthropic’s infrastructure from the browser, apps, or terminal. Ask an Owner to add it to one of your roles at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>).
+Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If [custom roles](<https://support.claude.com/en/articles/13930452>) govern your access, you also need a role with the cloud sessions permission to start sessions on Anthropic’s infrastructure from the browser, apps, or terminal. Ask an Owner to add it to one of your roles at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>).
A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
@@ -362,9 +362,7 @@
-Share from a Max or Pro account
-
-Sharing works as follows for Max and Pro accounts:
+Share from a Max, Ultra, or Pro account
* **Visibility options** : **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai
* **Repository access** : verification isn’t enabled by default
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -181,13 +181,17 @@
Pull a cloud session into your terminal using any of these:
- * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
+ * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first. [`--resume`](</docs/en/sessions#resume-a-session>) reopens a conversation from this machine’s local history and doesn’t list cloud sessions.
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
* **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
+When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation into your terminal.
+
+If Claude Code has [compacted](</docs/en/context-window#what-survives-compaction>) the cloud session, which it does automatically in a long session, the earlier messages it summarized aren’t copied to your terminal. Claude continues from the summary. To read the original messages, scroll up in the cloud session on claude.ai or in the Claude mobile app.
+
+The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session.
####
@@ -567,7 +571,8 @@
* **Rate limits** : cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately.
* **Time limits** : commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time limits](</docs/en/cloud-environments#time-limits>)
* **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
- * **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
+ * **Platform restrictions** : repository cloning in Anthropic-hosted environments and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
+ * **Self-hosted environments** : for a repository on another git host, see the [requirements for starting a session with `--environment`](</docs/en/self-hosted-environments-deploy#start-a-session-on-a-repository-outside-github>).
* **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error.
* **Code Review and scheduled tasks** : the same applies to [Code Review](</docs/en/code-review>) and to [cloud scheduled tasks](</docs/en/routines>) that run on Anthropic-hosted environments. A scheduled task routed to a self-hosted environment calls the API from your own network.
* **Getting an exemption** : contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -214,7 +214,7 @@
Teleport requires claude.ai subscription authentication. Find the case that matches yours:
- * **You’re authenticated via API key** : run `/login` to sign in with your claude.ai account instead
+ * **You’re signed in with an API key or Console account** : run `claude auth login` in your shell, then sign in with claude.ai
* **The error names your provider** : cloud sessions aren’t available through third-party providers. See the error table
* **You’re already signed in via claude.ai** : your organization may have disabled cloud sessions
@@ -495,10 +495,11 @@
Unable to get organization UUID
-`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, you see one of these:
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key or a Console sign-in instead, or your stored account details are stale, you see a message such as:
* `Unable to get organization UUID`
* `Cloud sessions need a claude.ai sign-in. Run `claude auth login` (or /login in a local session), then try again.`
+ * `Cloud sessions aren't available with this Console sign-in. They need a claude.ai sign-in. Run `claude auth login` (or /login in a local session), then try again.`
* `Error loading Claude Code sessions` in the session picker, when you run `claude --teleport` without a session ID
Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers. From v2.1.274 through v2.1.289, the sign-in message read `Claude Code cloud sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -258,6 +258,19 @@
* **The full walkthrough, including PR creation** : see [Review and iterate](</docs/en/web-quickstart#review-and-iterate>)
* **Having Claude monitor the PR for CI failures and review comments automatically** : see Auto-fix pull requests
+####
+
+
+
+Troubleshoot a missing file in the diff view
+
+A file you expected can be missing from the diff view’s file list when it compares against the base branch, whether or not the session has pushed changes:
+
+ * **No changes pushed yet** : the list has Claude’s own edits, but not changes made by commands Claude ran, such as a formatter
+ * **Changes pushed** : the list has pushed commits, but not changes made after the last push
+
+To add a missing change to the list, ask Claude to commit and push.
+
###
@@ -268,7 +281,7 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+ * **`/config`** : in your browser at claude.ai/code, opens **Settings > Code** or **Settings > Claude Code** instead of setting a value. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
For context management in a cloud session outside a [project’s threads](</docs/en/claude-projects#choose-models-and-let-claude-manage-context>):
@@ -353,7 +366,10 @@
* **Repository access** : verification isn’t enabled by default
* **Sensitive content** : check your session before sharing. Sessions may contain code and credentials from private GitHub repositories
-To require recipients to have repository access, or to hide your name from shared sessions, go to [**Settings > Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>).
+To require recipients to have repository access, or to hide your name from shared sessions, open Settings on claude.ai, then:
+
+ * **If the Settings menu shows Code instead of Claude Code** : go to [**Privacy**](<https://claude.ai/settings/data-privacy-controls>), which has these settings
+ * **Otherwise** : go to [**Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>)
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -279,6 +279,38 @@
`/clear`| Yes| Starts a fresh conversation with empty context in the same cloud session
Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+
+###
+
+
+
+Plugin suggestions in the conversation
+
+A card in the conversation that lists one or more [plugins](</docs/en/plugins/overview>), with an **Add** button, means Claude is suggesting plugins for your task. Claude can make these suggestions without you asking. You don’t have to respond, and Claude carries on with the task either way.
+
+####
+
+
+
+Add or remove a suggested plugin
+
+Select **Add** on a plugin to turn it on for your claude.ai account, where it stays on after the session ends. To undo, open the added plugin from the card, select **Manage** to reach the plugin’s page on claude.ai, and remove the plugin from that page.
+
+####
+
+
+
+Turn off plugin suggestions
+
+To stop Claude from suggesting plugins, deny the `SearchPlugins` and `SuggestPluginInstall` tools with [permission rules](</docs/en/permissions#manage-permissions>). In a session with one repository outside a [project](</docs/en/claude-projects>), commit the rules to that repository’s `.claude/settings.json`, listing both tool names under `permissions.deny`:
+
+ {
+ "permissions": {
+ "deny": ["SearchPlugins", "SuggestPluginInstall"]
+ }
+ }
+
+Claude Code ignores permission rules in the repository’s `.claude/settings.json`, including these deny rules, when the [managed settings](</docs/en/managed-settings>) that apply to the session set [`allowManagedPermissionRulesOnly`](</docs/en/settings-reference#allowmanagedpermissionrulesonly>). In that case, put the rules in those managed settings instead. For other setups, such as a session with several repositories or a cloud thread in a project, see which [settings reach a cloud session](</docs/en/settings#settings-in-cloud-sessions>).
###
Show diff (107 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,10 +1,10 @@
-Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If your Enterprise organization manages your access with [custom roles](<https://support.claude.com/en/articles/13930452>), you also need a role that includes the cloud sessions permission. Ask an Owner to check your roles and add it at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>) if it’s missing.
+Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If [custom roles](<https://support.claude.com/en/articles/13930452>) govern your access, you also need a role with the cloud sessions permission to start sessions on Anthropic’s infrastructure from the browser, apps, or terminal. Ask an Owner to add it to one of your roles at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>).
A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
* **Browser** : [claude.ai/code](<https://claude.ai/code>), also called Claude Code on the web
* **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
- * **Desktop app** : select **Cloud** instead of **Local** when you [start a session](</docs/en/desktop#run-long-running-tasks-in-the-cloud>)
+ * **Desktop app** : select an environment under **Cloud** in the environment selector when you [start a session](</docs/en/desktop#run-long-running-tasks-in-the-cloud>)
* **Terminal** : `claude --cloud`
* **Cloud scheduled tasks** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
@@ -243,7 +243,17 @@
Review changes
-Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. The diff view compares the session’s changes against its base branch by default. To compare against any other branch in the repository, select **Compare against** and pick one. Claude Code computes these diffs from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. These steps are covered elsewhere:
+After Claude pushes its changes to a branch, the **Changes** card in the panel beside the chat shows the lines added and removed, such as `+42 -18`. Click the line counts on the **Changes** card to open the diff view.
+
+ * You can also click **Changes** in the session’s title bar, or in the bar’s **⋮** menu.
+ * To show the panel when it’s hidden, click the **Show session rail** icon in the session’s title bar, or in the bar’s **⋮** menu.
+
+In the diff view, you can comment on lines and compare against another branch:
+
+ * **Comment** : leave inline comments on specific lines, then send the comments to Claude with your next message
+ * **Compare** : the diff view compares the session’s changes against its base branch by default. To compare against any other branch in the repository, select **Compare against** and pick one
+
+Claude Code computes these diffs from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. These steps are covered elsewhere:
* **The full walkthrough, including PR creation** : see [Review and iterate](</docs/en/web-quickstart#review-and-iterate>)
* **Having Claude monitor the PR for CI failures and review comments automatically** : see Auto-fix pull requests
@@ -319,7 +329,15 @@
Archive sessions
-You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and select the archive icon.
+Archive a session to remove it from the sidebar’s session list. To archive one, hover over it in the sidebar, open its **⋯** menu, and select **Archive**.
+
+####
+
+
+
+Find an archived session
+
+To see your archived sessions, go to [claude.ai/code/sessions](<https://claude.ai/code/sessions>) and open the **Archived** tab. To put one back in the sidebar’s session list, hover over it on that tab, open its **⋮** menu, and select **Unarchive**.
###
@@ -327,10 +345,11 @@
Delete sessions
-Deleting a session permanently removes the session and its data. This action can’t be undone. You can delete a session in two ways:
-
- * **From the sidebar** : filter for archived sessions, then hover over the session you want to delete and select the delete icon
+Deleting a session permanently removes the session and its data. This action can’t be undone. Delete a session from the sidebar, from the session menu, or from the **Archived** tab if you’ve already archived it:
+
+ * **From the sidebar** : hover over the session, open its **⋯** menu, and select **Delete**
* **From the session menu** : open a session, select the dropdown next to the session title, and select **Delete**
+ * **From the Archived tab** : hover over the session on the **Archived** tab, open its **⋮** menu, and select **Delete**
You will be asked to confirm before a session is deleted.
@@ -346,12 +365,12 @@
There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
- * **PRs created in a cloud session** : open the session at claude.ai/code, open the CI status bar, and select **Auto-fix**
+ * **PRs created in a cloud session** : open the session at claude.ai/code and find the pull request in the **Changes** card. Open the **⋮** menu next to the pull request’s title and turn on **Auto-fix**
* **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a cloud session, and turns on auto-fix in one step
* **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
* **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
-Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the session at claude.ai/code and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
+To stop monitoring, turn off **Auto-fix** in the pull request’s **⋮** menu in the session’s **Changes** card, or tell Claude to stop watching the PR.
###
@@ -402,6 +421,25 @@
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
* Confirm your GitHub connection can reach the repository by following [No repositories appear after connecting GitHub](</docs/en/web-quickstart#no-repositories-appear-after-connecting-github>)
+
+###
+
+
+
+Your new session couldn’t start
+
+Your prompt is back in the box you sent it from.
+
+ * **Connection lost** : check your internet connection and any VPN or proxy you use, then send your prompt again
+ * **Server error** : wait a moment, then send your prompt again. If the notice reappears, check [status.claude.com](<https://status.claude.com>)
+
+###
+
+
+
+Can’t rewind to this message
+
+**Rewind to here** fails with this error on any message except the newest when your session runs on a [self-hosted runner](</docs/en/self-hosted-environments>) with Claude Code before v2.1.246. Ask whoever runs your organization’s runners to [upgrade them](</docs/en/self-hosted-environments-deploy#pin-the-version>).
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -258,15 +258,15 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
-
-For context management specifically:
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+
+For context management in a cloud session outside a [project’s threads](</docs/en/claude-projects#choose-models-and-let-claude-manage-context>):
Command| Works in cloud sessions| Notes
---|---|---
`/compact`| Yes| Summarizes the conversation to free up context. Accepts optional focus instructions like `/compact keep the test output`
`/context`| Yes| Shows what’s currently in the context window
-`/clear`| No| Start a new session from the sidebar instead
+`/clear`| Yes| Starts a fresh conversation with empty context in the same cloud session
Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,4 +1,4 @@
-Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.
+Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. If your Enterprise organization manages your access with [custom roles](<https://support.claude.com/en/articles/13930452>), you also need a role that includes the cloud sessions permission. Ask an Owner to check your roles and add it at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>) if it’s missing.
A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
@@ -258,7 +258,7 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>), commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>)’s threads, commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
For context management specifically:
@@ -464,7 +464,10 @@
Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM:
* **Restored** : your conversation history
- * **Not restored** : background work that was still running when the VM was reclaimed, such as subagents and shell commands, and the pending wakeup of a [self-paced `/loop`](</docs/en/scheduled-tasks#let-claude-choose-the-interval>). To restart the loop, run `/loop` again.
+ * **Not restored** : background work that was still running or pending when the VM was reclaimed, including:
+ * **Shell commands** : Claude Code tells Claude which commands stopped. Ask Claude to rerun the ones you still need.
+ * **Subagents** : Claude Code tells Claude which subagents stopped, and which of those can be [resumed](</docs/en/sub-agents#resume-subagents>) instead of started over. Ask Claude to continue their work.
+ * **Session-scoped scheduled tasks** : tasks you [scheduled in the session](</docs/en/scheduled-tasks>) and a `/loop` waiting for its next iteration don’t carry over to the reopened session. Ask Claude to schedule the tasks again, or run `/loop` again to restart the loop.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -85,7 +85,7 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
+This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. If the terminal prints `Branch <name> is not on GitHub`, see Branch is not on GitHub. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it lets you monitor and steer a local CLI session from claude.ai or the Claude app. See [Remote Control](</docs/en/remote-control>).
@@ -258,7 +258,7 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment. In a session with one repository outside a [project](</docs/en/claude-projects>), commit the key to that repository’s `.claude/settings.json` instead. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
For context management specifically:
@@ -268,7 +268,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Outside a [project](</docs/en/claude-projects#what-threads-pick-up-from-your-repositories>)’s threads, subagents defined in your repo’s `.claude/agents/` load automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
@@ -416,6 +416,14 @@
* `Error loading Claude Code sessions` in the session picker, when you run `claude --teleport` without a session ID
Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers. From v2.1.274 through v2.1.289, the sign-in message read `Claude Code cloud sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`
+
+###
+
+
+
+Branch is not on GitHub
+
+When `claude --cloud` prints a line starting with `Branch <name> is not on GitHub`, the cloud session still starts, but not from your branch. The line names where the session starts instead: a pushed commit from your branch’s history, or the repository’s default branch. Commits that exist only on your machine and uncommitted changes aren’t in the session. You see this line when, for example, you never pushed the branch, or GitHub deleted it after its pull request merged. If the starting point the line names has what your task needs, use the session as it is. Otherwise, push the branch and start a new session so that it clones your branch.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -6,7 +6,7 @@
* **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
* **Desktop app** : select **Cloud** instead of **Local** when you [start a session](</docs/en/desktop#run-long-running-tasks-in-the-cloud>)
* **Terminal** : `claude --cloud`
- * **Routines** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
+ * **Cloud scheduled tasks** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
Once you’re set up, use this page to move work between your terminal and the cloud, manage and share sessions, turn on auto-fix for pull requests, and troubleshoot.
@@ -470,7 +470,9 @@
* **Time limits** : commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time limits](</docs/en/cloud-environments#time-limits>)
* **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
- * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and to [routines](</docs/en/routines>) that run on Anthropic-hosted environments; a routine routed to a self-hosted environment calls the API from your own network. Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
+ * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error.
+ * **Code Review and scheduled tasks** : the same applies to [Code Review](</docs/en/code-review>) and to [cloud scheduled tasks](</docs/en/routines>) that run on Anthropic-hosted environments. A scheduled task routed to a self-hosted environment calls the API from your own network.
+ * **Getting an exemption** : contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
##
@@ -481,7 +483,7 @@
* [Cloud environments](</docs/en/cloud-environments>): configure network access, environment variables, and setup scripts for cloud sessions
* [Projects](</docs/en/claude-projects>): one conversation where Claude coordinates parallel cloud sessions on your repositories and reports back
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
- * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
+ * [Cloud scheduled tasks](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
* [All settings](</docs/en/settings-reference>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -49,7 +49,7 @@
In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic’s servers and never enter a session’s VM. GitHub operations from the VM go through the [GitHub proxy](</docs/en/cloud-environments#github-proxy>), which attaches the credential on the server side. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it.
-Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, can’t use `/web-setup` or other cloud session features.
+Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, can’t use `/web-setup` or other cloud session features. Organizations that use [customer-managed encryption keys](<https://platform.claude.com/docs/en/manage-claude/cmek>) (CMEK) can’t start cloud sessions either.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -380,7 +380,7 @@
* **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
* **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
- * **Network secrets** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets, and Team and Enterprise plans don’t have them yet
+ * **Network secrets** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -256,7 +256,7 @@
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
- * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>).
+ * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
* **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
@@ -440,8 +440,9 @@
Message| What it means
---|---
`Cloud sessions aren't available with <provider>. They run on Anthropic's infrastructure and require an Anthropic account.`| Claude Code is configured for a third-party provider. The message names the provider with the label your configuration uses, such as `Amazon Bedrock` or `Google Vertex AI`. Remove that provider’s configuration, for example by unsetting `CLAUDE_CODE_USE_BEDROCK`, and sign in with an Anthropic account (`claude auth login`).
-`Cloud sessions are disabled by your organization's policy. Contact your organization admin to enable them.`| The `allow_remote_sessions` organization policy is off.
-`Couldn't verify your organization's policy for cloud sessions. Check your network connection and try again.`| Claude Code couldn’t fetch your organization’s policy, so it refuses the send rather than assume cloud sessions are allowed. Check your network connection and retry.
+`Cloud sessions are disabled by your organization's policy. Contact your organization admin to enable them.`| Your organization’s `allow_remote_sessions` policy is off; see [Cloud sessions are disabled by your organization’s policy](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). If the message instead names a credential this session is using, see [Cloud sessions use your claude.ai login](</docs/en/errors#cloud-sessions-use-your-claude-ai-login>).
+`Couldn't verify your organization's policy for cloud sessions. Check your network connection and try again.`| Claude Code hasn’t finished loading your organization’s policy, so it refuses the send rather than assume cloud sessions are allowed. Check your network connection and retry.
+`Cloud sessions aren't available:` followed by a cause| Loading your organization’s policy failed, and the rest of the message says how. Act on the cause it names; see [Couldn’t verify your organization’s policy for cloud sessions](</docs/en/errors#couldnt-verify-your-organizations-policy-for-cloud-sessions>).
`Attaching to an existing cloud session is not enabled for your account.`| You ran `--cloud <session-id>` without `-p`. Send the message with `claude -p "your message" --cloud <session-id>`.
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -79,7 +79,7 @@
-From terminal to cloud
+Start a cloud session from your terminal
Start a cloud session from the command line with the `--cloud` flag:
@@ -177,7 +177,7 @@
-From cloud to terminal
+Continue a cloud session in your terminal
Pull a cloud session into your terminal using any of these:
@@ -455,7 +455,7 @@
Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM:
* **Restored** : your conversation history
- * **Not restored** : background work that was still running when the VM was reclaimed, such as subagents and shell commands
+ * **Not restored** : background work that was still running when the VM was reclaimed, such as subagents and shell commands, and the pending wakeup of a [self-paced `/loop`](</docs/en/scheduled-tasks#let-claude-choose-the-interval>). To restart the loop, run `/loop` again.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,6 +1,6 @@
Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.
-A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
+A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan’s usage limits alongside the rest of your Claude and Claude Code usage, and there’s no separate charge for the cloud VM. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
* **Browser** : [claude.ai/code](<https://claude.ai/code>), also called Claude Code on the web
* **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
@@ -465,7 +465,7 @@
Before relying on cloud sessions for a workflow, account for these constraints:
- * **Rate limits** : cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
+ * **Rate limits** : cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately.
* **Time limits** : commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time limits](</docs/en/cloud-environments#time-limits>)
* **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -380,7 +380,7 @@
* **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
* **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
- * **API credentials** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials, and Team and Enterprise plans don’t have them yet
+ * **Network secrets** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-network-secrets>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have network secrets, and Team and Enterprise plans don’t have them yet
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -412,10 +412,10 @@
`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, you see one of these:
* `Unable to get organization UUID`
- * A message that API key authentication is not sufficient
+ * `Cloud sessions need a claude.ai sign-in. Run `claude auth login` (or /login in a local session), then try again.`
* `Error loading Claude Code sessions` in the session picker, when you run `claude --teleport` without a session ID
-Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
+Run [`claude auth login`](</docs/en/cli-reference#cli-commands>) in your shell to sign in with your claude.ai account, then retry the command. Inside a running session, `/login` does the same. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers. From v2.1.274 through v2.1.289, the sign-in message read `Claude Code cloud sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -49,21 +49,21 @@
In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic’s servers and never enter a session’s VM. GitHub operations from the VM go through the [GitHub proxy](</docs/en/cloud-environments#github-proxy>), which attaches the credential on the server side. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it.
-Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
-
-###
-
-
-
-Quick web setup for Team and Enterprise
-
-Quick web setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default. Here’s what changes for members when it’s on:
+Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, can’t use `/web-setup` or other cloud session features.
+
+###
+
+
+
+Quick setup for Team and Enterprise
+
+Quick setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default. Here’s what changes for members when it’s on:
* **`/web-setup`** : members can connect GitHub with `/web-setup`. While the setting is off, the command is hidden
* **GitHub App prompt** : browser onboarding skips the Claude GitHub App install prompt
* **First environment** : browser onboarding creates the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for members instead of showing the environment form
-An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick setup** toggle at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
##
Show diff (625 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,6 +1,6 @@
Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.
-A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. You can start a cloud session from any of these surfaces:
+A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. To let cloud sessions clone your code from GitHub and push branches, connect GitHub with one of the GitHub connection methods. If your repository is on GitLab, Bitbucket, or another host, see Platform restrictions for what works. You can start a cloud session from any of these surfaces:
* **Browser** : [claude.ai/code](<https://claude.ai/code>), also called Claude Code on the web
* **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
@@ -8,19 +8,13 @@
* **Terminal** : `claude --cloud`
* **Routines** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
-To have Claude start and keep track of many cloud sessions for one body of work, use a [project](</docs/en/claude-projects>). A session in your terminal, your IDE, or the Desktop app with **Local** selected runs on your own machine instead. To steer one of those local sessions from your phone or browser, use [Remote Control](</docs/en/remote-control>).
-
-New to cloud sessions? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
-
-This page covers:
-
- * Cloud environments: where sessions run, and where to configure that
- * GitHub authentication options: two ways to connect GitHub
- * Move tasks between terminal and cloud with `--cloud` and `--teleport`
- * Work with sessions: permission modes, reviewing, sharing, archiving, deleting
- * Auto-fix pull requests: respond automatically to CI failures and review comments
- * Security and isolation: how sessions are isolated
- * Limitations: rate limits and platform restrictions
+Once you’re set up, use this page to move work between your terminal and the cloud, manage and share sessions, turn on auto-fix for pull requests, and troubleshoot.
+
+These cases are covered on other pages:
+
+ * **Starting your first cloud session** : [Get started with cloud sessions](</docs/en/web-quickstart>) connects GitHub and walks through a task in the browser
+ * **Many cloud sessions for one body of work** : a [project](</docs/en/claude-projects>) has Claude start and keep track of them for you
+ * **Steering a local session from another device** : sessions in your terminal, IDE, or the Desktop app with **Local** selected run on your machine, and [Remote Control](</docs/en/remote-control>) lets you reach them from your phone or browser
##
@@ -28,7 +22,12 @@
Cloud environments
-Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the browser, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use organization-level environments only, either [shared environments](</docs/en/cloud-environments#organization-shared-environments>) or [self-hosted environments](</docs/en/self-hosted-environments>). See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts.
+
+ * **Your first environment** : if you don’t have one yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan
+ * **Which environment a session uses** : see [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how sessions choose an environment when you have more than one
+ * **Change what sessions can reach or run at startup** : see [Configure cloud environments](</docs/en/cloud-environments>)
+ * **What’s installed without any configuration** : see [Installed tools](</docs/en/cloud-environments#installed-tools>)
##
@@ -43,10 +42,29 @@
**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>)| Any public repository, and private repositories that the Claude GitHub App is installed on| Browser onboarding; teams that want Auto-fix
**`/web-setup`**| Run `/web-setup` in your terminal to send your local `gh` CLI token to your Claude account| Any repository your `gh` token can access, whether or not the Claude GitHub App is installed| Individual developers who already use `gh`
-Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. Threads in a [project](</docs/en/claude-projects>) need the Claude GitHub App installed on each repository they clone, whichever method you connected with. See [Set up GitHub access](</docs/en/claude-projects#set-up-github-access>). In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic’s servers and never enter a session’s VM. GitHub operations from the VM go through the [GitHub proxy](</docs/en/cloud-environments#github-proxy>), which attaches the credential on the server side. For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+These features depend on the Claude GitHub App being installed on the repository:
+
+ * **Auto-fix** : installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it
+ * **Projects** : threads in a [project](</docs/en/claude-projects>) need the Claude GitHub App installed on each repository they clone, whichever method you connected with. See [Set up GitHub access](</docs/en/claude-projects#set-up-github-access>)
+
+In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic’s servers and never enter a session’s VM. GitHub operations from the VM go through the [GitHub proxy](</docs/en/cloud-environments#github-proxy>), which attaches the credential on the server side. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it.
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
+###
+
+
+
+Quick web setup for Team and Enterprise
+
+Quick web setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default. Here’s what changes for members when it’s on:
+
+ * **`/web-setup`** : members can connect GitHub with `/web-setup`. While the setting is off, the command is hidden
+ * **GitHub App prompt** : browser onboarding skips the Claude GitHub App install prompt
+ * **First environment** : browser onboarding creates the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for members instead of showing the environment form
+
+An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+
##
@@ -55,7 +73,7 @@
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a **Continue in** menu that can send a local session to the cloud.
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) can send a local session in its Code tab to the cloud from its **Open in** menu.
###
@@ -133,7 +151,7 @@
Send follow-ups from the CLI
-Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session, and it’s the same in every shell, including PowerShell. The command posts one message and exits:
+Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session. The command posts one message and exits:
claude -p "your message" --cloud <session-id>
@@ -145,7 +163,7 @@
-Output and errors
+Output
On success, the command prints the session ID and a link to view the session:
@@ -153,7 +171,271 @@
Session ID: session_01DiUkqY2kzbUbDmW1w96rfi
View: https://claude.ai/code/session_01DiUkqY2kzbUbDmW1w96rfi?from=cli&m=0
-Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn’t supported with `--cloud <session-id>`. The CLI prefixes errors with `Error: `. A failed delivery is wrapped as `failed to send message to cloud session <id>: <reason>`.
+Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn’t supported with `--cloud <session-id>`. If the send fails, see Errors when sending to a cloud session.
+
+###
+
+
+
+From cloud to terminal
+
+Pull a cloud session into your terminal using any of these:
+
+ * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
+ * **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
+ * **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
+ * **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
+ * **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
+
+When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
+
+####
+
+
+
+Teleport requirements
+
+Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
+
+Requirement| Details
+---|---
+Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
+Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
+Same account| You must be authenticated to the same claude.ai account used in the cloud session.
+
+When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
+
+####
+
+
+
+`--teleport` is unavailable
+
+Teleport requires claude.ai subscription authentication. Find the case that matches yours:
+
+ * **You’re authenticated via API key** : run `/login` to sign in with your claude.ai account instead
+ * **The error names your provider** : cloud sessions aren’t available through third-party providers. See the error table
+ * **You’re already signed in via claude.ai** : your organization may have disabled cloud sessions
+
+##
+
+
+
+Work with sessions
+
+Sessions appear in the sidebar at claude.ai/code. From there you can review changes, share with teammates, archive finished work, or delete sessions permanently.
+
+###
+
+
+
+Permission modes in cloud sessions
+
+You pick a cloud session’s [permission mode](</docs/en/permission-modes>) from the [mode dropdown](</docs/en/permission-modes#switch-permission-modes>), both when you create the task and while the session runs. Claude Code resumes a session in the permission mode it was in when you do either of these:
+
+ * Reopen a session whose Anthropic-hosted environment expired
+ * Send a message to a session that a self-hosted runner [released while it was idle](</docs/en/self-hosted-environments-reference#runner-cli-flags>)
+
+###
+
+
+
+Review changes
+
+Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. The diff view compares the session’s changes against its base branch by default. To compare against any other branch in the repository, select **Compare against** and pick one. Claude Code computes these diffs from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. These steps are covered elsewhere:
+
+ * **The full walkthrough, including PR creation** : see [Review and iterate](</docs/en/web-quickstart#review-and-iterate>)
+ * **Having Claude monitor the PR for CI failures and review comments automatically** : see Auto-fix pull requests
+
+###
+
+
+
+Manage context
+
+Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
+
+ * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>).
+ * **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
+
+For context management specifically:
+
+Command| Works in cloud sessions| Notes
+---|---|---
+`/compact`| Yes| Summarizes the conversation to free up context. Accepts optional focus instructions like `/compact keep the test output`
+`/context`| Yes| Shows what’s currently in the context window
+`/clear`| No| Start a new session from the sidebar instead
+
+Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+
+###
+
+
+
+Take back a queued message
+
+If you send a message while Claude is working, the message queues until Claude reads it. To take a queued message back, click the ✕ on it. The text returns to the message box so you can edit it or send something else. If Claude has already read the message, it stays in the conversation.
+
+###
+
+
+
+Share sessions
+
+To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients see the latest state when they open the link, but their view doesn’t update in real time.
+
+####
+
+
+
+Share from an Enterprise or Team account
+
+Sharing works as follows for Enterprise and Team accounts:
+
+ * **Visibility options** : **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization
+ * **Repository access** : verification is enabled by default, based on the GitHub account connected to the recipient’s account
+ * **Your name** : your account’s display name is visible to all recipients with access
+ * **Slack sessions** : [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility
+
+####
+
+
+
+Share from a Max or Pro account
+
+Sharing works as follows for Max and Pro accounts:
+
+ * **Visibility options** : **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai
+ * **Repository access** : verification isn’t enabled by default
+ * **Sensitive content** : check your session before sharing. Sessions may contain code and credentials from private GitHub repositories
+
+To require recipients to have repository access, or to hide your name from shared sessions, go to [**Settings > Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>).
+
+###
+
+
+
+Archive sessions
+
+You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and select the archive icon.
+
+###
+
+
+
+Delete sessions
+
+Deleting a session permanently removes the session and its data. This action can’t be undone. You can delete a session in two ways:
+
+ * **From the sidebar** : filter for archived sessions, then hover over the session you want to delete and select the delete icon
+ * **From the session menu** : open a session, select the dropdown next to the session title, and select **Delete**
+
+You will be asked to confirm before a session is deleted.
+
+##
+
+
+
+Auto-fix pull requests
+
+Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
+
+Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>).
+
+There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
+
+ * **PRs created in a cloud session** : open the session at claude.ai/code, open the CI status bar, and select **Auto-fix**
+ * **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a cloud session, and turns on auto-fix in one step
+ * **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
+ * **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
+
+Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the session at claude.ai/code and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
+
+###
+
+
+
+How Claude responds to PR activity
+
+When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
+
+ * **Clear fixes** : if Claude is confident in a fix and it doesn’t conflict with earlier instructions, Claude makes the change, pushes it, and explains what was done in the session
+ * **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
+ * **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
+
+GitHub does not emit a webhook when the base branch advances and creates a merge conflict, so auto-fix can’t react to conflicts on its own. To resolve a conflict, open the session and ask Claude to rebase. Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+
+If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
+
+##
+
+
+
+Security and isolation
+
+Each cloud session is separated from your machine and from other sessions through several layers:
+
+ * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
+ * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+ * **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
+ * **API credentials** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials, and Team and Enterprise plans don’t have them yet
+ * **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
+
+##
+
+
+
+Troubleshooting
+
+For runtime API errors that appear in the conversation 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 shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
+
+###
+
+
+
+Session creation failed
+
+If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a VM for the session.
+
+ * Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
+ * Retry after a minute, as capacity is provisioned on demand
+ * Confirm your GitHub connection can reach the repository by following [No repositories appear after connecting GitHub](</docs/en/web-quickstart#no-repositories-appear-after-connecting-github>)
+
+###
+
+
+
+Unable to get organization UUID
+
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, you see one of these:
+
+ * `Unable to get organization UUID`
+ * A message that API key authentication is not sufficient
+ * `Error loading Claude Code sessions` in the session picker, when you run `claude --teleport` without a session ID
+
+Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
+
+###
+
+
+
+Remote Control session expired or access denied
+
+`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session expired` or `Access denied`. The connection token is short-lived and scoped to your account.
+
+ * Run `/login` locally to refresh your credentials, then reconnect
+ * Confirm you are signed in to the same account that owns the session
+ * If you see `Remote Control may not be available for this organization`, an Owner has not enabled cloud sessions for your organization
+
+###
+
+
+
+Errors when sending to a cloud session
+
+These errors come from running `claude` with `--cloud <session-id>`, with or without `-p`. The CLI prefixes errors with `Error: `. A failed delivery is wrapped as `failed to send message to cloud session <id>: <reason>`.
Message| What it means
---|---
@@ -168,238 +450,12 @@
-From cloud to terminal
-
-Pull a cloud session into your terminal using any of these:
-
- * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
- * **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
- * **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
- * **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
- * **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
-
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
-
-####
-
-
-
-Teleport requirements
-
-Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
-
-Requirement| Details
----|---
-Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
-Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. Before v2.1.219, the error didn’t name your checkout’s repository. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
-Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
-Same account| You must be authenticated to the same claude.ai account used in the cloud session.
-
-When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
-
-####
-
-
-
-`--teleport` is unavailable
-
-Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. If the error names your provider instead, cloud sessions aren’t available through third-party providers; see the error table. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
-
-##
-
-
-
-Work with sessions
-
-Sessions appear in the sidebar at claude.ai/code. From there you can review changes, share with teammates, archive finished work, or delete sessions permanently.
-
-###
-
-
-
-Take back a queued message
-
-If you send a message while Claude is working, the message queues until Claude reads it. To take a queued message back, click the ✕ on it. The text returns to the message box so you can edit it or send something else. If Claude has already read the message, it stays in the conversation.
-
-###
-
-
-
-Manage context
-
-Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
-
- * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>).
- * **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
-
-For context management specifically:
-
-Command| Works in cloud sessions| Notes
----|---|---
-`/compact`| Yes| Summarizes the conversation to free up context. Accepts optional focus instructions like `/compact keep the test output`
-`/context`| Yes| Shows what’s currently in the context window
-`/clear`| No| Start a new session from the sidebar instead
-
-Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
-
-###
-
-
-
-Permission modes in cloud sessions
-
-You pick a cloud session’s [permission mode](</docs/en/permission-modes>) from the [mode dropdown](</docs/en/permission-modes#switch-permission-modes>), both when you create the task and while the session runs. When you reopen a session whose Anthropic-hosted environment expired, or send a message to a session that a self-hosted runner [released while it was idle](</docs/en/self-hosted-environments-reference#runner-cli-flags>), Claude Code resumes the session in the permission mode it was in.
-
-###
-
-
-
-Review changes
-
-Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. The diff view compares the session’s changes against its base branch by default. To compare against any other branch in the repository, select **Compare against** and pick one. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. For a file in a repository that isn’t one of the session’s own checkouts, such as one cloned inside the workspace during the session, the per-file diff shows Claude’s edit itself rather than a git comparison. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
-
-###
-
-
-
-Share sessions
-
-To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients see the latest state when they open the link, but their view doesn’t update in real time.
-
-####
-
-
-
-Share from an Enterprise or Team account
-
-For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access.
-
-####
-
-
-
-Share from a Max or Pro account
-
-For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. To require recipients to have repository access, or to hide your name from shared sessions, go to [**Settings > Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>).
-
-###
-
-
-
-Archive sessions
-
-You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and select the archive icon.
-
-###
-
-
-
-Delete sessions
-
-Deleting a session permanently removes the session and its data. This action can’t be undone. You can delete a session in two ways:
-
- * **From the sidebar** : filter for archived sessions, then hover over the session you want to delete and select the delete icon
- * **From the session menu** : open a session, select the dropdown next to the session title, and select **Delete**
-
-You will be asked to confirm before a session is deleted.
-
-##
-
-
-
-Auto-fix pull requests
-
-Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
-
-Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>).
-
-There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
-
- * **PRs created in a cloud session** : open the session at claude.ai/code, open the CI status bar, and select **Auto-fix**
- * **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a cloud session, and turns on auto-fix in one step
- * **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
- * **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
-
-Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the session at claude.ai/code and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
-
-###
-
-
-
-How Claude responds to PR activity
-
-When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
-
- * **Clear fixes** : if Claude is confident in a fix and it doesn’t conflict with earlier instructions, Claude makes the change, pushes it, and explains what was done in the session
- * **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
- * **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
-
-GitHub does not emit a webhook when the base branch advances and creates a merge conflict, so auto-fix can’t react to conflicts on its own. To resolve a conflict, open the session and ask Claude to rebase. Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
-
-If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
-
-##
-
-
-
-Security and isolation
-
-Each cloud session is separated from your machine and from other sessions through several layers:
-
- * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
- * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
- * **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
- * **API credentials** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials, and Team and Enterprise plans don’t have them yet
- * **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
-
-##
-
-
-
-Troubleshooting
-
-For runtime API errors that appear in the conversation 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 shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
-
-###
-
-
-
-Session creation failed
-
-If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a VM for the session.
-
- * Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
- * Retry after a minute, as capacity is provisioned on demand
- * Confirm your GitHub connection can reach the repository by following [No repositories appear after connecting GitHub](</docs/en/web-quickstart#no-repositories-appear-after-connecting-github>)
-
-###
-
-
-
-Unable to get organization UUID
-
-`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. With API key authentication or stale account details, running `claude --teleport` without a session ID shows `Error loading Claude Code sessions` in the session picker instead of either message, and the same fix applies. Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
-
-###
-
-
-
-Remote Control session expired or access denied
-
-`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session expired` or `Access denied`. The connection token is short-lived and scoped to your account.
-
- * Run `/login` locally to refresh your credentials, then reconnect
- * Confirm you are signed in to the same account that owns the session
- * If you see `Remote Control may not be available for this organization`, an Owner has not enabled cloud sessions for your organization
-
-###
-
-
-
Environment expired
-Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
+Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM:
+
+ * **Restored** : your conversation history
+ * **Not restored** : background work that was still running when the VM was reclaimed, such as subagents and shell commands
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -101,7 +101,12 @@
Send local repositories without GitHub
-When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. To upload a bundle even when Claude Code would otherwise clone from the remote, set `CCR_FORCE_BUNDLE=1`:
+When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. For a full clone, the bundle includes your repository history across all branches, plus uncommitted changes to tracked files. What happens to uncommitted changes in sensitive files depends on your platform:
+
+ * **macOS, Linux, and WSL** : Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload. This includes `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. It also leaves out uncommitted changes to files that a git filter such as Git LFS manages. A `Left on this machine:` notice names the files left out, and the session starts with the committed version of each, or without the file if none is committed.
+ * **Native Windows** : uncommitted changes to tracked files upload as they are, whatever the file’s name. Stash or revert an edit you don’t want in the cloud session before you start it.
+
+To upload a bundle even when Claude Code would otherwise clone from the remote, set `CCR_FORCE_BUNDLE=1`:
CCR_FORCE_BUNDLE=1 claude --cloud "Run the test suite and fix any failures"
@@ -112,6 +117,15 @@
* Untracked files are not included; run `git add` on files you want the cloud session to see
* On macOS, Linux, and WSL, Claude Code refuses the upload when it can’t follow a git setting that affects which attribute rules apply to your files, such as `core.attributesFile` set in an included config file. The [refusal message](</docs/en/errors#the-repository-upload-cant-follow-a-git-setting>) names the setting and the fix
* Sessions created from a bundle can push back to a GitHub remote only when your GitHub connection has push access to that repository
+
+On macOS, Linux, and WSL, the upload also needs git 2.31 or later and a checkout layout it supports, while on native Windows Claude Code uploads without either check. When a checkout doesn’t meet those requirements, Claude Code doesn’t start the session. It prints an error that contains `Not uploading this working tree:`, names the cause, and says what to change. These are the common causes:
+
+ * **Older git** : the installed git is older than 2.31. Update git, then retry.
+ * **A checkout layout the upload doesn’t support** : you started inside a submodule, in a clone made with `git clone --separate-git-dir`, `--shared`, or `--reference`, in a checkout with `core.worktree` set, or in a repository that keeps its refs in the reftable format. Start from the main checkout of a clone made with a plain `git clone` instead.
+ * **A linked worktree with a sparse checkout** : `git sparse-checkout` writes settings to the worktree’s own `config.worktree` file, which the upload doesn’t accept, so a worktree that has those settings isn’t uploaded, and neither is one Claude Code created with [`worktree.sparsePaths`](</docs/en/settings-reference#worktree-sparsepaths>). Start from the repository’s main checkout instead.
+ * **Git configuration kept inside the working tree** : your git configuration includes a file that sits inside the checkout, for example an `include.path` entry that points into the repository. Move that file outside the working tree or remove the include, then retry.
+
+On macOS, Linux, and WSL, a partial clone made with `git clone --filter` uploads as a snapshot of its working tree without history, as long as the clone holds every tracked file locally. For `claude --cloud`, if the repository is on GitHub, you can avoid the upload and its requirements: push your branch, install the Claude GitHub App on the repository, and start the session again so that it clones from GitHub.
###
@@ -180,6 +194,8 @@
Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. Before v2.1.219, the error didn’t name your checkout’s repository. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
+
+When teleport fetches the session’s branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fails, and the checkout then works only if your local clone already has the branch. For the two SSH cases, load your key into `ssh-agent` and run `git fetch` once by hand first to record the host.
####
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -110,6 +110,7 @@
* The directory must be a git repository with at least one commit
* The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree, and fail if the snapshot is still too large
* Untracked files are not included; run `git add` on files you want the cloud session to see
+ * On macOS, Linux, and WSL, Claude Code refuses the upload when it can’t follow a git setting that affects which attribute rules apply to your files, such as `core.attributesFile` set in an included config file. The [refusal message](</docs/en/errors#the-repository-upload-cant-follow-a-git-setting>) names the setting and the fix
* Sessions created from a bundle can push back to a GitHub remote only when your GitHub connection has push access to that repository
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -101,7 +101,7 @@
Send local repositories without GitHub
-When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. In a linked worktree, submodule, or similar layout, Claude Code uploads these changes with the rest and names the files it uploads. To upload a bundle even when Claude Code would otherwise clone from the remote, set `CCR_FORCE_BUNDLE=1`:
+When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. To upload a bundle even when Claude Code would otherwise clone from the remote, set `CCR_FORCE_BUNDLE=1`:
CCR_FORCE_BUNDLE=1 claude --cloud "Run the test suite and fix any failures"
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -43,7 +43,7 @@
**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>)| Any public repository, and private repositories that the Claude GitHub App is installed on| Browser onboarding; teams that want Auto-fix
**`/web-setup`**| Run `/web-setup` in your terminal to send your local `gh` CLI token to your Claude account| Any repository your `gh` token can access, whether or not the Claude GitHub App is installed| Individual developers who already use `gh`
-Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. Threads in a [project](</docs/en/claude-projects>) need the Claude GitHub App installed on each repository they clone, whichever method you connected with. See [Set up GitHub access](</docs/en/claude-projects#set-up-github-access>). For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. Threads in a [project](</docs/en/claude-projects>) need the Claude GitHub App installed on each repository they clone, whichever method you connected with. See [Set up GitHub access](</docs/en/claude-projects#set-up-github-access>). In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic’s servers and never enter a session’s VM. GitHub operations from the VM go through the [GitHub proxy](</docs/en/cloud-environments#github-proxy>), which attaches the credential on the server side. For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -393,6 +393,7 @@
Before relying on cloud sessions for a workflow, account for these constraints:
* **Rate limits** : cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
+ * **Time limits** : commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time limits](</docs/en/cloud-environments#time-limits>)
* **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
* **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and to [routines](</docs/en/routines>) that run on Anthropic-hosted environments; a routine routed to a self-hosted environment calls the API from your own network. Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,4 +1,4 @@
-Cloud sessions are in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
+Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.
A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. You can start a cloud session from any of these surfaces:
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -212,7 +212,7 @@
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
- * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force.
+ * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>).
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
* **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -240,7 +240,7 @@
Review changes
-Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. For a file in a repository that isn’t one of the session’s own checkouts, such as one cloned inside the workspace during the session, the per-file diff shows Claude’s edit itself rather than a git comparison. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
+Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. The diff view compares the session’s changes against its base branch by default. To compare against any other branch in the repository, select **Compare against** and pick one. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. For a file in a repository that isn’t one of the session’s own checkouts, such as one cloned inside the workspace during the session, the per-file diff shows Claude’s edit itself rather than a git comparison. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -8,7 +8,7 @@
* **Terminal** : `claude --cloud`
* **Routines** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
-A session in your terminal, your IDE, or the Desktop app with **Local** selected runs on your own machine instead. To steer one of those local sessions from your phone or browser, use [Remote Control](</docs/en/remote-control>).
+To have Claude start and keep track of many cloud sessions for one body of work, use a [project](</docs/en/claude-projects>). A session in your terminal, your IDE, or the Desktop app with **Local** selected runs on your own machine instead. To steer one of those local sessions from your phone or browser, use [Remote Control](</docs/en/remote-control>).
New to cloud sessions? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
@@ -41,9 +41,9 @@
Method| How you connect| Repositories sessions can reach| Best for
---|---|---|---
**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>)| Any public repository, and private repositories that the Claude GitHub App is installed on| Browser onboarding; teams that want Auto-fix
-**`/web-setup`**| Run `/web-setup` in your terminal to send your local `gh` CLI token to your Claude account| Any repository your `gh` token can access, whether or not the App is installed| Individual developers who already use `gh`
-
-Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+**`/web-setup`**| Run `/web-setup` in your terminal to send your local `gh` CLI token to your Claude account| Any repository your `gh` token can access, whether or not the Claude GitHub App is installed| Individual developers who already use `gh`
+
+Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. Threads in a [project](</docs/en/claude-projects>) need the Claude GitHub App installed on each repository they clone, whichever method you connected with. See [Set up GitHub access](</docs/en/claude-projects#set-up-github-access>). For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -200,13 +200,21 @@
+Take back a queued message
+
+If you send a message while Claude is working, the message queues until Claude reads it. To take a queued message back, click the ✕ on it. The text returns to the message box so you can edit it or send something else. If Claude has already read the message, it stays in the conversation.
+
+###
+
+
+
Manage context
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force.
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use [environment variables](</docs/en/cloud-environments#set-environment-variables>) or commit [settings files](</docs/en/settings>) to the repository.
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change a setting for a cloud session, set an [environment variable](</docs/en/cloud-environments#set-environment-variables>) on the environment, or in a session with one repository, commit the key to that repository’s `.claude/settings.json`. [Settings in cloud sessions](</docs/en/settings#settings-in-cloud-sessions>) lists what each session reads.
For context management specifically:
@@ -396,6 +404,7 @@
Related resources
* [Cloud environments](</docs/en/cloud-environments>): configure network access, environment variables, and setup scripts for cloud sessions
+ * [Projects](</docs/en/claude-projects>): one conversation where Claude coordinates parallel cloud sessions on your repositories and reports back
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
Show diff (166 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,14 +1,22 @@
-Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
-
-Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>), or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
-
-New to Claude Code on the web? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
-
-This page covers the web product itself:
+Cloud sessions are in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
+
+A cloud session is a Claude Code session that runs on cloud infrastructure instead of on your machine. By default it runs on infrastructure Anthropic manages, or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. The session keeps running after you close your laptop, and you can check on it or steer it from any device. You can start a cloud session from any of these surfaces:
+
+ * **Browser** : [claude.ai/code](<https://claude.ai/code>), also called Claude Code on the web
+ * **Mobile** : the **Code** tab in the [Claude app](</docs/en/mobile>)
+ * **Desktop app** : select **Cloud** instead of **Local** when you [start a session](</docs/en/desktop#run-long-running-tasks-in-the-cloud>)
+ * **Terminal** : `claude --cloud`
+ * **Routines** : [scheduled and triggered runs](</docs/en/routines>) each run as a cloud session
+
+A session in your terminal, your IDE, or the Desktop app with **Local** selected runs on your own machine instead. To steer one of those local sessions from your phone or browser, use [Remote Control](</docs/en/remote-control>).
+
+New to cloud sessions? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
+
+This page covers:
* Cloud environments: where sessions run, and where to configure that
* GitHub authentication options: two ways to connect GitHub
- * Move tasks between web and terminal with `--cloud` and `--teleport`
+ * Move tasks between terminal and cloud with `--cloud` and `--teleport`
* Work with sessions: permission modes, reviewing, sharing, archiving, deleting
* Auto-fix pull requests: respond automatically to CI failures and review comments
* Security and isolation: how sessions are isolated
@@ -20,7 +28,7 @@
Cloud environments
-Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use organization-level environments only, either [shared environments](</docs/en/cloud-environments#organization-shared-environments>) or [self-hosted environments](</docs/en/self-hosted-environments>). See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the browser, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use organization-level environments only, either [shared environments](</docs/en/cloud-environments#organization-shared-environments>) or [self-hosted environments](</docs/en/self-hosted-environments>). See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
##
@@ -43,17 +51,17 @@
-Move tasks between web and terminal
+Move tasks between terminal and cloud
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
-
-###
-
-
-
-From terminal to web
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the cloud. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a **Continue in** menu that can send a local session to the cloud.
+
+###
+
+
+
+From terminal to cloud
Start a cloud session from the command line with the `--cloud` flag:
@@ -61,7 +69,7 @@
This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
-`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
+`--cloud` creates cloud sessions. `--remote-control` is unrelated: it lets you monitor and steer a local CLI session from claude.ai or the Claude app. See [Remote Control](</docs/en/remote-control>).
Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
@@ -71,7 +79,7 @@
Tips for cloud tasks
-**Plan locally, execute remotely** : for complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the cloud:
+**Plan locally, execute in the cloud** : for complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the cloud:
claude --permission-mode plan
@@ -85,7 +93,7 @@
claude --cloud "Update the API documentation"
claude --cloud "Refactor the logger to use structured output"
-When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
+When a session completes, you can create a PR from claude.ai/code or teleport the session to your terminal to continue working.
####
@@ -145,14 +153,14 @@
-From web to terminal
+From cloud to terminal
Pull a cloud session into your terminal using any of these:
* **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
- * **From the web interface** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
+ * **From claude.ai/code** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
* **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
@@ -198,7 +206,7 @@
* **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force.
* **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
- * **`/config`** : on the web, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use [environment variables](</docs/en/cloud-environments#set-environment-variables>) or commit [settings files](</docs/en/settings>) to the repository.
+ * **`/config`** : in your browser at claude.ai/code, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use [environment variables](</docs/en/cloud-environments#set-environment-variables>) or commit [settings files](</docs/en/settings>) to the repository.
For context management specifically:
@@ -208,7 +216,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in cloud sessions itself, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) themselves, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
@@ -283,12 +291,12 @@
There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
- * **PRs created in Claude Code on the web** : open the CI status bar and select **Auto-fix**
- * **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a web session, and turns on auto-fix in one step
+ * **PRs created in a cloud session** : open the session at claude.ai/code, open the CI status bar, and select **Auto-fix**
+ * **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a cloud session, and turns on auto-fix in one step
* **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
* **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
-Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the web session and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
+Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the session at claude.ai/code and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
###
@@ -366,7 +374,7 @@
Environment expired
-Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
+Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
##
@@ -376,8 +384,8 @@
Before relying on cloud sessions for a workflow, account for these constraints:
- * **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
- * **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account
+ * **Rate limits** : cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
+ * **Repository authentication** : you can only pull a cloud session into your terminal when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
* **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and to [routines](</docs/en/routines>) that run on Anthropic-hosted environments; a routine routed to a self-hosted environment calls the API from your own network. Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -196,7 +196,8 @@
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
- * **`/model`, `/effort`, `/fast`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force, and `/fast` works only in a session that started with fast mode turned on.
+ * **`/model`, `/effort`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force.
+ * **`/fast`** : toggles [fast mode](</docs/en/fast-mode#use-fast-mode-in-cloud-sessions>) for the session when fast mode is [available on your account](</docs/en/fast-mode#requirements>). Requires Claude Code v2.1.271 or later in the session’s environment.
* **`/config`** : on the web, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use [environment variables](</docs/en/cloud-environments#set-environment-variables>) or commit [settings files](</docs/en/settings>) to the repository.
For context management specifically:
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -63,7 +63,7 @@
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
-Use `/tasks` in the Claude Code CLI to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
+Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
####
@@ -85,7 +85,7 @@
claude --cloud "Update the API documentation"
claude --cloud "Refactor the logger to use structured output"
-Monitor all sessions with `/tasks` in the Claude Code CLI. When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
+When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
####
@@ -100,7 +100,7 @@
Bundled repositories must meet these limits:
* The directory must be a git repository with at least one commit
- * The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree, and fail only if the snapshot is still too large
+ * The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree, and fail if the snapshot is still too large
* Untracked files are not included; run `git add` on files you want the cloud session to see
* Sessions created from a bundle can push back to a GitHub remote only when your GitHub connection has push access to that repository
@@ -168,7 +168,7 @@
Requirement| Details
---|---
Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
-Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. Before v2.1.219, the error didn’t name your checkout’s repository. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -30,14 +30,12 @@
Cloud sessions need access to your GitHub repositories to clone code and push branches. You can grant access in two ways:
-Method| How it works| Best for
----|---|---
-**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>).| Browser onboarding; teams that want Auto-fix
-**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account.| Individual developers who already use `gh`
-
-With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
-
-Either method works. For how `/schedule` checks that access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+Method| How you connect| Repositories sessions can reach| Best for
+---|---|---|---
+**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>)| Any public repository, and private repositories that the Claude GitHub App is installed on| Browser onboarding; teams that want Auto-fix
+**`/web-setup`**| Run `/web-setup` in your terminal to send your local `gh` CLI token to your Claude account| Any repository your `gh` token can access, whether or not the App is installed| Individual developers who already use `gh`
+
+Installing the Claude GitHub App on a repository also enables Auto-fix for pull requests in it. For how `/schedule` checks repository access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough, including what `/web-setup` stores and how to remove it. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -61,7 +59,7 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
+This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. See Send local repositories without GitHub for the cases where Claude Code uploads your local repository instead of cloning. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
@@ -95,7 +93,7 @@
Send local repositories without GitHub
-When you run `claude --cloud` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. In a linked worktree, submodule, or similar layout, Claude Code uploads these changes with the rest and names the files it uploads. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
+When you run `claude --cloud` from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with `/web-setup`. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. In a linked worktree, submodule, or similar layout, Claude Code uploads these changes with the rest and names the files it uploads. To upload a bundle even when Claude Code would otherwise clone from the remote, set `CCR_FORCE_BUNDLE=1`:
CCR_FORCE_BUNDLE=1 claude --cloud "Run the test suite and fix any failures"
@@ -104,7 +102,7 @@
* The directory must be a git repository with at least one commit
* The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree, and fail only if the snapshot is still too large
* Untracked files are not included; run `git add` on files you want the cloud session to see
- * Sessions created from a bundle can’t push back to a remote unless you also have GitHub authentication configured
+ * Sessions created from a bundle can push back to a GitHub remote only when your GitHub connection has push access to that repository
###
@@ -339,7 +337,7 @@
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
- * Confirm your repository is reachable. The connecting GitHub account must have access to the repository on GitHub, either through the Claude GitHub App authorization or a `gh` token synced via `/web-setup`. Installing the App on the repository isn’t required. See GitHub authentication options.
+ * Confirm your GitHub connection can reach the repository by following [No repositories appear after connecting GitHub](</docs/en/web-quickstart#no-repositories-appear-after-connecting-github>)
###
@@ -379,7 +377,7 @@
* **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
* **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account
- * **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab, Bitbucket, and other non-GitHub repositories can be sent to cloud sessions as a local bundle, but the session can’t push results back to the remote
+ * **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. You can send a GitLab, Bitbucket, or other non-GitHub repository to a cloud session as a local bundle by setting `CCR_FORCE_BUNDLE=1`, but the session can’t push results back to that remote
* **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and to [routines](</docs/en/routines>) that run on Anthropic-hosted environments; a routine routed to a self-hosted environment calls the API from your own network. Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -316,7 +316,7 @@
Each cloud session is separated from your machine and from other sessions through several layers:
* **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
- * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+ * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. See [Network access](</docs/en/cloud-environments#network-access>) for the access levels, the [default allowed domains](</docs/en/cloud-environments#default-allowed-domains>), and the traffic that doesn’t go through the allowlist. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
* **API credentials** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials, and Team and Enterprise plans don’t have them yet
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -225,7 +225,7 @@
Review changes
-Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
+Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. For a file in a repository that isn’t one of the session’s own checkouts, such as one cloned inside the workspace during the session, the per-file diff shows Claude’s edit itself rather than a git comparison. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
###
@@ -367,7 +367,7 @@
Environment expired
-Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
+Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. A session counts as inactive while it waits for you to approve an [MCP connector](</docs/en/cloud-environments#network-access>) tool call or to sign in to an MCP server, and it can expire during that wait. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -392,7 +392,7 @@
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
- * [Settings reference](</docs/en/settings-reference>): all configuration options
+ * [All settings](</docs/en/settings-reference>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
* [Data usage](</docs/en/data-usage>): what Anthropic retains from cloud sessions
* [Claude Tag](<https://claude.com/docs/claude-tag/overview>): an organization-managed @Claude in Slack that runs on the same cloud infrastructure
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -318,7 +318,7 @@
* **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
* **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
* **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
- * **API credentials** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials
+ * **API credentials** : in Anthropic-hosted environments on Pro and Max plans, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials, and Team and Enterprise plans don’t have them yet
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -317,7 +317,8 @@
* **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
* **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
- * **Credential protection** : in Anthropic-hosted environments, sensitive credentials such as git credentials or signing keys are never inside the sandbox with Claude Code; authentication is handled through a secure proxy using scoped credentials. Sessions in a self-hosted environment authenticate git with credentials your deployment provides; [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>) covers the options, including per-session minted credentials and the same proxy.
+ * **Credential protection** : in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials; see [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>)
+ * **API credentials** : in Anthropic-hosted environments, keys you [add to a cloud environment](</docs/en/cloud-environments#add-api-credentials>) stay outside the sandbox the same way, attached to matching requests after they leave the session. A self-hosted environment doesn’t have API credentials
* **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -95,7 +95,7 @@
Send local repositories without GitHub
-When you run `claude --cloud` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus any uncommitted changes to tracked files. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
+When you run `claude --cloud` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus uncommitted changes to tracked files. On macOS, Linux, and WSL, Claude Code leaves uncommitted changes to files named like credentials or keys out of the upload and names the files it left out. This covers `.env` files, Terraform `*.tfvars` files, and key files such as `id_rsa` and `*.pem`. The session starts with the committed version of each, or without the file if none is committed. In a linked worktree, submodule, or similar layout, Claude Code uploads these changes with the rest and names the files it uploads. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
CCR_FORCE_BUNDLE=1 claude --cloud "Run the test suite and fix any failures"
@@ -138,6 +138,7 @@
---|---
`Cloud sessions aren't available with <provider>. They run on Anthropic's infrastructure and require an Anthropic account.`| Claude Code is configured for a third-party provider. The message names the provider with the label your configuration uses, such as `Amazon Bedrock` or `Google Vertex AI`. Remove that provider’s configuration, for example by unsetting `CLAUDE_CODE_USE_BEDROCK`, and sign in with an Anthropic account (`claude auth login`).
`Cloud sessions are disabled by your organization's policy. Contact your organization admin to enable them.`| The `allow_remote_sessions` organization policy is off.
+`Couldn't verify your organization's policy for cloud sessions. Check your network connection and try again.`| Claude Code couldn’t fetch your organization’s policy, so it refuses the send rather than assume cloud sessions are allowed. Check your network connection and retry.
`Attaching to an existing cloud session is not enabled for your account.`| You ran `--cloud <session-id>` without `-p`. Send the message with `claude -p "your message" --cloud <session-id>`.
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
@@ -345,7 +346,7 @@
Unable to get organization UUID
-`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. With API key authentication or stale account details, running `claude --teleport` without a session ID shows `Error loading Claude Code sessions` in the session picker instead of either message, and the same fix applies. Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
###
@@ -365,7 +366,7 @@
Environment expired
-Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored.
+Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored. Background work that was still running when the VM was reclaimed, such as subagents and shell commands, isn’t restored.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -9,7 +9,7 @@
* Cloud environments: where sessions run, and where to configure that
* GitHub authentication options: two ways to connect GitHub
* Move tasks between web and terminal with `--cloud` and `--teleport`
- * Work with sessions: reviewing, sharing, archiving, deleting
+ * Work with sessions: permission modes, reviewing, sharing, archiving, deleting
* Auto-fix pull requests: respond automatically to CI failures and review comments
* Security and isolation: how sessions are isolated
* Limitations: rate limits and platform restrictions
@@ -20,7 +20,7 @@
Cloud environments
-Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use organization-level environments only, either [shared environments](</docs/en/cloud-environments#organization-shared-environments>) or [self-hosted environments](</docs/en/self-hosted-environments>). See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
##
@@ -37,7 +37,7 @@
With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
-Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
+Either method works. For how `/schedule` checks that access before creating a routine, see [Repositories and branch permissions](</docs/en/routines#repositories-and-branch-permissions>). See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -49,7 +49,7 @@
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag with a task description creates a new cloud session for your current repository; with a session ID or claude.ai/code URL it instead targets that existing session, [queueing a message or attaching your terminal](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag with a task description creates a new cloud session for your current repository; with `-p` and a session ID or claude.ai/code URL it instead [queues a message into that existing session](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
###
@@ -112,11 +112,11 @@
Send follow-ups from the CLI
-Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session, and it’s the same in every shell, including PowerShell. The primary form posts one message and exits:
+Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session, and it’s the same in every shell, including PowerShell. The command posts one message and exits:
claude -p "your message" --cloud <session-id>
-The CLI queues the message into the session and exits without waiting for a reply. Use it to steer a long-running session, queue the next step while the current one is still finishing, or send follow-ups from a [CI script](</docs/en/self-hosted-environments-testing#run-the-test-loop>). You can also pipe the message on stdin instead of passing it as an argument: `echo "your message" | claude -p --cloud <session-id>`. Without `-p`, `claude --cloud <session-id>` attaches your terminal to the session so you can converse with it directly. Interactive attach is rolling out gradually; if you see `Attaching to an existing cloud session is not enabled for your account`, contact your Anthropic account team. The `-p` queue-and-exit form isn’t affected by this rollout. For `<session-id>`, pass the bare ID, such as `session_...` or `cse_...`, or the session’s `claude.ai/code/<id>` URL, with or without the scheme or query string. Find the ID in your session list at claude.ai/code.
+The CLI queues the message into the session and exits without waiting for a reply. Use it to steer a long-running session, queue the next step while the current one is still finishing, or send follow-ups from a [CI script](</docs/en/self-hosted-environments-testing#run-the-test-loop>). You can also pipe the message on stdin instead of passing it as an argument: `echo "your message" | claude -p --cloud <session-id>`. For `<session-id>`, pass the bare ID, such as `session_...` or `cse_...`, or the session’s `claude.ai/code/<id>` URL, with or without the scheme or query string. Find the ID in your session list at claude.ai/code.
`--cloud` requires an Anthropic account. It’s not available when Claude Code is configured for Amazon Bedrock, Google Cloud’s Agent Platform, or another third-party provider. An [LLM gateway](</docs/en/llm-gateway>) configured only through `ANTHROPIC_BASE_URL` doesn’t count as a third-party provider for this check, but you still need to sign in with `claude auth login`. Your organization’s `allow_remote_sessions` policy must also be enabled. An Owner can turn it on in the Claude Code admin settings at claude.ai/admin-settings/claude-code.
@@ -126,7 +126,7 @@
Output and errors
-On success, the queue-and-exit form prints the session ID and a link to view the session:
+On success, the command prints the session ID and a link to view the session:
Sent to cloud session.
Session ID: session_01DiUkqY2kzbUbDmW1w96rfi
@@ -138,7 +138,7 @@
---|---
`Cloud sessions aren't available with <provider>. They run on Anthropic's infrastructure and require an Anthropic account.`| Claude Code is configured for a third-party provider. The message names the provider with the label your configuration uses, such as `Amazon Bedrock` or `Google Vertex AI`. Remove that provider’s configuration, for example by unsetting `CLAUDE_CODE_USE_BEDROCK`, and sign in with an Anthropic account (`claude auth login`).
`Cloud sessions are disabled by your organization's policy. Contact your organization admin to enable them.`| The `allow_remote_sessions` organization policy is off.
-`Attaching to an existing cloud session is not enabled for your account.`| Interactive attach, without `-p`, is rolling out gradually and isn’t available for your account yet. The queue-and-exit form, `-p "..." --cloud <session-id>`, works regardless.
+`Attaching to an existing cloud session is not enabled for your account.`| You ran `--cloud <session-id>` without `-p`. Send the message with `claude -p "your message" --cloud <session-id>`.
`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
@@ -209,6 +209,14 @@
`/clear`| No| Start a new session from the sidebar instead
Auto-compaction runs automatically when the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in cloud sessions itself, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+
+###
+
+
+
+Permission modes in cloud sessions
+
+You pick a cloud session’s [permission mode](</docs/en/permission-modes>) from the [mode dropdown](</docs/en/permission-modes#switch-permission-modes>), both when you create the task and while the session runs. When you reopen a session whose Anthropic-hosted environment expired, or send a message to a session that a self-hosted runner [released while it was idle](</docs/en/self-hosted-environments-reference#runner-cli-flags>), Claude Code resumes the session in the permission mode it was in.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -20,7 +20,7 @@
Cloud environments
-Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet when you onboard, Claude Code sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>). See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how it’s created and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet, onboarding sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>), either by creating it for you or by asking you to create it. See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for which of those happens on your plan and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
##
@@ -37,7 +37,7 @@
With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
-Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Team and Enterprise Owners can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Quick web setup is an organization setting that lets members connect GitHub with `/web-setup`, skips the Claude GitHub App install prompt during browser onboarding, and has browser onboarding create the [**Default** environment](</docs/en/cloud-environments#the-default-environment>) for them instead of showing the environment form. On Team and Enterprise plans it’s off by default, which hides `/web-setup`. An [Owner](</docs/en/server-managed-settings#access-control>) turns it on with the **Quick web setup** toggle at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -271,7 +271,7 @@
Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
-Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during [setup](</docs/en/web-quickstart#connect-github>).
+Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>).
There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -20,7 +20,7 @@
Cloud environments
-Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. When you onboard, Claude Code sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>). See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how it’s created and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. If you don’t have an environment yet when you onboard, Claude Code sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>). See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how it’s created and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
##
@@ -382,7 +382,7 @@
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
- * [Settings reference](</docs/en/settings>): all configuration options
+ * [Settings reference](</docs/en/settings-reference>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
* [Data usage](</docs/en/data-usage>): what Anthropic retains from cloud sessions
* [Claude Tag](<https://claude.com/docs/claude-tag/overview>): an organization-managed @Claude in Slack that runs on the same cloud infrastructure
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -37,7 +37,7 @@
With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
-Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise Owners can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. Team and Enterprise Owners can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
@@ -81,7 +81,7 @@
claude --cloud "Execute the migration plan in docs/migration-plan.md"
-This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Run tasks in parallel** : each `--cloud` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
+**Run tasks in parallel** : each `--cloud` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
claude --cloud "Fix the flaky test in auth.spec.ts"
claude --cloud "Update the API documentation"
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -208,7 +208,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in cloud sessions itself, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in cloud sessions itself, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -179,7 +179,7 @@
`--teleport` is unavailable
-Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, `--teleport` stops with `Cloud sessions aren't available with <provider>` because cloud sessions use the Anthropic API for inference and aren’t available through those providers. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
+Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. If the error names your provider instead, cloud sessions aren’t available through third-party providers; see the error table. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
##
@@ -208,7 +208,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. The percentage moves compaction earlier within the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>). To change the window itself, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>), or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in cloud sessions itself, so compaction triggers partway through the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>) rather than when the window fills. That value overrides one you add in your [environment variables](</docs/en/cloud-environments#set-environment-variables>), so adding the variable there doesn’t change when compaction triggers. To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>) in your environment variables, or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
@@ -337,7 +337,7 @@
Unable to get organization UUID
-`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, the commands stop earlier with `Cloud sessions aren't available with <provider>`. Cloud sessions use the Anthropic API for inference and aren’t available through those providers.
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. If the error names your provider instead, see the error table: cloud sessions aren’t available through third-party providers.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -61,7 +61,7 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>), while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
+This creates a new cloud session on claude.ai. The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>). It queues messages you type during provisioning and sends them once the session is ready.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
@@ -208,7 +208,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. The percentage moves compaction earlier within the [auto-compact window](</docs/en/context-window#set-the-auto-compact-window>). To change the window itself, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>), or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. The percentage moves compaction earlier within the [auto-compact window](</docs/en/model-config#set-the-auto-compact-window>). To change the window itself, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>), or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -154,6 +154,7 @@
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From the web interface** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
+ * **From inside the cloud session** : type `/teleport` and Claude Code replies with the exact `claude --teleport <session-id>` command for that session, ready to run from a checkout of the repository. Requires Claude Code v2.1.223 or later in the session’s environment.
When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
@@ -168,7 +169,7 @@
Requirement| Details
---|---
Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
-Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. As of v2.1.199, Claude Code accepts a checkout even when it can’t parse the remote into a hostname, such as an SSH host alias like `git@work:owner/repo.git` or an `insteadOf`-rewritten short form. It shows a confirmation prompt first, and only when the remote’s owner and repository name match the session’s repository.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. If you run it from a checkout of a different repository, Claude Code shows an error that names both the session’s repository and your checkout’s. If Claude Code can’t parse your remote into a hostname, for example an SSH host alias like `git@work:owner/repo.git`, it asks you to confirm, and accepts the checkout when the remote’s owner and repository name match the session’s repository.
Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
Show diff (117 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,6 +1,6 @@
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
-Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>). Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
+Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>), or on your organization’s [self-hosted environment](</docs/en/self-hosted-environments>) when routed there. Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
New to Claude Code on the web? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
@@ -47,9 +47,9 @@
Move tasks between web and terminal
-These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app. The `--cloud` and `--teleport` flags don’t appear in `claude --help` output, but the CLI accepts them as shown below.
-
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag creates a new cloud session for your current repository. The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
+These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
+
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag with a task description creates a new cloud session for your current repository; with a session ID or claude.ai/code URL it instead targets that existing session, [queueing a message or attaching your terminal](</docs/en/claude-code-on-the-web#send-follow-ups-from-the-cli>). The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
###
@@ -110,6 +110,42 @@
+Send follow-ups from the CLI
+
+Once a cloud session is running, wherever it executes, send it a follow-up message from the `claude` CLI on any machine where you’re logged in with `claude auth login`. The CLI authenticates with your Anthropic account credentials and sends no local session state, so the command doesn’t need to run from the machine that started the session, and it’s the same in every shell, including PowerShell. The primary form posts one message and exits:
+
+ claude -p "your message" --cloud <session-id>
+
+The CLI queues the message into the session and exits without waiting for a reply. Use it to steer a long-running session, queue the next step while the current one is still finishing, or send follow-ups from a [CI script](</docs/en/self-hosted-environments-testing#run-the-test-loop>). You can also pipe the message on stdin instead of passing it as an argument: `echo "your message" | claude -p --cloud <session-id>`. Without `-p`, `claude --cloud <session-id>` attaches your terminal to the session so you can converse with it directly. Interactive attach is rolling out gradually; if you see `Attaching to an existing cloud session is not enabled for your account`, contact your Anthropic account team. The `-p` queue-and-exit form isn’t affected by this rollout. For `<session-id>`, pass the bare ID, such as `session_...` or `cse_...`, or the session’s `claude.ai/code/<id>` URL, with or without the scheme or query string. Find the ID in your session list at claude.ai/code.
+
+`--cloud` requires an Anthropic account. It’s not available when Claude Code is configured for Amazon Bedrock, Google Cloud’s Agent Platform, or another third-party provider. An [LLM gateway](</docs/en/llm-gateway>) configured only through `ANTHROPIC_BASE_URL` doesn’t count as a third-party provider for this check, but you still need to sign in with `claude auth login`. Your organization’s `allow_remote_sessions` policy must also be enabled. An Owner can turn it on in the Claude Code admin settings at claude.ai/admin-settings/claude-code.
+
+####
+
+
+
+Output and errors
+
+On success, the queue-and-exit form prints the session ID and a link to view the session:
+
+ Sent to cloud session.
+ Session ID: session_01DiUkqY2kzbUbDmW1w96rfi
+ View: https://claude.ai/code/session_01DiUkqY2kzbUbDmW1w96rfi?from=cli&m=0
+
+Pass `--output-format json` for a machine-readable result: `{ok, session_id, url}` on success, or `{ok: false, session_id, error}` when the send fails, for example when the session is missing or archived. Configuration errors, such as an unsupported provider or a disabled organization policy, print to stderr without JSON. `--output-format stream-json` isn’t supported with `--cloud <session-id>`. The CLI prefixes errors with `Error: `. A failed delivery is wrapped as `failed to send message to cloud session <id>: <reason>`.
+
+Message| What it means
+---|---
+`Cloud sessions aren't available with <provider>. They run on Anthropic's infrastructure and require an Anthropic account.`| Claude Code is configured for a third-party provider. The message names the provider with the label your configuration uses, such as `Amazon Bedrock` or `Google Vertex AI`. Remove that provider’s configuration, for example by unsetting `CLAUDE_CODE_USE_BEDROCK`, and sign in with an Anthropic account (`claude auth login`).
+`Cloud sessions are disabled by your organization's policy. Contact your organization admin to enable them.`| The `allow_remote_sessions` organization policy is off.
+`Attaching to an existing cloud session is not enabled for your account.`| Interactive attach, without `-p`, is rolling out gradually and isn’t available for your account yet. The queue-and-exit form, `-p "..." --cloud <session-id>`, works regardless.
+`Session not found: <id>`| The ID or URL doesn’t match a session you can access. Check it against the session’s claude.ai/code URL.
+`cloud session <id> is archived and cannot accept new messages`| The session has been archived. Start a new session instead.
+
+###
+
+
+
From web to terminal
Pull a cloud session into your terminal using any of these:
@@ -117,7 +153,7 @@
* **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
* **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
- * **From the web interface** : select **Open in CLI** to copy a command you can paste into your terminal.
+ * **From the web interface** : select **Open in > Terminal** from the session menu to copy a command you can paste into your terminal.
When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
@@ -142,7 +178,7 @@
`--teleport` is unavailable
-Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, `--teleport` stops with `Cloud sessions aren't available with <provider>` because cloud sessions run on Anthropic’s infrastructure and aren’t available through those providers. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
+Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, `--teleport` stops with `Cloud sessions aren't available with <provider>` because cloud sessions use the Anthropic API for inference and aren’t available through those providers. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
##
@@ -269,10 +305,10 @@
Each cloud session is separated from your machine and from other sessions through several layers:
- * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM
- * **Network access controls** : network access is limited by default, and can be disabled. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
- * **Credential protection** : sensitive credentials such as git credentials or signing keys are never inside the sandbox with Claude Code. Authentication is handled through a secure proxy using scoped credentials.
- * **Secure analysis** : code is analyzed and modified within isolated VMs before creating PRs
+ * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM. Sessions your organization routes to a [self-hosted environment](</docs/en/self-hosted-environments>) run on your own infrastructure instead, where isolation is your deployment’s responsibility
+ * **Network access controls** : in Anthropic-hosted environments, network access is limited by default and can be disabled. In a self-hosted environment, you restrict session egress at your own network boundary. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+ * **Credential protection** : in Anthropic-hosted environments, sensitive credentials such as git credentials or signing keys are never inside the sandbox with Claude Code; authentication is handled through a secure proxy using scoped credentials. Sessions in a self-hosted environment authenticate git with credentials your deployment provides; [Configure git](</docs/en/self-hosted-environments-deploy#configure-git>) covers the options, including per-session minted credentials and the same proxy.
+ * **Secure analysis** : code is analyzed and modified within the session’s isolated environment before creating PRs
##
@@ -300,7 +336,7 @@
Unable to get organization UUID
-`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, the commands stop earlier with `Cloud sessions aren't available with <provider>`. Cloud sessions run on Anthropic’s infrastructure and aren’t available through those providers.
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, the commands stop earlier with `Cloud sessions aren't available with <provider>`. Cloud sessions use the Anthropic API for inference and aren’t available through those providers.
###
@@ -333,7 +369,7 @@
* **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
* **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab, Bitbucket, and other non-GitHub repositories can be sent to cloud sessions as a local bundle, but the session can’t push results back to the remote
- * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and [Routines](</docs/en/routines>). Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
+ * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network, while sessions in a [self-hosted environment](</docs/en/self-hosted-environments>) call it from your own network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every Anthropic-hosted cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and to [routines](</docs/en/routines>) that run on Anthropic-hosted environments; a routine routed to a self-hosted environment calls the API from your own network. Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -81,7 +81,7 @@
claude --cloud "Execute the migration plan in docs/migration-plan.md"
-This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : to draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : each `--cloud` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
+This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Run tasks in parallel** : each `--cloud` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
claude --cloud "Fix the flaky test in auth.spec.ts"
claude --cloud "Update the API documentation"
@@ -171,7 +171,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
+Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. The percentage moves compaction earlier within the [auto-compact window](</docs/en/context-window#set-the-auto-compact-window>). To change the window itself, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>), or run [`/autocompact`](</docs/en/commands#all-commands>) with a token count in a session where the variable isn’t set. [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
@@ -179,7 +179,7 @@
Review changes
-Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
+Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. Claude Code computes these diffs, including the per-file diffs shown as Claude edits, from raw git blob content, so diff drivers and `textconv` filters configured in the repository don’t apply. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
###
@@ -342,7 +342,6 @@
Related resources
* [Cloud environments](</docs/en/cloud-environments>): configure network access, environment variables, and setup scripts for cloud sessions
- * [Ultraplan](</docs/en/ultraplan>): draft a plan in a cloud session and review it in your browser
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
Show diff (681 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -4,12 +4,10 @@
New to Claude Code on the web? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
-This page covers:
-
+This page covers the web product itself:
+
+ * Cloud environments: where sessions run, and where to configure that
* GitHub authentication options: two ways to connect GitHub
- * The cloud environment: what config carries over, what tools are installed, and how to configure environments
- * Setup scripts and dependency management
- * Network access: levels, proxies, and the default allowlist
* Move tasks between web and terminal with `--cloud` and `--teleport`
* Work with sessions: reviewing, sharing, archiving, deleting
* Auto-fix pull requests: respond automatically to CI failures and review comments
@@ -20,6 +18,14 @@
+Cloud environments
+
+Every cloud session runs in a [cloud environment](</docs/en/cloud-environments>), the saved configuration that controls network access, environment variables, and setup scripts. When you onboard, Claude Code sets up a **Default** environment with [**Trusted** network access](</docs/en/cloud-environments#access-levels>). See [The Default environment](</docs/en/cloud-environments#the-default-environment>) for how it’s created and how sessions choose an environment when you have more than one. The same environments apply wherever you start a cloud session: the web, the terminal, [Claude Tag](<https://claude.com/docs/claude-tag/overview>), [routines](</docs/en/routines>), and the mobile and Desktop apps. Claude Tag channel sessions use [organization-shared environments](</docs/en/cloud-environments#organization-shared-environments>) only. See [Configure cloud environments](</docs/en/cloud-environments>) to change what an environment allows, set variables, or add a setup script, and [Installed tools](</docs/en/cloud-environments#installed-tools>) for what sessions include without any configuration.
+
+##
+
+
+
GitHub authentication options
Cloud sessions need access to your GitHub repositories to clone code and push branches. You can grant access in two ways:
@@ -39,579 +45,6 @@
-The cloud environment
-
-Each session runs in a fresh Anthropic-managed VM with your repository cloned. This section covers what’s available when a session starts and how to customize it.
-
-###
-
-
-
-What’s available in cloud sessions
-
-Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine isn’t available in the session. Your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
-
-| Available in cloud sessions| Why
----|---|---
-Your repo’s `CLAUDE.md`| Yes| Part of the clone
-Your repo’s `.claude/settings.json` hooks| Yes| Part of the clone
-Your repo’s `.mcp.json` MCP servers| Yes| Part of the clone
-Your repo’s `.claude/rules/`| Yes| Part of the clone
-Your repo’s `.claude/skills/`, `.claude/agents/`, `.claude/commands/`| Yes| Part of the clone
-Plugins declared in `.claude/settings.json`| Yes| Installed at session start from the [marketplace](</docs/en/plugin-marketplaces>) you declared. Requires network access to reach the marketplace source
-Your organization’s [server-managed settings](</docs/en/server-managed-settings>)| Yes| Fetched from Anthropic’s servers when the session starts. See [Surface coverage](</docs/en/model-config#surface-coverage>) for how `availableModels` is enforced in cloud sessions. Settings deployed to your device through MDM or managed settings files don’t apply, because the session runs on an Anthropic-managed VM
-Your user `~/.claude/CLAUDE.md`| No| Lives on your machine, not in the repo
-Your user `~/.claude/skills/`, `~/.claude/agents/`, `~/.claude/commands/`| No| Live on your machine, not in the repo. Commit them to the repo’s `.claude/` directory instead. Skills you enable on claude.ai are loaded into cloud sessions automatically
-Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
-MCP servers you added with `claude mcp add`| No| Those write to your local user config, not the repo. Declare the server in [`.mcp.json`](</docs/en/mcp#project-scope>) instead
-Transport variables in your repo’s `.claude/settings.json` `env` block, such as `NODE_EXTRA_CA_CERTS` and the [mTLS client certificate variables](</docs/en/network-config#mtls-authentication>)| No| The hosting environment manages the session’s API connection, so Claude Code ignores these keys and notes each ignored key in the session’s debug log
-Static API tokens and credentials| No| No dedicated secrets store exists yet. See below
-Interactive auth like AWS SSO| No| Not supported. SSO requires browser-based login that can’t run in a cloud session
-
-To make your own configuration available in cloud sessions, commit it to the repo; organization policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>). A dedicated secrets store is not yet available. Both environment variables and setup scripts are stored in the environment configuration, visible to anyone who can edit that environment. If you need secrets in a cloud session, add them as environment variables with that visibility in mind.
-
-###
-
-
-
-Installed tools
-
-Cloud sessions come with common language runtimes, build tools, and databases pre-installed. The table below summarizes what’s included by category.
-
-Category| Included
----|---
-**Python**| Python 3.x with pip, poetry, uv, black, mypy, pytest, ruff
-**Node.js**| 20, 21, and 22 via nvm, with npm, yarn, pnpm, bun¹, eslint, prettier, chromedriver
-**Ruby**| 3.1, 3.2, 3.3 with gem, bundler, rbenv
-**PHP**| 8.4 with Composer
-**Java**| OpenJDK 21 with Maven and Gradle
-**Go**| latest stable with module support
-**Rust**| rustc and cargo
-**C/C++**| GCC, Clang, cmake, ninja, conan
-**Docker**| docker, dockerd, docker compose
-**Databases**| PostgreSQL 16, Redis 7.0
-**Utilities**| git, jq, yq, ripgrep, tmux, vim, nano
-
-¹ Bun is installed but has known proxy compatibility issues for package fetching. For exact versions, ask Claude to run `check-tools` in a cloud session. This command only exists in cloud sessions.
-
-###
-
-
-
-Work with GitHub issues and pull requests
-
-Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. You can set `GH_TOKEN` or `GITHUB_TOKEN` yourself in environment settings, or leave both unset and let the GitHub proxy authenticate for you:
-
- * If you set a token, it passes through to the container unchanged, so `gh` and your scripts use it directly.
- * If you set neither, the container sets both variables to the placeholder string `proxy-injected` and the proxy substitutes your real credentials on outbound GitHub requests. `gh` works without a token of your own, but a script that reads `GITHUB_TOKEN` directly gets the placeholder, not a usable token.
-
-To check which case applies to your session, ask Claude to run `echo $GH_TOKEN`. The `gh` CLI isn’t pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
-
-1
-
-Install gh in your setup script
-
-Add `apt update && apt install -y gh` to your setup script.
-
-2
-
-Provide a token if the proxy is not handling authentication
-
-If `echo $GH_TOKEN` prints `proxy-injected`, the GitHub proxy authenticates `gh` for you and this step is unnecessary. Otherwise, add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed.
-
-###
-
-
-
-Link output back to the session
-
-Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. As of v2.1.179, commits that Claude creates in a web session include a `Claude-Session: <url>` git trailer, and PR bodies include the session URL on its own line. From v2.1.182, set [`attribution.sessionUrl`](</docs/en/settings#attribution-settings>) to `false` to omit the trailer and the PR-body link. To include the session link in something other than a commit or PR, such as a Slack message Claude posts or a report file it writes, have Claude run the following command and use its output. The command converts the `cse_` prefix in the environment variable’s value to the `session_` prefix that the transcript URL expects:
-
- echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID/#cse_/session_}"
-
-###
-
-
-
-Run tests, start services, and add packages
-
-Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test are pre-installed and work without additional setup. PostgreSQL and Redis are pre-installed but not running by default. Ask Claude to start each one during the session:
-
- service postgresql start
-
- service redis-server start
-
-Docker is available for running containerized services. Ask Claude to run `docker compose up` to start your project’s services. Network access to pull images follows your environment’s access level, and the Trusted defaults include Docker Hub and other common registries. If your images are large or slow to pull, add `docker compose pull` or `docker compose build` to your setup script. The pulled images are saved in the cached environment, so each new session has them on disk. The cache stores files only, not running processes, so Claude still starts the containers each session. To add packages that aren’t pre-installed, use a setup script. The script’s output is cached, so packages you install there are available at the start of every session without reinstalling each time. You can also ask Claude to install packages mid-session, but those installs don’t carry over to other sessions.
-
-###
-
-
-
-Resource limits
-
-Cloud sessions run with approximate resource ceilings that may change over time:
-
- * 4 vCPUs
- * 16 GB of RAM
- * 30 GB of disk
-
-Tasks requiring significantly more memory, such as large build jobs or memory-intensive tests, may fail or be terminated. For workloads beyond these limits, use [Remote Control](</docs/en/remote-control>) to run Claude Code on your own hardware.
-
-###
-
-
-
-Configure your environment
-
-Environments control network access, environment variables, and the setup script that runs before a session starts. See Installed tools for what’s available without any configuration. You can manage environments from the web interface or the terminal:
-
-Action| How
----|---
-Add an environment| Select the current environment to open the selector, then select **Add environment**. The dialog includes name, network access level, environment variables, and setup script.
-Edit an environment| Select the cloud icon showing the current environment’s name to open the selector, hover over an environment, and click the settings icon that appears on the right.
-Archive an environment| Open the environment for editing and select **Archive**. Archived environments are hidden from the selector but existing sessions keep running.
-Set the default environment for CLI cloud sessions| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
-
-Environment variables use `.env` format with one `KEY=value` pair per line. Don’t wrap values in quotes, since quotes are stored as part of the value. This example defines three variables:
-
- NODE_ENV=development
- LOG_LEVEL=debug
- DATABASE_URL=postgres://localhost:5432/myapp
-
-###
-
-
-
-Organization-shared environments
-
-Owners and admins on Team and Enterprise plans can create cloud environments that are shared with every member of the organization. Shared environments appear in each member’s environment selector alongside their personal ones, so a team can standardize on one configuration instead of each member recreating it. Manage shared environments from the **Cloud environments** page in [admin settings](<https://claude.ai/admin-settings>). From there you can:
-
- * Create, edit, and archive shared environments. Each one has the same fields as a personal environment: a name, a network access level, environment variables in `.env` format, and a setup script.
- * Set the default environment for the organization.
-
-Values in a shared environment reach every member’s sessions in that environment. Like personal environments, shared environments have no dedicated secrets store, so don’t include secrets.
-
-##
-
-
-
-Setup scripts
-
-A setup script is a Bash script that runs when a new cloud session starts, before Claude Code launches. Use setup scripts to install dependencies, configure tools, or fetch anything the session needs that isn’t pre-installed. Scripts run as root on Ubuntu 24.04, so `apt install` and most language package managers work. To add a setup script, open the environment settings dialog and enter your script in the **Setup script** field. This example installs the `gh` CLI, which isn’t pre-installed:
-
- #!/bin/bash
- apt update && apt install -y gh
-
-If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure. Keep the script’s total runtime under roughly five minutes so the environment cache can build. Run independent installs in parallel with `&` and `wait`. If a single download won’t fit in the five-minute limit, move it to a SessionStart hook that launches it in the background.
-
-Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts fail to install packages if your environment uses **None** network access.
-
-###
-
-
-
-Environment caching
-
-The setup script runs the first time you start a session in an environment. After it completes, Anthropic snapshots the filesystem and reuses that snapshot as the starting point for later sessions. New sessions start with your dependencies, tools, and Docker images already on disk, and the setup script step is skipped. This keeps startup fast even when the script installs large toolchains or pulls container images. The cache captures files, not running processes. Anything the setup script writes to disk carries over. Services or containers it starts don’t, so start those per session by asking Claude or with a SessionStart hook. The setup script runs again to rebuild the cache when you change the environment’s setup script or allowed network hosts, and when the cache reaches its expiry after roughly seven days. Resuming an existing session never re-runs the setup script. You don’t need to enable caching or manage snapshots yourself.
-
-###
-
-
-
-Setup scripts vs. SessionStart hooks
-
-Use a setup script to install things the cloud needs but your laptop already has, like a language runtime or CLI tool. Use a [SessionStart hook](</docs/en/hooks#sessionstart>) for project setup that should run everywhere, cloud and local, like `npm install`. Both run at the start of a session, but they belong to different places:
-
-| Setup scripts| SessionStart hooks
----|---|---
-Attached to| The cloud environment| Your repository
-Configured in| Cloud environment UI| `.claude/settings.json` in your repo
-Runs| Before Claude Code launches, when no cached environment is available| After Claude Code launches, on every session including resumed
-Scope| Cloud environments only| Both local and cloud
-
-SessionStart hooks can also be defined in your user-level `~/.claude/settings.json` locally, but user-level settings don’t carry over to cloud sessions. In the cloud, hooks come from the repo and from your organization’s [server-managed settings](</docs/en/server-managed-settings>).
-
-###
-
-
-
-Install dependencies with a SessionStart hook
-
-To install dependencies only in cloud sessions, add a SessionStart hook to your repo’s `.claude/settings.json`:
-
- {
- "hooks": {
- "SessionStart": [
- {
- "matcher": "startup|resume",
- "hooks": [
- {
- "type": "command",
- "command": "\"$CLAUDE_PROJECT_DIR\"/scripts/install_pkgs.sh"
- }
- ]
- }
- ]
- }
- }
-
-Create the script at `scripts/install_pkgs.sh`. The `CLAUDE_CODE_REMOTE` environment variable is set to `true` in cloud sessions, so you can use it to skip local execution:
-
- #!/bin/bash
-
- if [ "$CLAUDE_CODE_REMOTE" != "true" ]; then
- exit 0
- fi
-
- npm install
- pip install -r requirements.txt
- exit 0
-
-Then make the script executable:
-
- chmod +x scripts/install_pkgs.sh
-
-SessionStart hooks have some limitations in cloud sessions:
-
- * **No cloud-only scoping** : hooks run in both local and cloud sessions. To skip local execution, check the `CLAUDE_CODE_REMOTE` environment variable as shown above.
- * **Requires network access** : install commands need to reach package registries. If your environment uses **None** network access, these hooks fail. The default allowlist under **Trusted** covers npm, PyPI, RubyGems, and crates.io.
- * **Proxy compatibility** : all outbound traffic passes through a security proxy. Some package managers don’t work correctly with this proxy. Bun is a known example.
- * **Adds startup latency** : hooks run each time a session starts or resumes, unlike setup scripts which benefit from environment caching. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
-
-To persist environment variables for subsequent Bash commands, write to the file at `$CLAUDE_ENV_FILE`. See [SessionStart hooks](</docs/en/hooks#sessionstart>) for details. Replacing the base image with your own Docker image is not yet supported. Use a setup script to install what you need on top of the provided image, or run your image as a container alongside Claude with `docker compose`.
-
-##
-
-
-
-Network access
-
-Network access controls outbound connections from the cloud environment. Each environment specifies one access level, and you can extend it with custom allowed domains. The default is **Trusted** , which allows package registries and other allowlisted domains. To change an environment’s network access, open it for editing and use the **Network access** selector in the dialog. There is no separate Environments page. The cloud icon appears wherever you start a cloud session or configure a [routine](</docs/en/routines#environments-and-network-access>).
-
-MCP connector traffic is routed through Anthropic’s servers, so the connectors you enable on a session or routine work without adding their hosts to **Allowed domains**. Connectors are configured per session or per routine; remove any you don’t need to limit which tools Claude can reach. This relies on the same Anthropic-bound channel noted under Security and isolation.
-
-###
-
-
-
-Access levels
-
-Choose an access level when you create or edit an environment:
-
-Level| Outbound connections
----|---
-**None**| No outbound network access
-**Trusted**| Allowlisted domains only: package registries, GitHub, cloud SDKs
-**Full**| Any domain
-**Custom**| Your own allowlist, optionally including the defaults
-
-GitHub operations use a separate proxy that is independent of this setting.
-
-###
-
-
-
-Allow specific domains
-
-To allow domains that aren’t in the Trusted list, select **Custom** in the environment’s network access settings. An **Allowed domains** field appears. Enter one domain per line:
-
- api.example.com
- *.internal.example.com
- registry.example.com
-
-Use `*.` for wildcard subdomain matching. Check **Also include default list of common package managers** to keep the Trusted domains alongside your custom entries, or leave it unchecked to allow only what you list. Allowed domains are configured per environment. There’s no organization-level allowlist that Owners can push to all users’ environments; [server-managed settings](</docs/en/server-managed-settings>) can restrict cloud sessions but can’t add allowed domains.
-
-###
-
-
-
-GitHub proxy
-
-For security, all GitHub operations go through a dedicated proxy service that keeps your real GitHub credentials outside the sandbox. The proxy authenticates two kinds of traffic:
-
- * Git interactions: the git client inside the sandbox uses a custom-built scoped credential, which the proxy verifies and translates to your actual GitHub authentication token
- * GitHub API requests: the proxy substitutes your real credentials on requests from the built-in GitHub tools, and from `gh` when your session sets the `proxy-injected` placeholder described in Work with GitHub issues and pull requests
-
-The proxy also restricts git push operations to the current working branch for safety, and enables cloning, fetching, and PR operations while maintaining security boundaries. The proxy limits GitHub API and release-asset requests to repositories attached to the session, regardless of the environment’s network access level. Setup scripts that download release assets from unattached repositories return a 403. Committed files from public repositories are fetched through `raw.githubusercontent.com`, which the security proxy handles instead. That domain is in the default Trusted list, so the files stay reachable unless the environment’s access level excludes it.
-
-###
-
-
-
-Security proxy
-
-Environments run behind an HTTP/HTTPS network proxy for security and abuse prevention purposes. All outbound internet traffic passes through this proxy, which provides:
-
- * Protection against malicious requests
- * Rate limiting and abuse prevention
- * Content filtering for enhanced security
- * A DNS-level audit trail of requested hostnames
-
-###
-
-
-
-Default allowed domains
-
-When using **Trusted** network access, the following domains are allowed by default. Domains marked with `*` indicate wildcard subdomain matching, so `*.gcr.io` allows any subdomain of `gcr.io`.
-
-Anthropic services
-
- * api.anthropic.com
- * statsig.anthropic.com
- * docs.claude.com
- * platform.claude.com
- * code.claude.com
- * claude.ai
-
-Version control
-
- * github.com
- * [www.github.com](<http://www.github.com>)
- * api.github.com
- * npm.pkg.github.com
- * raw.githubusercontent.com
- * pkg-npm.githubusercontent.com
- * objects.githubusercontent.com
- * release-assets.githubusercontent.com
- * codeload.github.com
- * avatars.githubusercontent.com
- * camo.githubusercontent.com
- * gist.github.com
- * gitlab.com
- * [www.gitlab.com](<http://www.gitlab.com>)
- * registry.gitlab.com
- * bitbucket.org
- * [www.bitbucket.org](<http://www.bitbucket.org>)
- * api.bitbucket.org
-
-Container registries
-
- * registry-1.docker.io
- * auth.docker.io
- * index.docker.io
- * hub.docker.com
- * [www.docker.com](<http://www.docker.com>)
- * production.cloudflare.docker.com
- * download.docker.com
- * gcr.io
- * *.gcr.io
- * ghcr.io
- * mcr.microsoft.com
- * *.data.mcr.microsoft.com
- * public.ecr.aws
-
-Cloud platforms
-
- * cloud.google.com
- * accounts.google.com
- * gcloud.google.com
- * *.googleapis.com
- * storage.googleapis.com
- * compute.googleapis.com
- * container.googleapis.com
- * azure.com
- * portal.azure.com
- * microsoft.com
- * [www.microsoft.com](<http://www.microsoft.com>)
- * *.microsoftonline.com
- * packages.microsoft.com
- * dotnet.microsoft.com
- * dot.net
- * visualstudio.com
- * dev.azure.com
- * *.amazonaws.com
- * *.api.aws
- * oracle.com
- * [www.oracle.com](<http://www.oracle.com>)
- * java.com
- * [www.java.com](<http://www.java.com>)
- * java.net
- * [www.java.net](<http://www.java.net>)
- * download.oracle.com
- * yum.oracle.com
-
-JavaScript and Node package managers
-
- * registry.npmjs.org
- * [www.npmjs.com](<http://www.npmjs.com>)
- * [www.npmjs.org](<http://www.npmjs.org>)
- * npmjs.com
- * npmjs.org
- * yarnpkg.com
- * registry.yarnpkg.com
-
-Python package managers
-
- * pypi.org
- * [www.pypi.org](<http://www.pypi.org>)
- * files.pythonhosted.org
- * pythonhosted.org
- * test.pypi.org
- * pypi.python.org
- * pypa.io
- * [www.pypa.io](<http://www.pypa.io>)
-
-Ruby package managers
-
- * rubygems.org
- * [www.rubygems.org](<http://www.rubygems.org>)
- * api.rubygems.org
- * index.rubygems.org
- * ruby-lang.org
- * [www.ruby-lang.org](<http://www.ruby-lang.org>)
- * rubyforge.org
- * [www.rubyforge.org](<http://www.rubyforge.org>)
- * rubyonrails.org
- * [www.rubyonrails.org](<http://www.rubyonrails.org>)
- * rvm.io
- * get.rvm.io
-
-Rust package managers
-
- * crates.io
- * [www.crates.io](<http://www.crates.io>)
- * index.crates.io
- * static.crates.io
- * rustup.rs
- * static.rust-lang.org
- * [www.rust-lang.org](<http://www.rust-lang.org>)
-
-Go package managers
-
- * proxy.golang.org
- * sum.golang.org
- * index.golang.org
- * golang.org
- * [www.golang.org](<http://www.golang.org>)
- * goproxy.io
- * pkg.go.dev
-
-JVM package managers
-
- * maven.org
- * repo.maven.org
- * central.maven.org
- * repo1.maven.org
- * repo.maven.apache.org
- * jcenter.bintray.com
- * gradle.org
- * [www.gradle.org](<http://www.gradle.org>)
- * services.gradle.org
- * plugins.gradle.org
- * kotlinlang.org
- * [www.kotlinlang.org](<http://www.kotlinlang.org>)
- * spring.io
- * repo.spring.io
-
-Other package managers
-
- * packagist.org (PHP Composer)
- * [www.packagist.org](<http://www.packagist.org>)
- * repo.packagist.org
- * nuget.org (.NET NuGet)
- * [www.nuget.org](<http://www.nuget.org>)
- * api.nuget.org
- * pub.dev (Dart/Flutter)
- * api.pub.dev
- * hex.pm (Elixir/Erlang)
- * [www.hex.pm](<http://www.hex.pm>)
- * cpan.org (Perl CPAN)
- * [www.cpan.org](<http://www.cpan.org>)
- * metacpan.org
- * [www.metacpan.org](<http://www.metacpan.org>)
- * api.metacpan.org
- * cocoapods.org (iOS/macOS)
- * [www.cocoapods.org](<http://www.cocoapods.org>)
- * cdn.cocoapods.org
- * haskell.org
- * [www.haskell.org](<http://www.haskell.org>)
- * hackage.haskell.org
- * swift.org
- * [www.swift.org](<http://www.swift.org>)
-
-Linux distributions
-
- * archive.ubuntu.com
- * security.ubuntu.com
- * ubuntu.com
- * [www.ubuntu.com](<http://www.ubuntu.com>)
- * *.ubuntu.com
- * ppa.launchpad.net
- * launchpad.net
- * [www.launchpad.net](<http://www.launchpad.net>)
- * *.nixos.org
-
-Development tools and platforms
-
- * dl.k8s.io (Kubernetes)
- * pkgs.k8s.io
- * k8s.io
- * [www.k8s.io](<http://www.k8s.io>)
- * releases.hashicorp.com (HashiCorp)
- * apt.releases.hashicorp.com
- * rpm.releases.hashicorp.com
- * archive.releases.hashicorp.com
- * hashicorp.com
- * [www.hashicorp.com](<http://www.hashicorp.com>)
- * repo.anaconda.com (Anaconda/Conda)
- * conda.anaconda.org
- * anaconda.org
- * [www.anaconda.com](<http://www.anaconda.com>)
- * anaconda.com
- * continuum.io
- * apache.org (Apache)
- * [www.apache.org](<http://www.apache.org>)
- * archive.apache.org
- * downloads.apache.org
- * eclipse.org (Eclipse)
- * [www.eclipse.org](<http://www.eclipse.org>)
- * download.eclipse.org
- * nodejs.org (Node.js)
- * [www.nodejs.org](<http://www.nodejs.org>)
- * developer.apple.com
- * developer.android.com
- * pkg.stainless.com
- * binaries.prisma.sh
-
-Cloud services and monitoring
-
- * statsig.com
- * [www.statsig.com](<http://www.statsig.com>)
- * api.statsig.com
- * sentry.io
- * *.sentry.io
- * downloads.sentry-cdn.com
- * http-intake.logs.datadoghq.com
- * browser-intake-us5-datadoghq.com
- * *.datadoghq.com
- * *.datadoghq.eu
- * api.honeycomb.io
-
-Content delivery and mirrors
-
- * sourceforge.net
- * *.sourceforge.net
- * packagecloud.io
- * *.packagecloud.io
- * fonts.googleapis.com
- * fonts.gstatic.com
-
-Schema and configuration
-
- * json-schema.org
- * [www.json-schema.org](<http://www.json-schema.org>)
- * json.schemastore.org
- * [www.schemastore.org](<http://www.schemastore.org>)
-
-Model Context Protocol
-
- * *.modelcontextprotocol.io
-
-##
-
-
-
Move tasks between web and terminal
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app. The `--cloud` and `--teleport` flags don’t appear in `claude --help` output, but the CLI accepts them as shown below.
@@ -628,7 +61,7 @@
claude --cloud "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your setup script, while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
+This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](</docs/en/cloud-environments#setup-scripts>), while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
@@ -728,7 +161,7 @@
Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
* **`/model`, `/effort`, `/fast`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force, and `/fast` works only in a session that started with fast mode turned on.
- * **`/config`** : on the web, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use environment variables or commit [settings files](</docs/en/settings>) to the repository.
+ * **`/config`** : on the web, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use [environment variables](</docs/en/cloud-environments#set-environment-variables>) or commit [settings files](</docs/en/settings>) to the repository.
For context management specifically:
@@ -738,7 +171,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your environment variables. For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your environment variables.
+Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your [environment variables](</docs/en/cloud-environments#set-environment-variables>). For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your [environment variables](</docs/en/cloud-environments#set-environment-variables>).
###
@@ -801,7 +234,7 @@
Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
-Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during [setup](</docs/en/web-quickstart#connect-github-and-create-an-environment>).
+Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during [setup](</docs/en/web-quickstart#connect-github>).
There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
@@ -855,7 +288,7 @@
Session creation failed
-If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a cloud environment.
+If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a VM for the session.
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
@@ -887,7 +320,7 @@
Environment expired
-Cloud sessions stop after a period of inactivity and the underlying environment is reclaimed. From a local terminal, this surfaces as `Could not resume session ... its environment has expired. Creating a fresh session instead.` On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh environment with your conversation history restored.
+Cloud sessions stop after a period of inactivity and the session’s VM is reclaimed. On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh VM with your conversation history restored.
##
@@ -908,6 +341,7 @@
Related resources
+ * [Cloud environments](</docs/en/cloud-environments>): configure network access, environment variables, and setup scripts for cloud sessions
* [Ultraplan](</docs/en/ultraplan>): draft a plan in a cloud session and review it in your browser
* [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
@@ -915,4 +349,4 @@
* [Settings reference](</docs/en/settings>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
* [Data usage](</docs/en/data-usage>): what Anthropic retains from cloud sessions
- * [Claude Tag](<https://claude.com/docs/claude-tag/overview>): an organization-managed @Claude in Slack that runs on the same cloud environment
+ * [Claude Tag](<https://claude.com/docs/claude-tag/overview>): an organization-managed @Claude in Slack that runs on the same cloud infrastructure
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -189,7 +189,7 @@
* Create, edit, and archive shared environments. Each one has the same fields as a personal environment: a name, a network access level, environment variables in `.env` format, and a setup script.
* Set the default environment for the organization.
-Values in a shared environment reach every member’s sessions in that environment. Like personal environments, shared environments have no dedicated secrets store, so don’t include secrets. Organizations in the self-hosted runners program also manage their runner pools from the same page.
+Values in a shared environment reach every member’s sessions in that environment. Like personal environments, shared environments have no dedicated secrets store, so don’t include secrets.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -632,7 +632,7 @@
`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
-Use `/tasks` in the Claude Code CLI to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
+Use `/tasks` in the Claude Code CLI to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation. If Claude asks a question and the session sits idle, you can still answer when you come back, up to environment expiry, and the session continues from your answer.
####
@@ -686,7 +686,7 @@
* **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
* **From the web interface** : select **Open in CLI** to copy a command you can paste into your terminal.
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
+When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session on claude.ai or the Claude mobile app. To keep steering from your phone after teleporting, start [`/remote-control`](</docs/en/remote-control>) in the local session. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
####
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -770,7 +770,7 @@
Share from a Max or Pro account
-For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. To require recipients to have repository access, or to hide your name from shared sessions, go to Settings > Claude Code > Sharing settings.
+For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. To require recipients to have repository access, or to hide your name from shared sessions, go to [**Settings > Claude Code > Sharing settings**](<https://claude.ai/settings/claude-code>).
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -64,6 +64,7 @@
Your user `~/.claude/skills/`, `~/.claude/agents/`, `~/.claude/commands/`| No| Live on your machine, not in the repo. Commit them to the repo’s `.claude/` directory instead. Skills you enable on claude.ai are loaded into cloud sessions automatically
Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
MCP servers you added with `claude mcp add`| No| Those write to your local user config, not the repo. Declare the server in [`.mcp.json`](</docs/en/mcp#project-scope>) instead
+Transport variables in your repo’s `.claude/settings.json` `env` block, such as `NODE_EXTRA_CA_CERTS` and the [mTLS client certificate variables](</docs/en/network-config#mtls-authentication>)| No| The hosting environment manages the session’s API connection, so Claude Code ignores these keys and notes each ignored key in the session’s debug log
Static API tokens and credentials| No| No dedicated secrets store exists yet. See below
Interactive auth like AWS SSO| No| Not supported. SSO requires browser-based login that can’t run in a cloud session
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -254,7 +254,7 @@
}
}
-Create the script at `scripts/install_pkgs.sh` and make it executable with `chmod +x`. The `CLAUDE_CODE_REMOTE` environment variable is set to `true` in cloud sessions, so you can use it to skip local execution:
+Create the script at `scripts/install_pkgs.sh`. The `CLAUDE_CODE_REMOTE` environment variable is set to `true` in cloud sessions, so you can use it to skip local execution:
#!/bin/bash
@@ -265,6 +265,10 @@
npm install
pip install -r requirements.txt
exit 0
+
+Then make the script executable:
+
+ chmod +x scripts/install_pkgs.sh
SessionStart hooks have some limitations in cloud sessions:
@@ -609,7 +613,7 @@
Move tasks between web and terminal
-These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
+These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app. The `--cloud` and `--teleport` flags don’t appear in `claude --help` output, but the CLI accepts them as shown below.
From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag creates a new cloud session for your current repository. The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
@@ -704,7 +708,7 @@
`--teleport` is unavailable
-Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, run `/login` to sign in with your claude.ai account instead. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
+Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, run `/login` to sign in with your claude.ai account instead. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, `--teleport` stops with `Cloud sessions aren't available with <provider>` because cloud sessions run on Anthropic’s infrastructure and aren’t available through those providers. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
##
@@ -855,6 +859,14 @@
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
* Confirm your repository is reachable. The connecting GitHub account must have access to the repository on GitHub, either through the Claude GitHub App authorization or a `gh` token synced via `/web-setup`. Installing the App on the repository isn’t required. See GitHub authentication options.
+
+###
+
+
+
+Unable to get organization UUID
+
+`claude --cloud` and `claude --teleport` require sign-in with a claude.ai account. If you authenticate with an API key, or your stored account details are stale, these commands fail with `Unable to get organization UUID` or a message that API key authentication is not sufficient. Run `/login` to sign in with your claude.ai account, then retry the command. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, the commands stop earlier with `Cloud sessions aren't available with <provider>`. Cloud sessions run on Anthropic’s infrastructure and aren’t available through those providers.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -99,7 +99,12 @@
Work with GitHub issues and pull requests
-Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. The `gh` CLI isn’t pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
+Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. You can set `GH_TOKEN` or `GITHUB_TOKEN` yourself in environment settings, or leave both unset and let the GitHub proxy authenticate for you:
+
+ * If you set a token, it passes through to the container unchanged, so `gh` and your scripts use it directly.
+ * If you set neither, the container sets both variables to the placeholder string `proxy-injected` and the proxy substitutes your real credentials on outbound GitHub requests. `gh` works without a token of your own, but a script that reads `GITHUB_TOKEN` directly gets the placeholder, not a usable token.
+
+To check which case applies to your session, ask Claude to run `echo $GH_TOKEN`. The `gh` CLI isn’t pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
1
@@ -109,9 +114,9 @@
2
-Provide a token
-
-Add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed.
+Provide a token if the proxy is not handling authentication
+
+If `echo $GH_TOKEN` prints `proxy-injected`, the GitHub proxy authenticates `gh` for you and this step is unnecessary. Otherwise, add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed.
###
@@ -317,12 +322,12 @@
GitHub proxy
-For security, all GitHub operations go through a dedicated proxy service that transparently handles all git interactions. Inside the sandbox, the git client authenticates using a custom-built scoped credential. This proxy:
-
- * Manages GitHub authentication securely: the git client uses a scoped credential inside the sandbox, which the proxy verifies and translates to your actual GitHub authentication token
- * Restricts git push operations to the current working branch for safety
- * Enables cloning, fetching, and PR operations while maintaining security boundaries
- * Limits GitHub API and release-asset requests to repositories attached to the session, regardless of the environment’s network access level. Setup scripts that download release assets from unattached repositories return a 403. Committed files from public repositories are fetched through `raw.githubusercontent.com`, which the security proxy handles instead. That domain is in the default Trusted list, so the files stay reachable unless the environment’s access level excludes it
+For security, all GitHub operations go through a dedicated proxy service that keeps your real GitHub credentials outside the sandbox. The proxy authenticates two kinds of traffic:
+
+ * Git interactions: the git client inside the sandbox uses a custom-built scoped credential, which the proxy verifies and translates to your actual GitHub authentication token
+ * GitHub API requests: the proxy substitutes your real credentials on requests from the built-in GitHub tools, and from `gh` when your session sets the `proxy-injected` placeholder described in Work with GitHub issues and pull requests
+
+The proxy also restricts git push operations to the current working branch for safety, and enables cloning, fetching, and PR operations while maintaining security boundaries. The proxy limits GitHub API and release-asset requests to repositories attached to the session, regardless of the environment’s network access level. Setup scripts that download release assets from unattached repositories return a 403. Committed files from public repositories are fetched through `raw.githubusercontent.com`, which the security proxy handles instead. That domain is in the default Trusted list, so the files stay reachable unless the environment’s access level excludes it.
###
@@ -715,7 +720,12 @@
Manage context
-Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. `/model`, `/effort`, `/fast`, `/color`, and `/rename` work with the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider; the argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>), so `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force and `/fast` works only in a session that started with fast mode turned on. `/config` sets a setting when you pass `key=value`. For context management specifically:
+Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. Commands that open a picker or panel in the terminal behave differently in cloud sessions:
+
+ * **`/model`, `/effort`, `/fast`, `/color`, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>): `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force, and `/fast` works only in a session that started with fast mode turned on.
+ * **`/config`** : on the web, opens the Claude Code section of your settings instead of setting a value, and text after the command, including `key=value`, is ignored. To change settings for a cloud session, use environment variables or commit [settings files](</docs/en/settings>) to the repository.
+
+For context management specifically:
Command| Works in cloud sessions| Notes
---|---|---
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -172,6 +172,19 @@
LOG_LEVEL=debug
DATABASE_URL=postgres://localhost:5432/myapp
+###
+
+
+
+Organization-shared environments
+
+Owners and admins on Team and Enterprise plans can create cloud environments that are shared with every member of the organization. Shared environments appear in each member’s environment selector alongside their personal ones, so a team can standardize on one configuration instead of each member recreating it. Manage shared environments from the **Cloud environments** page in [admin settings](<https://claude.ai/admin-settings>). From there you can:
+
+ * Create, edit, and archive shared environments. Each one has the same fields as a personal environment: a name, a network access level, environment variables in `.env` format, and a setup script.
+ * Set the default environment for the organization.
+
+Values in a shared environment reach every member’s sessions in that environment. Like personal environments, shared environments have no dedicated secrets store, so don’t include secrets. Organizations in the self-hosted runners program also manage their runner pools from the same page.
+
##
@@ -296,7 +309,7 @@
*.internal.example.com
registry.example.com
-Use `*.` for wildcard subdomain matching. Check **Also include default list of common package managers** to keep the Trusted domains alongside your custom entries, or leave it unchecked to allow only what you list.
+Use `*.` for wildcard subdomain matching. Check **Also include default list of common package managers** to keep the Trusted domains alongside your custom entries, or leave it unchecked to allow only what you list. Allowed domains are configured per environment. There’s no organization-level allowlist that Owners can push to all users’ environments; [server-managed settings](</docs/en/server-managed-settings>) can restrict cloud sessions but can’t add allowed domains.
###
@@ -309,6 +322,7 @@
* Manages GitHub authentication securely: the git client uses a scoped credential inside the sandbox, which the proxy verifies and translates to your actual GitHub authentication token
* Restricts git push operations to the current working branch for safety
* Enables cloning, fetching, and PR operations while maintaining security boundaries
+ * Limits GitHub API and release-asset requests to repositories attached to the session, regardless of the environment’s network access level. Setup scripts that download release assets from unattached repositories return a 403. Committed files from public repositories are fetched through `raw.githubusercontent.com`, which the security proxy handles instead. That domain is in the default Trusted list, so the files stay reachable unless the environment’s access level excludes it
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -701,7 +701,7 @@
Manage context
-Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that open an interactive terminal picker, like `/model` or `/config`, are not available. For context management specifically:
+Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that only run in the terminal interface, such as `/plugin` or `/resume`, aren’t available. `/model`, `/effort`, `/fast`, `/color`, and `/rename` work with the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider; the argument forms require Claude Code v2.1.205 or later in the session’s environment and follow each command’s [availability notes](</docs/en/commands#all-commands>), so `/effort` reports `Not applied` while a model’s [launch-default effort hold](</docs/en/model-config#adjust-effort-level>) is in force and `/fast` works only in a session that started with fast mode turned on. `/config` sets a setting when you pass `key=value`. For context management specifically:
Command| Works in cloud sessions| Notes
---|---|---
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -10,7 +10,7 @@
* The cloud environment: what config carries over, what tools are installed, and how to configure environments
* Setup scripts and dependency management
* Network access: levels, proxies, and the default allowlist
- * Move tasks between web and terminal with `--remote` and `--teleport`
+ * Move tasks between web and terminal with `--cloud` and `--teleport`
* Work with sessions: reviewing, sharing, archiving, deleting
* Auto-fix pull requests: respond automatically to CI failures and review comments
* Security and isolation: how sessions are isolated
@@ -164,7 +164,7 @@
Add an environment| Select the current environment to open the selector, then select **Add environment**. The dialog includes name, network access level, environment variables, and setup script.
Edit an environment| Select the cloud icon showing the current environment’s name to open the selector, hover over an environment, and click the settings icon that appears on the right.
Archive an environment| Open the environment for editing and select **Archive**. Archived environments are hidden from the selector but existing sessions keep running.
-Set the default for `--remote`| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
+Set the default environment for CLI cloud sessions| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
Environment variables use `.env` format with one `KEY=value` pair per line. Don’t wrap values in quotes, since quotes are stored as part of the value. This example defines three variables:
@@ -592,7 +592,7 @@
These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--remote` flag creates a new cloud session for your current repository. The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--cloud` flag creates a new cloud session for your current repository. The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
###
@@ -600,13 +600,13 @@
From terminal to web
-Start a cloud session from the command line with the `--remote` flag:
-
- claude --remote "Fix the authentication bug in src/auth/login.ts"
-
-This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--remote` works with a single repository at a time. The task runs in the cloud while you continue working locally. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your setup script, while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
-
-`--remote` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
+Start a cloud session from the command line with the `--cloud` flag:
+
+ claude --cloud "Fix the authentication bug in src/auth/login.ts"
+
+This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your setup script, while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
+
+`--cloud` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
Use `/tasks` in the Claude Code CLI to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
@@ -622,13 +622,13 @@
In plan mode, Claude reads files, runs commands to explore, and proposes a plan without editing source code. Once you’re satisfied, save the plan to the repo, commit, and push so the cloud VM can clone it. Then start a cloud session for autonomous execution:
- claude --remote "Execute the migration plan in docs/migration-plan.md"
-
-This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : to draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : each `--remote` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
-
- claude --remote "Fix the flaky test in auth.spec.ts"
- claude --remote "Update the API documentation"
- claude --remote "Refactor the logger to use structured output"
+ claude --cloud "Execute the migration plan in docs/migration-plan.md"
+
+This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : to draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : each `--cloud` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
+
+ claude --cloud "Fix the flaky test in auth.spec.ts"
+ claude --cloud "Update the API documentation"
+ claude --cloud "Refactor the logger to use structured output"
Monitor all sessions with `/tasks` in the Claude Code CLI. When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
@@ -638,9 +638,9 @@
Send local repositories without GitHub
-When you run `claude --remote` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus any uncommitted changes to tracked files. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
-
- CCR_FORCE_BUNDLE=1 claude --remote "Run the test suite and fix any failures"
+When you run `claude --cloud` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus any uncommitted changes to tracked files. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
+
+ CCR_FORCE_BUNDLE=1 claude --cloud "Run the test suite and fix any failures"
Bundled repositories must meet these limits:
@@ -685,7 +685,7 @@
`--teleport` is unavailable
-Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, Bedrock, Vertex AI, or Microsoft Foundry, run `/login` to sign in with your claude.ai account instead. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
+Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, run `/login` to sign in with your claude.ai account instead. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -675,7 +675,7 @@
Requirement| Details
---|---
Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
-Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork. As of v2.1.199, Claude Code accepts a checkout even when it can’t parse the remote into a hostname, such as an SSH host alias like `git@work:owner/repo.git` or an `insteadOf`-rewritten short form. It shows a confirmation prompt first, and only when the remote’s owner and repository name match the session’s repository.
Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
Same account| You must be authenticated to the same claude.ai account used in the cloud session.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -559,6 +559,7 @@
* *.sentry.io
* downloads.sentry-cdn.com
* http-intake.logs.datadoghq.com
+ * browser-intake-us5-datadoghq.com
* *.datadoghq.com
* *.datadoghq.eu
* api.honeycomb.io
@@ -603,7 +604,7 @@
claude --remote "Fix the authentication bug in src/auth/login.ts"
-This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--remote` works with a single repository at a time. The task runs in the cloud while you continue working locally.
+This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--remote` works with a single repository at a time. The task runs in the cloud while you continue working locally. As of v2.1.195, the CLI shows a live checklist of setup steps, such as cloning the repository and running your setup script, while the cloud container starts. Messages you type while the container is provisioning are queued and sent once the session is ready.
`--remote` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
Show diff (123 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -33,7 +33,7 @@
Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise Owners can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
-Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features.
+Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled can’t use `/web-setup` or other cloud session features.
##
@@ -49,7 +49,7 @@
What’s available in cloud sessions
-Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine is not; your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
+Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine isn’t available in the session. Your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
| Available in cloud sessions| Why
---|---|---
@@ -59,7 +59,7 @@
Your repo’s `.claude/rules/`| Yes| Part of the clone
Your repo’s `.claude/skills/`, `.claude/agents/`, `.claude/commands/`| Yes| Part of the clone
Plugins declared in `.claude/settings.json`| Yes| Installed at session start from the [marketplace](</docs/en/plugin-marketplaces>) you declared. Requires network access to reach the marketplace source
-Your organization’s [server-managed settings](</docs/en/server-managed-settings>)| Yes| Fetched from Anthropic’s servers when the session starts. See [Surface coverage](</docs/en/model-config#surface-coverage>) for how `availableModels` is enforced in cloud sessions. Settings deployed to your device through MDM or managed settings files do not apply, because the session runs on an Anthropic-managed VM
+Your organization’s [server-managed settings](</docs/en/server-managed-settings>)| Yes| Fetched from Anthropic’s servers when the session starts. See [Surface coverage](</docs/en/model-config#surface-coverage>) for how `availableModels` is enforced in cloud sessions. Settings deployed to your device through MDM or managed settings files don’t apply, because the session runs on an Anthropic-managed VM
Your user `~/.claude/CLAUDE.md`| No| Lives on your machine, not in the repo
Your user `~/.claude/skills/`, `~/.claude/agents/`, `~/.claude/commands/`| No| Live on your machine, not in the repo. Commit them to the repo’s `.claude/` directory instead. Skills you enable on claude.ai are loaded into cloud sessions automatically
Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
@@ -99,7 +99,7 @@
Work with GitHub issues and pull requests
-Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. The `gh` CLI is not pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
+Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. The `gh` CLI isn’t pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
1
@@ -129,7 +129,7 @@
Run tests, start services, and add packages
-Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test work out of the box since they’re pre-installed. PostgreSQL and Redis are pre-installed but not running by default. Ask Claude to start each one during the session:
+Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test are pre-installed and work without additional setup. PostgreSQL and Redis are pre-installed but not running by default. Ask Claude to start each one during the session:
service postgresql start
@@ -166,7 +166,7 @@
Archive an environment| Open the environment for editing and select **Archive**. Archived environments are hidden from the selector but existing sessions keep running.
Set the default for `--remote`| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
-Environment variables use `.env` format with one `KEY=value` pair per line. Don’t wrap values in quotes, since quotes are stored as part of the value.
+Environment variables use `.env` format with one `KEY=value` pair per line. Don’t wrap values in quotes, since quotes are stored as part of the value. This example defines three variables:
NODE_ENV=development
LOG_LEVEL=debug
@@ -185,7 +185,7 @@
If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure. Keep the script’s total runtime under roughly five minutes so the environment cache can build. Run independent installs in parallel with `&` and `wait`. If a single download won’t fit in the five-minute limit, move it to a SessionStart hook that launches it in the background.
-Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment uses **None** network access.
+Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts fail to install packages if your environment uses **None** network access.
###
@@ -193,7 +193,7 @@
Environment caching
-The setup script runs the first time you start a session in an environment. After it completes, Anthropic snapshots the filesystem and reuses that snapshot as the starting point for later sessions. New sessions start with your dependencies, tools, and Docker images already on disk, and the setup script step is skipped. This keeps startup fast even when the script installs large toolchains or pulls container images. The cache captures files, not running processes. Anything the setup script writes to disk carries over. Services or containers it starts do not, so start those per session by asking Claude or with a SessionStart hook. The setup script runs again to rebuild the cache when you change the environment’s setup script or allowed network hosts, and when the cache reaches its expiry after roughly seven days. Resuming an existing session never re-runs the setup script. You don’t need to enable caching or manage snapshots yourself.
+The setup script runs the first time you start a session in an environment. After it completes, Anthropic snapshots the filesystem and reuses that snapshot as the starting point for later sessions. New sessions start with your dependencies, tools, and Docker images already on disk, and the setup script step is skipped. This keeps startup fast even when the script installs large toolchains or pulls container images. The cache captures files, not running processes. Anything the setup script writes to disk carries over. Services or containers it starts don’t, so start those per session by asking Claude or with a SessionStart hook. The setup script runs again to rebuild the cache when you change the environment’s setup script or allowed network hosts, and when the cache reaches its expiry after roughly seven days. Resuming an existing session never re-runs the setup script. You don’t need to enable caching or manage snapshots yourself.
###
@@ -657,9 +657,9 @@
Pull a cloud session into your terminal using any of these:
* **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
- * **Using`/teleport`**: inside an existing CLI session, run `/teleport` (or `/tp`) to open the same session picker without restarting Claude Code.
- * **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one
- * **From the web interface** : select **Open in CLI** to copy a command you can paste into your terminal
+ * **Using`/teleport`**: inside an existing CLI session, run `/teleport` or `/tp` to open the same session picker without restarting Claude Code.
+ * **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one.
+ * **From the web interface** : select **Open in CLI** to copy a command you can paste into your terminal.
When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
@@ -732,7 +732,7 @@
Share from an Enterprise or Team account
-For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
+For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access.
####
@@ -756,7 +756,7 @@
Delete sessions
-Deleting a session permanently removes the session and its data. This action cannot be undone. You can delete a session in two ways:
+Deleting a session permanently removes the session and its data. This action can’t be undone. You can delete a session in two ways:
* **From the sidebar** : filter for archived sessions, then hover over the session you want to delete and select the delete icon
* **From the session menu** : open a session, select the dropdown next to the session title, and select **Delete**
@@ -794,7 +794,7 @@
* **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
* **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
-GitHub does not emit a webhook when the base branch advances and creates a merge conflict, so auto-fix cannot react to conflicts on its own. To resolve a conflict, open the session and ask Claude to rebase. Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+GitHub does not emit a webhook when the base branch advances and creates a merge conflict, so auto-fix can’t react to conflicts on its own. To resolve a conflict, open the session and ask Claude to rebase. Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
@@ -829,7 +829,7 @@
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
- * Confirm your repository is reachable. The connecting GitHub account must have access to the repository on GitHub, either through the Claude GitHub App authorization or a `gh` token synced via `/web-setup` — installing the App on the repository is not required. See GitHub authentication options.
+ * Confirm your repository is reachable. The connecting GitHub account must have access to the repository on GitHub, either through the Claude GitHub App authorization or a `gh` token synced via `/web-setup`. Installing the App on the repository isn’t required. See GitHub authentication options.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -31,7 +31,7 @@
With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
-Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise Owners can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features.
@@ -841,7 +841,7 @@
* Run `/login` locally to refresh your credentials, then reconnect
* Confirm you are signed in to the same account that owns the session
- * If you see `Remote Control may not be available for this organization`, your admin has not enabled cloud sessions for your plan
+ * If you see `Remote Control may not be available for this organization`, an Owner has not enabled cloud sessions for your organization
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -49,7 +49,7 @@
What’s available in cloud sessions
-Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine is not.
+Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine is not; your organization’s policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>).
| Available in cloud sessions| Why
---|---|---
@@ -59,6 +59,7 @@
Your repo’s `.claude/rules/`| Yes| Part of the clone
Your repo’s `.claude/skills/`, `.claude/agents/`, `.claude/commands/`| Yes| Part of the clone
Plugins declared in `.claude/settings.json`| Yes| Installed at session start from the [marketplace](</docs/en/plugin-marketplaces>) you declared. Requires network access to reach the marketplace source
+Your organization’s [server-managed settings](</docs/en/server-managed-settings>)| Yes| Fetched from Anthropic’s servers when the session starts. See [Surface coverage](</docs/en/model-config#surface-coverage>) for how `availableModels` is enforced in cloud sessions. Settings deployed to your device through MDM or managed settings files do not apply, because the session runs on an Anthropic-managed VM
Your user `~/.claude/CLAUDE.md`| No| Lives on your machine, not in the repo
Your user `~/.claude/skills/`, `~/.claude/agents/`, `~/.claude/commands/`| No| Live on your machine, not in the repo. Commit them to the repo’s `.claude/` directory instead. Skills you enable on claude.ai are loaded into cloud sessions automatically
Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
@@ -66,7 +67,7 @@
Static API tokens and credentials| No| No dedicated secrets store exists yet. See below
Interactive auth like AWS SSO| No| Not supported. SSO requires browser-based login that can’t run in a cloud session
-To make configuration available in cloud sessions, commit it to the repo. A dedicated secrets store is not yet available. Both environment variables and setup scripts are stored in the environment configuration, visible to anyone who can edit that environment. If you need secrets in a cloud session, add them as environment variables with that visibility in mind.
+To make your own configuration available in cloud sessions, commit it to the repo; organization policy arrives separately through [server-managed settings](</docs/en/server-managed-settings>). A dedicated secrets store is not yet available. Both environment variables and setup scripts are stored in the environment configuration, visible to anyone who can edit that environment. If you need secrets in a cloud session, add them as environment variables with that visibility in mind.
###
@@ -209,7 +210,7 @@
Runs| Before Claude Code launches, when no cached environment is available| After Claude Code launches, on every session including resumed
Scope| Cloud environments only| Both local and cloud
-SessionStart hooks can also be defined in your user-level `~/.claude/settings.json` locally, but user-level settings don’t carry over to cloud sessions. In the cloud, only hooks committed to the repo run.
+SessionStart hooks can also be defined in your user-level `~/.claude/settings.json` locally, but user-level settings don’t carry over to cloud sessions. In the cloud, hooks come from the repo and from your organization’s [server-managed settings](</docs/en/server-managed-settings>).
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -876,3 +876,4 @@
* [Settings reference](</docs/en/settings>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
* [Data usage](</docs/en/data-usage>): what Anthropic retains from cloud sessions
+ * [Claude Tag](<https://claude.com/docs/claude-tag/overview>): an organization-managed @Claude in Slack that runs on the same cloud environment
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -118,7 +118,7 @@
Link output back to the session
-Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. As of v2.1.179, commits that Claude creates in a web session include a `Claude-Session: <url>` git trailer, and PR bodies include the session URL on its own line. To include the session link in something other than a commit or PR, such as a Slack message Claude posts or a report file it writes, have Claude run the following command and use its output. The command converts the `cse_` prefix in the environment variable’s value to the `session_` prefix that the transcript URL expects:
+Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. As of v2.1.179, commits that Claude creates in a web session include a `Claude-Session: <url>` git trailer, and PR bodies include the session URL on its own line. From v2.1.182, set [`attribution.sessionUrl`](</docs/en/settings#attribution-settings>) to `false` to omit the trailer and the PR-body link. To include the session link in something other than a commit or PR, such as a Slack message Claude posts or a report file it writes, have Claude run the following command and use its output. The command converts the `cse_` prefix in the environment variable’s value to the `session_` prefix that the transcript URL expects:
echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID/#cse_/session_}"
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -116,9 +116,9 @@
-Link artifacts back to the session
-
-Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. The variable’s value uses a `cse_` prefix, while the transcript URL path takes the same ID with a `session_` prefix. Substitute the prefix when building the link. The following command prints the URL:
+Link output back to the session
+
+Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. As of v2.1.179, commits that Claude creates in a web session include a `Claude-Session: <url>` git trailer, and PR bodies include the session URL on its own line. To include the session link in something other than a commit or PR, such as a Slack message Claude posts or a report file it writes, have Claude run the following command and use its output. The command converts the `cse_` prefix in the environment variable’s value to the `session_` prefix that the transcript URL expects:
echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID/#cse_/session_}"
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -707,7 +707,7 @@
`/context`| Yes| Shows what’s currently in the context window
`/clear`| No| Start a new session from the sidebar instead
-Auto-compaction runs automatically when the context window approaches capacity, the same as in the CLI. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your environment variables. For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of the default ~95%. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your environment variables.
+Auto-compaction runs automatically when the context window approaches capacity. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your environment variables. For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of waiting until the window is nearly full. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your environment variables.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -60,6 +60,7 @@
Your repo’s `.claude/skills/`, `.claude/agents/`, `.claude/commands/`| Yes| Part of the clone
Plugins declared in `.claude/settings.json`| Yes| Installed at session start from the [marketplace](</docs/en/plugin-marketplaces>) you declared. Requires network access to reach the marketplace source
Your user `~/.claude/CLAUDE.md`| No| Lives on your machine, not in the repo
+Your user `~/.claude/skills/`, `~/.claude/agents/`, `~/.claude/commands/`| No| Live on your machine, not in the repo. Commit them to the repo’s `.claude/` directory instead. Skills you enable on claude.ai are loaded into cloud sessions automatically
Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
MCP servers you added with `claude mcp add`| No| Those write to your local user config, not the repo. Declare the server in [`.mcp.json`](</docs/en/mcp#project-scope>) instead
Static API tokens and credentials| No| No dedicated secrets store exists yet. See below
@@ -319,6 +320,7 @@
* Protection against malicious requests
* Rate limiting and abuse prevention
* Content filtering for enhanced security
+ * A DNS-level audit trail of requested hostnames
###
@@ -838,7 +840,7 @@
* Run `/login` locally to refresh your credentials, then reconnect
* Confirm you are signed in to the same account that owns the session
- * If you see `Remote Control may not be available for this organization`, your admin has not enabled remote sessions for your plan
+ * If you see `Remote Control may not be available for this organization`, your admin has not enabled cloud sessions for your plan
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.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.
-
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>). Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -797,7 +797,7 @@
* **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
* **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
-Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+GitHub does not emit a webhook when the base branch advances and creates a merge conflict, so auto-fix cannot react to conflicts on its own. To resolve a conflict, open the session and ask Claude to rebase. Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -840,7 +840,7 @@
Remote Control session expired or access denied
-`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session has expired` or `Access denied`. The connection token is short-lived and scoped to your account.
+`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session expired` or `Access denied`. The connection token is short-lived and scoped to your account.
* Run `/login` locally to refresh your credentials, then reconnect
* Confirm you are signed in to the same account that owns the session
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -32,8 +32,10 @@
Method| How it works| Best for
---|---|---
-**GitHub App**| Install the Claude GitHub App on specific repositories during [web onboarding](</docs/en/web-quickstart>). Access is scoped per repository.| Teams that want explicit per-repo authorization
-**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account. Access matches whatever your `gh` token can see.| Individual developers who already use `gh`
+**GitHub App**| Authorize the Claude GitHub App during [web onboarding](</docs/en/web-quickstart>).| Browser onboarding; teams that want Auto-fix
+**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account.| Individual developers who already use `gh`
+
+With either method, a cloud session can access any repository the connecting GitHub account can see, not just the repositories the Claude GitHub App is installed on. App installation enables PR webhooks for Auto-fix; it is not a session-level access control. To restrict which repositories your team can reach from cloud sessions, restrict access on GitHub itself, for example by limiting team or repository membership for the connected GitHub accounts.
Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
@@ -781,6 +783,8 @@
* **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
* **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
+Auto-fix is a per-PR toggle. To stop monitoring, open the CI status bar in the web session and clear the **Auto-fix** toggle, or tell Claude to stop watching the PR.
+
###
@@ -828,7 +832,7 @@
* Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
* Retry after a minute, as capacity is provisioned on demand
- * Confirm your repository is reachable. Private repositories require either the GitHub App installed with access to that repository, or a `gh` token synced via `/web-setup`. See GitHub authentication options.
+ * Confirm your repository is reachable. The connecting GitHub account must have access to the repository on GitHub, either through the Claude GitHub App authorization or a `gh` token synced via `/web-setup` — installing the App on the repository is not required. See GitHub authentication options.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -164,7 +164,7 @@
Action| How
---|---
Add an environment| Select the current environment to open the selector, then select **Add environment**. The dialog includes name, network access level, environment variables, and setup script.
-Edit an environment| Select the settings icon to the right of the environment name.
+Edit an environment| Select the cloud icon showing the current environment’s name to open the selector, hover over an environment, and click the settings icon that appears on the right.
Archive an environment| Open the environment for editing and select **Archive**. Archived environments are hidden from the selector but existing sessions keep running.
Set the default for `--remote`| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
@@ -265,7 +265,9 @@
Network access
-Network access controls outbound connections from the cloud environment. Each environment specifies one access level, and you can extend it with custom allowed domains. The default is **Trusted** , which allows package registries and other allowlisted domains.
+Network access controls outbound connections from the cloud environment. Each environment specifies one access level, and you can extend it with custom allowed domains. The default is **Trusted** , which allows package registries and other allowlisted domains. To change an environment’s network access, open it for editing and use the **Network access** selector in the dialog. There is no separate Environments page. The cloud icon appears wherever you start a cloud session or configure a [routine](</docs/en/routines#environments-and-network-access>).
+
+MCP connector traffic is routed through Anthropic’s servers, so the connectors you enable on a session or routine work without adding their hosts to **Allowed domains**. Connectors are configured per session or per routine; remove any you don’t need to limit which tools Claude can reach. This relies on the same Anthropic-bound channel noted under Security and isolation.
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -121,9 +121,9 @@
Link artifacts back to the session
-Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. Ask Claude to construct the link from the environment variable. The following command prints the URL:
-
- echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}"
+Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. The variable’s value uses a `cse_` prefix, while the transcript URL path takes the same ID with a `session_` prefix. Substitute the prefix when building the link. The following command prints the URL:
+
+ echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID/#cse_/session_}"
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -185,7 +185,7 @@
#!/bin/bash
apt update && apt install -y gh
-If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure.
+If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure. Keep the script’s total runtime under roughly five minutes so the environment cache can build. Run independent installs in parallel with `&` and `wait`. If a single download won’t fit in the five-minute limit, move it to a SessionStart hook that launches it in the background.
Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment uses **None** network access.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.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.
+
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>). Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -853,6 +853,7 @@
* **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
* **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account
* **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab, Bitbucket, and other non-GitHub repositories can be sent to cloud sessions as a local bundle, but the session can’t push results back to the remote
+ * **Organization IP allowlist** : cloud sessions call the Anthropic API from Anthropic-managed infrastructure, not your network. If your organization has [IP allowlisting](<https://support.claude.com/en/articles/13200993-restrict-access-to-claude-with-ip-allowlisting>) enabled, every cloud session fails with an authentication error. The same applies to [Code Review](</docs/en/code-review>) and [Routines](</docs/en/routines>). Contact [Anthropic support](<https://support.claude.com/>) to exempt Anthropic-hosted services from your organization’s IP allowlist.
##
Show diff (115 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -125,13 +125,13 @@
Run tests, start services, and add packages
-Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test work out of the box since they’re pre-installed. PostgreSQL and Redis are pre-installed but not running by default. Start each one in a setup script or ask Claude to start it during the session:
+Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test work out of the box since they’re pre-installed. PostgreSQL and Redis are pre-installed but not running by default. Ask Claude to start each one during the session:
service postgresql start
service redis-server start
-Docker is available for running containerized services. Network access to pull images follows your environment’s access level. To add packages that aren’t pre-installed, use a setup script so they’re available at session start. You can also ask Claude to install packages during the session, but those installs don’t persist across sessions.
+Docker is available for running containerized services. Ask Claude to run `docker compose up` to start your project’s services. Network access to pull images follows your environment’s access level, and the Trusted defaults include Docker Hub and other common registries. If your images are large or slow to pull, add `docker compose pull` or `docker compose build` to your setup script. The pulled images are saved in the cached environment, so each new session has them on disk. The cache stores files only, not running processes, so Claude still starts the containers each session. To add packages that aren’t pre-installed, use a setup script. The script’s output is cached, so packages you install there are available at the start of every session without reinstalling each time. You can also ask Claude to install packages mid-session, but those installs don’t carry over to other sessions.
###
@@ -179,9 +179,17 @@
#!/bin/bash
apt update && apt install -y gh
-Setup scripts run only when creating a new session. They are skipped when resuming an existing session. If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure.
+If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure.
Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment uses **None** network access.
+
+###
+
+
+
+Environment caching
+
+The setup script runs the first time you start a session in an environment. After it completes, Anthropic snapshots the filesystem and reuses that snapshot as the starting point for later sessions. New sessions start with your dependencies, tools, and Docker images already on disk, and the setup script step is skipped. This keeps startup fast even when the script installs large toolchains or pulls container images. The cache captures files, not running processes. Anything the setup script writes to disk carries over. Services or containers it starts do not, so start those per session by asking Claude or with a SessionStart hook. The setup script runs again to rebuild the cache when you change the environment’s setup script or allowed network hosts, and when the cache reaches its expiry after roughly seven days. Resuming an existing session never re-runs the setup script. You don’t need to enable caching or manage snapshots yourself.
###
@@ -195,7 +203,7 @@
---|---|---
Attached to| The cloud environment| Your repository
Configured in| Cloud environment UI| `.claude/settings.json` in your repo
-Runs| Before Claude Code launches, on new sessions only| After Claude Code launches, on every session including resumed
+Runs| Before Claude Code launches, when no cached environment is available| After Claude Code launches, on every session including resumed
Scope| Cloud environments only| Both local and cloud
SessionStart hooks can also be defined in your user-level `~/.claude/settings.json` locally, but user-level settings don’t carry over to cloud sessions. In the cloud, only hooks committed to the repo run.
@@ -241,9 +249,9 @@
* **No cloud-only scoping** : hooks run in both local and cloud sessions. To skip local execution, check the `CLAUDE_CODE_REMOTE` environment variable as shown above.
* **Requires network access** : install commands need to reach package registries. If your environment uses **None** network access, these hooks fail. The default allowlist under **Trusted** covers npm, PyPI, RubyGems, and crates.io.
* **Proxy compatibility** : all outbound traffic passes through a security proxy. Some package managers don’t work correctly with this proxy. Bun is a known example.
- * **Adds startup latency** : hooks run each time a session starts or resumes. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
-
-To persist environment variables for subsequent Bash commands, write to the file at `$CLAUDE_ENV_FILE`. See [SessionStart hooks](</docs/en/hooks#sessionstart>) for details. Custom environment images and snapshots are not yet supported.
+ * **Adds startup latency** : hooks run each time a session starts or resumes, unlike setup scripts which benefit from environment caching. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
+
+To persist environment variables for subsequent Bash commands, write to the file at `$CLAUDE_ENV_FILE`. See [SessionStart hooks](</docs/en/hooks#sessionstart>) for details. Replacing the base image with your own Docker image is not yet supported. Use a setup script to install what you need on top of the provided image, or run your image as a container alongside Claude with `docker compose`.
##
@@ -798,6 +806,46 @@
+Troubleshooting
+
+For runtime API errors that appear in the conversation 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 shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
+
+###
+
+
+
+Session creation failed
+
+If a new session fails to start with `Session creation failed` or stalls at provisioning, Claude Code could not allocate a cloud environment.
+
+ * Check [status.claude.com](<https://status.claude.com>) for cloud session incidents
+ * Retry after a minute, as capacity is provisioned on demand
+ * Confirm your repository is reachable. Private repositories require either the GitHub App installed with access to that repository, or a `gh` token synced via `/web-setup`. See GitHub authentication options.
+
+###
+
+
+
+Remote Control session expired or access denied
+
+`--teleport` connects through the same Remote Control session infrastructure that cloud sessions use, so authentication and session-expiry errors surface with Remote Control wording. You may see `Remote Control session has expired` or `Access denied`. The connection token is short-lived and scoped to your account.
+
+ * Run `/login` locally to refresh your credentials, then reconnect
+ * Confirm you are signed in to the same account that owns the session
+ * If you see `Remote Control may not be available for this organization`, your admin has not enabled remote sessions for your plan
+
+###
+
+
+
+Environment expired
+
+Cloud sessions stop after a period of inactivity and the underlying environment is reclaimed. From a local terminal, this surfaces as `Could not resume session ... its environment has expired. Creating a fresh session instead.` On the web, the session is marked expired in the session list. Reopen the session from [claude.ai/code](<https://claude.ai/code>) to provision a fresh environment with your conversation history restored.
+
+##
+
+
+
Limitations
Before relying on cloud sessions for a workflow, account for these constraints:
@@ -812,6 +860,8 @@
Related resources
+ * [Ultraplan](</docs/en/ultraplan>): draft a plan in a cloud session and review it in your browser
+ * [Ultrareview](</docs/en/ultrareview>): run a deep multi-agent code review in a cloud sandbox
* [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
* [Settings reference](</docs/en/settings>): all configuration options
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -108,6 +108,16 @@
Provide a token
Add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed.
+
+###
+
+
+
+Link artifacts back to the session
+
+Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. Ask Claude to construct the link from the environment variable. The following command prints the URL:
+
+ echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}"
###
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -29,7 +29,7 @@
**GitHub App**| Install the Claude GitHub App on specific repositories during [web onboarding](</docs/en/web-quickstart>). Access is scoped per repository.| Teams that want explicit per-repo authorization
**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account. Access matches whatever your `gh` token can see.| Individual developers who already use `gh`
-Either method works. [`/schedule`](</docs/en/web-scheduled-tasks>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features.
@@ -802,7 +802,7 @@
Related resources
- * [Schedule tasks on the web](</docs/en/web-scheduled-tasks>): automate recurring work like daily PR reviews and dependency audits
+ * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
* [Settings reference](</docs/en/settings>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -751,7 +751,7 @@
There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
* **PRs created in Claude Code on the web** : open the CI status bar and select **Auto-fix**
- * **From your terminal** : run [`/autofix-pr`](</docs/en/commands#built-in-commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a web session, and turns on auto-fix in one step
+ * **From your terminal** : run [`/autofix-pr`](</docs/en/commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a web session, and turns on auto-fix in one step
* **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
* **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
Show diff (1239 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,363 +1,179 @@
-Claude Code on the web is currently in research preview.
-
-##
-
-
-
-What is Claude Code on the web?
-
-Claude Code on the web lets developers kick off Claude Code from the Claude app. This is perfect for:
-
- * **Answering questions** : Ask about code architecture and how features are implemented
- * **Bug fixes and routine tasks** : Well-defined tasks that don’t require frequent steering
- * **Parallel work** : Tackle multiple bug fixes in parallel
- * **Repositories not on your local machine** : Work on code you don’t have checked out locally
- * **Backend changes** : Where Claude Code can write tests and then write code to pass those tests
-
-Claude Code is also available on the Claude app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) and [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) for kicking off tasks on the go and monitoring work in progress. You can kick off new tasks on the web from your terminal with `--remote`, or teleport web sessions back to your terminal to continue locally. To use the web interface while running Claude Code on your own machine instead of cloud infrastructure, see [Remote Control](</docs/en/remote-control>).
-
-##
-
-
-
-Who can use Claude Code on the web?
-
-Claude Code on the web is available in research preview to:
-
- * **Pro users**
- * **Max users**
- * **Team users**
- * **Enterprise users** with premium seats or Chat + Claude Code seats
-
-##
-
-
-
-Getting started
-
-Set up Claude Code on the web from the browser or from your terminal.
-
-###
-
-
-
-From the browser
-
- 1. Visit [claude.ai/code](<https://claude.ai/code>)
- 2. Connect your GitHub account
- 3. Install the Claude GitHub App in your repositories
- 4. Select your default environment
- 5. Submit your coding task
- 6. Review changes in diff view, iterate with comments, then create a pull request
-
-###
-
-
-
-From the terminal
-
-Run `/web-setup` inside Claude Code to connect GitHub using your local `gh` CLI credentials. The command syncs your `gh auth token` to Claude Code on the web, creates a default cloud environment, and opens claude.ai/code in your browser when it finishes. This path requires the `gh` CLI to be installed and authenticated with `gh auth login`. If `gh` is not available, `/web-setup` opens claude.ai/code so you can connect GitHub from the browser instead. Your `gh` credentials give Claude access to clone and push, so you can skip the GitHub App for basic sessions. Install the App later if you want Auto-fix, which uses the App to receive PR webhooks.
-
-Team and Enterprise admins can disable terminal setup with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
-
-##
-
-
-
-How it works
-
-When you start a task on Claude Code on the web:
-
- 1. **Repository cloning** : Your repository is cloned to an Anthropic-managed virtual machine
- 2. **Environment setup** : Claude prepares a secure cloud environment with your code, then runs your setup script if configured
- 3. **Network configuration** : Internet access is configured based on your settings
- 4. **Task execution** : Claude analyzes code, makes changes, runs tests, and checks its work
- 5. **Completion** : You’re notified when finished and can create a PR with the changes
- 6. **Results** : Changes are pushed to a branch, ready for pull request creation
-
-##
-
-
-
-Review changes with diff view
-
-Diff view lets you see exactly what Claude changed before creating a pull request. Instead of clicking “Create PR” to review changes in GitHub, view the diff directly in the app and iterate with Claude until the changes are ready. When Claude makes changes to files, a diff stats indicator appears showing the number of lines added and removed (for example, `+12 -1`). Select this indicator to open the diff viewer, which displays a file list on the left and the changes for each file on the right. From the diff view, you can:
-
- * Review changes file by file
- * Comment on specific changes to request modifications
- * Continue iterating with Claude based on what you see
-
-This lets you refine changes through multiple rounds of feedback without creating draft PRs or switching to GitHub.
-
-##
-
-
-
-Auto-fix pull requests
-
-Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
-
-Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during setup.
-
-There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
-
- * **PRs created in Claude Code on the web** : open the CI status bar and select **Auto-fix**
- * **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
- * **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
-
-###
-
-
-
-How Claude responds to PR activity
-
-When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
-
- * **Clear fixes** : if Claude is confident in a fix and it doesn’t conflict with earlier instructions, Claude makes the change, pushes it, and explains what was done in the session
- * **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
- * **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
-
-Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
-
-If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
-
-##
-
-
-
-Moving tasks between web and terminal
-
-You can start new tasks on the web from your terminal, or pull web sessions into your terminal to continue locally. Web sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
-
-Session handoff is one-way: you can pull web sessions into your terminal, but you can’t push an existing terminal session to the web. The `--remote` flag creates a _new_ web session for your current repository.
-
-###
-
-
-
-From terminal to web
-
-Start a web session from the command line with the `--remote` flag:
-
- claude --remote "Fix the authentication bug in src/auth/login.ts"
-
-This creates a new web session on claude.ai. The task runs in the cloud while you continue working locally. Use `/tasks` to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
-
-####
-
-
-
-Tips for remote tasks
-
-**Plan locally, execute remotely** : For complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the web:
-
- claude --permission-mode plan
-
-In plan mode, Claude can only read files and explore the codebase. Once you’re satisfied with the plan, start a remote session for autonomous execution:
-
- claude --remote "Execute the migration plan in docs/migration-plan.md"
-
-This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : To draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : Each `--remote` command creates its own web session that runs independently. You can kick off multiple tasks and they’ll all run simultaneously in separate sessions:
-
- claude --remote "Fix the flaky test in auth.spec.ts"
- claude --remote "Update the API documentation"
- claude --remote "Refactor the logger to use structured output"
-
-Monitor all sessions with `/tasks`. When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
-
-###
-
-
-
-From web to terminal
-
-There are several ways to pull a web session into your terminal:
-
- * **Using`/teleport`**: From within Claude Code, run `/teleport` (or `/tp`) to see an interactive picker of your web sessions. If you have uncommitted changes, you’ll be prompted to stash them first.
- * **Using`--teleport`**: From the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly.
- * **From`/tasks`**: Run `/tasks` to see your background sessions, then press `t` to teleport into one
- * **From the web interface** : Click “Open in CLI” to copy a command you can paste into your terminal
-
-When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the remote session, and loads the full conversation history into your terminal.
-
-####
-
-
-
-Requirements for teleporting
-
-Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
-
-Requirement| Details
+Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
+
+Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>). Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
+
+New to Claude Code on the web? Start with [Get started](</docs/en/web-quickstart>) to connect your GitHub account and submit your first task.
+
+This page covers:
+
+ * GitHub authentication options: two ways to connect GitHub
+ * The cloud environment: what config carries over, what tools are installed, and how to configure environments
+ * Setup scripts and dependency management
+ * Network access: levels, proxies, and the default allowlist
+ * Move tasks between web and terminal with `--remote` and `--teleport`
+ * Work with sessions: reviewing, sharing, archiving, deleting
+ * Auto-fix pull requests: respond automatically to CI failures and review comments
+ * Security and isolation: how sessions are isolated
+ * Limitations: rate limits and platform restrictions
+
+##
+
+
+
+GitHub authentication options
+
+Cloud sessions need access to your GitHub repositories to clone code and push branches. You can grant access in two ways:
+
+Method| How it works| Best for
+---|---|---
+**GitHub App**| Install the Claude GitHub App on specific repositories during [web onboarding](</docs/en/web-quickstart>). Access is scoped per repository.| Teams that want explicit per-repo authorization
+**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account. Access matches whatever your `gh` token can see.| Individual developers who already use `gh`
+
+Either method works. [`/schedule`](</docs/en/web-scheduled-tasks>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+
+Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features.
+
+##
+
+
+
+The cloud environment
+
+Each session runs in a fresh Anthropic-managed VM with your repository cloned. This section covers what’s available when a session starts and how to customize it.
+
+###
+
+
+
+What’s available in cloud sessions
+
+Cloud sessions start from a fresh clone of your repository. Anything committed to the repo is available. Anything you’ve installed or configured only on your own machine is not.
+
+| Available in cloud sessions| Why
+---|---|---
+Your repo’s `CLAUDE.md`| Yes| Part of the clone
+Your repo’s `.claude/settings.json` hooks| Yes| Part of the clone
+Your repo’s `.mcp.json` MCP servers| Yes| Part of the clone
+Your repo’s `.claude/rules/`| Yes| Part of the clone
+Your repo’s `.claude/skills/`, `.claude/agents/`, `.claude/commands/`| Yes| Part of the clone
+Plugins declared in `.claude/settings.json`| Yes| Installed at session start from the [marketplace](</docs/en/plugin-marketplaces>) you declared. Requires network access to reach the marketplace source
+Your user `~/.claude/CLAUDE.md`| No| Lives on your machine, not in the repo
+Plugins enabled only in your user settings| No| User-scoped `enabledPlugins` lives in `~/.claude/settings.json`. Declare them in the repo’s `.claude/settings.json` instead
+MCP servers you added with `claude mcp add`| No| Those write to your local user config, not the repo. Declare the server in [`.mcp.json`](</docs/en/mcp#project-scope>) instead
+Static API tokens and credentials| No| No dedicated secrets store exists yet. See below
+Interactive auth like AWS SSO| No| Not supported. SSO requires browser-based login that can’t run in a cloud session
+
+To make configuration available in cloud sessions, commit it to the repo. A dedicated secrets store is not yet available. Both environment variables and setup scripts are stored in the environment configuration, visible to anyone who can edit that environment. If you need secrets in a cloud session, add them as environment variables with that visibility in mind.
+
+###
+
+
+
+Installed tools
+
+Cloud sessions come with common language runtimes, build tools, and databases pre-installed. The table below summarizes what’s included by category.
+
+Category| Included
---|---
-Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
-Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork.
-Branch available| The branch from the web session must have been pushed to the remote. Teleport automatically fetches and checks it out.
-Same account| You must be authenticated to the same Claude.ai account used in the web session.
-
-###
-
-
-
-Sharing sessions
-
-To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients who open your shared session will see the latest state of the session upon load, but the recipient’s page will not update in real time.
-
-####
-
-
-
-Sharing from an Enterprise or Team account
-
-For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your Claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
-
-####
-
-
-
-Sharing from a Max or Pro account
-
-For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. Enable repository access verification and/or withhold your name from your shared sessions by going to Settings > Claude Code > Sharing settings.
-
-##
-
-
-
-Schedule recurring tasks
-
-Run Claude on a recurring schedule to automate work like daily PR reviews, dependency audits, and CI failure analysis. See [Schedule tasks on the web](</docs/en/web-scheduled-tasks>) for the full guide.
-
-##
-
-
-
-Managing sessions
-
-###
-
-
-
-Archiving sessions
-
-You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and click the archive icon.
-
-###
-
-
-
-Deleting sessions
-
-Deleting a session permanently removes the session and its data. This action cannot be undone. You can delete a session in two ways:
-
- * **From the sidebar** : Filter for archived sessions, then hover over the session you want to delete and click the delete icon
- * **From the session menu** : Open a session, click the dropdown next to the session title, and select **Delete**
-
-You will be asked to confirm before a session is deleted.
-
-##
-
-
-
-Cloud environment
-
-###
-
-
-
-Default image
-
-We build and maintain a universal image with common toolchains and language ecosystems pre-installed. This image includes:
-
- * Popular programming languages and runtimes
- * Common build tools and package managers
- * Testing frameworks and linters
-
-####
-
-
-
-Checking available tools
-
-To see what’s pre-installed in your environment, ask Claude Code to run:
-
- check-tools
-
-This command displays:
-
- * Programming languages and their versions
- * Available package managers
- * Installed development tools
-
-####
-
-
-
-Language-specific setups
-
-The universal image includes pre-configured environments for:
-
- * **Python** : Python 3.x with pip, poetry, and common scientific libraries
- * **Node.js** : Latest LTS versions with npm, yarn, pnpm, and bun
- * **Ruby** : Versions 3.1.6, 3.2.6, 3.3.6 (default: 3.3.6) with gem, bundler, and rbenv for version management
- * **PHP** : Version 8.4.14
- * **Java** : OpenJDK with Maven and Gradle
- * **Go** : Latest stable version with module support
- * **Rust** : Rust toolchain with cargo
- * **C++** : GCC and Clang compilers
-
-####
-
-
-
-Databases
-
-The universal image includes the following databases:
-
- * **PostgreSQL** : Version 16
- * **Redis** : Version 7.0
-
-###
-
-
-
-Environment configuration
-
-When you start a session in Claude Code on the web, here’s what happens under the hood:
-
- 1. **Environment preparation** : We clone your repository and run any configured setup script. The repo will be cloned with the default branch on your GitHub repo. If you would like to check out a specific branch, you can specify that in the prompt.
- 2. **Network configuration** : We configure internet access for the agent. Internet access is limited by default, but you can configure the environment to have no internet or full internet access based on your needs.
- 3. **Claude Code execution** : Claude Code runs to complete your task, writing code, running tests, and checking its work. You can guide and steer Claude throughout the session via the web interface. Claude respects context you’ve defined in your `CLAUDE.md`.
- 4. **Outcome** : When Claude completes its work, it will push the branch to remote. You will be able to create a PR for the branch.
-
-Claude operates entirely through the terminal and CLI tools available in the environment. It uses the pre-installed tools in the universal image and any additional tools you install through hooks or dependency management.
-
-**To add a new environment:** Select the current environment to open the environment selector, and then select “Add environment”. This will open a dialog where you can specify the environment name, network access level, environment variables, and a setup script. **To update an existing environment:** Select the current environment, to the right of the environment name, and select the settings button. This will open a dialog where you can update the environment name, network access, environment variables, and setup script. **To select your default environment from the terminal:** If you have multiple environments configured, run `/remote-env` to choose which one to use when starting web sessions from your terminal with `--remote`. With a single environment, this command shows your current configuration.
-
-Environment variables must be specified as key-value pairs, in [`.env` format](<https://www.dotenv.org/>). For example:
-
- API_KEY=your_api_key
- DEBUG=true
-
-###
+**Python**| Python 3.x with pip, poetry, uv, black, mypy, pytest, ruff
+**Node.js**| 20, 21, and 22 via nvm, with npm, yarn, pnpm, bun¹, eslint, prettier, chromedriver
+**Ruby**| 3.1, 3.2, 3.3 with gem, bundler, rbenv
+**PHP**| 8.4 with Composer
+**Java**| OpenJDK 21 with Maven and Gradle
+**Go**| latest stable with module support
+**Rust**| rustc and cargo
+**C/C++**| GCC, Clang, cmake, ninja, conan
+**Docker**| docker, dockerd, docker compose
+**Databases**| PostgreSQL 16, Redis 7.0
+**Utilities**| git, jq, yq, ripgrep, tmux, vim, nano
+
+¹ Bun is installed but has known proxy compatibility issues for package fetching. For exact versions, ask Claude to run `check-tools` in a cloud session. This command only exists in cloud sessions.
+
+###
+
+
+
+Work with GitHub issues and pull requests
+
+Cloud sessions include built-in GitHub tools that let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the GitHub proxy using whichever method you configured under GitHub authentication options, so your token never enters the container. The `gh` CLI is not pre-installed. If you need a `gh` command the built-in tools don’t cover, like `gh release` or `gh workflow run`, install and authenticate it yourself:
+
+1
+
+Install gh in your setup script
+
+Add `apt update && apt install -y gh` to your setup script.
+
+2
+
+Provide a token
+
+Add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed.
+
+###
+
+
+
+Run tests, start services, and add packages
+
+Claude runs tests as part of working on a task. Ask for it in your prompt, like “fix the failing tests in `tests/`” or “run pytest after each change.” Test runners like pytest, jest, and cargo test work out of the box since they’re pre-installed. PostgreSQL and Redis are pre-installed but not running by default. Start each one in a setup script or ask Claude to start it during the session:
+
+ service postgresql start
+
+ service redis-server start
+
+Docker is available for running containerized services. Network access to pull images follows your environment’s access level. To add packages that aren’t pre-installed, use a setup script so they’re available at session start. You can also ask Claude to install packages during the session, but those installs don’t persist across sessions.
+
+###
+
+
+
+Resource limits
+
+Cloud sessions run with approximate resource ceilings that may change over time:
+
+ * 4 vCPUs
+ * 16 GB of RAM
+ * 30 GB of disk
+
+Tasks requiring significantly more memory, such as large build jobs or memory-intensive tests, may fail or be terminated. For workloads beyond these limits, use [Remote Control](</docs/en/remote-control>) to run Claude Code on your own hardware.
+
+###
+
+
+
+Configure your environment
+
+Environments control network access, environment variables, and the setup script that runs before a session starts. See Installed tools for what’s available without any configuration. You can manage environments from the web interface or the terminal:
+
+Action| How
+---|---
+Add an environment| Select the current environment to open the selector, then select **Add environment**. The dialog includes name, network access level, environment variables, and setup script.
+Edit an environment| Select the settings icon to the right of the environment name.
+Archive an environment| Open the environment for editing and select **Archive**. Archived environments are hidden from the selector but existing sessions keep running.
+Set the default for `--remote`| Run `/remote-env` in your terminal. If you have a single environment, this command shows your current configuration. `/remote-env` only selects the default; add, edit, and archive environments from the web interface.
+
+Environment variables use `.env` format with one `KEY=value` pair per line. Don’t wrap values in quotes, since quotes are stored as part of the value.
+
+ NODE_ENV=development
+ LOG_LEVEL=debug
+ DATABASE_URL=postgres://localhost:5432/myapp
+
+##
Setup scripts
-A setup script is a Bash script that runs when a new cloud session starts, before Claude Code launches. Use setup scripts to install dependencies, configure tools, or prepare anything the cloud environment needs that isn’t in the default image. Scripts run as root on Ubuntu 24.04, so `apt install` and most language package managers work.
-
-To check what’s already installed before adding it to your script, ask Claude to run `check-tools` in a cloud session.
-
-To add a setup script, open the environment settings dialog and enter your script in the **Setup script** field. This example installs the `gh` CLI, which isn’t in the default image:
+A setup script is a Bash script that runs when a new cloud session starts, before Claude Code launches. Use setup scripts to install dependencies, configure tools, or fetch anything the session needs that isn’t pre-installed. Scripts run as root on Ubuntu 24.04, so `apt install` and most language package managers work. To add a setup script, open the environment settings dialog and enter your script in the **Setup script** field. This example installs the `gh` CLI, which isn’t pre-installed:
#!/bin/bash
apt update && apt install -y gh
-Setup scripts run only when creating a new session. They are skipped when resuming an existing session. If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on a flaky install.
-
-Setup scripts that install packages need network access to reach registries. The default network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment has network access disabled.
-
-####
+Setup scripts run only when creating a new session. They are skipped when resuming an existing session. If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on an intermittent install failure.
+
+Setup scripts that install packages need network access to reach registries. The default **Trusted** network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment uses **None** network access.
+
+###
@@ -378,21 +194,15 @@
-Dependency management
-
-Custom environment images and snapshots are not yet supported. Use setup scripts to install packages when a session starts, or [SessionStart hooks](</docs/en/hooks#sessionstart>) for dependency installation that should also run in local environments. SessionStart hooks have known limitations. To configure automatic dependency installation with a setup script, open your environment settings and add a script:
-
- #!/bin/bash
- npm install
- pip install -r requirements.txt
-
-Alternatively, you can use SessionStart hooks in your repository’s `.claude/settings.json` file for dependency installation that should also run in local environments:
+Install dependencies with a SessionStart hook
+
+To install dependencies only in cloud sessions, add a SessionStart hook to your repo’s `.claude/settings.json`:
{
"hooks": {
"SessionStart": [
{
- "matcher": "startup",
+ "matcher": "startup|resume",
"hooks": [
{
"type": "command",
@@ -404,11 +214,10 @@
}
}
-Create the corresponding script at `scripts/install_pkgs.sh`:
+Create the script at `scripts/install_pkgs.sh` and make it executable with `chmod +x`. The `CLAUDE_CODE_REMOTE` environment variable is set to `true` in cloud sessions, so you can use it to skip local execution:
#!/bin/bash
- # Only run in remote environments
if [ "$CLAUDE_CODE_REMOTE" != "true" ]; then
exit 0
fi
@@ -417,40 +226,55 @@
pip install -r requirements.txt
exit 0
-Make it executable: `chmod +x scripts/install_pkgs.sh`
-
-####
-
-
-
-Persist environment variables
-
-SessionStart hooks can persist environment variables for subsequent Bash commands by writing to the file specified in the `CLAUDE_ENV_FILE` environment variable. For details, see [SessionStart hooks](</docs/en/hooks#sessionstart>) in the hooks reference.
-
-####
-
-
-
-Dependency management limitations
-
- * **Hooks fire for all sessions** : SessionStart hooks run in both local and remote environments. There is no hook configuration to scope a hook to remote sessions only. To skip local execution, check the `CLAUDE_CODE_REMOTE` environment variable in your script as shown above.
- * **Requires network access** : Install commands need network access to reach package registries. If your environment is configured with “No internet” access, these hooks will fail. Use “Limited” (the default) or “Full” network access. The default allowlist includes common registries like npm, PyPI, RubyGems, and crates.io.
- * **Proxy compatibility** : All outbound traffic in remote environments passes through a security proxy. Some package managers do not work correctly with this proxy. Bun is a known example.
- * **Runs on every session start** : Hooks run each time a session starts or resumes, adding startup latency. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
-
-##
-
-
-
-Network access and security
-
-###
-
-
-
-Network policy
-
-####
+SessionStart hooks have some limitations in cloud sessions:
+
+ * **No cloud-only scoping** : hooks run in both local and cloud sessions. To skip local execution, check the `CLAUDE_CODE_REMOTE` environment variable as shown above.
+ * **Requires network access** : install commands need to reach package registries. If your environment uses **None** network access, these hooks fail. The default allowlist under **Trusted** covers npm, PyPI, RubyGems, and crates.io.
+ * **Proxy compatibility** : all outbound traffic passes through a security proxy. Some package managers don’t work correctly with this proxy. Bun is a known example.
+ * **Adds startup latency** : hooks run each time a session starts or resumes. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
+
+To persist environment variables for subsequent Bash commands, write to the file at `$CLAUDE_ENV_FILE`. See [SessionStart hooks](</docs/en/hooks#sessionstart>) for details. Custom environment images and snapshots are not yet supported.
+
+##
+
+
+
+Network access
+
+Network access controls outbound connections from the cloud environment. Each environment specifies one access level, and you can extend it with custom allowed domains. The default is **Trusted** , which allows package registries and other allowlisted domains.
+
+###
+
+
+
+Access levels
+
+Choose an access level when you create or edit an environment:
+
+Level| Outbound connections
+---|---
+**None**| No outbound network access
+**Trusted**| Allowlisted domains only: package registries, GitHub, cloud SDKs
+**Full**| Any domain
+**Custom**| Your own allowlist, optionally including the defaults
+
+GitHub operations use a separate proxy that is independent of this setting.
+
+###
+
+
+
+Allow specific domains
+
+To allow domains that aren’t in the Trusted list, select **Custom** in the environment’s network access settings. An **Allowed domains** field appears. Enter one domain per line:
+
+ api.example.com
+ *.internal.example.com
+ registry.example.com
+
+Use `*.` for wildcard subdomain matching. Check **Also include default list of common package managers** to keep the Trusted domains alongside your custom entries, or leave it unchecked to allow only what you list.
+
+###
@@ -458,11 +282,11 @@
For security, all GitHub operations go through a dedicated proxy service that transparently handles all git interactions. Inside the sandbox, the git client authenticates using a custom-built scoped credential. This proxy:
- * Manages GitHub authentication securely - the git client uses a scoped credential inside the sandbox, which the proxy verifies and translates to your actual GitHub authentication token
+ * Manages GitHub authentication securely: the git client uses a scoped credential inside the sandbox, which the proxy verifies and translates to your actual GitHub authentication token
* Restricts git push operations to the current working branch for safety
- * Enables seamless cloning, fetching, and PR operations while maintaining security boundaries
-
-####
+ * Enables cloning, fetching, and PR operations while maintaining security boundaries
+
+###
@@ -478,35 +302,20 @@
-Access levels
-
-By default, network access is limited to allowlisted domains. You can configure custom network access, including disabling network access.
-
-###
-
-
-
Default allowed domains
-When using “Limited” network access, the following domains are allowed by default:
-
-####
-
-
-
-Anthropic Services
+When using **Trusted** network access, the following domains are allowed by default. Domains marked with `*` indicate wildcard subdomain matching, so `*.gcr.io` allows any subdomain of `gcr.io`.
+
+Anthropic services
* api.anthropic.com
* statsig.anthropic.com
+ * docs.claude.com
* platform.claude.com
* code.claude.com
* claude.ai
-####
-
-
-
-Version Control
+Version control
* github.com
* [www.github.com](<http://www.github.com>)
@@ -515,6 +324,7 @@
* raw.githubusercontent.com
* pkg-npm.githubusercontent.com
* objects.githubusercontent.com
+ * release-assets.githubusercontent.com
* codeload.github.com
* avatars.githubusercontent.com
* camo.githubusercontent.com
@@ -526,11 +336,7 @@
* [www.bitbucket.org](<http://www.bitbucket.org>)
* api.bitbucket.org
-####
-
-
-
-Container Registries
+Container registries
* registry-1.docker.io
* auth.docker.io
@@ -546,11 +352,7 @@
* *.data.mcr.microsoft.com
* public.ecr.aws
-####
-
-
-
-Cloud Platforms
+Cloud platforms
* cloud.google.com
* accounts.google.com
@@ -580,11 +382,7 @@
* download.oracle.com
* yum.oracle.com
-####
-
-
-
-Package Managers - JavaScript/Node
+JavaScript and Node package managers
* registry.npmjs.org
* [www.npmjs.com](<http://www.npmjs.com>)
@@ -594,11 +392,7 @@
* yarnpkg.com
* registry.yarnpkg.com
-####
-
-
-
-Package Managers - Python
+Python package managers
* pypi.org
* [www.pypi.org](<http://www.pypi.org>)
@@ -609,11 +403,7 @@
* pypa.io
* [www.pypa.io](<http://www.pypa.io>)
-####
-
-
-
-Package Managers - Ruby
+Ruby package managers
* rubygems.org
* [www.rubygems.org](<http://www.rubygems.org>)
@@ -628,11 +418,7 @@
* rvm.io
* get.rvm.io
-####
-
-
-
-Package Managers - Rust
+Rust package managers
* crates.io
* [www.crates.io](<http://www.crates.io>)
@@ -642,11 +428,7 @@
* static.rust-lang.org
* [www.rust-lang.org](<http://www.rust-lang.org>)
-####
-
-
-
-Package Managers - Go
+Go package managers
* proxy.golang.org
* sum.golang.org
@@ -656,31 +438,24 @@
* goproxy.io
* pkg.go.dev
-####
-
-
-
-Package Managers - JVM
+JVM package managers
* maven.org
* repo.maven.org
* central.maven.org
* repo1.maven.org
+ * repo.maven.apache.org
* jcenter.bintray.com
* gradle.org
* [www.gradle.org](<http://www.gradle.org>)
* services.gradle.org
* plugins.gradle.org
- * kotlin.org
- * [www.kotlin.org](<http://www.kotlin.org>)
+ * kotlinlang.org
+ * [www.kotlinlang.org](<http://www.kotlinlang.org>)
* spring.io
* repo.spring.io
-####
-
-
-
-Package Managers - Other Languages
+Other package managers
* packagist.org (PHP Composer)
* [www.packagist.org](<http://www.packagist.org>)
@@ -706,11 +481,7 @@
* swift.org
* [www.swift.org](<http://www.swift.org>)
-####
-
-
-
-Linux Distributions
+Linux distributions
* archive.ubuntu.com
* security.ubuntu.com
@@ -720,12 +491,9 @@
* ppa.launchpad.net
* launchpad.net
* [www.launchpad.net](<http://www.launchpad.net>)
-
-####
-
-
-
-Development Tools & Platforms
+ * *.nixos.org
+
+Development tools and platforms
* dl.k8s.io (Kubernetes)
* pkgs.k8s.io
@@ -752,63 +520,256 @@
* download.eclipse.org
* nodejs.org (Node.js)
* [www.nodejs.org](<http://www.nodejs.org>)
-
-####
-
-
-
-Cloud Services & Monitoring
+ * developer.apple.com
+ * developer.android.com
+ * pkg.stainless.com
+ * binaries.prisma.sh
+
+Cloud services and monitoring
* statsig.com
* [www.statsig.com](<http://www.statsig.com>)
* api.statsig.com
* sentry.io
* *.sentry.io
+ * downloads.sentry-cdn.com
* http-intake.logs.datadoghq.com
* *.datadoghq.com
* *.datadoghq.eu
-
-####
-
-
-
-Content Delivery & Mirrors
+ * api.honeycomb.io
+
+Content delivery and mirrors
* sourceforge.net
* *.sourceforge.net
* packagecloud.io
* *.packagecloud.io
-
-####
-
-
-
-Schema & Configuration
+ * fonts.googleapis.com
+ * fonts.gstatic.com
+
+Schema and configuration
* json-schema.org
* [www.json-schema.org](<http://www.json-schema.org>)
* json.schemastore.org
* [www.schemastore.org](<http://www.schemastore.org>)
+Model Context Protocol
+
+ * *.modelcontextprotocol.io
+
+##
+
+
+
+Move tasks between web and terminal
+
+These workflows require the [Claude Code CLI](</docs/en/quickstart>) signed in to the same claude.ai account. You can start new cloud sessions from your terminal, or pull cloud sessions into your terminal to continue locally. Cloud sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
+
+From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with `--teleport`, but you can’t push an existing terminal session to the web. The `--remote` flag creates a new cloud session for your current repository. The [Desktop app](</docs/en/desktop#continue-in-another-surface>) provides a Continue in menu that can send a local session to the web.
+
+###
+
+
+
+From terminal to web
+
+Start a cloud session from the command line with the `--remote` flag:
+
+ claude --remote "Fix the authentication bug in src/auth/login.ts"
+
+This creates a new cloud session on claude.ai. The session clones your current directory’s GitHub remote at your current branch, so push first if you have local commits, since the VM clones from GitHub rather than your machine. `--remote` works with a single repository at a time. The task runs in the cloud while you continue working locally.
+
+`--remote` creates cloud sessions. `--remote-control` is unrelated: it exposes a local CLI session for monitoring from the web. See [Remote Control](</docs/en/remote-control>).
+
+Use `/tasks` in the Claude Code CLI to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
+
####
-Model Context Protocol
-
- * *.modelcontextprotocol.io
-
-Domains marked with `*` indicate wildcard subdomain matching. For example, `*.gcr.io` allows access to any subdomain of `gcr.io`.
-
-###
-
-
-
-Security best practices for customized network access
-
- 1. **Principle of least privilege** : Only enable the minimum network access required
- 2. **Audit regularly** : Review allowed domains periodically
- 3. **Use HTTPS** : Always prefer HTTPS endpoints over HTTP
+Tips for cloud tasks
+
+**Plan locally, execute remotely** : for complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the cloud:
+
+ claude --permission-mode plan
+
+In plan mode, Claude reads files, runs commands to explore, and proposes a plan without editing source code. Once you’re satisfied, save the plan to the repo, commit, and push so the cloud VM can clone it. Then start a cloud session for autonomous execution:
+
+ claude --remote "Execute the migration plan in docs/migration-plan.md"
+
+This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : to draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : each `--remote` command creates its own cloud session that runs independently. You can start multiple tasks and they’ll all run simultaneously in separate sessions:
+
+ claude --remote "Fix the flaky test in auth.spec.ts"
+ claude --remote "Update the API documentation"
+ claude --remote "Refactor the logger to use structured output"
+
+Monitor all sessions with `/tasks` in the Claude Code CLI. When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
+
+####
+
+
+
+Send local repositories without GitHub
+
+When you run `claude --remote` from a repository that isn’t connected to GitHub, Claude Code bundles your local repository and uploads it directly to the cloud session. The bundle includes your full repository history across all branches, plus any uncommitted changes to tracked files. This fallback activates automatically when GitHub access isn’t available. To force it even when GitHub is connected, set `CCR_FORCE_BUNDLE=1`:
+
+ CCR_FORCE_BUNDLE=1 claude --remote "Run the test suite and fix any failures"
+
+Bundled repositories must meet these limits:
+
+ * The directory must be a git repository with at least one commit
+ * The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree, and fail only if the snapshot is still too large
+ * Untracked files are not included; run `git add` on files you want the cloud session to see
+ * Sessions created from a bundle can’t push back to a remote unless you also have GitHub authentication configured
+
+###
+
+
+
+From web to terminal
+
+Pull a cloud session into your terminal using any of these:
+
+ * **Using`--teleport`**: from the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly. If you have uncommitted changes, you’ll be prompted to stash them first.
+ * **Using`/teleport`**: inside an existing CLI session, run `/teleport` (or `/tp`) to open the same session picker without restarting Claude Code.
+ * **From`/tasks`**: run `/tasks` to see your background sessions, then press `t` to teleport into one
+ * **From the web interface** : select **Open in CLI** to copy a command you can paste into your terminal
+
+When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the full conversation history into your terminal. `--teleport` is distinct from `--resume`. `--resume` reopens a conversation from this machine’s local history and doesn’t list cloud sessions; `--teleport` pulls a cloud session and its branch.
+
+####
+
+
+
+Teleport requirements
+
+Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
+
+Requirement| Details
+---|---
+Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork.
+Branch available| The branch from the cloud session must have been pushed to the remote. Teleport automatically fetches and checks it out.
+Same account| You must be authenticated to the same claude.ai account used in the cloud session.
+
+####
+
+
+
+`--teleport` is unavailable
+
+Teleport requires claude.ai subscription authentication. If you’re authenticated via API key, Bedrock, Vertex AI, or Microsoft Foundry, run `/login` to sign in with your claude.ai account instead. If you’re already signed in via claude.ai and `--teleport` is still unavailable, your organization may have disabled cloud sessions.
+
+##
+
+
+
+Work with sessions
+
+Sessions appear in the sidebar at claude.ai/code. From there you can review changes, share with teammates, archive finished work, or delete sessions permanently.
+
+###
+
+
+
+Manage context
+
+Cloud sessions support [built-in commands](</docs/en/commands>) that produce text output. Commands that open an interactive terminal picker, like `/model` or `/config`, are not available. For context management specifically:
+
+Command| Works in cloud sessions| Notes
+---|---|---
+`/compact`| Yes| Summarizes the conversation to free up context. Accepts optional focus instructions like `/compact keep the test output`
+`/context`| Yes| Shows what’s currently in the context window
+`/clear`| No| Start a new session from the sidebar instead
+
+Auto-compaction runs automatically when the context window approaches capacity, the same as in the CLI. To trigger it earlier, set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](</docs/en/env-vars>) in your environment variables. For example, `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70` compacts at 70% capacity instead of the default ~95%. To change the effective window size for compaction calculations, use [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](</docs/en/env-vars>). [Subagents](</docs/en/sub-agents>) work the same way they do locally. Claude can spawn them with the Task tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo’s `.claude/agents/` are picked up automatically. [Agent teams](</docs/en/agent-teams>) are off by default but can be enabled by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` to your environment variables.
+
+###
+
+
+
+Review changes
+
+Each session shows a diff indicator with lines added and removed, like `+42 -18`. Select it to open the diff view, leave inline comments on specific lines, and send them to Claude with your next message. See [Review and iterate](</docs/en/web-quickstart#review-and-iterate>) for the full walkthrough including PR creation. To have Claude monitor the PR for CI failures and review comments automatically, see Auto-fix pull requests.
+
+###
+
+
+
+Share sessions
+
+To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients see the latest state when they open the link, but their view doesn’t update in real time.
+
+####
+
+
+
+Share from an Enterprise or Team account
+
+For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
+
+####
+
+
+
+Share from a Max or Pro account
+
+For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. To require recipients to have repository access, or to hide your name from shared sessions, go to Settings > Claude Code > Sharing settings.
+
+###
+
+
+
+Archive sessions
+
+You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and select the archive icon.
+
+###
+
+
+
+Delete sessions
+
+Deleting a session permanently removes the session and its data. This action cannot be undone. You can delete a session in two ways:
+
+ * **From the sidebar** : filter for archived sessions, then hover over the session you want to delete and select the delete icon
+ * **From the session menu** : open a session, select the dropdown next to the session title, and select **Delete**
+
+You will be asked to confirm before a session is deleted.
+
+##
+
+
+
+Auto-fix pull requests
+
+Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
+
+Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during [setup](</docs/en/web-quickstart#connect-github-and-create-an-environment>).
+
+There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
+
+ * **PRs created in Claude Code on the web** : open the CI status bar and select **Auto-fix**
+ * **From your terminal** : run [`/autofix-pr`](</docs/en/commands#built-in-commands>) while on the PR’s branch. Claude Code detects the open PR with `gh`, spawns a web session, and turns on auto-fix in one step
+ * **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
+ * **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
+
+###
+
+
+
+How Claude responds to PR activity
+
+When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
+
+ * **Clear fixes** : if Claude is confident in a fix and it doesn’t conflict with earlier instructions, Claude makes the change, pushes it, and explains what was done in the session
+ * **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
+ * **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
+
+Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+
+If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
##
@@ -816,23 +777,12 @@
Security and isolation
-Claude Code on the web provides strong security guarantees:
-
- * **Isolated virtual machines** : Each session runs in an isolated, Anthropic-managed VM
- * **Network access controls** : Network access is limited by default, and can be disabled
-
-When running with network access disabled, Claude Code is allowed to communicate with the Anthropic API which may still allow data to exit the isolated Claude Code VM.
-
- * **Credential protection** : Sensitive credentials (such as git credentials or signing keys) are never inside the sandbox with Claude Code. Authentication is handled through a secure proxy using scoped credentials
- * **Secure analysis** : Code is analyzed and modified within isolated VMs before creating PRs
-
-##
-
-
-
-Pricing and rate limits
-
-Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel will consume more rate limits proportionately.
+Each cloud session is separated from your machine and from other sessions through several layers:
+
+ * **Isolated virtual machines** : each session runs in an isolated, Anthropic-managed VM
+ * **Network access controls** : network access is limited by default, and can be disabled. When running with network access disabled, Claude Code can still communicate with the Anthropic API, which may allow data to exit the VM.
+ * **Credential protection** : sensitive credentials such as git credentials or signing keys are never inside the sandbox with Claude Code. Authentication is handled through a secure proxy using scoped credentials.
+ * **Secure analysis** : code is analyzed and modified within isolated VMs before creating PRs
##
@@ -840,17 +790,11 @@
Limitations
- * **Repository authentication** : You can only move sessions from web to local when you are authenticated to the same account
- * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab and other non-GitHub repositories cannot be used with cloud sessions
-
-##
-
-
-
-Best practices
-
- 1. **Automate environment setup** : Use setup scripts to install dependencies and configure tools before Claude Code launches. For more advanced scenarios, configure [SessionStart hooks](</docs/en/hooks#sessionstart>).
- 2. **Document requirements** : Clearly specify dependencies and commands in your `CLAUDE.md` file. If you have an `AGENTS.md` file, you can source it in your `CLAUDE.md` using `@AGENTS.md` to maintain a single source of truth.
+Before relying on cloud sessions for a workflow, account for these constraints:
+
+ * **Rate limits** : Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately. There is no separate compute charge for the cloud VM.
+ * **Repository authentication** : you can only move sessions from web to local when you are authenticated to the same account
+ * **Platform restrictions** : repository cloning and pull request creation require GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab, Bitbucket, and other non-GitHub repositories can be sent to cloud sessions as a local bundle, but the session can’t push results back to the remote
##
@@ -858,7 +802,8 @@
Related resources
- * [Hooks configuration](</docs/en/hooks>)
- * [Settings reference](</docs/en/settings>)
- * [Security](</docs/en/security>)
- * [Data usage](</docs/en/data-usage>)
+ * [Schedule tasks on the web](</docs/en/web-scheduled-tasks>): automate recurring work like daily PR reviews and dependency audits
+ * [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
+ * [Settings reference](</docs/en/settings>): all configuration options
+ * [Security](</docs/en/security>): isolation guarantees and data handling
+ * [Data usage](</docs/en/data-usage>): what Anthropic retains from cloud sessions
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -157,7 +157,7 @@
claude --remote "Execute the migration plan in docs/migration-plan.md"
-This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Run tasks in parallel** : Each `--remote` command creates its own web session that runs independently. You can kick off multiple tasks and they’ll all run simultaneously in separate sessions:
+This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Plan in the cloud with ultraplan** : To draft and review the plan itself in a web session, use [ultraplan](</docs/en/ultraplan>). Claude generates the plan on Claude Code on the web while you keep working, then you comment on sections in your browser and choose to execute remotely or send the plan back to your terminal. **Run tasks in parallel** : Each `--remote` command creates its own web session that runs independently. You can kick off multiple tasks and they’ll all run simultaneously in separate sessions:
claude --remote "Fix the flaky test in auth.spec.ts"
claude --remote "Update the API documentation"
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -207,9 +207,9 @@
-Sharing from an Enterprise or Teams account
-
-For Enterprise and Teams accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your Claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
+Sharing from an Enterprise or Team account
+
+For Enterprise and Team accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your Claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
####
@@ -841,7 +841,7 @@
Limitations
* **Repository authentication** : You can only move sessions from web to local when you are authenticated to the same account
- * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Teams and Enterprise plans. GitLab and other non-GitHub repositories cannot be used with cloud sessions
+ * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Team and Enterprise plans. GitLab and other non-GitHub repositories cannot be used with cloud sessions
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -118,6 +118,8 @@
* **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+
+If your repository uses comment-triggered automation such as Atlantis, Terraform Cloud, or custom GitHub Actions that run on `issue_comment` events, be aware that Claude can reply on your behalf, which can trigger those workflows. Review your repository’s automation before enabling auto-fix, and consider disabling auto-fix for repositories where a PR comment can deploy infrastructure or run privileged operations.
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -34,6 +34,14 @@
Getting started
+
+Set up Claude Code on the web from the browser or from your terminal.
+
+###
+
+
+
+From the browser
1. Visit [claude.ai/code](<https://claude.ai/code>)
2. Connect your GitHub account
@@ -41,6 +49,16 @@
4. Select your default environment
5. Submit your coding task
6. Review changes in diff view, iterate with comments, then create a pull request
+
+###
+
+
+
+From the terminal
+
+Run `/web-setup` inside Claude Code to connect GitHub using your local `gh` CLI credentials. The command syncs your `gh auth token` to Claude Code on the web, creates a default cloud environment, and opens claude.ai/code in your browser when it finishes. This path requires the `gh` CLI to be installed and authenticated with `gh auth login`. If `gh` is not available, `/web-setup` opens claude.ai/code so you can connect GitHub from the browser instead. Your `gh` credentials give Claude access to clone and push, so you can skip the GitHub App for basic sessions. Install the App later if you want Auto-fix, which uses the App to receive PR webhooks.
+
+Team and Enterprise admins can disable terminal setup with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
##
@@ -821,7 +839,7 @@
Limitations
* **Repository authentication** : You can only move sessions from web to local when you are authenticated to the same account
- * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. GitLab and other non-GitHub repositories cannot be used with cloud sessions
+ * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. Self-hosted [GitHub Enterprise Server](</docs/en/github-enterprise-server>) instances are supported for Teams and Enterprise plans. GitLab and other non-GitHub repositories cannot be used with cloud sessions
##
Show diff (169 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -37,7 +37,7 @@
1. Visit [claude.ai/code](<https://claude.ai/code>)
2. Connect your GitHub account
- 3. Install the Claude GitHub app in your repositories
+ 3. Install the Claude GitHub App in your repositories
4. Select your default environment
5. Submit your coding task
6. Review changes in diff view, iterate with comments, then create a pull request
@@ -75,6 +75,36 @@
+Auto-fix pull requests
+
+Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
+
+Auto-fix requires the Claude GitHub App to be installed on your repository. If you haven’t already, install it from the [GitHub App page](<https://github.com/apps/claude>) or when prompted during setup.
+
+There are a few ways to turn on auto-fix depending on where the PR came from and what device you’re using:
+
+ * **PRs created in Claude Code on the web** : open the CI status bar and select **Auto-fix**
+ * **From the mobile app** : tell Claude to auto-fix the PR, for example “watch this PR and fix any CI failures or review comments”
+ * **Any existing PR** : paste the PR URL into a session and tell Claude to auto-fix it
+
+###
+
+
+
+How Claude responds to PR activity
+
+When auto-fix is active, Claude receives GitHub events for the PR including new review comments and CI check failures. For each event, Claude investigates and decides how to proceed:
+
+ * **Clear fixes** : if Claude is confident in a fix and it doesn’t conflict with earlier instructions, Claude makes the change, pushes it, and explains what was done in the session
+ * **Ambiguous requests** : if a reviewer’s comment could be interpreted multiple ways or involves something architecturally significant, Claude asks you before acting
+ * **Duplicate or no-action events** : if an event is a duplicate or requires no change, Claude notes it in the session and moves on
+
+Claude may reply to review comment threads on GitHub as part of resolving them. These replies are posted using your GitHub account, so they appear under your username, but each reply is labeled as coming from Claude Code so reviewers know it was written by the agent and not by you directly.
+
+##
+
+
+
Moving tasks between web and terminal
You can start new tasks on the web from your terminal, or pull web sessions into your terminal to continue locally. Web sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
@@ -89,12 +119,6 @@
Start a web session from the command line with the `--remote` flag:
-Report incorrect code
-
-Copy
-
-Ask AI
-
claude --remote "Fix the authentication bug in src/auth/login.ts"
This creates a new web session on claude.ai. The task runs in the cloud while you continue working locally. Use `/tasks` to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
@@ -107,31 +131,13 @@
**Plan locally, execute remotely** : For complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the web:
-Report incorrect code
-
-Copy
-
-Ask AI
-
claude --permission-mode plan
In plan mode, Claude can only read files and explore the codebase. Once you’re satisfied with the plan, start a remote session for autonomous execution:
-Report incorrect code
-
-Copy
-
-Ask AI
-
claude --remote "Execute the migration plan in docs/migration-plan.md"
This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Run tasks in parallel** : Each `--remote` command creates its own web session that runs independently. You can kick off multiple tasks and they’ll all run simultaneously in separate sessions:
-
-Report incorrect code
-
-Copy
-
-Ask AI
claude --remote "Fix the flaky test in auth.spec.ts"
claude --remote "Update the API documentation"
@@ -253,12 +259,6 @@
Checking available tools
To see what’s pre-installed in your environment, ask Claude Code to run:
-
-Report incorrect code
-
-Copy
-
-Ask AI
check-tools
@@ -315,12 +315,6 @@
Environment variables must be specified as key-value pairs, in [`.env` format](<https://www.dotenv.org/>). For example:
-Report incorrect code
-
-Copy
-
-Ask AI
-
API_KEY=your_api_key
DEBUG=true
@@ -335,12 +329,6 @@
To check what’s already installed before adding it to your script, ask Claude to run `check-tools` in a cloud session.
To add a setup script, open the environment settings dialog and enter your script in the **Setup script** field. This example installs the `gh` CLI, which isn’t in the default image:
-
-Report incorrect code
-
-Copy
-
-Ask AI
#!/bin/bash
apt update && apt install -y gh
@@ -374,23 +362,11 @@
Custom environment images and snapshots are not yet supported. Use setup scripts to install packages when a session starts, or [SessionStart hooks](</docs/en/hooks#sessionstart>) for dependency installation that should also run in local environments. SessionStart hooks have known limitations. To configure automatic dependency installation with a setup script, open your environment settings and add a script:
-Report incorrect code
-
-Copy
-
-Ask AI
-
#!/bin/bash
npm install
pip install -r requirements.txt
Alternatively, you can use SessionStart hooks in your repository’s `.claude/settings.json` file for dependency installation that should also run in local environments:
-
-Report incorrect code
-
-Copy
-
-Ask AI
{
"hooks": {
@@ -409,12 +385,6 @@
}
Create the corresponding script at `scripts/install_pkgs.sh`:
-
-Report incorrect code
-
-Copy
-
-Ask AI
#!/bin/bash
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -192,6 +192,14 @@
Sharing from a Max or Pro account
For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. Enable repository access verification and/or withhold your name from your shared sessions by going to Settings > Claude Code > Sharing settings.
+
+##
+
+
+
+Schedule recurring tasks
+
+Run Claude on a recurring schedule to automate work like daily PR reviews, dependency audits, and CI failure analysis. See [Schedule tasks on the web](</docs/en/web-scheduled-tasks>) for the full guide.
##
Show diff (869 lines)
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -0,0 +1,866 @@
+Claude Code on the web is currently in research preview.
+
+##
+
+
+
+What is Claude Code on the web?
+
+Claude Code on the web lets developers kick off Claude Code from the Claude app. This is perfect for:
+
+ * **Answering questions** : Ask about code architecture and how features are implemented
+ * **Bug fixes and routine tasks** : Well-defined tasks that don’t require frequent steering
+ * **Parallel work** : Tackle multiple bug fixes in parallel
+ * **Repositories not on your local machine** : Work on code you don’t have checked out locally
+ * **Backend changes** : Where Claude Code can write tests and then write code to pass those tests
+
+Claude Code is also available on the Claude app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) and [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) for kicking off tasks on the go and monitoring work in progress. You can kick off new tasks on the web from your terminal with `--remote`, or teleport web sessions back to your terminal to continue locally. To use the web interface while running Claude Code on your own machine instead of cloud infrastructure, see [Remote Control](</docs/en/remote-control>).
+
+##
+
+
+
+Who can use Claude Code on the web?
+
+Claude Code on the web is available in research preview to:
+
+ * **Pro users**
+ * **Max users**
+ * **Team users**
+ * **Enterprise users** with premium seats or Chat + Claude Code seats
+
+##
+
+
+
+Getting started
+
+ 1. Visit [claude.ai/code](<https://claude.ai/code>)
+ 2. Connect your GitHub account
+ 3. Install the Claude GitHub app in your repositories
+ 4. Select your default environment
+ 5. Submit your coding task
+ 6. Review changes in diff view, iterate with comments, then create a pull request
+
+##
+
+
+
+How it works
+
+When you start a task on Claude Code on the web:
+
+ 1. **Repository cloning** : Your repository is cloned to an Anthropic-managed virtual machine
+ 2. **Environment setup** : Claude prepares a secure cloud environment with your code, then runs your setup script if configured
+ 3. **Network configuration** : Internet access is configured based on your settings
+ 4. **Task execution** : Claude analyzes code, makes changes, runs tests, and checks its work
+ 5. **Completion** : You’re notified when finished and can create a PR with the changes
+ 6. **Results** : Changes are pushed to a branch, ready for pull request creation
+
+##
+
+
+
+Review changes with diff view
+
+Diff view lets you see exactly what Claude changed before creating a pull request. Instead of clicking “Create PR” to review changes in GitHub, view the diff directly in the app and iterate with Claude until the changes are ready. When Claude makes changes to files, a diff stats indicator appears showing the number of lines added and removed (for example, `+12 -1`). Select this indicator to open the diff viewer, which displays a file list on the left and the changes for each file on the right. From the diff view, you can:
+
+ * Review changes file by file
+ * Comment on specific changes to request modifications
+ * Continue iterating with Claude based on what you see
+
+This lets you refine changes through multiple rounds of feedback without creating draft PRs or switching to GitHub.
+
+##
+
+
+
+Moving tasks between web and terminal
+
+You can start new tasks on the web from your terminal, or pull web sessions into your terminal to continue locally. Web sessions persist even if you close your laptop, and you can monitor them from anywhere including the Claude mobile app.
+
+Session handoff is one-way: you can pull web sessions into your terminal, but you can’t push an existing terminal session to the web. The `--remote` flag creates a _new_ web session for your current repository.
+
+###
+
+
+
+From terminal to web
+
+Start a web session from the command line with the `--remote` flag:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ claude --remote "Fix the authentication bug in src/auth/login.ts"
+
+This creates a new web session on claude.ai. The task runs in the cloud while you continue working locally. Use `/tasks` to check progress, or open the session on claude.ai or the Claude mobile app to interact directly. From there you can steer Claude, provide feedback, or answer questions just like any other conversation.
+
+####
+
+
+
+Tips for remote tasks
+
+**Plan locally, execute remotely** : For complex tasks, start Claude in plan mode to collaborate on the approach, then send work to the web:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ claude --permission-mode plan
+
+In plan mode, Claude can only read files and explore the codebase. Once you’re satisfied with the plan, start a remote session for autonomous execution:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ claude --remote "Execute the migration plan in docs/migration-plan.md"
+
+This pattern gives you control over the strategy while letting Claude execute autonomously in the cloud. **Run tasks in parallel** : Each `--remote` command creates its own web session that runs independently. You can kick off multiple tasks and they’ll all run simultaneously in separate sessions:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ claude --remote "Fix the flaky test in auth.spec.ts"
+ claude --remote "Update the API documentation"
+ claude --remote "Refactor the logger to use structured output"
+
+Monitor all sessions with `/tasks`. When a session completes, you can create a PR from the web interface or teleport the session to your terminal to continue working.
+
+###
+
+
+
+From web to terminal
+
+There are several ways to pull a web session into your terminal:
+
+ * **Using`/teleport`**: From within Claude Code, run `/teleport` (or `/tp`) to see an interactive picker of your web sessions. If you have uncommitted changes, you’ll be prompted to stash them first.
+ * **Using`--teleport`**: From the command line, run `claude --teleport` for an interactive session picker, or `claude --teleport <session-id>` to resume a specific session directly.
+ * **From`/tasks`**: Run `/tasks` to see your background sessions, then press `t` to teleport into one
+ * **From the web interface** : Click “Open in CLI” to copy a command you can paste into your terminal
+
+When you teleport a session, Claude verifies you’re in the correct repository, fetches and checks out the branch from the remote session, and loads the full conversation history into your terminal.
+
+####
+
+
+
+Requirements for teleporting
+
+Teleport checks these requirements before resuming a session. If any requirement isn’t met, you’ll see an error or be prompted to resolve the issue.
+
+Requirement| Details
+---|---
+Clean git state| Your working directory must have no uncommitted changes. Teleport prompts you to stash changes if needed.
+Correct repository| You must run `--teleport` from a checkout of the same repository, not a fork.
+Branch available| The branch from the web session must have been pushed to the remote. Teleport automatically fetches and checks it out.
+Same account| You must be authenticated to the same Claude.ai account used in the web session.
+
+###
+
+
+
+Sharing sessions
+
+To share a session, toggle its visibility according to the account types below. After that, share the session link as-is. Recipients who open your shared session will see the latest state of the session upon load, but the recipient’s page will not update in real time.
+
+####
+
+
+
+Sharing from an Enterprise or Teams account
+
+For Enterprise and Teams accounts, the two visibility options are **Private** and **Team**. Team visibility makes the session visible to other members of your Claude.ai organization. Repository access verification is enabled by default, based on the GitHub account connected to the recipient’s account. Your account’s display name is visible to all recipients with access. [Claude in Slack](</docs/en/slack>) sessions are automatically shared with Team visibility.
+
+####
+
+
+
+Sharing from a Max or Pro account
+
+For Max and Pro accounts, the two visibility options are **Private** and **Public**. Public visibility makes the session visible to any user logged into claude.ai. Check your session for sensitive content before sharing. Sessions may contain code and credentials from private GitHub repositories. Repository access verification is not enabled by default. Enable repository access verification and/or withhold your name from your shared sessions by going to Settings > Claude Code > Sharing settings.
+
+##
+
+
+
+Managing sessions
+
+###
+
+
+
+Archiving sessions
+
+You can archive sessions to keep your session list organized. Archived sessions are hidden from the default session list but can be viewed by filtering for archived sessions. To archive a session, hover over the session in the sidebar and click the archive icon.
+
+###
+
+
+
+Deleting sessions
+
+Deleting a session permanently removes the session and its data. This action cannot be undone. You can delete a session in two ways:
+
+ * **From the sidebar** : Filter for archived sessions, then hover over the session you want to delete and click the delete icon
+ * **From the session menu** : Open a session, click the dropdown next to the session title, and select **Delete**
+
+You will be asked to confirm before a session is deleted.
+
+##
+
+
+
+Cloud environment
+
+###
+
+
+
+Default image
+
+We build and maintain a universal image with common toolchains and language ecosystems pre-installed. This image includes:
+
+ * Popular programming languages and runtimes
+ * Common build tools and package managers
+ * Testing frameworks and linters
+
+####
+
+
+
+Checking available tools
+
+To see what’s pre-installed in your environment, ask Claude Code to run:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ check-tools
+
+This command displays:
+
+ * Programming languages and their versions
+ * Available package managers
+ * Installed development tools
+
+####
+
+
+
+Language-specific setups
+
+The universal image includes pre-configured environments for:
+
+ * **Python** : Python 3.x with pip, poetry, and common scientific libraries
+ * **Node.js** : Latest LTS versions with npm, yarn, pnpm, and bun
+ * **Ruby** : Versions 3.1.6, 3.2.6, 3.3.6 (default: 3.3.6) with gem, bundler, and rbenv for version management
+ * **PHP** : Version 8.4.14
+ * **Java** : OpenJDK with Maven and Gradle
+ * **Go** : Latest stable version with module support
+ * **Rust** : Rust toolchain with cargo
+ * **C++** : GCC and Clang compilers
+
+####
+
+
+
+Databases
+
+The universal image includes the following databases:
+
+ * **PostgreSQL** : Version 16
+ * **Redis** : Version 7.0
+
+###
+
+
+
+Environment configuration
+
+When you start a session in Claude Code on the web, here’s what happens under the hood:
+
+ 1. **Environment preparation** : We clone your repository and run any configured setup script. The repo will be cloned with the default branch on your GitHub repo. If you would like to check out a specific branch, you can specify that in the prompt.
+ 2. **Network configuration** : We configure internet access for the agent. Internet access is limited by default, but you can configure the environment to have no internet or full internet access based on your needs.
+ 3. **Claude Code execution** : Claude Code runs to complete your task, writing code, running tests, and checking its work. You can guide and steer Claude throughout the session via the web interface. Claude respects context you’ve defined in your `CLAUDE.md`.
+ 4. **Outcome** : When Claude completes its work, it will push the branch to remote. You will be able to create a PR for the branch.
+
+Claude operates entirely through the terminal and CLI tools available in the environment. It uses the pre-installed tools in the universal image and any additional tools you install through hooks or dependency management.
+
+**To add a new environment:** Select the current environment to open the environment selector, and then select “Add environment”. This will open a dialog where you can specify the environment name, network access level, environment variables, and a setup script. **To update an existing environment:** Select the current environment, to the right of the environment name, and select the settings button. This will open a dialog where you can update the environment name, network access, environment variables, and setup script. **To select your default environment from the terminal:** If you have multiple environments configured, run `/remote-env` to choose which one to use when starting web sessions from your terminal with `--remote`. With a single environment, this command shows your current configuration.
+
+Environment variables must be specified as key-value pairs, in [`.env` format](<https://www.dotenv.org/>). For example:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ API_KEY=your_api_key
+ DEBUG=true
+
+###
+
+
+
+Setup scripts
+
+A setup script is a Bash script that runs when a new cloud session starts, before Claude Code launches. Use setup scripts to install dependencies, configure tools, or prepare anything the cloud environment needs that isn’t in the default image. Scripts run as root on Ubuntu 24.04, so `apt install` and most language package managers work.
+
+To check what’s already installed before adding it to your script, ask Claude to run `check-tools` in a cloud session.
+
+To add a setup script, open the environment settings dialog and enter your script in the **Setup script** field. This example installs the `gh` CLI, which isn’t in the default image:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ #!/bin/bash
+ apt update && apt install -y gh
+
+Setup scripts run only when creating a new session. They are skipped when resuming an existing session. If the script exits non-zero, the session fails to start. Append `|| true` to non-critical commands to avoid blocking the session on a flaky install.
+
+Setup scripts that install packages need network access to reach registries. The default network access allows connections to common package registries including npm, PyPI, RubyGems, and crates.io. Scripts will fail to install packages if your environment has network access disabled.
+
+####
+
+
+
+Setup scripts vs. SessionStart hooks
+
+Use a setup script to install things the cloud needs but your laptop already has, like a language runtime or CLI tool. Use a [SessionStart hook](</docs/en/hooks#sessionstart>) for project setup that should run everywhere, cloud and local, like `npm install`. Both run at the start of a session, but they belong to different places:
+
+| Setup scripts| SessionStart hooks
+---|---|---
+Attached to| The cloud environment| Your repository
+Configured in| Cloud environment UI| `.claude/settings.json` in your repo
+Runs| Before Claude Code launches, on new sessions only| After Claude Code launches, on every session including resumed
+Scope| Cloud environments only| Both local and cloud
+
+SessionStart hooks can also be defined in your user-level `~/.claude/settings.json` locally, but user-level settings don’t carry over to cloud sessions. In the cloud, only hooks committed to the repo run.
+
+###
+
+
+
+Dependency management
+
+Custom environment images and snapshots are not yet supported. Use setup scripts to install packages when a session starts, or [SessionStart hooks](</docs/en/hooks#sessionstart>) for dependency installation that should also run in local environments. SessionStart hooks have known limitations. To configure automatic dependency installation with a setup script, open your environment settings and add a script:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ #!/bin/bash
+ npm install
+ pip install -r requirements.txt
+
+Alternatively, you can use SessionStart hooks in your repository’s `.claude/settings.json` file for dependency installation that should also run in local environments:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ {
+ "hooks": {
+ "SessionStart": [
+ {
+ "matcher": "startup",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "\"$CLAUDE_PROJECT_DIR\"/scripts/install_pkgs.sh"
+ }
+ ]
+ }
+ ]
+ }
+ }
+
+Create the corresponding script at `scripts/install_pkgs.sh`:
+
+Report incorrect code
+
+Copy
+
+Ask AI
+
+ #!/bin/bash
+
+ # Only run in remote environments
+ if [ "$CLAUDE_CODE_REMOTE" != "true" ]; then
+ exit 0
+ fi
+
+ npm install
+ pip install -r requirements.txt
+ exit 0
+
+Make it executable: `chmod +x scripts/install_pkgs.sh`
+
+####
+
+
+
+Persist environment variables
+
+SessionStart hooks can persist environment variables for subsequent Bash commands by writing to the file specified in the `CLAUDE_ENV_FILE` environment variable. For details, see [SessionStart hooks](</docs/en/hooks#sessionstart>) in the hooks reference.
+
+####
+
+
+
+Dependency management limitations
+
+ * **Hooks fire for all sessions** : SessionStart hooks run in both local and remote environments. There is no hook configuration to scope a hook to remote sessions only. To skip local execution, check the `CLAUDE_CODE_REMOTE` environment variable in your script as shown above.
+ * **Requires network access** : Install commands need network access to reach package registries. If your environment is configured with “No internet” access, these hooks will fail. Use “Limited” (the default) or “Full” network access. The default allowlist includes common registries like npm, PyPI, RubyGems, and crates.io.
+ * **Proxy compatibility** : All outbound traffic in remote environments passes through a security proxy. Some package managers do not work correctly with this proxy. Bun is a known example.
+ * **Runs on every session start** : Hooks run each time a session starts or resumes, adding startup latency. Keep install scripts fast by checking whether dependencies are already present before reinstalling.
+
+##
+
+
+
+Network access and security
+
+###
+
+
+
+Network policy
+
+####
+
+
+
+GitHub proxy
+
+For security, all GitHub operations go through a dedicated proxy service that transparently handles all git interactions. Inside the sandbox, the git client authenticates using a custom-built scoped credential. This proxy:
+
+ * Manages GitHub authentication securely - the git client uses a scoped credential inside the sandbox, which the proxy verifies and translates to your actual GitHub authentication token
+ * Restricts git push operations to the current working branch for safety
+ * Enables seamless cloning, fetching, and PR operations while maintaining security boundaries
+
+####
+
+
+
+Security proxy
+
+Environments run behind an HTTP/HTTPS network proxy for security and abuse prevention purposes. All outbound internet traffic passes through this proxy, which provides:
+
+ * Protection against malicious requests
+ * Rate limiting and abuse prevention
+ * Content filtering for enhanced security
+
+###
+
+
+
+Access levels
+
+By default, network access is limited to allowlisted domains. You can configure custom network access, including disabling network access.
+
+###
+
+
+
+Default allowed domains
+
+When using “Limited” network access, the following domains are allowed by default:
+
+####
+
+
+
+Anthropic Services
+
+ * api.anthropic.com
+ * statsig.anthropic.com
+ * platform.claude.com
+ * code.claude.com
+ * claude.ai
+
+####
+
+
+
+Version Control
+
+ * github.com
+ * [www.github.com](<http://www.github.com>)
+ * api.github.com
+ * npm.pkg.github.com
+ * raw.githubusercontent.com
+ * pkg-npm.githubusercontent.com
+ * objects.githubusercontent.com
+ * codeload.github.com
+ * avatars.githubusercontent.com
+ * camo.githubusercontent.com
+ * gist.github.com
+ * gitlab.com
+ * [www.gitlab.com](<http://www.gitlab.com>)
+ * registry.gitlab.com
+ * bitbucket.org
+ * [www.bitbucket.org](<http://www.bitbucket.org>)
+ * api.bitbucket.org
+
+####
+
+
+
+Container Registries
+
+ * registry-1.docker.io
+ * auth.docker.io
+ * index.docker.io
+ * hub.docker.com
+ * [www.docker.com](<http://www.docker.com>)
+ * production.cloudflare.docker.com
+ * download.docker.com
+ * gcr.io
+ * *.gcr.io
+ * ghcr.io
+ * mcr.microsoft.com
+ * *.data.mcr.microsoft.com
+ * public.ecr.aws
+
+####
+
+
+
+Cloud Platforms
+
+ * cloud.google.com
+ * accounts.google.com
+ * gcloud.google.com
+ * *.googleapis.com
+ * storage.googleapis.com
+ * compute.googleapis.com
+ * container.googleapis.com
+ * azure.com
+ * portal.azure.com
+ * microsoft.com
+ * [www.microsoft.com](<http://www.microsoft.com>)
+ * *.microsoftonline.com
+ * packages.microsoft.com
+ * dotnet.microsoft.com
+ * dot.net
+ * visualstudio.com
+ * dev.azure.com
+ * *.amazonaws.com
+ * *.api.aws
+ * oracle.com
+ * [www.oracle.com](<http://www.oracle.com>)
+ * java.com
+ * [www.java.com](<http://www.java.com>)
+ * java.net
+ * [www.java.net](<http://www.java.net>)
+ * download.oracle.com
+ * yum.oracle.com
+
+####
+
+
+
+Package Managers - JavaScript/Node
+
+ * registry.npmjs.org
+ * [www.npmjs.com](<http://www.npmjs.com>)
+ * [www.npmjs.org](<http://www.npmjs.org>)
+ * npmjs.com
+ * npmjs.org
+ * yarnpkg.com
+ * registry.yarnpkg.com
+
+####
+
+
+
+Package Managers - Python
+
+ * pypi.org
+ * [www.pypi.org](<http://www.pypi.org>)
+ * files.pythonhosted.org
+ * pythonhosted.org
+ * test.pypi.org
+ * pypi.python.org
+ * pypa.io
+ * [www.pypa.io](<http://www.pypa.io>)
+
+####
+
+
+
+Package Managers - Ruby
+
+ * rubygems.org
+ * [www.rubygems.org](<http://www.rubygems.org>)
+ * api.rubygems.org
+ * index.rubygems.org
+ * ruby-lang.org
+ * [www.ruby-lang.org](<http://www.ruby-lang.org>)
+ * rubyforge.org
+ * [www.rubyforge.org](<http://www.rubyforge.org>)
+ * rubyonrails.org
+ * [www.rubyonrails.org](<http://www.rubyonrails.org>)
+ * rvm.io
+ * get.rvm.io
+
+####
+
+
+
+Package Managers - Rust
+
+ * crates.io
+ * [www.crates.io](<http://www.crates.io>)
+ * index.crates.io
+ * static.crates.io
+ * rustup.rs
+ * static.rust-lang.org
+ * [www.rust-lang.org](<http://www.rust-lang.org>)
+
+####
+
+
+
+Package Managers - Go
+
+ * proxy.golang.org
+ * sum.golang.org
+ * index.golang.org
+ * golang.org
+ * [www.golang.org](<http://www.golang.org>)
+ * goproxy.io
+ * pkg.go.dev
+
+####
+
+
+
+Package Managers - JVM
+
+ * maven.org
+ * repo.maven.org
+ * central.maven.org
+ * repo1.maven.org
+ * jcenter.bintray.com
+ * gradle.org
+ * [www.gradle.org](<http://www.gradle.org>)
+ * services.gradle.org
+ * plugins.gradle.org
+ * kotlin.org
+ * [www.kotlin.org](<http://www.kotlin.org>)
+ * spring.io
+ * repo.spring.io
+
+####
+
+
+
+Package Managers - Other Languages
+
+ * packagist.org (PHP Composer)
+ * [www.packagist.org](<http://www.packagist.org>)
+ * repo.packagist.org
+ * nuget.org (.NET NuGet)
+ * [www.nuget.org](<http://www.nuget.org>)
+ * api.nuget.org
+ * pub.dev (Dart/Flutter)
+ * api.pub.dev
+ * hex.pm (Elixir/Erlang)
+ * [www.hex.pm](<http://www.hex.pm>)
+ * cpan.org (Perl CPAN)
+ * [www.cpan.org](<http://www.cpan.org>)
+ * metacpan.org
+ * [www.metacpan.org](<http://www.metacpan.org>)
+ * api.metacpan.org
+ * cocoapods.org (iOS/macOS)
+ * [www.cocoapods.org](<http://www.cocoapods.org>)
+ * cdn.cocoapods.org
+ * haskell.org
+ * [www.haskell.org](<http://www.haskell.org>)
+ * hackage.haskell.org
+ * swift.org
+ * [www.swift.org](<http://www.swift.org>)
+
+####
+
+
+
+Linux Distributions
+
+ * archive.ubuntu.com
+ * security.ubuntu.com
+ * ubuntu.com
+ * [www.ubuntu.com](<http://www.ubuntu.com>)
+ * *.ubuntu.com
+ * ppa.launchpad.net
+ * launchpad.net
+ * [www.launchpad.net](<http://www.launchpad.net>)
+
+####
+
+
+
+Development Tools & Platforms
+
+ * dl.k8s.io (Kubernetes)
+ * pkgs.k8s.io
+ * k8s.io
+ * [www.k8s.io](<http://www.k8s.io>)
+ * releases.hashicorp.com (HashiCorp)
+ * apt.releases.hashicorp.com
+ * rpm.releases.hashicorp.com
+ * archive.releases.hashicorp.com
+ * hashicorp.com
+ * [www.hashicorp.com](<http://www.hashicorp.com>)
+ * repo.anaconda.com (Anaconda/Conda)
+ * conda.anaconda.org
+ * anaconda.org
+ * [www.anaconda.com](<http://www.anaconda.com>)
+ * anaconda.com
+ * continuum.io
+ * apache.org (Apache)
+ * [www.apache.org](<http://www.apache.org>)
+ * archive.apache.org
+ * downloads.apache.org
+ * eclipse.org (Eclipse)
+ * [www.eclipse.org](<http://www.eclipse.org>)
+ * download.eclipse.org
+ * nodejs.org (Node.js)
+ * [www.nodejs.org](<http://www.nodejs.org>)
+
+####
+
+
+
+Cloud Services & Monitoring
+
+ * statsig.com
+ * [www.statsig.com](<http://www.statsig.com>)
+ * api.statsig.com
+ * sentry.io
+ * *.sentry.io
+ * http-intake.logs.datadoghq.com
+ * *.datadoghq.com
+ * *.datadoghq.eu
+
+####
+
+
+
+Content Delivery & Mirrors
+
+ * sourceforge.net
+ * *.sourceforge.net
+ * packagecloud.io
+ * *.packagecloud.io
+
+####
+
+
+
+Schema & Configuration
+
+ * json-schema.org
+ * [www.json-schema.org](<http://www.json-schema.org>)
+ * json.schemastore.org
+ * [www.schemastore.org](<http://www.schemastore.org>)
+
+####
+
+
+
+Model Context Protocol
+
+ * *.modelcontextprotocol.io
+
+Domains marked with `*` indicate wildcard subdomain matching. For example, `*.gcr.io` allows access to any subdomain of `gcr.io`.
+
+###
+
+
+
+Security best practices for customized network access
+
+ 1. **Principle of least privilege** : Only enable the minimum network access required
+ 2. **Audit regularly** : Review allowed domains periodically
+ 3. **Use HTTPS** : Always prefer HTTPS endpoints over HTTP
+
+##
+
+
+
+Security and isolation
+
+Claude Code on the web provides strong security guarantees:
+
+ * **Isolated virtual machines** : Each session runs in an isolated, Anthropic-managed VM
+ * **Network access controls** : Network access is limited by default, and can be disabled
+
+When running with network access disabled, Claude Code is allowed to communicate with the Anthropic API which may still allow data to exit the isolated Claude Code VM.
+
+ * **Credential protection** : Sensitive credentials (such as git credentials or signing keys) are never inside the sandbox with Claude Code. Authentication is handled through a secure proxy using scoped credentials
+ * **Secure analysis** : Code is analyzed and modified within isolated VMs before creating PRs
+
+##
+
+
+
+Pricing and rate limits
+
+Claude Code on the web shares rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel will consume more rate limits proportionately.
+
+##
+
+
+
+Limitations
+
+ * **Repository authentication** : You can only move sessions from web to local when you are authenticated to the same account
+ * **Platform restrictions** : Claude Code on the web only works with code hosted in GitHub. GitLab and other non-GitHub repositories cannot be used with cloud sessions
+
+##
+
+
+
+Best practices
+
+ 1. **Automate environment setup** : Use setup scripts to install dependencies and configure tools before Claude Code launches. For more advanced scenarios, configure [SessionStart hooks](</docs/en/hooks#sessionstart>).
+ 2. **Document requirements** : Clearly specify dependencies and commands in your `CLAUDE.md` file. If you have an `AGENTS.md` file, you can source it in your `CLAUDE.md` using `@AGENTS.md` to maintain a single source of truth.
+
+##
+
+
+
+Related resources
+
+ * [Hooks configuration](</docs/en/hooks>)
+ * [Settings reference](</docs/en/settings>)
+ * [Security](</docs/en/security>)
+ * [Data usage](</docs/en/data-usage>)