#### Cloud Agents

# Choose where Cloud Agents run

Managed Cloud Agents run each agent in an isolated cloud VM with managed lifecycle, saved environments, artifact capture, and dashboard controls for secrets and network access.

[Self-Hosted Machines](/build/agents-window/cloud-agent/self-hosted) runs tool calls on hardware you control through [My Machines](/build/agents-window/cloud-agent/self-hosted/my-machines) or [pools](/build/agents-window/cloud-agent/self-hosted/pool). The agent loop still runs in Grok Build's cloud.

Managed VMs run on x86\_64 (amd64). For arm64, run a self-hosted worker on arm64 hardware with My Machines or a pool.

## Self-hosted or managed: which is right for you?

Managed Cloud Agents cover the requirements of most teams. Use this decision tree to evaluate what works best for your organization.

1. Do written policies require the repository checkout and tool execution to stay inside your perimeter? Yes: Self-Hosted Machines, perimeter constraint.

2. Do agents need internal services that stay unreachable through Tailscale, PrivateLink or egress allowlists? Yes: Self-Hosted Machines, network reach.

3. Do you need a custom OS, special hardware or persistent local disk for a large repo? Yes: Self-Hosted Machines, hardware or disk.

Every answer no: managed Cloud Agents, with managed infrastructure, elastic concurrency and every Cloud Agent feature. If any answer was yes, choose Pools for teams and enterprises, or My Machines for personal workflows on a single machine.

## Quick comparison

| Option | Choose it when | What you manage |
| :--- | :--- | :--- |
| **Managed Cloud Agents** | You want Grok Build to manage VM provisioning, isolation, snapshots, startup, artifacts, capacity, and environment deployment after setup. This is the recommended path for most teams. | First-time environment configuration, secrets, repository access, and network policy. Grok Build manages the host and environment lifecycle after that. |
| **My Machines** | You want a personal laptop, devbox, or remote VM to execute tool calls for a specific user and repo. | The machine, worker process, local checkout, credentials, uptime, disk, network access, and keeping the machine in a clean working state. |
| **Pools** | You need an org-managed worker fleet with service account auth, pool routing, labels, Kubernetes, autoscaling, or dedicated hardware. | Hosts, images, VM resets, capacity, autoscaling, worker updates, monitoring, secrets, network access, and incident response. |

## Start with managed Cloud Agents

Managed Cloud Agents are usually the lowest-operations way to give agents secure access to code and internal systems.

Use the managed path when you can configure access through:

* [Cloud Agent environments](/build/agents-window/cloud-agent/setup) with setup commands, Dockerfiles, snapshots, and secrets.
* [Network access controls](/build/agents-window/cloud-agent/security-network#network-access) that restrict outbound domains by user, team, or environment.
* [Tailscale or a similar private-network client](/build/agents-window/cloud-agent/setup#running-tailscale) inside the environment when agents need to reach services in your VPC or intranet.
* [Private connectivity](/build/agents-window/cloud-agent/private-connectivity) for private GitHub Enterprise Server, GitLab Enterprise, package registries such as Artifactory or Nexus, private source control APIs, and related webhook traffic.

This lets Grok Build operate the agent infrastructure after setup while your team controls which repos, secrets, and network resources each environment can reach.

## When my machines fits

[My Machines](/build/agents-window/cloud-agent/self-hosted/my-machines) works best for personal or small-scale workflows where a specific user already has a machine with the right checkout, tools, credentials, and private network access.

Use it for:

* A developer's devbox or remote workstation.
* A one-off repo that depends on local state you do not want to recreate in a cloud environment.
* A quick test before building a centrally managed worker pool.

My Machines is not an org-wide fleet system. Each worker belongs to the user who started it, targets the repo where it was started, and must stay online while sessions run. You also own cleanup: wiping state, refreshing the checkout, repairing dependencies, and keeping the machine ready for the next run.

## When pools fit

[Pools](/build/agents-window/cloud-agent/self-hosted/pool) are for Enterprise teams that want centralized ownership of worker hardware or need to route work to specific fleets.

Use a pool when you need:

* Service account authentication instead of per-user worker login.
* Kubernetes, autoscaling, labels, and fleet monitoring.
* Dedicated hardware profiles, such as GPU workers or high-memory build machines.
* Company-managed hosts that execute all terminal commands, file edits, browser actions, and local MCP servers.

The tradeoff is operational ownership. Your team runs the fleet, keeps enough workers available, patches and flashes images, resets VMs between runs, manages capacity, rotates credentials, monitors health, and handles host failures. If your primary requirement is private network access, try managed Cloud Agents with network controls, Tailscale, or private connectivity first.

## Security model differences

All three options support Privacy Mode. The main difference is where tool execution happens and who operates that execution environment. Secrets differ too: My Machines use the machine's own credentials, and pools receive dashboard secrets only through Secret sync.

| Question | Managed Cloud Agents | My Machines | Pools |
| :--- | :--- | :--- | :--- |
| Where does the agent loop run? | Grok Build's cloud | Grok Build's cloud | Grok Build's cloud |
| Where do tool calls run? | Managed isolated VM | Your machine | Your worker |
| Who manages host and environment lifecycle? | Grok Build, after first-time environment configuration | You | Your team |
| How do agents reach private resources? | Environment networking, allowlists, Tailscale or similar clients, and private connectivity for supported source control paths | Your machine's existing network | Your worker fleet's network |
| Which [environment](/build/agents-window/cloud-agent/self-hosted#environments-on-self-hosted-machines) settings apply? | All of them | Repository list only | Repository list only |
| Which dashboard secrets reach the machine? | Team, user, and environment-scoped secrets | None | Team and user secrets, with Secret sync |
| Best operational fit | Most teams and repos | Individual users and specific machines | Centralized enterprise fleets |

## Next steps

* [Cloud Agent setup](/build/agents-window/cloud-agent/setup): stay on managed Cloud Agents and configure environments, secrets, and network access.
* [My Machines](/build/agents-window/cloud-agent/self-hosted/my-machines): connect a personal laptop, devbox, or VM.
* [Pools](/build/agents-window/cloud-agent/self-hosted/pool): set up a shared pool for your team.
* [Computer use on macOS and Linux workers](/build/agents-window/cloud-agent/self-hosted/computer-use): let agents drive a desktop and browser on your machines.
