A cloud session is an ordinary Claude Code session whose machine is not yours: an Anthropic-managed VM that clones your repository from GitHub, keeps running after you close the laptop, and can be picked up later from a browser, a phone, or your own terminal.1 Because the machine is not yours, the code has to come from GitHub (see Claude GitHub App) and network and secrets need their own policy (see Cloud environment).1
Where one can start
| Surface | How to start |
|---|---|
| Browser | claude.ai/code (Claude Code on the web) |
| Mobile | The Code tab in the Claude app |
| Desktop app | Choose Cloud instead of Local |
| Terminal | claude --cloud "<task>" |
| Routines | Each scheduled or triggered run is a cloud session |
The starting surface changes nothing about how the session runs.1 A session running on your own machine and steered from a phone is Remote Control, a different feature; --remote-control does not create a cloud session.1 Moving work in and out of the cloud is on Moving work between terminal and cloud.
Differences from a local session
- Commands that produce text work; terminal-only ones such as
/pluginand/resumedo not. Picker commands such as/modeltake their value as an argument (/model sonnet), which needs Claude Code v2.1.205+ in the environment.1 /compactand/contextwork;/cleardoes not, so start a new session instead.1- Cloud sessions set
CLAUDE_AUTOCOMPACT_PCT_OVERRIDEthemselves, and it overrides the same variable in your environment; to change compaction, setCLAUDE_CODE_AUTO_COMPACT_WINDOWinstead.1 - Subagents work as they do locally, and
.claude/agents/definitions are picked up. Agent teams are off unlessCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1is set.1 - To change a setting, set an environment variable on the environment or commit it to
.claude/settings.json;/configin the browser only opens the settings panel.1
Lifecycle and sharing
A session expires after inactivity and the VM is reclaimed. Reopening it restores the history on a fresh VM, but background work such as subagents and shell commands is not restored.1 A session also counts as inactive while it waits for you to approve an MCP tool call or sign in to an MCP server.1
Sharing differs by plan: Team and Enterprise choose Private or Team with repository access verification on by default; Pro and Max choose Private or Public (any logged-in claude.ai user) with verification off by default. Sessions can contain private code and credentials, so check before sharing.1
Limits
- Rate limits are shared with all other Claude usage on the account; there is no separate VM charge.1
- Cloning and pull requests need GitHub. Other remotes can be sent as a bundle but results cannot be pushed back.1
- An organization IP allowlist makes Anthropic-hosted sessions fail with an authentication error, because they call the API from Anthropic’s network.1
- Organizations with Zero Data Retention cannot use cloud sessions.1
Related
- Pull request auto-fix
- Claude Projects: each project thread runs as a cloud session, and local-only workflows are not supported.2
- Source: Claude Projects, Redesigned
- Source: Claude Code Cloud Sessions