---
title: "Claude Code in the cloud: a field guide to cloud sessions"
description: "Claude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials."
url: "https://swe.quest/articles/claude-code-in-the-cloud-a-field-guide-to-cloud-sessions-77547c26ca9824eb"
canonical: "https://claude.dev/blog/claude-code-in-the-cloud/"
source: "claude.dev"
published: "2026-10-06"
difficulty: "medium"
kind: "How-to"
reading_minutes: 22
tags: ["ai-coding","ai-agents","developer-tools","sandboxing"]
---

# Claude Code in the cloud: a field guide to cloud sessions

A post on [claude.dev](https://swe.quest/sources/claude-dev.md), published 2026-10-06, 22 min read, How-to. Original: [https://claude.dev/blog/claude-code-in-the-cloud/](https://claude.dev/blog/claude-code-in-the-cloud/)

## Summary

Claude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials. In a demo on a small Node API, three sessions finished a flaky-test race fix (verified by 40 clean suite runs), a docs rewrite checked with curl, and a structured-logging change within 87 seconds. The GitHub token stays in a proxy outside the VM, and only repo-level Claude config travels with the session. The guide covers when to stay local (VPN, local data, GPUs, Zero Data Retention), timeout settings, teleporting sessions back to the terminal, and workflows such as parallel backlogs and PR auto-fix.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)

## Prerequisites

- Claude Code CLI ([easy posts on Developer tools](https://swe.quest/tags/developer-tools.md?difficulty=easy))
- Git branches and pull requests

## Keywords

Claude Code, claude --cloud, claude --teleport, GitHub, Claude GitHub App, CLAUDE.md

## Related posts

- [How we're shipping faster with Claude Code and Git Worktrees](https://swe.quest/articles/how-we-re-shipping-faster-with-claude-code-and-git-worktrees-4004ae933e0806d1.md): incident.io · 2025-06-27 · Medium · 12 min read · AI for coding, Version control, Developer productivity, AI agents
  incident.io engineers run four to seven Claude Code agents in parallel, each isolated in its own Git worktree so concurrent sessions don't clobber a shared working directory.
- [How Ramp built a full context background coding agent on Modal](https://swe.quest/articles/how-ramp-built-a-full-context-background-coding-agent-on-modal-8c26a10f9ce0801d.md): Modal · 2026-02-19 · Easy · 6 min read · AI agents, AI for coding, Sandboxing & isolation, Developer productivity
  Ramp Inspect, an internal background coding agent, runs each session in a Modal Sandbox containing a full dev environment (Postgres, Redis, Temporal, RabbitMQ, OpenCode, VS Code server, VNC with Chromium) and now starts roughly half of merged pull requests at Ramp.
- [Agents in the Sandbox](https://swe.quest/articles/agents-in-the-sandbox-6c4d7e3dae7cde47.md): Railway · 2026-06-24 · Medium · 9 min read · AI agents, Sandboxing & isolation, Developer tools, TypeScript
  Railway sandboxes now ship Claude Code, Codex, OpenCode and Pi in the default image and can join an environment's private network, which lets agents test against real Postgres, Redis and internal services.
- [Effective harnesses for long-running agents](https://swe.quest/articles/effective-harnesses-for-long-running-agents-987ba1b5b74b4050.md): Anthropic Engineering · 2025-11-26 · Medium · 9 min read · AI agents, AI for coding, LLMs, Testing
  Long-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early.
- [Scaling Managed Agents with stable interfaces](https://swe.quest/articles/scaling-managed-agents-with-stable-interfaces-06b4cb4f85923c79.md): Anthropic Engineering · 2026-04-08 · Medium · 9 min read · AI agents, System design, Sandboxing & isolation, Resilience, LLMs
  Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic \`execute(name, input) → string\` tool call.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
