AI/TLDR

Anthropic · 2026-08-06 · major

Claude Code self-hosted environments — Anthropic runs sessions on your own compute

Anthropic opened a public beta for Claude Code cloud sessions to run on infrastructure the customer controls. Repos, build artifacts, and secrets stay on the org's machines; prompts and responses still route to Anthropic for inference.

Diagram of a Claude Code cloud session routed to a customer-hosted runner that reads internal services and returns artifacts locally.

Claude Code cloud sessions can now run on runners you provision, keeping code and secrets on your infrastructure.

Key specs

PlansTeam + Enterprise
Runner modesFixed + on-demand

Quick facts

MakerAnthropic
ProductClaude Code self-hosted environments
StatusPublic beta
PlansClaude Team and Enterprise
ExcludedZero Data Retention accounts
Runner modesFixed or on-demand
Repository supportGitHub at launch

What is it?

Claude Code self-hosted environments let a Team or Enterprise organization host Claude Code cloud sessions on servers inside its own network instead of Anthropic's cloud. A session started from the web, mobile, desktop, terminal, or a scheduled routine picks up a runner that the organization deployed, then reads its internal services, databases, and registries as if it were a local developer. The feature is a public beta and off by default; ZDR accounts are excluded at launch.

How does it work?

Self-hosted environments introduce runners — long-lived processes that pick up a queued session and start a Claude Code process for it. Runners come in two modes: fixed, where a set number stay up and share sessions, or on-demand, where an orchestrator starts runners as sessions arrive and shuts them down when the work is done. Repository checkouts, build artifacts, secrets, and any files a session creates or modifies stay on the customer's machines. Conversation content — prompts, responses, and tool results — still travels to Anthropic for inference and is stored so a session can continue across surfaces. All connections are outbound HTTPS; Anthropic never opens a connection back into the customer network.

Why does it matter?

Self-hosted environments fix the two things enterprise buyers kept flagging about Claude Code cloud sessions: touching internal services without exposing them to the public internet, and keeping source code and build artifacts on machines under the organization's control. Teams can pre-install compilers, SDKs, and internal tools so a session starts ready to build, and pipe every session through the same identity, logging, and network policies the rest of the engineering fleet already uses.

Who is it for?

Regulated enterprises, security-conscious platform teams, and any org whose codebase or internal services could not previously leave the corporate network.

Frequently asked questions

Which Claude plans can use Claude Code self-hosted environments?
Claude Code self-hosted environments are limited to Claude Team and Enterprise plans and remain off by default. Organizations using the Zero Data Retention (ZDR) setting cannot enable the feature at launch, and it is not yet available for sessions routed through Bedrock, Google Cloud Agent Platform, or Microsoft Foundry.
What data stays on my infrastructure and what still goes to Anthropic?
With Claude Code self-hosted environments, repository checkouts, build artifacts, secrets, and any files a session creates or modifies stay on machines the organization provisions. The conversation itself — prompts, responses, and tool results — still travels to Anthropic for inference, and the session transcript is stored so the session can be resumed across surfaces.
How do runner modes work?
Claude Code self-hosted environments deploy runners in one of two modes. Fixed mode keeps a set number of long-lived runners up and distributes sessions across them. On-demand mode uses an orchestrator to watch the queue and start a fresh runner when a session arrives, then shut it down when the session finishes.
Which source hosts and Claude surfaces are supported at launch?
At the public beta launch, Claude Code self-hosted environments support GitHub as the repository source. The Claude Tag review workflow, Claude Security, and Code Review surfaces are not yet routed through self-hosted runners; Anthropic notes those integrations are still to come.

Try it

Enable self-hosted environments in the Claude Code cloud-environments admin page (Team or Enterprise), then deploy a runner — full setup at https://code.claude.com/docs/en/self-hosted-environments.

Sources · 3 outlets

Tags

  • anthropic
  • claude-code
  • self-hosted
  • enterprise
  • compliance
  • public-beta
  • coding-agent

← All releases · Learn AI