Isolated VM environments for cloud coding agents, explained
November 9, 2026 · 3 min read · By the bestcloudagents team
bestcloudagents is operated by Replicas, one of the products discussed here. Every claim about a product comes from its own docs or pricing; see how we score.
An autonomous coding agent installs packages, runs arbitrary commands, starts databases, opens browsers and edits files, often with permission prompts turned off so it can work unattended. Where that happens matters more than almost any other choice you make about cloud agents.
The baseline we recommend: one isolated virtual machine per task, configured once by your team and booted fresh every time.
Why a VM per task
Nothing leaks between runs. Two agents working on different tickets never see each other's files, processes, environment variables or half-installed dependencies. A failed run can't poison the next one.
The agent can verify its own work. With a whole machine it can install your toolchain, run Docker and docker-compose, start your services, run the full test suite and click through the UI in a real browser. That's the difference between a pull request that compiles and one that works.
The blast radius is one disposable machine. If an agent runs something it shouldn't, the damage stays inside a VM that's destroyed when the work is done. Credentials are scoped to what that environment was given.
Laptops are out of the loop. The work continues when the engineer closes the lid, and ten tasks can run at once without ten laptops.
VMs, containers and shared machines
| Shared dev box | Container per task | VM per task | |
|---|---|---|---|
| Isolation between tasks | None | Process and filesystem; shared kernel | Separate kernel and machine |
| Run Docker inside | Yes | Needs nesting or privileges | Yes |
| Desktop and browser for UI checks | Possible | Awkward | Yes |
| Clean state every time | No | Yes | Yes |
| Setup effort | Low at first, grows | Medium | Low on a managed platform |
Containers are a reasonable middle ground for short, trusted jobs like CI. For agents that run untrusted, model-generated commands and need to run your full stack, a VM is the cleaner boundary.
What a good agent environment includes
The VM is only useful if it's ready to work in. Look for:
- Repositories cloned, including several repos and, if you need it, both GitHub and GitLab in one workspace.
- Dependencies preinstalled through setup or warm hooks and snapshots, so each task doesn't spend ten minutes on
npm install. - Secrets injected safely, encrypted at rest, ideally synced from a manager such as Doppler or Infisical, and lockable by admins.
- Tools the agent can use: MCP servers, skills and instructions configured once for the whole team.
- A desktop and browser so the agent can test the UI and hand back screenshots and recordings.
- Right-sized machines: small for quick fixes, larger for builds and test suites.
- Network controls for what the agent can reach.
How the main options compare
Most hosted coding agents now run tasks in a VM:
- Replicas gives each workspace its own Linux VM (2, 4 or 8 vCPU with 8, 16 or 32 GB), configured once per team environment with warm hooks, MCP servers, skills, files and secrets, plus a desktop with Chrome. It runs Claude Code, Codex, Cursor, OpenCode, Pi or Muse Code inside.
- Devin boots a fresh copy of your organization's snapshot in a Linux VM per session, built from a blueprint it proposes for each repository.
- Cursor Cloud Agents run in isolated VMs set up by an agent, a saved snapshot or a Dockerfile, with secrets, outbound domain restrictions and remote desktop control.
- Claude Code on the web and Codex cloud run sessions in their vendors' VMs, with network access set per environment.
- OpenCode runs wherever you put it; isolation is yours to build.
The differences are less about "VM or not" and more about setup effort, how much of your stack fits, which agents can run inside, and who controls the configuration.
Questions to ask a vendor
- Is every task a fresh VM, or do tasks share a long-lived machine?
- What happens to the machine and its data when the task ends or the workspace sleeps?
- Can admins define the environment once and lock it, so engineers can't widen access by accident?
- Can I turn off retention of chat history after a run?
- Can it run in my own cloud if security requires it?
If isolation is a hard requirement, say so in the chooser: it becomes a must-have, and anything that can't meet it drops down the ranking.
Get a second opinion on your shortlist
Tell us what you're weighing and an engineer from the Replicas team, who operate this site, will reply by email. We'll point you to whichever option fits, including when that isn't Replicas.
Keep reading
The best cloud coding agents for engineering teams in 2026
Replicas, Devin, Cursor Cloud Agents, Claude Code on the web, Codex cloud and OpenCode compared on what matters to a team lead, with the cases where each one wins.
How to run Claude Code in the cloud (and keep it running when your laptop sleeps)
Four ways to run Claude Code in the cloud, from Anthropic's own Claude Code on the web to a rented VM, GitHub Actions and Replicas, with what each needs and costs.
Why your team needs a multi-harness cloud coding agent platform
What a multi-harness platform is, why the agent is becoming a commodity while the environment is not, and what to check before you commit to one agent's cloud.