Claude Code Cloud Sessions: A Hands-On Guide
Claude Code now runs in the cloud, and that changes the shape of the tool more than the incremental version numbers suggest. A cloud session runs Claude Code on Anthropic-managed infrastructure instead of your machine: it clones your repository into an isolated virtual machine, makes changes, and pushes a branch for you to review. You can start one from claude.ai/code in a browser, from the Claude mobile or desktop app, or from your terminal with claude --cloud. Among the best AI tools 2026 for coding, this is the most direct answer yet to the “my laptop can’t run five agents at once” problem.
The defining property is isolation. Every cloud session gets its own VM and its own branch, so multiple tasks run in parallel without touching each other’s files. Sessions persist across devices — a task you start on a laptop is ready to review from a phone later. That combination, parallel isolation plus persistence, is what makes cloud sessions feel like a different tool rather than just a hosted version of the terminal you already have.
How Cloud Sessions Work
When you submit a task, Claude clones your GitHub repository fresh into an isolated VM. The clone-per-session design is deliberate: it means you do not need the repo checked out locally, and it means there is no shared working tree to corrupt. Claude works in the VM, and when it reaches a stopping point, it pushes its branch to GitHub. You then review the diff, leave inline comments, open a PR, or send another message to keep going.
The session does not close when the branch is pushed. That detail matters more than it sounds. A cloud session is a persistent conversation that happens to live on remote infrastructure, not a one-shot job. You can steer it throughout, step away and return, and the context survives the gap.
There are two flavors of infrastructure. By default, Anthropic hosts the session. In a self-hosted environment, the clone and everything after it run on your organization’s own runners, where network boundaries, setup, and push behavior are operator-configured. That split is the enterprise hook, and it is the main reason the feature is not just a consumer convenience.
Running Parallel Tasks Without Managing Worktrees
The flagship workflow is parallelism. You can run several independent tasks at once, each in its own session and branch, without managing multiple worktrees. On the desktop app, the sidebar lists your sessions and lets you run several in parallel; you click “New session” or press Cmd+N on macOS to spin up another. On the web and mobile, the same sessions are reachable, so you can dispatch work from one device and review it from another.
This is the part that used to be genuinely painful. Running multiple agents on a local machine meant either juggling git worktree directories yourself, running separate terminals, or accepting that concurrent edits would collide. Cloud sessions move that bookkeeping to the platform. Each task is a first-class object with its own context and its own changes, and the isolation is enforced by the VM boundary rather than by your discipline.
The trade-off is the same one that applies to any remote execution: you lose direct access to your local files, tools, and uncommitted changes. For tasks that need those — a quick fix in a repo you have half-edited locally — a local session is still the right call. Cloud sessions shine for well-defined, self-contained tasks you can describe up front and review later.
Cloud vs Local vs Worktrees: An AI Agent Framework Comparison
There are now three credible ways to run Claude Code, and the choice is really a decision about where state lives.
A local session runs on your machine, in your terminal or IDE, with full access to your files, environment variables, and uncommitted work. It is the highest-fidelity option and the only one that can touch things like your local database or your MCP servers without extra setup. The downside is that it is bounded by your hardware and your availability — the session stops when your laptop closes.
A local session with worktrees (claude --worktree feature-auth) keeps the local execution but adds git-level isolation. Each session gets a separate working directory on its own branch, sharing the same repository history. One session can build a feature while a second fixes a bug without edits colliding. This is the middle option: local control, parallel-safe, but you are still the one managing the worktrees and keeping the machine on.
A cloud session moves execution to a remote VM. You get parallelism and persistence without managing anything, at the cost of local-file access and a dependency on network and GitHub connectivity. For parallel coding agents specifically, this is the lowest-friction option because the isolation is architectural rather than procedural.
If you are comparing frameworks, the honest summary is that none of the three is strictly better — they are points on a spectrum from “full local control” to “fully managed, always on.” The newer capability is not that cloud exists, but that Claude Code now lets you move a single tool across that spectrum without changing how you prompt it. The model and the workflow are the same; only where the session runs changes.
Getting Started
The quickstart is short. You need a GitHub repository — Claude clones it into the VM as the working context. From a browser, go to claude.ai/code, connect the repo, and submit a task. From the terminal, run claude --cloud. From the desktop app, select “Cloud” as the environment when starting a session.
Cloud sessions are available on Pro, Max, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats. Cloud sessions also support multiple repositories: after selecting a cloud environment, click the plus button next to the selected repository to add more, and each repo gets its own branch selector.
For scheduled or event-driven work, there is a separate mechanism: Routines run in the cloud and can trigger on a schedule, an API call, or a GitHub event, which is useful when you want a task to run even while your computer is off. GitHub Actions remains the option for jobs that should live inside your CI pipeline.
The Enterprise Angle
For teams, the interesting question is where the VM actually runs. The default is Anthropic-managed infrastructure, which is convenient but means your source code leaves your network. The self-hosted runner option changes that: the clone and execution happen on your own infrastructure, under your network boundaries and your operators’ configuration.
That is the shape of a real enterprise AI adoption story. An engineering team can standardize on Claude Code cloud sessions for parallel coding agents, keep the execution inside their own VPC with self-hosted runners, and give individual developers a browser-based way to review and steer work without a full local checkout. The governance story — code stays in your cloud, changes land as reviewable branches, and access is managed through your existing identity — is what makes this more than a power-user feature.
The cost model is plan-based rather than per-session, which simplifies budgeting but means you should understand seat entitlement before rolling it out. The relevant question for a rollout is less “does it work” and more “do we want our codebase to be cloneable into vendor VMs by default, or do we pay for the self-hosted path up front.”
Who Should Use This
- Developers who want to run several coding tasks in parallel without managing worktrees or keeping a machine awake.
- Anyone who reviews work from multiple devices — start a task on a laptop, review the PR from a phone.
- Teams that want to move agent workloads onto self-hosted infrastructure for governance and code-residency reasons.
- Contributors who need to explore or fix a repo they do not have checked out locally.
Who Should NOT Use This
- Anyone working with uncommitted local changes or local-only resources (databases, secrets, MCP servers) that a remote VM cannot reach.
- Developers on air-gapped or GitHub-less workflows where the clone-and-push loop does not fit.
- People who need sub-second interactive turnaround on tiny edits — a local session is still more responsive for tight loops.
Limitations and Caveats
First, the isolation that makes parallelism safe is also the thing that cuts you off from your local environment. If your task depends on a local file, an environment variable, or a service running on your machine, a cloud session will not see it unless you configure a self-hosted runner or explicitly move that dependency into the repo.
Second, the clone-per-session model means every task starts from a fresh clone. For very large or monorepo-style projects, that is a real cost in time and bandwidth on every session, and it can interact awkwardly with submodules and large binary assets. The “repos you don’t have locally” benefit cuts both ways.
Third, cloud sessions are tied to GitHub connectivity. If you host on a different platform or your repo is not on GitHub at all, the browser and quickstart paths assume GitHub as the source of truth, and you will need to check what your enterprise runner setup supports.
Fourth, worktree cleanup is a known rough edge in local mode. Non-interactive runs with -p do not clean up their worktrees automatically, and stale locks can accumulate until a later sweep releases them. It is manageable, but it is exactly the kind of bookkeeping cloud sessions are supposed to remove, so if you lean on -p locally, expect to tidy up occasionally.
Recipes Worth Keeping
A few patterns make cloud sessions sing in practice. Split a backlog by area — one session for the bug fix, one for the feature, one for the refactor — and let them run concurrently, each on its own branch, then merge the three PRs in whatever order makes sense. Use a cloud session for the “understand this unfamiliar repo” task so it can churn for an hour while you work on something else locally. And use persistence deliberately: start a long task before a flight, review the pushed branch when you land.
One habit to avoid is treating a cloud session like a local one. Do not leave half-finished context in uncommitted local files and expect the cloud to see it; commit or push first, or keep that specific task in a local session. The clean handoff is the whole point — a task, a branch, a review — and the workflow works best when you commit to that shape rather than fighting it.
If you want monitoring without babysitting, background agents and the desktop sidebar both let you watch several sessions at once, and Routines handle the cases where you want a task to fire on a schedule without anyone typing a prompt. The general rule is the same across all of it: describe the task well, let it run, review the branch.
The Bottom Line
Claude Code cloud sessions solve a specific, real problem: running parallel coding agents without turning your laptop into a worktree farm and without losing the thread between sessions. The VM-per-task model gives you isolation and persistence that the local tool could only approximate with discipline, and the self-hosted runner option gives enterprises a path that does not ship their source code to a vendor by default. It is not a replacement for the local session — it is the missing half of the tool, and for anyone who has tried to run three agents at once, it is the half that was most obviously needed.