How to Run Coding Agents in Your Own Cloud: GCP and AWS VPC Deployment
A practical guide to running AI coding agents in your own GCP project or AWS account. Why teams want agent VMs in their own cloud, what to set up, and how Murmur handles customer placements.
Running AI coding agents in your own cloud account means agent VMs run inside your GCP project or AWS account with your credentials, your network boundaries, and your cloud logging, rather than in a vendor's shared infrastructure. This is how teams with strict data residency or compliance requirements get the benefits of cloud coding agents while keeping the machines, repository checkouts, and secrets inside their own environment.
This guide covers why teams want customer placements, what the architecture options are, what to set up, and how Murmur from Macroscope handles running Claude Code or Codex agents in your own cloud.
TL;DR: Running Coding Agents in Your Own Cloud
- Customer placements run agent VMs in your GCP project or AWS account rather than the vendor's cloud.
- Why it matters: VMs, repository checkouts, and secrets stay in your account, agents can reach internal services, your IAM policies apply, and the VMs show up in your own cloud logs and billing.
- Architecture options: vendor-hosted sandboxes, customer placements in your account, or DIY on your own runners.
- What to set up: trust without long-lived keys (OIDC federation), VM images with your stack, network boundaries, credentials scoping, idle behavior, and the model-provider data path.
- Murmur from Macroscope runs Claude Code or Codex agents on dedicated VMs with customer placements available. Public Terraform modules handle the setup.
Short answer: If you need coding agents that run in your own cloud boundary, Murmur supports customer placements where agent VMs run in your GCP project or AWS account, authenticated through short-lived OIDC tokens. Apply at /murmur-beta.
Why run coding agents in your own cloud?
Four reasons teams want agent VMs in their own cloud account:
1. Machines, checkouts, and secrets stay in your account
When an agent clones a repository, checks out a branch, reads environment variables, and runs tests, all of that happens on a VM inside your cloud boundary. The repository checkout, build artifacts, and disks live on infrastructure you own, and secrets in your secret manager are accessed with your credentials, under your policies.
One boundary still needs planning: the agent itself sends prompts and the code context it reads to its model provider (Anthropic for Claude Code, OpenAI for Codex). VM placement controls where code is stored and executed, not where model requests go, so a data-residency review should cover the model provider's data terms as well as the VM's location.
2. Agents can reach internal services
If your development workflow depends on internal APIs, databases, or test environments that are not publicly accessible, an agent in your VPC can reach them. A vendor-hosted agent cannot, unless you expose those services or set up complex tunneling.
3. Your IAM policies apply
Access control is your existing IAM configuration. The agent runs with a service account you define, with permissions you scope. Audit logs show exactly what the agent accessed and when, in your cloud console, in your format.
4. Cost visibility
Compute costs appear in your cloud billing, tagged however you tag resources. You see how much agent workloads cost in the same dashboard as the rest of your infrastructure.
What are the architecture options?
Three ways to run cloud coding agents, with different tradeoffs on control and complexity:
Option 1: Vendor-hosted sandboxes
The vendor runs agent VMs in their infrastructure. You send tasks, the agent works, and you get pull requests.
- Pros: No infrastructure to manage. Fastest to start.
- Cons: Code leaves your boundary. Cannot reach internal services. Limited visibility into what agents did. Compliance may not allow it.
Most cloud coding agent products default to this model.
Option 2: Customer placements (agents in your account)
Agent VMs run in your GCP project or AWS account. The orchestration layer manages agent lifecycle but VMs run on your infrastructure.
- Pros: VMs, disks, and repository checkouts stay in your boundary. Agents reach internal services. Your IAM, your cloud logs, your billing.
- Cons: Requires setup. You are responsible for the infrastructure the agents run on.
Murmur from Macroscope supports this model.
Option 3: DIY on your own runners
You provision VMs, install agent runtimes, manage orchestration, and handle cleanup yourself.
- Pros: Complete control. No vendor involvement.
- Cons: Significant engineering effort. You build and maintain the orchestration layer, the VM lifecycle management, the credential handling, and the cleanup. Most teams do not have the bandwidth.
Customer placements give you the control benefits of DIY without building the orchestration layer yourself.
What do you need to set up for customer placements?
Five things to configure when running coding agents in your own cloud:
1. Trust without long-lived keys
The orchestration layer needs to provision VMs in your account. The safe way: OIDC Workload Identity Federation. The orchestration layer authenticates with short-lived tokens scoped to your tenant, not long-lived API keys that could be leaked or stolen.
With Murmur, trust is established through OIDC Workload Identity Federation. Public Terraform modules set up the identity provider and trust relationship.
2. VM images with your stack
Agent VMs need your development environment: language runtimes, build tools, database clients, test frameworks. You build a VM image with your stack, and the orchestration layer provisions from that image.
Murmur supports custom workspace images. You define what is installed, and each agent VM boots from your image.
3. Network boundaries
Decide what each agent can reach. Agents in your VPC have access to whatever the VPC allows, so scope it: allow access to internal test databases, deny access to production systems, control egress to the public internet.
In Murmur, the placement names the VPC network and subnet agent VMs boot into, so the network rules you already apply to that subnet are the agent's boundary. Separate placements give different workloads different networks.
4. Credentials scoping
Agents need credentials: GitHub access to clone repositories, cloud credentials to access services, secrets for test environments. Scope these narrowly. Repository confinement limits an agent's GitHub access to the repositories its task involves, not your entire organization.
Murmur supports repository confinement, which you turn on to limit an agent's GitHub access to the repositories its task involves. Automated work can run under a service profile, a bot identity with org-owned credentials, instead of a developer's personal tokens.
5. Idle behavior and cleanup
Decide what happens to an agent VM when its work goes quiet. Keeping state lets an agent pick up review comments or CI failures where it left off; terminating frees the disk; either way you should not pay for idle compute.
Murmur manages the lifecycle for you: provisioning, credential delivery, sleep and wake, and termination. By default an idle agent sleeps, which suspends the VM so compute charges stop while its state is preserved. Idle behavior is configurable per spawn: sleep, terminate immediately, or stay alive, and killing an agent terminates its VM.
How does Murmur handle customer placements?
Murmur from Macroscope runs Claude Code or Codex agents on dedicated VMs, with customer placements where agent VMs run in your GCP project or AWS account.
The setup has four parts:
1. Choose the placement
Every tenant starts with platform placements on Murmur-managed infrastructure. A customer placement adds your GCP project or AWS account, region, VPC network, and subnet. Each workspace references one placement, so some workspaces can run on Murmur-managed infrastructure and others in your cloud.
2. Set up trust with Terraform
Public Terraform modules (one for GCP, one for AWS) configure workload identity federation and permissions in your cloud account, so Murmur authenticates with short-lived federated credentials scoped to your tenant, not long-lived keys. You then register the placement with Murmur.
3. Bake images and configure workspaces
VM images are bound to placements: an image baked in one project or account is not visible from another, so you re-bake your recipes against the new placement and the resulting images live in your cloud. A workspace then ties together an image, an environment (machine type and disk), the placement, repositories, and secrets.
4. Scope credentials
Repository confinement, when you turn it on, limits an agent's GitHub access to the repositories its task involves. Service profiles give automated agents a bot identity with org-owned credentials. Because the VMs are in your account, your own cloud logging covers them, and you can inspect, snapshot, or shut down a VM directly.
The agents themselves are unchanged: each one is a Claude Code or Codex session on its own VM, running your stack, and opening pull requests in GitHub. Customer placement is about where that VM runs, not how the agent works.
Murmur is in early preview. Apply at /murmur-beta.
What is the difference between running in your cloud and self-hosting?
Customer placements run agent VMs in your cloud with orchestration managed by the vendor. Self-hosting means you run everything, including the orchestration layer.
| Customer placements | Full self-hosting | |
|---|---|---|
| Agent VMs run in | Your cloud account | Your infrastructure |
| Orchestration managed by | Vendor | You |
| Setup complexity | Terraform modules | Significant engineering |
| VM lifecycle | Automatic | You build it |
| Agent runtime | Vendor-provided | You install and maintain |
For most teams, customer placements provide the security and compliance benefits of "in your cloud" without the operational burden of building an orchestration layer.
Can I run Claude Code or Codex agents in my own AWS account?
Yes, with Murmur from Macroscope. You bring your Claude Code or Codex API keys or existing subscriptions. Murmur provisions agent VMs in your AWS account (or GCP project), authenticated through OIDC Workload Identity Federation. Each agent is a Claude Code or Codex session on its own VM with your development stack installed.
For how to run Claude Code specifically, see how to run Claude Code in the cloud.
Is it safe to give a coding agent access to my repository?
The safety depends on how access is scoped and what the agent can reach.
Questions to ask about any cloud coding agent platform:
- Where does the agent run? Vendor infrastructure or your cloud? If vendor, where is code stored and for how long?
- What can the agent access? Just the repositories for this task, or your entire GitHub organization?
- What credentials does the agent have? Production secrets or test-only credentials?
- What can the agent reach on the network? Internal services, production databases, or just the code?
- What audit trail exists? Can you see what the agent accessed and when?
Customer placements with repository confinement and service-profile credentials address most of these questions: the agent runs in your cloud, its GitHub access is confined to the repositories its task involves, and its VM sits in your project where your own logging and incident response apply. The remaining question is the model provider, which receives the prompts and code context the agent sends.
For more on agent security patterns, see Murmur FAQ.
How do I run many coding agents in parallel?
You need an orchestration layer designed for parallel execution, not just a way to run one agent at a time.
Murmur is built for fleets of concurrent agents. Each agent gets its own VM, provisioned from your workspace image, with its own credentials and network scope. You dispatch twenty tasks and twenty agents start working, each isolated, each producing its own pull request.
For the how-to, see how to run coding agents in parallel in the cloud.
Frequently Asked Questions
What's the best platform for running AI coding agents in the cloud?
For teams that need agent VMs in their own cloud account, Murmur from Macroscope fits: you bring Claude Code or Codex with your own keys, choose where VMs run (Murmur Cloud or your GCP project or AWS account), and agents handle post-PR automation. For a broader survey, see best cloud AI coding agents 2026.
Can I run Claude Code or Codex agents in my own AWS account?
Yes, with Murmur. Customer placements run agent VMs in your AWS account (or GCP project), authenticated through OIDC Workload Identity Federation. You bring your API keys or existing subscriptions. Each agent is a Claude Code or Codex session on its own VM with your stack installed. Apply at /murmur-beta.
Is it safe to give a coding agent access to my repository?
The safety depends on how access is scoped. With customer placements in Murmur, agent VMs and repository checkouts live in your cloud account, repository confinement limits GitHub access to the repositories each task involves, and automated agents can run under a service profile instead of a developer's credentials. The agent still sends prompts and the code context it reads to its model provider (Anthropic for Claude Code, OpenAI for Codex), so include that provider in your data review.
How do I run many coding agents in parallel?
Murmur is designed for parallel execution. You dispatch tasks and each one gets its own VM, provisioned from your workspace image, isolated from other agents. For setup and patterns, see how to run coding agents in parallel in the cloud.
What is OIDC Workload Identity Federation?
A way for an external service to authenticate to your cloud account without long-lived keys. The service presents a short-lived token, your cloud verifies the token against the identity provider, and grants scoped access. This is how Murmur authenticates to provision VMs in your account: short-lived tokens, not API keys that could be leaked.
What is a customer placement?
A customer placement is when agent VMs run in your cloud account (your GCP project or AWS account) rather than the vendor's infrastructure. The vendor's orchestration layer manages agent lifecycle, but the compute runs in your boundary with your credentials, network, and cloud logging.
Do I need to build a VM image for customer placements?
You can use a default image or build a custom one with your development stack. Custom images mean agents boot with your language runtimes, build tools, database clients, and test frameworks already installed. Murmur supports custom workspace images.
How is this different from running agents on GitHub Actions runners?
GitHub Actions runners are designed for CI jobs, not long-running agent sessions. A coding agent might work for an hour, make multiple commits, respond to review comments, and fix CI failures, all in one session. Murmur provisions dedicated VMs with agent runtimes designed for this workflow, with post-PR automation that keeps agents working until PRs are ready.
What cloud providers does Murmur support for customer placements?
GCP and AWS. You set up the trust relationship with Terraform modules, and Murmur provisions agent VMs in your project or account.
Can I mix Murmur Cloud and customer placements?
Yes. Each workspace references one placement, so some workspaces can use Murmur-managed platform placements (no infrastructure to manage) while others run in your GCP project or AWS account (for workloads that require your cloud boundary).
What happens to agent VMs when a task completes?
By default an idle agent sleeps: the VM is suspended, compute charges stop, and its state is preserved so it can wake to handle follow-ups such as review comments. Idle behavior is configurable per spawn (sleep, terminate immediately, or stay alive), and killing an agent terminates its VM.
How do I see what agents did?
The agent's pull requests, commits, and session in Murmur show what it did. With a customer placement, the VMs, disks, and images also live in your own project or account, so your cloud's existing logging and monitoring cover them and you can inspect or snapshot a VM directly.

