Use Claude Code in the cloud changedclaude-code-on-the-web
Nearest release: v2.1.333, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 30 Nov 2026 21:52 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Nov 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+10added
Lines−9removed
From line
95
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits89to this page, all time
The whole hunk
from line 95, old and new numbered
/
from line 95
9595
9696`--cloud` works with a single repository at a time. The task runs in the cloud while you continue working locally. The older `--remote` spelling still works as a deprecated alias for `--cloud`.
9797
98While the cloud container starts, the CLI shows a live checklist of setup steps, such as cloning the repository and running your [setup script](https://code.claude.com/docs/en/cloud-environments.md#setup-scripts). It queues messages you type during provisioning and sends them once the session is ready.
99
10098> [!NOTE]
10199>
102100> `--cloud` creates cloud sessions. `--remote-control` is unrelated: it lets you monitor and steer a local CLI session from claude.ai or the Claude app. See [Remote Control](https://code.claude.com/docs/en/remote-control.md).
103101
104Open the session on claude.ai or the Claude mobile app to check progress or interact directly. From there you can steer Claude, provide feedback, or answer questions as in any other conversation.
102Open the session on claude.ai or the Claude mobile app to check progress or interact directly.
105103
106104If Claude asks a question and the session sits idle, you can still answer when you come back, up to [environment expiry](#environment-expired), and the session continues from your answer.
107105
from line 268
270268
271269#### Troubleshoot a missing file in the diff view
272270
273A file you expected can be missing from the diff view's file list when it compares against the base branch, whether or not the session has pushed changes:
271A file you expected can be missing from the diff view's file list when it compares against the base branch:
274272
275273* **No changes pushed yet**: the list has Claude's own edits, but not changes made by commands Claude ran, such as a formatter
276274* **Changes pushed**: the list has pushed commits, but not changes made after the last push
from line 291
293291| `/context` | Yes | Shows what's currently in the context window |
294292| `/clear` | Yes | Starts a fresh conversation with empty context in the same cloud session |
295293
296Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](https://code.claude.com/docs/en/env-vars) themselves, so compaction triggers partway through the [auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window) rather than when the window fills. That value overrides one you add in your [environment variables](https://code.claude.com/docs/en/cloud-environments.md#set-environment-variables), so adding the variable there doesn't change when compaction triggers.
294On these models, a cloud session can reach the context limit before it compacts:
297295
298To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/en/env-vars) in your environment variables, or run [`/autocompact`](https://code.claude.com/docs/en/commands#all-commands) with a token count in a session where the variable isn't set.
296* Claude Haiku 4.5, Claude Sonnet 4.5, Claude Opus 4.5, and earlier models
297* Sonnet 4.6 and Opus 4.6 with [extended context](https://code.claude.com/docs/en/model-config.md#extended-context)
299298
299On other models, a cloud session compacts automatically before the conversation fills the [auto-compact window](https://code.claude.com/docs/en/model-config.md#set-the-auto-compact-window). To compact earlier on any model, set a smaller window, such as `150000`, with [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/en/env-vars) in your [environment variables](https://code.claude.com/docs/en/cloud-environments.md#set-environment-variables).
300
300301#### Use subagents and agent teams
301302
302303[Subagents](https://code.claude.com/docs/en/sub-agents.md) work the same way they do locally. Claude can spawn them with the Agent tool to offload research or parallel work into a separate context window, keeping the main conversation lighter. Subagents defined in your repo's `.claude/agents/` load automatically. For a project, check [which threads load them](https://code.claude.com/docs/en/claude-projects.md#what-threads-pick-up-from-your-repositories).
from line 356
355356
356357## Auto-fix pull requests
357358
358Claude can watch a pull request and automatically respond to CI failures and review comments. Claude subscribes to GitHub activity on the PR, and when a check fails or a reviewer leaves a comment, Claude investigates and pushes a fix if one is clear.
359Claude can watch a pull request and automatically respond to CI failures and review comments.
359360
360361> [!NOTE]
361362>
from line 399
398399
399400## Troubleshooting
400401
401For runtime API errors that appear in the conversation such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](https://code.claude.com/docs/en/errors.md). Those errors and their fixes are shared with the CLI and Desktop app. The sections below cover issues specific to cloud sessions.
402For runtime API errors that appear in the conversation such as `API Error: 500`, `529 Overloaded`, `429`, or `Prompt is too long`, see the [Error reference](https://code.claude.com/docs/en/errors.md).
402403
403404### Session creation failed
404405
No line in this hunk matches that.