Building a SaaS tool or MCP server? Get listed or sponsor AgentStackList →
Claude Coding By Carlos Mendoza

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

  1. Open claude.ai/code (or run claude --cloud) and start a cloud session on the repo you want.
  2. Let Claude detect what the project needs; review the dependencies and allowed domains it proposes.
  3. Add any API key as a network secret for the specific host instead of pasting it into chat or an env var.
  4. 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.

Share on X

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

All Claude tricks →