Coder Agent Relay: How Regulated Enterprises Get Cloud Coding Agents Without Giving Up Control

·12 min read·Evergreen Tools Team
Networked enterprise infrastructure powering self-hosted coding agents

💡 Tool TipTesting agent infrastructure or writing governance configs? Pair this guide with Evergreen Tools' JSON Formatter and YAML to JSON converter, and use Cron Generator to schedule audit jobs. JSON Formatter, YAML to JSON, Cron Generator

Over the past two years, coding agents went from toy to primary development tool. But banks, defense agencies, government institutions, and global enterprises never got to use them -- not because developers do not want them, but because the deployment model does not work: source code needs controlled access, execution environments need to prevent data exfiltration, and every action must be auditable, and vendor-hosted tools cannot satisfy those requirements. On September 2, 2026, Coder announced Agent Relay, a self-hosted execution environment for cloud coding agents, with SpaceXAI as launch partner. Cursor Cloud Agents now run inside Coder workspaces on infrastructure the customer already operates: Cursor keeps running the agent loop (inference and planning) while tool calls execute inside the customer's network.

1. The Market Gap: AI Coding Locked Out by Its Deployment Model

Coder puts it bluntly: "Enterprises never rejected AI agents. They rejected the deployment model." The model was never the bottleneck; what keeps this work out of production is everything that comes after the pilot: where the code runs, who has access, what the agent can reach, and what record exists afterward. Those are infrastructure questions. Gartner projects that 80% of enterprise software engineers will need to upskill for generative AI by 2027, yet in the most regulated sectors, security and compliance review still decide which tools ever reach a developer. The result: the industries that would gain the most from AI coding are exactly the ones kept out of it.

// The core trade: a cloud coding agent is really two loops.
// Loop A (planning + inference) can live in the vendor cloud.
// Loop B (tool calls: shell, git, editors, build) is where
// source code gets touched -- and where enterprises say no.
const agent = {
  planningLoop: "vendor cloud (Cursor): model inference, planning",
  executionLoop: "enterprise network (Coder workspace): shell, git, build",
  rule: "Loop B must run where the customer can audit it",
  result: "Cursor UX + governed execution + data stays inside",
};

2. What Agent Relay Does: Splitting the Two Loops

The key insight is that a cloud coding agent is really two loops. Loop A (planning and inference) can live in the vendor cloud. Loop B (tool calls: shell, git, editors, build) is where source code actually gets touched -- and where enterprises say no. Agent Relay moves Loop B into Coder workspaces the customer runs: each workspace starts a Cursor worker that opens an outbound connection to Cursor. Developers keep the Cursor experience they know across app, web, and mobile, while platform teams provision and scale workspaces the same way they already manage developer environments. Source code, secrets, and internal services stay on machines the customer controls.

Isolated execution environments inside a corporate data center
// Agent Relay, announced Sep 2, 2026, with SpaceXAI as launch
// partner: each Coder workspace starts a Cursor worker that
// opens an outbound connection to Cursor's cloud. Platform
// teams provision and scale it like any dev environment.
// Coder CEO Rob Whiteley: "Enterprises never rejected AI
// agents. They rejected the deployment model."
{
  "agent_relay": {
    "workspace": "coder-workspace-with-worker",
    "worker": "cursor-cloud-agent",
    "connection": "outbound-only, workspace -> cursor",
    "model": "cursor runs inference + planning",
    "execution": "tool calls run in the workspace"
  }
}

3. The AI Operating Layer: Five Properties

Coder calls the architecture the AI Operating Layer and gives it five properties that must all hold: data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. This is not a feature checklist -- it is a governance frame that ends the speed-or-safety trade-off. Teams adopt whatever tools make them fastest, agents work with real autonomy, and the layer underneath holds.

// The AI Operating Layer: five properties that let an org
// adopt agents at speed without giving up safety.
const AI_OPERATING_LAYER = {
  "1_data_boundary": "data stays inside the boundary",
  "2_least_privilege": "every task sees only what it was granted",
  "3_model_allowlist": "only approved models run",
  "4_audit": "every action leaves a record",
  "5_cost_cap": "spend is capped before it accumulates",
};

4. Rolling It Out: Workspace Templates and Egress Policy

Adoption follows the pattern platform teams already know: define a Coder template that includes the agent worker, and a network policy that permits only outbound 443 traffic from the workspace to the Cursor relay, denying everything else by default. Regulated organizations can deploy cloud agents at scale next to private code and custom hardware without giving up Cursor's product surface or the security and standardization of Coder workspaces. For security teams, the most comfortable part is that an egress allowlist replaces the trust leap of uploading an entire repository to a third party.

Developer workstation connected to a governed agent workspace

5. Governance: Audit, Approvals, and Cost Caps

The last two properties are engineering problems. Audit: write every tool call to an append-only JSONL log shipped to the SIEM, so when a regulator asks what the agent did, you have the answer. Cost: set a budget per agent session at the platform layer and pause the session when it is exceeded. Model allowlist: only models that passed compliance review may enter the execution loop. All of this runs on the customer's own infrastructure -- which is exactly what a vendor-hosted offering cannot provide.

# Network policy: the workspace may reach the Cursor agent API
# (outbound), but internal services are only reachable from the
# sandboxed execution plane. No inbound from the internet.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: agent-relay-egress
spec:
  podSelector:
    matchLabels: { app: cursor-worker }
  policyTypes: [Egress]
  egress:
    - to:
        - ipBlock:
            cidr: 203.0.113.0/24   # Cursor relay CIDR
      ports:
        - protocol: TCP
          port: 443

6. What This Means for Platform Teams

For platform teams, this is a clear signal: agent governance is becoming a core responsibility of the developer platform, on par with image registries and CI clusters. Over the next year expect more hybrid architectures of local execution plus cloud intelligence, and the differentiator between mature and immature setups will not be how well the agent writes code -- it will be how controlled the execution environment is and how complete the audit trail is. Writing the five properties of the AI Operating Layer into your platform spec today is far cheaper than retrofitting compliance later.

#!/bin/bash
# Audit hook: every tool call the agent makes is recorded to
# an append-only log shipped to the SIEM. Regulators ask
# "what did the agent do?" -- this is the answer.
cat >> /var/log/agent-audit.jsonl <<EOF
{"ts":"$(date -Iseconds)","workspace":"$CODER_WORKSPACE","user":"$CODER_USER","cmd":"$BASH_COMMAND","exit":"$?"}
EOF

📌 Frequently Asked Questions

How is Coder Agent Relay different from using Cursor's cloud agents directly?

With cloud agents, tool calls (shell, git, build) run on the vendor's infrastructure, so source code and secrets leave the enterprise. Agent Relay keeps the execution loop inside Coder workspaces on the customer's network, with Cursor handling only inference and planning.

How is Coder Agent Relay different from using Cursor's cloud agents directly?

With cloud agents, tool calls (shell, git, build) run on the vendor's infrastructure, so source code and secrets leave the enterprise. Agent Relay keeps the execution loop inside Coder workspaces on the customer's network, with Cursor handling only inference and planning.

How is Coder Agent Relay different from using Cursor's cloud agents directly?

With cloud agents, tool calls (shell, git, build) run on the vendor's infrastructure, so source code and secrets leave the enterprise. Agent Relay keeps the execution loop inside Coder workspaces on the customer's network, with Cursor handling only inference and planning.

How is Coder Agent Relay different from using Cursor's cloud agents directly?

With cloud agents, tool calls (shell, git, build) run on the vendor's infrastructure, so source code and secrets leave the enterprise. Agent Relay keeps the execution loop inside Coder workspaces on the customer's network, with Cursor handling only inference and planning.

How is Coder Agent Relay different from using Cursor's cloud agents directly?

With cloud agents, tool calls (shell, git, build) run on the vendor's infrastructure, so source code and secrets leave the enterprise. Agent Relay keeps the execution loop inside Coder workspaces on the customer's network, with Cursor handling only inference and planning.

What role does SpaceXAI play in the partnership?

SpaceXAI is the launch partner. Its product team owns the Cursor agent experience across app, web, and mobile, while Coder provides the self-hosted infrastructure that lets agents execute tool calls inside the enterprise boundary.

What role does SpaceXAI play in the partnership?

SpaceXAI is the launch partner. Its product team owns the Cursor agent experience across app, web, and mobile, while Coder provides the self-hosted infrastructure that lets agents execute tool calls inside the enterprise boundary.

What role does SpaceXAI play in the partnership?

SpaceXAI is the launch partner. Its product team owns the Cursor agent experience across app, web, and mobile, while Coder provides the self-hosted infrastructure that lets agents execute tool calls inside the enterprise boundary.

What role does SpaceXAI play in the partnership?

SpaceXAI is the launch partner. Its product team owns the Cursor agent experience across app, web, and mobile, while Coder provides the self-hosted infrastructure that lets agents execute tool calls inside the enterprise boundary.

What role does SpaceXAI play in the partnership?

SpaceXAI is the launch partner. Its product team owns the Cursor agent experience across app, web, and mobile, while Coder provides the self-hosted infrastructure that lets agents execute tool calls inside the enterprise boundary.

Which industries need this deployment model most?

Banks, insurers, defense contractors, government institutions, and any company bound by data-residency or export-control rules. They typically require controlled access to source code, execution environments that prevent exfiltration, and full auditability.

Which industries need this deployment model most?

Banks, insurers, defense contractors, government institutions, and any company bound by data-residency or export-control rules. They typically require controlled access to source code, execution environments that prevent exfiltration, and full auditability.

Which industries need this deployment model most?

Banks, insurers, defense contractors, government institutions, and any company bound by data-residency or export-control rules. They typically require controlled access to source code, execution environments that prevent exfiltration, and full auditability.

Which industries need this deployment model most?

Banks, insurers, defense contractors, government institutions, and any company bound by data-residency or export-control rules. They typically require controlled access to source code, execution environments that prevent exfiltration, and full auditability.

Which industries need this deployment model most?

Banks, insurers, defense contractors, government institutions, and any company bound by data-residency or export-control rules. They typically require controlled access to source code, execution environments that prevent exfiltration, and full auditability.

What are the five properties of the AI Operating Layer?

Data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. Together they replace the speed-versus-safety trade-off.

What are the five properties of the AI Operating Layer?

Data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. Together they replace the speed-versus-safety trade-off.

What are the five properties of the AI Operating Layer?

Data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. Together they replace the speed-versus-safety trade-off.

What are the five properties of the AI Operating Layer?

Data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. Together they replace the speed-versus-safety trade-off.

What are the five properties of the AI Operating Layer?

Data stays inside the boundary; every task sees only what it was granted; only approved models run; every action leaves a record; and spend is capped before it accumulates. Together they replace the speed-versus-safety trade-off.

Where should a platform team start?

Fold agent workspaces into your existing provisioning flow: define a template with the worker, allow only outbound traffic to the relay, attach audit logging and budget limits, then expand to more models and teams gradually.

Where should a platform team start?

Fold agent workspaces into your existing provisioning flow: define a template with the worker, allow only outbound traffic to the relay, attach audit logging and budget limits, then expand to more models and teams gradually.

Where should a platform team start?

Fold agent workspaces into your existing provisioning flow: define a template with the worker, allow only outbound traffic to the relay, attach audit logging and budget limits, then expand to more models and teams gradually.

Where should a platform team start?

Fold agent workspaces into your existing provisioning flow: define a template with the worker, allow only outbound traffic to the relay, attach audit logging and budget limits, then expand to more models and teams gradually.

Where should a platform team start?

Fold agent workspaces into your existing provisioning flow: define a template with the worker, allow only outbound traffic to the relay, attach audit logging and budget limits, then expand to more models and teams gradually.