modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -41,7 +41,7 @@ Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. -On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Organization settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code cloud sessions” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. +On Team and Enterprise plans, connecting github.com in the browser works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Organization settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, you might see “GitHub access is required for Claude Code cloud sessions” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>). 1 @@ -62,7 +62,7 @@ A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan: * **Pro, Max, and Ultra** : you get an environment named **Default** automatically. - * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. + * **Team and Enterprise** : in some organizations, claude.ai/code creates **Default** for you. If you see a **Create your first cloud environment** form instead, keep the prefilled name and network access and click the **Create & finish** button to create the **Default** environment. **Default** uses [**Limited** network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>).
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -18,7 +18,7 @@ 3. **Work** : Claude analyzes code, makes changes, runs tests, and checks its work. You can watch and steer throughout, or step away and come back when it’s done. 4. **Push the branch** : when Claude reaches a stopping point, it pushes its branch to GitHub. You review the diff, leave inline comments, create a PR, or send another message to keep going. -The session doesn’t close when the branch is pushed. PR creation and further edits all happen within the same conversation. +PR creation and further edits all happen within the same conversation. ## Compare ways to run Claude Code
modified
--- a/web-quickstart.md +++ b/web-quickstart.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. -A cloud session runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. Claude clones the GitHub repository you select into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: +A cloud session runs Claude Code on cloud infrastructure, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. Claude clones the GitHub repository you select into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out @@ -108,7 +108,7 @@ Select a repository and branch -From [claude.ai/code](<https://claude.ai/code>) or the Code tab in the Claude mobile app, click the repository selector below the input box and choose a repository for Claude to work in. You can add multiple repositories to work across them in one session.At claude.ai/code, to start Claude from a feature branch instead of the default, change the branch in the control after the repository selector. +From [claude.ai/code](<https://claude.ai/code>) or the Code tab in the Claude mobile app, click the repository selector below the input box and choose a repository for Claude to work in. You can add multiple repositories to work across them in one session.At claude.ai/code, to start Claude from a feature branch instead of the default, change the branch in the control after the repository selector. To start without a repository at claude.ai/code, select **No repository** in the repository selector. 2 @@ -159,8 +159,8 @@ After Claude pushes its changes to a branch, the **Changes** card in the panel beside the chat shows the lines added and removed across the session, for example `+42 -18`. Click those counts 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>). The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. Against the base branch, the diff can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>).
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -209,7 +209,7 @@ ### `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If Claude Code’s command menu shows `No commands match "/web-setup"`, or submitting `/web-setup` returns `Unknown command: /web-setup` or says it’s unavailable, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: * An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`. * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or has the [HIPAA configuration](</docs/en/hipaa-setup>) applied. Either one makes cloud sessions unavailable.
modified
Show diff (224 lines)
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -9,11 +9,7 @@ For work that needs your local config, tools, or environment, running Claude Code locally or using [Remote Control](</docs/en/remote-control>) is a better fit. -## - -​ - -How sessions run +## How sessions run The steps below describe Anthropic-hosted sessions. In a [self-hosted environment](</docs/en/self-hosted-environments>), the clone and everything after it run on your organization’s own runners, where network boundaries, setup, and push behavior are operator-configured. When you submit a task: @@ -24,11 +20,7 @@ The session doesn’t close when the branch is pushed. PR creation and further edits all happen within the same conversation. -## - -​ - -Compare ways to run Claude Code +## Compare ways to run Claude Code Claude Code behaves the same everywhere. What changes is where the session runs and whether your local configuration is available: @@ -45,11 +37,7 @@ See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set up local sessions. -## - -​ - -Connect GitHub +## Connect GitHub Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. @@ -78,11 +66,7 @@ **Default** uses [**Limited** network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). -### - -​ - -Connect from your terminal +### Connect from your terminal If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. @@ -112,19 +96,11 @@ Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser.If you don’t have a cloud environment yet, `/web-setup` creates one with the default **Limited** network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-cloud>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). -#### - -​ - -Remove the `/web-setup` token +#### Remove the `/web-setup` token To remove the token from your Claude account, disconnect GitHub at [claude.ai/customize/connectors](<https://claude.ai/customize/connectors>). Disconnecting deletes the GitHub credentials your cloud sessions use, whether they came from the browser or from `/web-setup`, so cloud sessions lose GitHub access until you connect again. Your local `gh` stays signed in, and the token remains valid on GitHub. To invalidate the token itself, revoke it on GitHub. If you signed in to `gh` through the browser, the token belongs to the **GitHub CLI** entry under [**Settings > Applications > Authorized OAuth Apps**](<https://github.com/settings/applications>) on GitHub, and revoking that entry also signs the GitHub CLI out on your machines. Cloud sessions then lose GitHub access until you run `gh auth login` and `/web-setup` again. -## - -​ - -Start a task +## Start a task With GitHub connected and an environment created, you’re ready to submit tasks. @@ -158,11 +134,7 @@ Claude clones the repositories, runs your setup script if configured, and starts working. Each task gets its own session and its own branch, so you don’t need to wait for one to finish before starting another. -## - -​ - -Pre-fill sessions +## Pre-fill sessions You can prefill the prompt, repositories, and environment for a new session by adding query parameters to the [claude.ai/code](<https://claude.ai/code>) URL. Use this to build integrations such as a button in your issue tracker that opens Claude Code with the issue description as the prompt. @@ -177,11 +149,7 @@ https://claude.ai/code?prompt=Fix%20the%20login%20bug&repositories=acme/webapp -## - -​ - -Review and iterate +## Review and iterate When Claude finishes, review the changes, leave feedback on specific lines, and keep going until the diff looks right. @@ -217,76 +185,40 @@ The session stays live after the PR is created. Paste CI failure output or reviewer comments into the chat and ask Claude to address them. To have Claude monitor the PR automatically, see [Auto-fix pull requests](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>). -## - -​ - -Troubleshoot setup - -### - -​ - -No repositories appear after connecting GitHub +## Troubleshoot setup + +### No repositories appear after connecting GitHub If you connected GitHub in the browser, sessions can clone any public repository, but a private repository appears only when the Claude GitHub App is installed on the account or organization that owns it and the installation’s repository access includes it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) there, or ask an organization owner to install or approve it. If you connected with `/web-setup`, sessions reach every repository your `gh` token can access. Run `gh repo view OWNER/REPO` in your shell to check that your GitHub CLI login can see the repository, and run `/web-setup` again if you’ve switched `gh` accounts since connecting. -### - -​ - -The page only shows a GitHub login button +### The page only shows a GitHub login button To work in a GitHub repository in a cloud session, connect your GitHub account, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from your browser or phone. -### - -​ - -”Claude Code isn’t available on your account” +### ”Claude Code isn’t available on your account” Your seat in the selected organization doesn’t include Claude Code. If you belong to another organization, click **Switch organization** on that page. Otherwise, ask an Owner of the organization to assign you a [seat that includes Claude Code](<https://support.claude.com/en/articles/11845131-use-claude-code-with-your-team-or-enterprise-plan>). -### - -​ - -`/web-setup` says “Not signed in to Claude” +### `/web-setup` says “Not signed in to Claude” If `/web-setup` responds with “Not signed in to Claude. Run /login first.”, the CLI doesn’t have a valid claude.ai sign-in. This can also happen when a previous sign-in has expired. Run `/login`, sign in with your claude.ai account, then run `/web-setup` again. -### - -​ - -`/web-setup` warns that your token doesn’t have the `workflow` scope +### `/web-setup` warns that your token doesn’t have the `workflow` scope If `/web-setup` says your GitHub CLI token doesn’t have the `workflow` scope, you can continue, but GitHub can reject some pushes made with that token, such as pushes that change GitHub Actions workflow files. To add the scope, run `gh auth refresh -s workflow` in your shell, then run `/web-setup` again. -### - -​ - -`/web-setup` shows “No commands match” or “Unknown command” +### `/web-setup` shows “No commands match” or “Unknown command” `/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: * An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`. * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or has the [HIPAA configuration](</docs/en/hipaa-setup>) applied. Either one makes cloud sessions unavailable. -### - -​ - -”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` +### ”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` Cloud session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI, or add an environment from the [environment selector](</docs/en/cloud-environments#configure-your-environment>) at [claude.ai/code](<https://claude.ai/code>). -### - -​ - -Setup script failed +### Setup script failed The [setup script](</docs/en/cloud-environments#setup-scripts>) exited with a non-zero status, so the session failed to start or started without whatever the script failed to install. If the session started, you can keep working in it. Common causes: @@ -296,11 +228,7 @@ To debug, add `set -x` at the top of the script to see which command failed. For non-critical commands, append `|| true` so they don’t fail the script. After you fix the cause, start a new session so the script runs again. If what failed to start was a run of a [cloud scheduled task](</docs/en/routines>), click **Run now** on the task’s detail page instead of starting a new session. -### - -​ - -New sessions hang or time out during setup +### New sessions hang or time out during setup If new sessions stall on the setup script step or fail with a generic container error before the script finishes, the script is likely exceeding the roughly five-minute time budget for building the [environment cache](</docs/en/cloud-environments#environment-caching>). Heavy steps such as pulling large Docker images, syncing full dependency trees, or downloading model weights often push the total over the limit, especially when they run one after another. To fix this, trim the script so it reliably finishes in under five minutes: @@ -308,19 +236,11 @@ * Move the largest downloads out of the setup script and into a [SessionStart hook](</docs/en/cloud-environments#setup-scripts-vs-sessionstart-hooks>) that launches them in the background, so the session becomes usable while they finish. * Remove long retry sleeps from the setup script, since a stalled retry loop counts against the budget. -### - -​ - -Session keeps running after closing the tab +### Session keeps running after closing the tab This is by design. Closing the tab or navigating away doesn’t stop the session. It continues running in the background until Claude finishes the current task, then idles. From the sidebar, you can [archive a session](</docs/en/claude-code-on-the-web#archive-sessions>) to hide it from your list, or [delete it](</docs/en/claude-code-on-the-web#delete-sessions>) to remove it permanently. -## - -​ - -Next steps +## Next steps Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -76,7 +76,7 @@ * **Pro, Max, and Ultra** : you get an environment named **Default** automatically. * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. -**Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). +**Default** uses [**Limited** network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). ### @@ -110,7 +110,7 @@ /web-setup -Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-cloud>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). +Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser.If you don’t have a cloud environment yet, `/web-setup` creates one with the default **Limited** network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-cloud>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). #### @@ -290,7 +290,7 @@ The [setup script](</docs/en/cloud-environments#setup-scripts>) exited with a non-zero status, so the session failed to start or started without whatever the script failed to install. If the session started, you can keep working in it. Common causes: - * A package install failed because the registry isn’t in your [network access level](</docs/en/cloud-environments#access-levels>). `Trusted` covers most package managers; `None` blocks them all. + * A package install failed because the registry isn’t in your [network access level](</docs/en/cloud-environments#access-levels>). **Limited** with **Allow package managers** checked covers most package managers; **None** blocks them all. * The script references a file or path that doesn’t exist in a fresh clone. * A command that works locally needs a different invocation on Ubuntu.
modified
--- a/web-quickstart.md +++ b/web-quickstart.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. -A cloud session runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: +A cloud session runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. Claude clones the GitHub repository you select into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out @@ -38,7 +38,7 @@ **You start it from**| claude.ai/code, the Claude mobile app, the Desktop app with **Cloud** selected, or `claude --cloud`| Your terminal, your IDE, or the Desktop app with **Local** selected| Your terminal, the VS Code extension, or the Desktop app **You chat from**| claude.ai, the mobile app, or the Desktop app| Where you started it| claude.ai or the mobile app, as well as where you started it **Uses your local config**| No, repo only| Yes| Yes -**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No +**Requires GitHub**| Yes for a GitHub repository, unless `--cloud` [bundles your local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>)| No| No **Keeps running if you disconnect**| Yes| No| While the session stays open on your machine **[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| All modes in the terminal; see [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>) for the IDE and Desktop app| Manual, Accept edits, Plan, or Auto from claude.ai and the mobile app **Network access**| Configurable per environment| Your machine’s network| Your machine’s network @@ -237,7 +237,7 @@ The page only shows a GitHub login button -Cloud sessions require a connected GitHub account. Connect via the browser flow above, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from your browser or phone. +To work in a GitHub repository in a cloud session, connect your GitHub account, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from your browser or phone. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -140,7 +140,7 @@ The [permission mode control](</docs/en/permission-modes#switch-permission-modes>) shows the permission mode the session will run in: - * **Auto** : a classifier reviews Claude’s actions instead of asking you. Appears when your organization allows auto mode and the selected model supports it + * **Auto** : a classifier reviews Claude’s actions instead of asking you. Appears unless your organization turns off [auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>). On claude.ai/code, if it’s grayed out, select a model that supports auto mode * **Accept edits** : Claude makes changes and pushes a branch without stopping for approval * **Plan** : Claude proposes an approach and waits for you to approve it before editing files @@ -288,13 +288,13 @@ Setup script failed -The setup script exited with a non-zero status, which blocks the session from starting. Common causes: +The [setup script](</docs/en/cloud-environments#setup-scripts>) exited with a non-zero status, so the session failed to start or started without whatever the script failed to install. If the session started, you can keep working in it. Common causes: * A package install failed because the registry isn’t in your [network access level](</docs/en/cloud-environments#access-levels>). `Trusted` covers most package managers; `None` blocks them all. * The script references a file or path that doesn’t exist in a fresh clone. * A command that works locally needs a different invocation on Ubuntu. -To debug, add `set -x` at the top of the script to see which command failed. For non-critical commands, append `|| true` so they don’t block session start. +To debug, add `set -x` at the top of the script to see which command failed. For non-critical commands, append `|| true` so they don’t fail the script. After you fix the cause, start a new session so the script runs again. If what failed to start was a run of a [cloud scheduled task](</docs/en/routines>), click **Run now** on the task’s detail page instead of starting a new session. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -65,7 +65,7 @@ Sign in with GitHub -After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create a repository with a README on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.When you connect, Claude also links the GitHub accounts you own to your Claude organization, if they have the Claude GitHub App installed. On Team and Enterprise plans, admins see those accounts in the [connected GitHub accounts list](</docs/en/admin-setup#connected-github-accounts>).If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create a repository with a README on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.When you connect, Claude also links the GitHub accounts you own to your Claude organization, if they have the Claude GitHub App installed. On Team and Enterprise plans, Owners of your Claude organization see those accounts in the [connected GitHub accounts list](</docs/en/admin-setup#connected-github-accounts>).If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.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, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. A cloud session runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: @@ -73,7 +73,7 @@ A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan: - * **Pro and Max** : onboarding creates an environment named **Default** for you. + * **Pro, Max, and Ultra** : you get an environment named **Default** automatically. * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>).
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -194,7 +194,7 @@ * 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. -The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. +The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. Against the base branch, the diff can [leave out changes that aren’t pushed yet](</docs/en/claude-code-on-the-web#troubleshoot-a-missing-file-in-the-diff-view>). 2
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -200,7 +200,7 @@ Leave inline comments -Select any line in the diff, type your feedback, and press Enter. Comments queue up until you send your next message, then they’re bundled with it. Claude sees “at `src/auth.ts:47`, don’t catch the error here” alongside your main instruction, so you don’t have to describe where the problem is. +Hover over a line in the diff and click the **+** that appears beside its line number to open a comment box, then type your feedback and press Enter. Comments queue up until you send your next message, then they’re bundled with it. Claude sees “at `src/auth.ts:47`, don’t catch the error here” alongside your main instruction, so you don’t have to describe where the problem is. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -189,7 +189,12 @@ Open the diff view -A diff indicator shows lines added and removed across the session, for example `+42 -18`. Select it to open the diff view, with a file list on the left and changes on the right.The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. +After Claude pushes its changes to a branch, the **Changes** card in the panel beside the chat shows the lines added and removed across the session, for example `+42 -18`. Click those counts 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. + +The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. 2 @@ -201,7 +206,10 @@ Create a pull request -When the diff looks right, select **Create PR** at the top of the diff view. You can open it as a full PR, a draft, or jump to GitHub’s compose page with a generated title and description. +When the diff looks right, [show the panel again](</docs/en/claude-code-on-the-web#review-changes>) if the **Changes** card is out of view, then create a pull request or a draft from the card: + + * Click **Create PR**. Claude Code creates the pull request with a generated title and description. + * To open a draft instead, right-click **Create PR** , select **Create draft PR** to change what the button does, then click the button 4
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -65,7 +65,7 @@ Sign in with GitHub -After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.When you connect, Claude also links the GitHub accounts you own to your Claude organization, if they have the Claude GitHub App installed. On Team and Enterprise plans, admins see those accounts in the [connected GitHub accounts list](</docs/en/admin-setup#connected-github-accounts>).If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create a repository with a README on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.When you connect, Claude also links the GitHub accounts you own to your Claude organization, if they have the Claude GitHub App installed. On Team and Enterprise plans, admins see those accounts in the [connected GitHub accounts list](</docs/en/admin-setup#connected-github-accounts>).If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -318,6 +318,6 @@ * [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, session sharing, and auto-fixing pull requests * [Configure cloud environments](</docs/en/cloud-environments>): network access levels, environment variables, and setup scripts for cloud sessions - * [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 * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code for [claude.ai/mobile](<https://claude.ai/mobile>) that opens the right app store for your phone.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -86,7 +86,7 @@ If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. -Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. +Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, cannot 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. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. 1
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -132,7 +132,7 @@ Select a repository and branch -From [claude.ai/code](<https://claude.ai/code>) or the Code tab in the Claude mobile app, click the repository selector below the input box and choose a repository for Claude to work in. Each repository shows a branch selector. Change it to start Claude from a feature branch instead of the default. You can add multiple repositories to work across them in one session. +From [claude.ai/code](<https://claude.ai/code>) or the Code tab in the Claude mobile app, click the repository selector below the input box and choose a repository for Claude to work in. You can add multiple repositories to work across them in one session.At claude.ai/code, to start Claude from a feature branch instead of the default, change the branch in the control after the repository selector. 2
modified
--- a/web-quickstart.md +++ b/web-quickstart.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 runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Cloud sessions work well for: +A cloud session runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Each session 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. Cloud sessions work well for: * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -40,7 +40,7 @@ **Uses your local config**| No, repo only| Yes| Yes **Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No **Keeps running if you disconnect**| Yes| No| While the session stays open on your machine -**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| All modes in the terminal; see [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>) for the IDE and Desktop app| Manual, Accept edits, or Plan from claude.ai and the mobile app +**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| All modes in the terminal; see [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>) for the IDE and Desktop app| Manual, Accept edits, Plan, or Auto from claude.ai and the mobile app **Network access**| Configurable per environment| Your machine’s network| Your machine’s network See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set up local sessions. @@ -138,7 +138,7 @@ Choose a permission mode -The mode dropdown next to the input shows the mode the session will run in: +The [permission mode control](</docs/en/permission-modes#switch-permission-modes>) shows the permission mode the session will run in: * **Auto** : a classifier reviews Claude’s actions instead of asking you. Appears when your organization allows auto mode and the selected model supports it * **Accept edits** : Claude makes changes and pushes a branch without stopping for approval
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -53,7 +53,7 @@ Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. -On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Admin settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code on the web” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>) at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. +On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Organization settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code cloud sessions” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) at [**Organization settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. 1 @@ -74,7 +74,7 @@ A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan: * **Pro and Max** : onboarding creates an environment named **Default** for you. - * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. + * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). @@ -84,9 +84,9 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. - -Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. +If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick setup](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. + +Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or with the [HIPAA configuration](</docs/en/hipaa-setup>) applied, cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. 1 @@ -261,10 +261,10 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick setup toggle](</docs/en/claude-code-on-the-web#quick-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: * An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`. - * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes cloud sessions unavailable. + * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, or has the [HIPAA configuration](</docs/en/hipaa-setup>) applied. Either one makes cloud sessions unavailable. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -53,7 +53,7 @@ Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. -On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Admin settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code on the web” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>) at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. +On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Admin settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code on the web” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>) at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. 1 @@ -74,7 +74,7 @@ A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan: * **Pro and Max** : onboarding creates an environment named **Default** for you. - * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>), onboarding creates **Default** for you instead. + * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>), onboarding creates **Default** for you instead. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). @@ -84,7 +84,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. +If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. @@ -261,7 +261,7 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#quick-web-setup-for-team-and-enterprise>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: * An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`. * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes cloud sessions unavailable.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -65,7 +65,7 @@ Sign in with GitHub -After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.When you connect, Claude also links the GitHub accounts you own to your Claude organization, if they have the Claude GitHub App installed. On Team and Enterprise plans, admins see those accounts in the [connected GitHub accounts list](</docs/en/admin-setup#connected-github-accounts>).If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -235,9 +235,9 @@ ​ -”Not available for the selected organization” - -Enterprise organizations may need an Owner to enable cloud sessions. Contact your Anthropic account team. +”Claude Code isn’t available on your account” + +Your seat in the selected organization doesn’t include Claude Code. If you belong to another organization, click **Switch organization** on that page. Otherwise, ask an Owner of the organization to assign you a [seat that includes Claude Code](<https://support.claude.com/en/articles/11845131-use-claude-code-with-your-team-or-enterprise-plan>). ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.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 runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Cloud sessions work well for:
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -189,7 +189,7 @@ Open the diff view -A diff indicator shows lines added and removed across the session, for example `+42 -18`. Select it to open the diff view, with a file list on the left and changes on the right. +A diff indicator shows lines added and removed across the session, for example `+42 -18`. Select it to open the diff view, with a file list on the left and changes on the right.The diff compares the session’s changes against its base branch by default. To compare against a different branch, select **Compare against** and pick one. 2
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -59,13 +59,13 @@ Visit claude.ai/code -Go to [claude.ai/code](<https://claude.ai/code>) and sign in with your claude.ai account. On macOS or Windows, the first screen offers the Claude Code desktop app and other ways to install Claude Code. To stay in the browser, click **Continue on web** at the bottom of the page. +Go to [claude.ai/code](<https://claude.ai/code>) and sign in with your claude.ai account. 2 Sign in with GitHub -After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing the App also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.If onboarding prompts you to install the App at this point and you’d rather do it later, click **Skip**. +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing it also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.If onboarding prompts you to install the Claude GitHub App at this point and you’d rather do it later, click **Skip**. 3 @@ -84,7 +84,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. +If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session you start yourself can then access any repository that token can access, with no Claude GitHub App installation. Threads in a [project](</docs/en/claude-projects#set-up-github-access>) still need the Claude GitHub App. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead.
modified
Show diff (112 lines)
--- a/web-quickstart.md +++ b/web-quickstart.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 on cloud infrastructure instead of your machine, Anthropic-managed by default. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for: +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 runs Claude Code on cloud infrastructure instead of your machine, Anthropic-managed by default. This quickstart starts one from [claude.ai/code](<https://claude.ai/code>) in your browser. You can also start one from the Claude mobile app, the Desktop app, or your terminal with `claude --cloud`. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Cloud sessions work well for: * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out @@ -30,19 +30,20 @@ Compare ways to run Claude Code -Claude Code behaves the same everywhere. What changes is where code executes and whether your local config is available. The Desktop app offers both local and cloud sessions, so its answers below depend on which you choose: - -| On the web| Remote Control| Terminal CLI| Desktop app ----|---|---|---|--- -**Code runs on**| Cloud VM, Anthropic-managed by default| Your machine| Your machine| Your machine or cloud VM -**You chat from**| claude.ai or mobile app| claude.ai or mobile app| Your terminal| The Desktop UI -**Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud -**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No| Only for cloud sessions -**Keeps running if you disconnect**| Yes| While terminal stays open| No| Depends on session type -**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| Manual, Accept edits, Plan| All modes| Depends on session type -**Network access**| Configurable per environment| Your machine’s network| Your machine’s network| Depends on session type - -See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set those up. +Claude Code behaves the same everywhere. What changes is where the session runs and whether your local configuration is available: + +| Cloud session| Local session| Local session with [Remote Control](</docs/en/remote-control>) +---|---|---|--- +**Code runs on**| Cloud VM, Anthropic-managed by default| Your machine| Your machine +**You start it from**| claude.ai/code, the Claude mobile app, the Desktop app with **Cloud** selected, or `claude --cloud`| Your terminal, your IDE, or the Desktop app with **Local** selected| Your terminal, the VS Code extension, or the Desktop app +**You chat from**| claude.ai, the mobile app, or the Desktop app| Where you started it| claude.ai or the mobile app, as well as where you started it +**Uses your local config**| No, repo only| Yes| Yes +**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No +**Keeps running if you disconnect**| Yes| No| While the session stays open on your machine +**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| All modes in the terminal; see [Switch permission modes](</docs/en/permission-modes#switch-permission-modes>) for the IDE and Desktop app| Manual, Accept edits, or Plan from claude.ai and the mobile app +**Network access**| Configurable per environment| Your machine’s network| Your machine’s network + +See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set up local sessions. ## @@ -83,7 +84,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. +If you already use the GitHub CLI (`gh`), you can connect GitHub for cloud sessions from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. @@ -109,7 +110,7 @@ /web-setup -Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). +Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-cloud>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). #### @@ -228,7 +229,7 @@ The page only shows a GitHub login button -Cloud sessions require a connected GitHub account. Connect via the browser flow above, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from the web. +Cloud sessions require a connected GitHub account. Connect via the browser flow above, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from your browser or phone. ### @@ -236,7 +237,7 @@ ”Not available for the selected organization” -Enterprise organizations may need an Owner to enable Claude Code on the web. Contact your Anthropic account team. +Enterprise organizations may need an Owner to enable cloud sessions. Contact your Anthropic account team. ### @@ -260,7 +261,10 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden when an administrator has disabled Claude Code on the web for your organization, or when your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes Claude Code on the web unavailable. +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden in two other cases: + + * An administrator has disabled cloud sessions for your organization. In this case, submitting `/web-setup` returns [`Cloud sessions are disabled by your organization's policy`](</docs/en/errors#cloud-sessions-are-disabled-by-your-organizations-policy>). Before v2.1.268, this case also returned `Unknown command: /web-setup`. + * Your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes cloud sessions unavailable. ### @@ -268,7 +272,7 @@ ”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` -Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI, or add an environment from the [environment selector](</docs/en/cloud-environments#configure-your-environment>) at [claude.ai/code](<https://claude.ai/code>). +Cloud session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI, or add an environment from the [environment selector](</docs/en/cloud-environments#configure-your-environment>) at [claude.ai/code](<https://claude.ai/code>). ### @@ -312,7 +316,7 @@ Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions. - * [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, session sharing, and auto-fixing pull requests + * [Use Claude Code in the cloud](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, session sharing, and auto-fixing pull requests * [Configure cloud environments](</docs/en/cloud-environments>): network access levels, environment variables, and setup scripts for cloud sessions * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -316,4 +316,4 @@ * [Configure cloud environments](</docs/en/cloud-environments>): network access levels, environment variables, and setup scripts for cloud sessions * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session - * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code. + * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code for [claude.ai/mobile](<https://claude.ai/mobile>) that opens the right app store for your phone.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -83,7 +83,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. +If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web from your terminal. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -64,7 +64,7 @@ Sign in with GitHub -After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories and can reach any repository your GitHub account can see. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.When Quick web setup is off, which it is by default on Team and Enterprise plans, claude.ai/code then asks you to install the Claude GitHub App on your repositories unless it’s already installed. Install it if you want [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories; otherwise click **Skip**. Either way, sessions can reach the same repositories. +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.With this connection, a session can clone any public repository, but can work in a private repository only when the Claude GitHub App is installed on it. [Install the App](<https://github.com/apps/claude/installations/new>) on each GitHub account or organization whose private repositories you want to use. On a GitHub organization, an organization owner may need to approve the installation. Installing the App also enables [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories.If onboarding prompts you to install the App at this point and you’d rather do it later, click **Skip**. 3 @@ -83,7 +83,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). When you run `/web-setup`, Claude Code reads your local `gh` token, links it to your claude.ai account, and creates the **Default** cloud environment if you don’t have one. On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). +If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). When you run `/web-setup`, Claude Code reads the token that `gh auth token` prints, asks you to confirm, and sends the token to Anthropic. Anthropic stores it encrypted with your claude.ai account, and your cloud sessions use it for GitHub access until you remove it. A cloud session can then access any repository that token can access, with no Claude GitHub App installation. If you already connected GitHub in the browser, `/web-setup` warns you that continuing replaces that connection for your cloud sessions. Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. @@ -109,7 +109,15 @@ /web-setup -This syncs your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). +Confirm the prompt to send your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). + +#### + +​ + +Remove the `/web-setup` token + +To remove the token from your Claude account, disconnect GitHub at [claude.ai/customize/connectors](<https://claude.ai/customize/connectors>). Disconnecting deletes the GitHub credentials your cloud sessions use, whether they came from the browser or from `/web-setup`, so cloud sessions lose GitHub access until you connect again. Your local `gh` stays signed in, and the token remains valid on GitHub. To invalidate the token itself, revoke it on GitHub. If you signed in to `gh` through the browser, the token belongs to the **GitHub CLI** entry under [**Settings > Applications > Authorized OAuth Apps**](<https://github.com/settings/applications>) on GitHub, and revoking that entry also signs the GitHub CLI out on your machines. Cloud sessions then lose GitHub access until you run `gh auth login` and `/web-setup` again. ## @@ -212,7 +220,7 @@ No repositories appear after connecting GitHub -A cloud session can use any repository the connected GitHub account can see, regardless of which repositories the Claude GitHub App is installed on. If a repository is missing, verify the connected GitHub account has access to it on GitHub. If you also want [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) for a repository, install the App on it: on github.com, open **Settings → Applications → Claude → Configure** and verify the repository is listed under **Repository access**. Private repositories need the same authorization as public ones. +If you connected GitHub in the browser, sessions can clone any public repository, but a private repository appears only when the Claude GitHub App is installed on the account or organization that owns it and the installation’s repository access includes it. [Install the Claude GitHub App](<https://github.com/apps/claude/installations/new>) there, or ask an organization owner to install or approve it. If you connected with `/web-setup`, sessions reach every repository your `gh` token can access. Run `gh repo view OWNER/REPO` in your shell to check that your GitHub CLI login can see the repository, and run `/web-setup` again if you’ve switched `gh` accounts since connecting. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -83,9 +83,9 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). `/web-setup` reads your local `gh` token, links it to your claude.ai account, and creates the **Default** cloud environment if you don’t have one. On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). - -Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or authenticated, `/web-setup` opens the browser onboarding flow instead. +If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). When you run `/web-setup`, Claude Code reads your local `gh` token, links it to your claude.ai account, and creates the **Default** cloud environment if you don’t have one. On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). + +Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or isn’t authenticated, Claude Code opens the browser onboarding flow instead. 1 @@ -242,6 +242,14 @@ ​ +`/web-setup` warns that your token doesn’t have the `workflow` scope + +If `/web-setup` says your GitHub CLI token doesn’t have the `workflow` scope, you can continue, but GitHub can reject some pushes made with that token, such as pushes that change GitHub Actions workflow files. To add the scope, run `gh auth refresh -s workflow` in your shell, then run `/web-setup` again. + +### + +​ + `/web-setup` shows “No commands match” or “Unknown command” `/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden when an administrator has disabled Claude Code on the web for your organization, or when your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes Claude Code on the web unavailable.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -50,25 +50,32 @@ Connect GitHub -Setup is a one-time process. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. +Connecting GitHub is a one-time step. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. + +On Team and Enterprise plans, the **Sign in with GitHub** step works only after an [Owner](</docs/en/server-managed-settings#access-control>) of your Claude organization turns on the GitHub connector at [**Admin settings > Connectors**](<https://claude.ai/admin-settings/connectors>). Until then, that step shows “GitHub access is required for Claude Code on the web” instead of a sign-in button. After the connector is on, reload [claude.ai/code](<https://claude.ai/code>) and start again from the first step. A second toggle, [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>) at [**Admin settings > Claude Code**](<https://claude.ai/admin-settings/claude-code>), is optional: with it on, `/web-setup` works and onboarding creates the environment for members. 1 Visit claude.ai/code -Go to [claude.ai/code](<https://claude.ai/code>) and sign in with your Anthropic account. +Go to [claude.ai/code](<https://claude.ai/code>) and sign in with your claude.ai account. On macOS or Windows, the first screen offers the Claude Code desktop app and other ways to install Claude Code. To stay in the browser, click **Continue on web** at the bottom of the page. 2 -Install the Claude GitHub App - -After signing in, claude.ai/code prompts you to connect GitHub. Follow the prompt to install the Claude GitHub App and grant it access to your repositories. Cloud sessions work with existing GitHub repositories, so to start a new project, [create an empty repository on GitHub](<https://github.com/new>) first. +Sign in with GitHub + +After you sign in, claude.ai/code prompts you to connect GitHub. Follow the prompt, and claude.ai/code sends you to GitHub’s authorization page. Approve the authorization request, and GitHub returns you to claude.ai/code. Cloud sessions work with existing GitHub repositories and can reach any repository your GitHub account can see. To start a new project, [create an empty repository on GitHub](<https://github.com/new>) first.When Quick web setup is off, which it is by default on Team and Enterprise plans, claude.ai/code then asks you to install the Claude GitHub App on your repositories unless it’s already installed. Install it if you want [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>), which lets Claude respond to CI failures and review comments on pull requests in those repositories; otherwise click **Skip**. Either way, sessions can reach the same repositories. 3 -Confirm your Default environment - -If you don’t have an environment yet, onboarding creates a [cloud environment](</docs/en/cloud-environments>) named **Default** for you when you finish connecting GitHub; if onboarding shows an environment form instead, keep its defaults to create the same **Default** environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). +Set up your Default environment + +A [cloud environment](</docs/en/cloud-environments>) is the saved configuration that controls what network access Claude has during sessions and what runs when a session starts. What happens after you connect GitHub depends on your plan: + + * **Pro and Max** : onboarding creates an environment named **Default** for you. + * **Team and Enterprise** : onboarding shows a **Create your first cloud environment** form. Leave the prefilled name and network access unchanged and click **Create & finish** to create the **Default** environment. If an Owner has turned on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>), onboarding creates **Default** for you instead. + +**Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). ### @@ -76,7 +83,7 @@ Connect from your terminal -If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). `/web-setup` reads your local `gh` token, links it to your Claude account, and creates a default cloud environment if you don’t have one. +If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). `/web-setup` reads your local `gh` token, links it to your claude.ai account, and creates the **Default** cloud environment if you don’t have one. On Team and Enterprise plans, `/web-setup` is available only after an Owner turns on [Quick web setup](</docs/en/claude-code-on-the-web#github-authentication-options>). Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or authenticated, `/web-setup` opens the browser onboarding flow instead. @@ -237,11 +244,7 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. Team and Enterprise Owners can also [disable `/web-setup`](</docs/en/claude-code-on-the-web#github-authentication-options>) for their organization, which hides the command. In that case, use the browser flow above instead. On Team and Enterprise plans, the command is also hidden when any of the following apply: - - * an administrator has disabled Claude Code on the web for your organization - * an administrator has disabled the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) - * your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes Claude Code on the web unavailable +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is hidden by default: the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) is off until an Owner turns it on. While it’s off, connect GitHub from the browser instead. The command is also hidden when an administrator has disabled Claude Code on the web for your organization, or when your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes Claude Code on the web unavailable. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -68,7 +68,7 @@ Confirm your Default environment -When you finish connecting GitHub, onboarding creates a [cloud environment](</docs/en/cloud-environments>) named **Default** for you; if onboarding shows an environment form instead, keep its defaults to create the same **Default** environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). +If you don’t have an environment yet, onboarding creates a [cloud environment](</docs/en/cloud-environments>) named **Default** for you when you finish connecting GitHub; if onboarding shows an environment form instead, keep its defaults to create the same **Default** environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -122,7 +122,13 @@ Choose a permission mode -The mode dropdown next to the input defaults to **Accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan** if you want Claude to propose an approach and wait for you to approve it before editing files. Cloud sessions don’t offer Manual or Bypass permissions. See the [full list of permission modes](</docs/en/permission-modes#available-modes>) for what each one allows. +The mode dropdown next to the input shows the mode the session will run in: + + * **Auto** : a classifier reviews Claude’s actions instead of asking you. Appears when your organization allows auto mode and the selected model supports it + * **Accept edits** : Claude makes changes and pushes a branch without stopping for approval + * **Plan** : Claude proposes an approach and waits for you to approve it before editing files + +Cloud sessions don’t offer Manual or Bypass permissions. See the [full list of permission modes](</docs/en/permission-modes#available-modes>) for what each one allows. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.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 on Anthropic-managed cloud infrastructure instead of your machine. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for: +Claude Code on the web runs on cloud infrastructure instead of your machine, Anthropic-managed by default. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for: * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out @@ -15,7 +15,7 @@ How sessions run -When you submit a task: +The steps below describe Anthropic-hosted sessions. In a [self-hosted environment](</docs/en/self-hosted-environments>), the clone and everything after it run on your organization’s own runners, where network boundaries, setup, and push behavior are operator-configured. When you submit a task: 1. **Clone and prepare** : your repository is cloned to an Anthropic-managed VM, and your [setup script](</docs/en/cloud-environments#setup-scripts>) runs if configured. 2. **Configure network** : internet access is set based on your environment’s [access level](</docs/en/cloud-environments#access-levels>). @@ -34,7 +34,7 @@ | On the web| Remote Control| Terminal CLI| Desktop app ---|---|---|---|--- -**Code runs on**| Anthropic cloud VM| Your machine| Your machine| Your machine or cloud VM +**Code runs on**| Cloud VM, Anthropic-managed by default| Your machine| Your machine| Your machine or cloud VM **You chat from**| claude.ai or mobile app| claude.ai or mobile app| Your terminal| The Desktop UI **Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud **Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No| Only for cloud sessions
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -241,7 +241,7 @@ ​ -”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` or ultraplan +”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI, or add an environment from the [environment selector](</docs/en/cloud-environments#configure-your-environment>) at [claude.ai/code](<https://claude.ai/code>).
modified
Show diff (120 lines)
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -17,8 +17,8 @@ When you submit a task: - 1. **Clone and prepare** : your repository is cloned to an Anthropic-managed VM, and your [setup script](</docs/en/claude-code-on-the-web#setup-scripts>) runs if configured. - 2. **Configure network** : internet access is set based on your environment’s [access level](</docs/en/claude-code-on-the-web#access-levels>). + 1. **Clone and prepare** : your repository is cloned to an Anthropic-managed VM, and your [setup script](</docs/en/cloud-environments#setup-scripts>) runs if configured. + 2. **Configure network** : internet access is set based on your environment’s [access level](</docs/en/cloud-environments#access-levels>). 3. **Work** : Claude analyzes code, makes changes, runs tests, and checks its work. You can watch and steer throughout, or step away and come back when it’s done. 4. **Push the branch** : when Claude reaches a stopping point, it pushes its branch to GitHub. You review the diff, leave inline comments, create a PR, or send another message to keep going. @@ -48,7 +48,7 @@ ​ -Connect GitHub and create an environment +Connect GitHub Setup is a one-time process. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. @@ -66,16 +66,9 @@ 3 -Create your environment - -After connecting GitHub, you’ll be prompted to create a cloud environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. See [Installed tools](</docs/en/claude-code-on-the-web#installed-tools>) for what’s available without any configuration.The form has these fields: - - * **Name** : a display label. Useful when you have multiple environments for different projects or access levels. - * **Network access** : controls what the session can reach on the internet. The default, `Trusted`, allows connections to [common package registries](</docs/en/claude-code-on-the-web#default-allowed-domains>) like npm, PyPI, and RubyGems while blocking general internet access. - * **Environment variables** : optional variables available in every session, in `.env` format. Don’t wrap values in quotes, since quotes are stored as part of the value. These are visible to anyone who can edit this environment. - * **Setup script** : an optional Bash script that runs before Claude Code launches. Use it to install system tools the cloud VM doesn’t include, like `apt install -y gh`. The result is [cached](</docs/en/claude-code-on-the-web#environment-caching>), so the script doesn’t re-run on every session. See [Setup scripts](</docs/en/claude-code-on-the-web#setup-scripts>) for examples and debugging tips. - -For a first project, leave the defaults and click **Create environment**. You can [edit it later or create additional environments](</docs/en/claude-code-on-the-web#configure-your-environment>) for different projects. +Confirm your Default environment + +When you finish connecting GitHub, onboarding creates a [cloud environment](</docs/en/cloud-environments>) named **Default** for you; if onboarding shows an environment form instead, keep its defaults to create the same **Default** environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. **Default** uses [`Trusted` network access](</docs/en/cloud-environments#access-levels>): sessions reach [common package registries](</docs/en/cloud-environments#default-allowed-domains>) and other allowlisted domains, and nothing else through the session’s network. See [Installed tools](</docs/en/cloud-environments#installed-tools>) for what’s available without any configuration.For a first project, the **Default** environment works as is. To change its network access, add environment variables, or run a [setup script](</docs/en/cloud-environments#setup-scripts>) before sessions start, [edit it or create additional environments](</docs/en/cloud-environments#configure-your-environment>). ### @@ -99,7 +92,7 @@ Sign in to Claude -In the Claude Code CLI, run `/login` to sign in with your claude.ai account. Skip this step if you’re already signed in. +In the Claude Code CLI, run `/login` to sign in with your claude.ai account. Skip this step if you’re already signed in with a claude.ai account. Authenticating with an API key doesn’t count. To check, run `/status` and confirm the **Login method** row shows a claude.ai account. 3 @@ -109,7 +102,7 @@ /web-setup -This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). +This syncs your `gh` token to your Claude account. On success, Claude Code prints `Connected as <your-github-username>` and opens [claude.ai/code](<https://claude.ai/code>) in your browser. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/cloud-environments#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). ## @@ -228,9 +221,17 @@ ​ +`/web-setup` says “Not signed in to Claude” + +If `/web-setup` responds with “Not signed in to Claude. Run /login first.”, the CLI doesn’t have a valid claude.ai sign-in. This can also happen when a previous sign-in has expired. Run `/login`, sign in with your claude.ai account, then run `/web-setup` again. + +### + +​ + `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is also hidden when any of the following apply: +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. Team and Enterprise Owners can also [disable `/web-setup`](</docs/en/claude-code-on-the-web#github-authentication-options>) for their organization, which hides the command. In that case, use the browser flow above instead. On Team and Enterprise plans, the command is also hidden when any of the following apply: * an administrator has disabled Claude Code on the web for your organization * an administrator has disabled the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) @@ -242,7 +243,7 @@ ”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` or ultraplan -Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI to create one manually, or visit [claude.ai/code](<https://claude.ai/code>) and follow the **Create your environment** step above. +Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI, or add an environment from the [environment selector](</docs/en/cloud-environments#configure-your-environment>) at [claude.ai/code](<https://claude.ai/code>). ### @@ -252,7 +253,7 @@ The setup script exited with a non-zero status, which blocks the session from starting. Common causes: - * A package install failed because the registry isn’t in your [network access level](</docs/en/claude-code-on-the-web#access-levels>). `Trusted` covers most package managers; `None` blocks them all. + * A package install failed because the registry isn’t in your [network access level](</docs/en/cloud-environments#access-levels>). `Trusted` covers most package managers; `None` blocks them all. * The script references a file or path that doesn’t exist in a fresh clone. * A command that works locally needs a different invocation on Ubuntu. @@ -264,10 +265,10 @@ New sessions hang or time out during setup -If new sessions stall on the setup script step or fail with a generic container error before the script finishes, the script is likely exceeding the roughly five-minute time budget for building the [environment cache](</docs/en/claude-code-on-the-web#environment-caching>). Heavy steps such as pulling large Docker images, syncing full dependency trees, or downloading model weights often push the total over the limit, especially when they run one after another. To fix this, trim the script so it reliably finishes in under five minutes: +If new sessions stall on the setup script step or fail with a generic container error before the script finishes, the script is likely exceeding the roughly five-minute time budget for building the [environment cache](</docs/en/cloud-environments#environment-caching>). Heavy steps such as pulling large Docker images, syncing full dependency trees, or downloading model weights often push the total over the limit, especially when they run one after another. To fix this, trim the script so it reliably finishes in under five minutes: * Run independent installs in parallel with `&` and a final `wait` instead of running them serially. - * Move the largest downloads out of the setup script and into a [SessionStart hook](</docs/en/claude-code-on-the-web#setup-scripts-vs-sessionstart-hooks>) that launches them in the background, so the session becomes usable while they finish. + * Move the largest downloads out of the setup script and into a [SessionStart hook](</docs/en/cloud-environments#setup-scripts-vs-sessionstart-hooks>) that launches them in the background, so the session becomes usable while they finish. * Remove long retry sleeps from the setup script, since a stalled retry loop counts against the budget. ### @@ -286,7 +287,8 @@ Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions. - * [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, setup scripts, environment variables, and network config + * [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, session sharing, and auto-fixing pull requests + * [Configure cloud environments](</docs/en/cloud-environments>): network access levels, environment variables, and setup scripts for cloud sessions * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -230,7 +230,11 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. On Team and Enterprise plans, the command is also hidden when any of the following apply: + + * an administrator has disabled Claude Code on the web for your organization + * an administrator has disabled the [Quick web setup toggle](</docs/en/claude-code-on-the-web#github-authentication-options>) + * your Enterprise organization has [Zero Data Retention](</docs/en/zero-data-retention>) enabled, which makes Claude Code on the web unavailable ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -230,7 +230,7 @@ `/web-setup` shows “No commands match” or “Unknown command” -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that your CLI is older than v2.1.80 or you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `claude update`, then `/login` to sign in with your claude.ai account. +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `/login` to sign in with your claude.ai account. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -39,7 +39,7 @@ **Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud **Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No| Only for cloud sessions **Keeps running if you disconnect**| Yes| While terminal stays open| No| Depends on session type -**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| Ask, Auto accept edits, Plan| All modes| Depends on session type +**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| Manual, Accept edits, Plan| All modes| Depends on session type **Network access**| Configurable per environment| Your machine’s network| Your machine’s network| Depends on session type See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set those up. @@ -129,7 +129,7 @@ Choose a permission mode -The mode dropdown next to the input defaults to **Accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan mode** if you want Claude to propose an approach and wait for your go-ahead before editing files. Cloud sessions don’t offer Ask permissions or Bypass permissions. See [Permission modes](</docs/en/permission-modes>) for the full list. +The mode dropdown next to the input defaults to **Accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan** if you want Claude to propose an approach and wait for you to approve it before editing files. Cloud sessions don’t offer Manual or Bypass permissions. See the [full list of permission modes](</docs/en/permission-modes#available-modes>) for what each one allows. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -37,7 +37,7 @@ **Code runs on**| Anthropic cloud VM| Your machine| Your machine| Your machine or cloud VM **You chat from**| claude.ai or mobile app| claude.ai or mobile app| Your terminal| The Desktop UI **Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud -**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--remote`| No| No| Only for cloud sessions +**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--cloud`| No| No| Only for cloud sessions **Keeps running if you disconnect**| Yes| While terminal stays open| No| Depends on session type **[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| Ask, Auto accept edits, Plan| All modes| Depends on session type **Network access**| Configurable per environment| Your machine’s network| Your machine’s network| Depends on session type @@ -109,7 +109,7 @@ /web-setup -This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). +This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--cloud`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). ## @@ -236,7 +236,7 @@ ​ -”Could not create a cloud environment” or “No cloud environment available” when using `--remote` or ultraplan +”Could not create a cloud environment” or “No cloud environment available” when using `--cloud` or ultraplan Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI to create one manually, or visit [claude.ai/code](<https://claude.ai/code>) and follow the **Create your environment** step above.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -222,15 +222,15 @@ ”Not available for the selected organization” -Enterprise organizations may need an admin to enable Claude Code on the web. Contact your Anthropic account team. - -### - -​ - -`/web-setup` returns “Unknown command” - -`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and still see the error, your CLI is older than v2.1.80 or you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `claude update`, then `/login` to sign in with your claude.ai account. +Enterprise organizations may need an Owner to enable Claude Code on the web. Contact your Anthropic account team. + +### + +​ + +`/web-setup` shows “No commands match” or “Unknown command” + +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and the command menu shows `No commands match "/web-setup"`, or submitting it returns `Unknown command: /web-setup`, the command is hidden because a requirement isn’t met. The cause is usually that your CLI is older than v2.1.80 or you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `claude update`, then `/login` to sign in with your claude.ai account. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -39,7 +39,7 @@ **Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud **Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--remote`| No| No| Only for cloud sessions **Keeps running if you disconnect**| Yes| While terminal stays open| No| Depends on session type -**[Permission modes](</docs/en/permission-modes>)**| Auto accept edits, Plan| Ask, Auto accept edits, Plan| All modes| Depends on session type +**[Permission modes](</docs/en/permission-modes>)**| Accept edits, Plan, Auto| Ask, Auto accept edits, Plan| All modes| Depends on session type **Network access**| Configurable per environment| Your machine’s network| Your machine’s network| Depends on session type See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set those up. @@ -129,7 +129,7 @@ Choose a permission mode -The mode dropdown next to the input defaults to **Auto accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan mode** if you want Claude to propose an approach and wait for your go-ahead before editing files. Cloud sessions don’t offer Ask permissions, Auto mode, or Bypass permissions. See [Permission modes](</docs/en/permission-modes>) for the full list. +The mode dropdown next to the input defaults to **Accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan mode** if you want Claude to propose an approach and wait for your go-ahead before editing files. Cloud sessions don’t offer Ask permissions or Bypass permissions. See [Permission modes](</docs/en/permission-modes>) for the full list. 3
modified
--- a/web-quickstart.md +++ b/web-quickstart.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 on Anthropic-managed cloud infrastructure instead of your machine. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for:
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -212,7 +212,7 @@ No repositories appear after connecting GitHub -The Claude GitHub App needs explicit access to each repository you want to use. On github.com, open **Settings → Applications → Claude → Configure** and verify your repo is listed under **Repository access**. Private repositories need the same authorization as public ones. +A cloud session can use any repository the connected GitHub account can see, regardless of which repositories the Claude GitHub App is installed on. If a repository is missing, verify the connected GitHub account has access to it on GitHub. If you also want [Auto-fix](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) for a repository, install the App on it: on github.com, open **Settings → Applications → Claude → Configure** and verify the repository is listed under **Repository access**. Private repositories need the same authorization as public ones. ###
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -264,6 +264,18 @@ ​ +New sessions hang or time out during setup + +If new sessions stall on the setup script step or fail with a generic container error before the script finishes, the script is likely exceeding the roughly five-minute time budget for building the [environment cache](</docs/en/claude-code-on-the-web#environment-caching>). Heavy steps such as pulling large Docker images, syncing full dependency trees, or downloading model weights often push the total over the limit, especially when they run one after another. To fix this, trim the script so it reliably finishes in under five minutes: + + * Run independent installs in parallel with `&` and a final `wait` instead of running them serially. + * Move the largest downloads out of the setup script and into a [SessionStart hook](</docs/en/claude-code-on-the-web#setup-scripts-vs-sessionstart-hooks>) that launches them in the background, so the session becomes usable while they finish. + * Remove long retry sleeps from the setup script, since a stalled retry loop counts against the budget. + +### + +​ + Session keeps running after closing the tab This is by design. Closing the tab or navigating away doesn’t stop the session. It continues running in the background until Claude finishes the current task, then idles. From the sidebar, you can [archive a session](</docs/en/claude-code-on-the-web#archive-sessions>) to hide it from your list, or [delete it](</docs/en/claude-code-on-the-web#delete-sessions>) to remove it permanently.
modified
--- a/web-quickstart.md +++ b/web-quickstart.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 on Anthropic-managed cloud infrastructure instead of your machine. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for:
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -73,7 +73,7 @@ * **Name** : a display label. Useful when you have multiple environments for different projects or access levels. * **Network access** : controls what the session can reach on the internet. The default, `Trusted`, allows connections to [common package registries](</docs/en/claude-code-on-the-web#default-allowed-domains>) like npm, PyPI, and RubyGems while blocking general internet access. * **Environment variables** : optional variables available in every session, in `.env` format. Don’t wrap values in quotes, since quotes are stored as part of the value. These are visible to anyone who can edit this environment. - * **Setup script** : an optional Bash script that runs before Claude Code launches when a new session is created. Use it to install system tools the cloud VM doesn’t include, like `apt install -y gh`, or to start services your project needs. See [Setup scripts](</docs/en/claude-code-on-the-web#setup-scripts>) for examples and debugging tips. + * **Setup script** : an optional Bash script that runs before Claude Code launches. Use it to install system tools the cloud VM doesn’t include, like `apt install -y gh`. The result is [cached](</docs/en/claude-code-on-the-web#environment-caching>), so the script doesn’t re-run on every session. See [Setup scripts](</docs/en/claude-code-on-the-web#setup-scripts>) for examples and debugging tips. For a first project, leave the defaults and click **Create environment**. You can [edit it later or create additional environments](</docs/en/claude-code-on-the-web#configure-your-environment>) for different projects.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -147,6 +147,25 @@ ​ +Pre-fill sessions + +You can prefill the prompt, repositories, and environment for a new session by adding query parameters to the [claude.ai/code](<https://claude.ai/code>) URL. Use this to build integrations such as a button in your issue tracker that opens Claude Code with the issue description as the prompt. + +Parameter| Description +---|--- +`prompt`| Prompt text to prefill in the input box. The alias `q` is also accepted. +`prompt_url`| URL to fetch the prompt text from, for prompts too long to embed in a query string. The URL must allow cross-origin requests. Ignored when `prompt` is also set. +`repositories`| Comma-separated list of `owner/repo` slugs to preselect. The alias `repo` is also accepted. +`environment`| Name or ID of the environment to preselect. + +URL-encode each value. The example below opens the form with a prompt and a repository already selected: + + https://claude.ai/code?prompt=Fix%20the%20login%20bug&repositories=acme/webapp + +## + +​ + Review and iterate When Claude finishes, review the changes, leave feedback on specific lines, and keep going until the diff looks right.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -109,7 +109,7 @@ /web-setup -This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/web-scheduled-tasks>). +This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>). ## @@ -252,6 +252,6 @@ Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions. * [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, setup scripts, environment variables, and network config - * [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 * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code.
modified
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -217,9 +217,9 @@ ​ -”No cloud environment available” when using `--remote` - -You haven’t created a cloud environment yet. Run `/web-setup` in the Claude Code CLI to create one, or visit [claude.ai/code](<https://claude.ai/code>) and follow the **Create your environment** step above. +”Could not create a cloud environment” or “No cloud environment available” when using `--remote` or ultraplan + +Remote-session features create a default cloud environment automatically if you don’t have one. If you see “Could not create a cloud environment”, automatic creation failed. If you see “No cloud environment available”, your CLI predates automatic creation. In either case, run `/web-setup` in the Claude Code CLI to create one manually, or visit [claude.ai/code](<https://claude.ai/code>) and follow the **Create your environment** step above. ###
added
Show diff (260 lines)
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -0,0 +1,257 @@ +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 on Anthropic-managed cloud infrastructure instead of your machine. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for: + + * **Parallel tasks** : run several independent tasks at once, each in its own session and branch, without managing multiple worktrees + * **Repos you don’t have locally** : Claude clones the repo fresh every session, so you don’t need it checked out + * **Tasks that don’t need frequent steering** : submit a well-defined task, do something else, and review the result when Claude is done + * **Code questions and exploration** : understand a codebase or trace how a feature is implemented without a local checkout + +For work that needs your local config, tools, or environment, running Claude Code locally or using [Remote Control](</docs/en/remote-control>) is a better fit. + +## + +​ + +How sessions run + +When you submit a task: + + 1. **Clone and prepare** : your repository is cloned to an Anthropic-managed VM, and your [setup script](</docs/en/claude-code-on-the-web#setup-scripts>) runs if configured. + 2. **Configure network** : internet access is set based on your environment’s [access level](</docs/en/claude-code-on-the-web#access-levels>). + 3. **Work** : Claude analyzes code, makes changes, runs tests, and checks its work. You can watch and steer throughout, or step away and come back when it’s done. + 4. **Push the branch** : when Claude reaches a stopping point, it pushes its branch to GitHub. You review the diff, leave inline comments, create a PR, or send another message to keep going. + +The session doesn’t close when the branch is pushed. PR creation and further edits all happen within the same conversation. + +## + +​ + +Compare ways to run Claude Code + +Claude Code behaves the same everywhere. What changes is where code executes and whether your local config is available. The Desktop app offers both local and cloud sessions, so its answers below depend on which you choose: + +| On the web| Remote Control| Terminal CLI| Desktop app +---|---|---|---|--- +**Code runs on**| Anthropic cloud VM| Your machine| Your machine| Your machine or cloud VM +**You chat from**| claude.ai or mobile app| claude.ai or mobile app| Your terminal| The Desktop UI +**Uses your local config**| No, repo only| Yes| Yes| Yes for local, no for cloud +**Requires GitHub**| Yes, or [bundle a local repo](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) via `--remote`| No| No| Only for cloud sessions +**Keeps running if you disconnect**| Yes| While terminal stays open| No| Depends on session type +**[Permission modes](</docs/en/permission-modes>)**| Auto accept edits, Plan| Ask, Auto accept edits, Plan| All modes| Depends on session type +**Network access**| Configurable per environment| Your machine’s network| Your machine’s network| Depends on session type + +See the [terminal quickstart](</docs/en/quickstart>), [Desktop app](</docs/en/desktop>), or [Remote Control](</docs/en/remote-control>) docs to set those up. + +## + +​ + +Connect GitHub and create an environment + +Setup is a one-time process. If you already use the GitHub CLI, you can do this from your terminal instead of the browser. + +1 + +Visit claude.ai/code + +Go to [claude.ai/code](<https://claude.ai/code>) and sign in with your Anthropic account. + +2 + +Install the Claude GitHub App + +After signing in, claude.ai/code prompts you to connect GitHub. Follow the prompt to install the Claude GitHub App and grant it access to your repositories. Cloud sessions work with existing GitHub repositories, so to start a new project, [create an empty repository on GitHub](<https://github.com/new>) first. + +3 + +Create your environment + +After connecting GitHub, you’ll be prompted to create a cloud environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. See [Installed tools](</docs/en/claude-code-on-the-web#installed-tools>) for what’s available without any configuration.The form has these fields: + + * **Name** : a display label. Useful when you have multiple environments for different projects or access levels. + * **Network access** : controls what the session can reach on the internet. The default, `Trusted`, allows connections to [common package registries](</docs/en/claude-code-on-the-web#default-allowed-domains>) like npm, PyPI, and RubyGems while blocking general internet access. + * **Environment variables** : optional variables available in every session, in `.env` format. Don’t wrap values in quotes, since quotes are stored as part of the value. These are visible to anyone who can edit this environment. + * **Setup script** : an optional Bash script that runs before Claude Code launches when a new session is created. Use it to install system tools the cloud VM doesn’t include, like `apt install -y gh`, or to start services your project needs. See [Setup scripts](</docs/en/claude-code-on-the-web#setup-scripts>) for examples and debugging tips. + +For a first project, leave the defaults and click **Create environment**. You can [edit it later or create additional environments](</docs/en/claude-code-on-the-web#configure-your-environment>) for different projects. + +### + +​ + +Connect from your terminal + +If you already use the GitHub CLI (`gh`), you can set up Claude Code on the web without opening a browser. This requires the [Claude Code CLI](</docs/en/quickstart>). `/web-setup` reads your local `gh` token, links it to your Claude account, and creates a default cloud environment if you don’t have one. + +Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features. If the GitHub CLI isn’t installed or authenticated, `/web-setup` opens the browser onboarding flow instead. + +1 + +Authenticate with the GitHub CLI + +In your shell, authenticate the GitHub CLI if you haven’t already: + + gh auth login + +2 + +Sign in to Claude + +In the Claude Code CLI, run `/login` to sign in with your claude.ai account. Skip this step if you’re already signed in. + +3 + +Run /web-setup + +In the Claude Code CLI, run: + + /web-setup + +This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/web-scheduled-tasks>). + +## + +​ + +Start a task + +With GitHub connected and an environment created, you’re ready to submit tasks. + +1 + +Select a repository and branch + +From [claude.ai/code](<https://claude.ai/code>) or the Code tab in the Claude mobile app, click the repository selector below the input box and choose a repository for Claude to work in. Each repository shows a branch selector. Change it to start Claude from a feature branch instead of the default. You can add multiple repositories to work across them in one session. + +2 + +Choose a permission mode + +The mode dropdown next to the input defaults to **Auto accept edits** , where Claude makes changes and pushes a branch without stopping for approval. Switch to **Plan mode** if you want Claude to propose an approach and wait for your go-ahead before editing files. Cloud sessions don’t offer Ask permissions, Auto mode, or Bypass permissions. See [Permission modes](</docs/en/permission-modes>) for the full list. + +3 + +Describe the task and submit + +Type a description of what you want and press Enter. Be specific: + + * Name the file or function: “Add a README with setup instructions” or “Fix the failing auth test in `tests/test_auth.py`” is better than “fix tests” + * Paste error output if you have it + * Describe the expected behavior, not just the symptom + +Claude clones the repositories, runs your setup script if configured, and starts working. Each task gets its own session and its own branch, so you don’t need to wait for one to finish before starting another. + +## + +​ + +Review and iterate + +When Claude finishes, review the changes, leave feedback on specific lines, and keep going until the diff looks right. + +1 + +Open the diff view + +A diff indicator shows lines added and removed across the session, for example `+42 -18`. Select it to open the diff view, with a file list on the left and changes on the right. + +2 + +Leave inline comments + +Select any line in the diff, type your feedback, and press Enter. Comments queue up until you send your next message, then they’re bundled with it. Claude sees “at `src/auth.ts:47`, don’t catch the error here” alongside your main instruction, so you don’t have to describe where the problem is. + +3 + +Create a pull request + +When the diff looks right, select **Create PR** at the top of the diff view. You can open it as a full PR, a draft, or jump to GitHub’s compose page with a generated title and description. + +4 + +Keep iterating after the PR + +The session stays live after the PR is created. Paste CI failure output or reviewer comments into the chat and ask Claude to address them. To have Claude monitor the PR automatically, see [Auto-fix pull requests](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>). + +## + +​ + +Troubleshoot setup + +### + +​ + +No repositories appear after connecting GitHub + +The Claude GitHub App needs explicit access to each repository you want to use. On github.com, open **Settings → Applications → Claude → Configure** and verify your repo is listed under **Repository access**. Private repositories need the same authorization as public ones. + +### + +​ + +The page only shows a GitHub login button + +Cloud sessions require a connected GitHub account. Connect via the browser flow above, or run `/web-setup` from your terminal if you use the GitHub CLI. If you’d rather not connect GitHub at all, see [Remote Control](</docs/en/remote-control>) to run Claude Code on your own machine and monitor it from the web. + +### + +​ + +”Not available for the selected organization” + +Enterprise organizations may need an admin to enable Claude Code on the web. Contact your Anthropic account team. + +### + +​ + +`/web-setup` returns “Unknown command” + +`/web-setup` runs inside the Claude Code CLI, not your shell. Launch `claude` first, then type `/web-setup` at the prompt. If you typed it inside Claude Code and still see the error, your CLI is older than v2.1.80 or you’re authenticated with an API key or third-party provider instead of a claude.ai subscription. Run `claude update`, then `/login` to sign in with your claude.ai account. + +### + +​ + +”No cloud environment available” when using `--remote` + +You haven’t created a cloud environment yet. Run `/web-setup` in the Claude Code CLI to create one, or visit [claude.ai/code](<https://claude.ai/code>) and follow the **Create your environment** step above. + +### + +​ + +Setup script failed + +The setup script exited with a non-zero status, which blocks the session from starting. Common causes: + + * A package install failed because the registry isn’t in your [network access level](</docs/en/claude-code-on-the-web#access-levels>). `Trusted` covers most package managers; `None` blocks them all. + * The script references a file or path that doesn’t exist in a fresh clone. + * A command that works locally needs a different invocation on Ubuntu. + +To debug, add `set -x` at the top of the script to see which command failed. For non-critical commands, append `|| true` so they don’t block session start. + +### + +​ + +Session keeps running after closing the tab + +This is by design. Closing the tab or navigating away doesn’t stop the session. It continues running in the background until Claude finishes the current task, then idles. From the sidebar, you can [archive a session](</docs/en/claude-code-on-the-web#archive-sessions>) to hide it from your list, or [delete it](</docs/en/claude-code-on-the-web#delete-sessions>) to remove it permanently. + +## + +​ + +Next steps + +Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions. + + * [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, setup scripts, environment variables, and network config + * [Schedule tasks on the web](</docs/en/web-scheduled-tasks>): automate recurring work like daily PR reviews and dependency audits + * [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session + * Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code.