Skip to main content

Agent Relay for Claude Code

On this page

Note

Agent Relay for Claude Code is in early access and is currently in closed preview with select customers.

Agent Relay connects Claude Code sessions to self-hosted Coder workspaces. Anthropic calls this self-hosted worker model self-hosted environments. Developers keep using the claude.ai/code or Claude Desktop client and workflow they already know. The Claude Code runner's tool calls run inside a Coder workspace on infrastructure you control instead of an Anthropic-managed environment.

Anthropic's agent orchestration and AI inference remain cloud-hosted. Coder doesn't proxy or observe model inference. Coder provides the workspace where the runner executes and logs that correlate the Claude Code session and user to that workspace.

How it works

  1. A developer starts a Claude Code session at claude.ai/code or in Claude Desktop, targeting a self-hosted runner pool mapped to a Coder organization and workspace template.
  2. Agent Relay claims the pending work order for that session and asks the Coder control plane to provision a workspace from the mapped template for that user.
  3. A Claude Code self-hosted runner inside the workspace registers with the corresponding Claude Code session and executes the agent's tool calls.
  4. When the session ends, Agent Relay manages workspace teardown.

Each Claude Code session gets its own ephemeral workspace.

Requirements

  • A licensed Coder deployment
  • An Anthropic Team or Enterprise plan

Self-hosted environments are in public beta on these plans. Refer to Anthropic's self-hosted environment documentation for details.

Get started

Talk to your Coder account team or email [email protected] to get access to Agent Relay for Claude Code.

Learn more