# Sandscale vs Docker Sandboxes: a microVM on the developer's laptop, or one per run in the cloud

> Docker Sandboxes run coding agents in microVMs on your machine or on Docker-managed cloud, with a host-side proxy that injects credentials. Sandscale runs a Firecracker microVM per agent run behind an API. A sourced comparison of where each fits.

Docker Sandboxes run coding agents in microVMs on your machine or on Docker-managed cloud, with a host-side proxy that injects credentials. Sandscale runs a Firecracker microVM per agent run behind an API. A sourced comparison of where each fits.

November 26, 2026 · 4 min read · The Sandscale team

Docker Sandboxes and Sandscale both put agent code inside a microVM. They are aimed at different moments in an agent’s life. Docker Sandboxes, driven by the `sbx` CLI, are built around a developer running Claude Code or another coding agent against their own working tree, on their own machine or on Docker-managed cloud compute. Sandscale is built around a program (your orchestrator, a CI job, or an agent over MCP) starting a fresh box for each run and governing what happens in it. Plenty of teams could use both.

Docker facts below come from the [Docker Sandboxes overview](https://docs.docker.com/ai/sandboxes/), [architecture](https://docs.docker.com/ai/sandboxes/architecture/) and [security model](https://docs.docker.com/ai/sandboxes/security/) pages, read in November 2026. The architecture and security pages describe local sandboxes; Docker has a separate page comparing local and cloud. Sandscale facts come from sandscale.dev.

## Isolation

**Docker** says “the primary trust boundary is the microVM”. Inside, the agent has full control, including sudo, package installs and its own Docker Engine, with no path to the host’s Docker daemon. Docker lists five layers: hypervisor isolation with a separate kernel per sandbox, network isolation, Docker Engine isolation, workspace isolation and credential isolation.

**Sandscale** gives each agent run its own Firecracker microVM with its own kernel; nothing is shared with the run next to it. The box starts from a template, runs the commands you send, and goes away when you stop it.

Both are VM boundaries. The difference is what crosses them.

## What crosses the boundary

This is where Docker’s design is most interesting, because a local sandbox exists to work on your files.

**Workspace.** In direct mode, your working directory is mounted read-write through a filesystem passthrough, so “the agent edits your working tree in place”. Docker’s security page warns that this includes files that run implicitly later: Git hooks, CI configuration, IDE task configs, `Makefile`, `package.json` scripts. It notes that Git hooks live in `.git/` and do not show up in `git diff`. Clone mode mounts your repository read-only and gives the agent a private clone. A mountless sandbox shares nothing.

**Credentials.** Docker’s host-side proxy injects authentication headers into outbound HTTP requests. The agent sees a sentinel value, and “the raw credential values never enter the VM”.

**Network.** All outbound TCP goes through a proxy on the host and follows a deny-by-default policy. Docker also cautions that “the default allowed domains include broad wildcards”, such as `*.googleapis.com`, and suggests running `sbx policy ls` and removing what you do not need. UDP is blocked unless you enable an experimental feature; ICMP is blocked.

**MCP.** Agents connect to an MCP gateway on the host side. Local stdio MCP servers run on the host, not in the VM, so Docker advises treating them as trusted host integrations.

**Sandscale** has no host to share. Files go in and out through the API (`writeFile`, a project upload, reads back), so nothing the agent writes lands in your working tree until you choose to apply it. The network starts as `none`; `allowlist` uses your organization’s egress allowlist and package registry presets. Secrets come from Vault into the sandbox’s environment in memory and end with the run. They are kept out of prompts, logs, the API’s answer and the audit log, but code inside the box can read them. Docker’s proxy-injection design keeps the credential out of the VM entirely, and if that property matters to you, it is a point in Docker’s favour.

## Lifecycle and persistence

Docker sandboxes “persist until explicitly removed”. Stopping an agent keeps the VM, installed packages, Docker images and files; `sbx rm` deletes it all. That suits a developer who returns to the same environment every day.

Sandscale sandboxes are disposable by default, with a lifetime you set (`timeoutSeconds`, server default one hour). Pause keeps memory and files on every plan, and snapshots let new sandboxes start from a saved point. For a persistent cloud machine, Sandscale has workspaces, which sleep when idle.

## Cost and governance

Docker says the `sbx` CLI and local sandbox compute “are free to use, including for commercial work”. Cloud sandboxes use a pay-as-you-go subscription, and organization-wide control of network, filesystem and MCP policies for local sandboxes is “available on a separate paid subscription”. We have not quoted cloud prices because the pages we read do not list them.

Sandscale bills in awake vCPU-hours on a plan: Free includes 100 a month, Pro ($25 a month billed monthly) 1,500, Team ($48 per member a month billed monthly) 2,000 per member pooled. Paused time and idle time between tool calls do not count. Human approvals, a hash-chained audit log, Vault and DLP on prompts and MCP tool calls are on every plan, and Claude Code can run under your policy through its hooks. Team adds SSO, roles and audit export. See [pricing](https://sandscale.dev/pricing) and [security](https://sandscale.dev/security).

## Which one fits

| Situation | Better fit |
| --- | --- |
| A developer runs Claude Code on their own repo and wants it off the bare host | Docker Sandboxes, local |
| The agent needs its own Docker Engine to build and run containers | Docker Sandboxes (each has an isolated daemon) |
| Credentials must never enter the VM | Docker Sandboxes (host proxy injection) |
| Your service starts many short agent runs from code, each needing a fresh box | Sandscale |
| You need approvals, a hash-chained audit log and DLP across a team, without a separate subscription per feature | Sandscale |
| Agent PRs from CI need to run tests somewhere other than the runner | Sandscale (see [running untrusted PR code](https://sandscale.dev/blog/running-untrusted-pr-code-in-sandboxes)) |

The two also combine: a developer can work in a Docker sandbox locally while the same agent’s automated runs in CI or production go to Sandscale.

Two honest caveats on our side: Sandscale runs in the US (N. Virginia) today, with Europe (Frankfurt) announced and not open yet, and our [service levels page](https://sandscale.dev/legal/service-levels) says there is no availability commitment or service credit yet.

**On this page**

1. Isolation
2. What crosses the boundary
3. Lifecycle and persistence
4. Cost and governance
5. Which one fits

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [November 26, 2026 · **30 questions to ask any agent sandbox provider before you sign up** · A vendor-neutral checklist for choosing where your agents run code: isolation, network, secrets, lifecycle, billing for waiting time, governance, data location, reliability and leaving. With where to find each answer for Sandscale.](https://sandscale.dev/blog/questions-to-ask-an-agent-sandbox-provider)
- [November 26, 2026 · **Agent sandbox glossary: 41 terms in plain English** · Plain definitions for the words that come up when you run AI agent code in isolation: microVM, VMM, KVM, jailer, gVisor, seccomp, namespaces, egress allowlist, lease, snapshot, warm pool, awake vCPU-hour and more.](https://sandscale.dev/blog/agent-sandbox-glossary)

---
Source: https://sandscale.dev/blog/sandscale-vs-docker-sandboxes
