---
title: "Run Claude Code Cloud Sessions on Self-Hosted Coder Infrastructure | Coder + Anthropic"
description: "Run Claude Code cloud sessions in self-hosted Coder workspaces on infrastructure you control. Governed execution environments deployable across any cloud or on-premises infrastructure, connected to Anthropic's cloud orchestration through Coder Agent Relay."
image: "/_next/static/media/claude-og.ad28d910.png"
canonical: "https://coder.com/partners/anthropic"
---

![](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Flock-violet.88f415a9.svg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)Claude Code cloud sessions, self-hosted execution

# Deploy Claude Code for your enterprise.

A new integration brings the Claude Code cloud sessions developers love to the self-hosted Coder infrastructure enterprises trust, governed by your organization.

[Talk to Coder](https://coder.com/partners/anthropic#learn-more)[Documentation](https://coder.com/docs/ai-coder/agent-relay/claude-code)

![Two Column Masthead Background](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftwocol-premium-masthead-bg.8e8c8f22.jpg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)![Claude Code running inside a self-hosted Coder workspace](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fclaude-masthead.6121fd63.png&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)

## Bring Claude Code's cloud session execution inside your infrastructure.

If your security requirements have kept Claude Code's cloud sessions out of reach, talk to Coder about running its agent execution inside your infrastructure.

- ✓Self-hosted execution environments on infrastructure you control
- ✓Logs correlating Claude Code sessions and users to workspaces
- ✓Execution environments provisioned and torn down automatically
- ✓Anthropic's cloud orchestration and inference, unchanged
- ✓The native Claude Code experience, preserved

### Meet with Coder to learn more.

## The deployment problem.

### Your developers want the Claude Code experience, but your security team can't approve the deployment model. Until now.

The enterprise solution.

## Self-hosted execution for Claude Code, on infrastructure you control.

![Architecture diagram showing Claude Code cloud sessions executing in self-hosted Coder workspaces, connected through Coder Agent Relay](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fclaude-coder-marketecture.658e6a92.jpg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)

For Platform TeamsFor Builders

### Govern Claude Code like the rest of your infrastructure.

Coder provides the self-hosted infrastructure: declarative workspace provisioning, networking, governance, Agent Relay, and secure execution environments. Anthropic provides the AI coding and cloud session orchestration developers already know. Together, we deliver a complete enterprise deployment model.

- **Self-hosted execution environment** — Run Claude Code's self-hosted runner within infrastructure you own and control, including workspace networking and governance.
- **Coder Agent Relay** — Brokers the connection between Claude Code's cloud session queue and your self-hosted Coder workspaces, then manages each workspace's lifecycle for the life of the session.
- **Policy enforcement and governance** — Apply enterprise policies to agent activity, workspace access, and network reachability. Security teams get the governance layer they need to approve.
- **Full observability and auditability** — Track workspace activity, Claude Code session and user identity, and workspace lifecycle events with centralized logging across your organization.
- **Declarative workspace provisioning** — Provision environments using Terraform infrastructure-as-code so agents have access to the right tools, languages, and resources.
- **Ephemeral, scale-to-zero workspaces** — Each Claude Code cloud session gets its own workspace, provisioned on demand and deleted when the session ends.

Related documentation:

[![Server icon](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fserver-ember.323747ef.svg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)Architecture](https://coder.com/docs/admin/infrastructure/architecture)[![Cog icon](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcog-glacier.9a9802b9.svg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)Templates](https://coder.com/docs/admin/templates)[![Code icon](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcode-purple.48581277.svg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)Workspaces](https://coder.com/docs/user-guides/workspace-access)[![Integrate icon](https://coder.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fintegrate-ember.7166b576.svg&w=2048&q=75&dpl=dpl_DXJfcfeZdymUxNGH7qbVVQvYFZcT)Agent Relay for Claude Code](https://coder.com/docs/ai-coder/agent-relay/claude-code)

## FAQs

Who is Coder?

Coder delivers self-hosted development environments for developers and AI agents. Organizations use Coder to provision, connect, and govern secure development environments across cloud, on-premises, and air-gapped infrastructure.

What runs inside my infrastructure?

What is Coder Agent Relay?

Does this replace Claude Code's cloud sessions?

Is this available today?

Can I use other AI coding agents on Coder?
