Claude Code cloud sessions now set up your repo themselves, and never see your API keys
Anthropic made it easier to get a repo running in Claude Code cloud sessions. Instead of you writing a setup script by hand, Claude works out which dependencies, network access and API keys the project needs, then saves that environment so the next session starts ready. API keys are stored as network secrets: Anthropic's proxy attaches them to requests for hosts you allow after traffic leaves the VM, so Claude and the session files never see the key itself. The same environment applies whether you start from the desktop app, mobile, claude.ai/code or claude --cloud.
Why it matters
The slowest part of a cloud agent run is often getting the repo to build at all. A saved, auto-detected environment means the second task starts working right away, and secrets stay out of the model's context.
Who it's for
Claude Pro, Max and Ultra users who hand coding tasks to cloud sessions, especially on repos with private packages or third-party APIs.
How to try it
- Open claude.ai/code (or run claude --cloud) and start a cloud session on the repo you want.
- Let Claude detect what the project needs; review the dependencies and allowed domains it proposes.
- Add any API key as a network secret for the specific host instead of pasting it into chat or an env var.
- Start your next task in the same environment and confirm it begins without reinstalling everything.
Plan & availability: Announced by @ClaudeDevs on November 6, 2026 for Pro, Max and Ultra. Anthropic's cloud environments docs also list Team plans and Enterprise premium or Chat + Claude Code seats for cloud sessions. Checked on code.claude.com/docs/en/cloud-environments on November 7, 2026.
Source: @ClaudeDevs on X
Written by Carlos Mendoza from the original post. Checked Nov 7, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codecloud-sessionsenvironmentssecrets
More Claude tricks
- One URL and one key for all your MCP servers: ngrok's MCP Gateway is live · Dec 2
- OpenCode 2.4.2 cuts about 700 tokens per request and tunes GPT-6.2 · Nov 26
- OpenCode 2.4 gives your coding agent a browser, automations, and video generation · Nov 24
- Claude Code 2.1.330 draws your charts with easel and lets scheduled tasks run 30 days · Nov 21