# Docker Sandboxes vs InstaVM

> Docker Sandboxes scores 62.1 (B) to InstaVM's 53.4 (D) for code sandboxes. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm
- Markdown: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm.md (~5,050 tokens)
- Slim: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm.min.md (~1,030 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-18

Docker Sandboxes scores 62.1 (B) on agent readiness against InstaVM's 53.4 (D), and leads in 5 of 7 scored categories. InstaVM leads on reliability and payments & pricing. Both do code sandboxes.

- Docker Sandboxes: grade B, 62.1/100, rank #698 of 1557. Markdown https://www.anchorterminal.com/tools/docker-sandboxes.md · JSON https://www.anchorterminal.com/api/v1/tools/docker-sandboxes.json
- InstaVM: grade D, 53.4/100, rank #1045 of 1557. Markdown https://www.anchorterminal.com/tools/instavm.md · JSON https://www.anchorterminal.com/api/v1/tools/instavm.json
- Best code execution sandboxes for AI agents: https://www.anchorterminal.com/best/code-sandboxes/index.md
- All 325 sandboxes comparisons: https://www.anchorterminal.com/compare/code-sandboxes/index.md

## Which one, for what

### Docker Sandboxes (B)

Good for: Running coding agents such as Claude Code or Codex in a disposable cloud VM, or the same kit locally for free.

Ahead on:
- Schema & documentation, 90 against 66
- Agent ergonomics, 83 against 51
- Security & auth, 69 against 41
- Maintenance & community, 71 against 35
- Transparency & trust, 77 against 57

Watch for: Docker Agentic Platform, needed for every cloud interface, is experimental, and no SLA was found

### InstaVM (D)

Good for: Hosted microVM sandboxes with browser, desktop, OCI images, clones and public shares.

Ahead on:
- Reliability, 77 against 45
- Payments & pricing, 30 against 0

Also in its favour:
- A hosted endpoint, with nothing to install

Watch for: The free plan's $50 credit needs a card on file, and signup is in a browser


## Why the edge

### Maintenance & community: Docker Sandboxes +36

- Docker Sandboxes (71): `sbx` 0.54.0 on 16 November 2026, per the dated release notes (30). Stable releases 0.51.0 on 3 November, 0.53.0 on 11 November and 0.54.0 on 16 November, with nightly builds tagged daily in docker/sbx-releases (20). Closed service with dated release notes and GitHub issues on docker/sbx-releases as the feedback channel. Issue response times could not be read (8). One official SDK, `@docker/sandboxes` for TypeScript, plus the CLI (10). Source and CI are not public, so package health is unchecked (3). 30+20+8+10+3 = 71.
- InstaVM (35): Closed service lines. The latest dated change found is Python SDK 0.26.1 on 15 July 2026, 114 days before the check, and the site changelog's only entry is 11 July (10). No SDK release in the 90 days to 6 November (0). A public changelog, support email and Discord, with no reply times seen (8 of 15). Official Python and JavaScript SDKs, last released in July and May 2026 (12 of 15). Package health of the SDK repositories was not read (5 of 10). Total 35.

### Reliability: InstaVM +32

- Docker Sandboxes (45): Hosted lines, for the cloud Sandboxes API. dockerstatus.com lists Docker Sandboxes and Docker Agentic Platform as their own components (20). Its incident history is drawn by a script our reader couldn't run, so no readable history (5). Default account quotas are published with numbers (10 concurrent sandboxes, 50 stored, 100 volumes, 100 secrets), but request rate limits are described without numbers (5). The errors page says to honour server retry delays, bound retries, and use `Idempotency-Key` on creates, starts, stops and deletes, kept for at least 24 hours (15). No SLA found in the docs (0). Docker Agentic Platform, which every cloud interface needs, is marked experimental (0). 20+5+5+15+0+0 = 45.
- InstaVM (77): Hosted lines. Better Stack status page with four components, including the public API (20). The incident history shows no incidents for September, October or November 2026 (30). No rate limits with numbers found; Pro promises higher limits without figures (0). The Python SDK has a RateLimitError and an example retry loop with exponential backoff, but no 429 or Retry-After is documented, and there is no idempotency guidance (7 of 15). The terms commit to 99.9% monthly uptime with service credits, and Pro lists 99.9% (10). No beta or preview label on the API (10). Total 77.

### Agent ergonomics: Docker Sandboxes +32

- Docker Sandboxes (83): Lists take `pageSize` and `pageToken`, and filters and ordering are given per operation, so responses can be kept small (15). Pagination and a `filter` parameter of exact-match terms on list operations (18). Errors carry a stable `code`, a message and typed `google.rpc.ErrorInfo` details, with a documented action for each of eight codes (20). `Idempotency-Key` on mutations, `If-Match` etags on updates and deletes, and a documented recovery path for lost responses and failed waits (20). Kit launch helpers default to the `small` size, but the SDK is TypeScript only, with the `sbx` CLI and plain REST beside it (10). 15+18+20+20+10 = 83.
- InstaVM (51): 30 operations take limit, offset, cursor or page parameters, with no field selection found (12 of 25). Listing endpoints page, with little filtering (10 of 20). The SDK maps failures to typed exceptions such as AuthenticationError, QuotaExceededError and RateLimitError, but the HTTP error bodies are undocumented (8 of 20). One operation takes an idempotency parameter, and snapshots and clones make work repeatable, with no safe-retry guidance (6 of 20). `client.execute(code=..., language=...)` needs two arguments, with Python and JavaScript SDKs (15). Total 51.

### Payments & pricing: InstaVM +30

- Docker Sandboxes (0): No x402, MPP or L402 (0). Compute is metered per second by size, but neither the docs, the Docker Sandboxes product page nor docker.com/pricing publishes a unit price. The plans page says usage and pricing show on the Usage & billing page after sign-in (0). Signup to Docker Agentic Platform asks for billing and payment details at checkout, with a one-time promotional credit after, so there is no card-free start for cloud sandboxes (0). A person subscribes in a browser and creates the access token (0). The free local `sbx` CLI is not the graded surface. 0+0+0+0 = 0.
- InstaVM (30): No x402, MPP or L402 (0 of 40). Per-second vCPU, memory and storage prices are published without a login (20). The free plan's $50 credit needs a card on file (0). Signup and key minting are in a browser dashboard (0). Total 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

### Security & auth: Docker Sandboxes +28

- Docker Sandboxes (69): A Docker personal access token with the `sandbox:use` scope, exchanged by the SDK for short-lived access tokens, or browser device sign-in, with a named permission checked per operation. No PAT expiry or rotation guidance was read (25). Account and per-sandbox network policy with a deny-all preset, deny rules winning, and etags required on updates and deletes. Policy presets let a sandbox reach any host when allow-all or Open is chosen (14). Credentials are injected by a proxy outside the VM, so an agent inside never sees raw keys, and egress is limited to allowed destinations (12). Network policy decision logs per sandbox through `/v1/policy-logs`. No account audit log for cloud sandboxes found (8). SECURITY.md in docker/sbx-releases sends reports to security@docker.com with acknowledgement within 72 hours, and Docker's security.txt is valid per the docker-agent check of 1 November. Bug bounty and certifications unchecked (10). 25+14+12+8+10 = 69.
- InstaVM (41): Plain API keys in a header, with API endpoints to create, list and delete them and no scopes found (20 of 30). Egress policies per session or VM can block all outbound traffic or allow named domains and CIDRs, but llms.txt describes full network access as the default (8 of 20). No guidance on untrusted output from executed code or browser sessions (3 of 15). An Audit Logs endpoint group exists in the API reference (10 of 15). No security.txt, disclosure policy, bug bounty or certification found; the privacy policy names none (0 of 20). Total 41.

### Schema & documentation: Docker Sandboxes +24

- Docker Sandboxes (90): An OpenAPI 3.2 document for the Sandboxes API with 42 paths and 58 operations, each with a description, in the docs repository and linked from the API reference (25). The docs build emits llms.txt, llms-full.txt and a Markdown copy of every page, per the repository's Hugo configuration (10). Operation descriptions are short and generated in form ("List lists directory entries by path ascending"), and the concepts and cookbook pages explain when to use kits, images, snapshots and volumes (12). Typed inputs with 95 enums, required fields and `additionalProperties` constraints (13). 36 cookbook recipes in TypeScript and an errors page with a code table (15). Paths are versioned under `/v1`, and dated release notes cover `sbx` and the Agentic Platform (15). 25+10+12+13+15+15 = 90.
- InstaVM (66): A public OpenAPI 3.1 spec with 229 operations (25). llms.txt at instavm.io (10). Only 93 of 229 operations have a description, and those read as short summaries without when-not-to-use guidance (8 of 20). FastAPI-generated request schemas with typed fields and required lists (10 of 15). Docs carry code examples for each SDK area, but only 422 validation errors appear in the spec and no error-code reference was found (6 of 15). Paths sit under /v1 and an SDK changelog exists, but the site changelog has one entry, of 11 July 2026 (7 of 15). Total 66.

## Score by category

| Category | Weight | Docker Sandboxes | InstaVM | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 45 | 77 | InstaVM +32 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 66 | Docker Sandboxes +24 |
| Agent ergonomics | 13% | 83 | 51 | Docker Sandboxes +32 |
| Security & auth | 14% | 69 | 41 | Docker Sandboxes +28 |
| Payments & pricing | 10% | 0 | 30 | InstaVM +30 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 71 | 35 | Docker Sandboxes +36 |
| Transparency & trust | 7% | 77 | 57 | Docker Sandboxes +20 |
| Negative events | ≤15 | 0 | 0 | |
| **Total** | | **62.1 · B** | **53.4 · D** | |

## Facts side by side

| Fact | Docker Sandboxes | InstaVM |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | Docker | Checksum Labs, Inc. |
| Hosted endpoint | no (local only) | `https://api.instavm.io` |
| Transports | HTTP | HTTP |
| Auth | OAuth or key | API key |
| Pricing | Pay per use | Pay per use |
| x402 | no | no |
| Licence | Proprietary. The `sbx` binaries in docker/sbx-releases are under a licence that reserves all rights to Docker Inc., and cloud sandboxes run under a Docker Agentic Platform subscription | none |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-11-16 | 2026-07-15 |
| Terms last updated | 2026-08-26 | 2026-01-26 |
| Privacy policy last updated | 2026-08-26 | 2026-01-26 |
| Customer content may train models | not found in the text | yes |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | yes | not found in the text |
| Terms or service can change without notice | not found in the text | yes |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 527 stars | 57 npm/wk, 370 PyPI/wk |

## How the scores have moved

### Docker Sandboxes

- +4.7 on 18 November 2026 (C to B): terms, new evidence

### InstaVM

- +1.3 on 13 November 2026: checklist

## Verdicts

**Docker Sandboxes.** The cloud Sandboxes API has a public OpenAPI contract, idempotency keys, etag checks and credential injection that keeps keys out of the VM. Cloud access needs a paid Docker Agentic Platform subscription that is still experimental, and the docs publish no unit prices.

**InstaVM.** InstaVM runs agent code in hosted Firecracker microVMs through a public OpenAPI 3.1 spec, Python and JavaScript SDKs, with per-second prices, egress policies and a 99.9% uptime commitment in its terms. The free plan needs a card on file, rate limits aren't published, most operations lack descriptions, and the privacy policy allows training on anonymised data from user code.

## Before you call either

### Docker Sandboxes

1. Create the Docker personal access token with Allow Cloud Sandboxes access. Registry permissions alone don't grant the `sandbox:use` scope
2. Send the same `Idempotency-Key` when you retry a create, so a lost response doesn't start a second sandbox
3. Pass the etag from your latest read in `If-Match`. A stale etag returns 412 and a missing one 428
4. Set `--ttl` and `--on-timeout` at creation. The default deletes sandboxes that can't be resumed after one hour
5. Set the account network policy to deny-all and add allow rules per sandbox, since allow-all lets the sandbox reach any host

### InstaVM

1. Send the key in the `X-API-Key` header to https://api.instavm.io; never put it in code run inside the VM
2. Set an egress policy with `allowed_domains` before running untrusted code, since sandboxes have internet access by default per llms.txt
3. Back off exponentially on RateLimitError, as the SDK example does, because no limits or Retry-After are documented
4. Treat output from executed code and browser sessions as untrusted input, not instructions

## Questions

### Which is better for AI agents, Docker Sandboxes or InstaVM?

Docker Sandboxes scores 62.1 (B) on agent readiness against InstaVM's 53.4 (D), and leads in 5 of 7 scored categories. InstaVM leads on reliability and payments & pricing.

### Do Docker Sandboxes and InstaVM need an API key?

Docker Sandboxes takes an API key or an OAuth sign-in. InstaVM needs an API key.

### Can an agent call Docker Sandboxes and InstaVM without installing anything?

No hosted endpoint is listed for Docker Sandboxes. InstaVM has a hosted endpoint at https://api.instavm.io.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm.json, and with the fewest tokens: https://www.anchorterminal.com/compare/docker-sandboxes-vs-instavm.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "docker-sandboxes", "b": "instavm"}`. From a terminal: `anchor compare docker-sandboxes instavm`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/docker-sandboxes.json and https://www.anchorterminal.com/api/v1/tools/instavm.json

## Other comparisons with Docker Sandboxes or InstaVM

- [Amazon Bedrock AgentCore Code Interpreter vs Docker Sandboxes](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-docker-sandboxes.md)
- [Amazon Bedrock AgentCore Code Interpreter vs InstaVM](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-instavm.md)
- [Blaxel Sandboxes vs Docker Sandboxes](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-docker-sandboxes.md)
- [Blaxel Sandboxes vs InstaVM](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-instavm.md)
- [boat vs Docker Sandboxes](https://www.anchorterminal.com/compare/boat-vs-docker-sandboxes.md)
- [boat vs InstaVM](https://www.anchorterminal.com/compare/boat-vs-instavm.md)
- [Celesto (formerly SmolVM) vs Docker Sandboxes](https://www.anchorterminal.com/compare/celesto-vs-docker-sandboxes.md)
- [Celesto (formerly SmolVM) vs InstaVM](https://www.anchorterminal.com/compare/celesto-vs-instavm.md)
- [Cloudflare Sandbox SDK vs Docker Sandboxes](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-docker-sandboxes.md)
- [Cloudflare Sandbox SDK vs InstaVM](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-instavm.md)
- [Daytona vs Docker Sandboxes](https://www.anchorterminal.com/compare/daytona-vs-docker-sandboxes.md)
- [Daytona vs InstaVM](https://www.anchorterminal.com/compare/daytona-vs-instavm.md)
- [Deno Sandbox vs Docker Sandboxes](https://www.anchorterminal.com/compare/deno-sandbox-vs-docker-sandboxes.md)
- [Deno Sandbox vs InstaVM](https://www.anchorterminal.com/compare/deno-sandbox-vs-instavm.md)
- [DigitalOcean Managed Agents vs Docker Sandboxes](https://www.anchorterminal.com/compare/digitalocean-managed-agents-vs-docker-sandboxes.md)
- [DigitalOcean Managed Agents vs InstaVM](https://www.anchorterminal.com/compare/digitalocean-managed-agents-vs-instavm.md)
- [Docker Sandboxes vs E2B](https://www.anchorterminal.com/compare/docker-sandboxes-vs-e2b.md)
- [Docker Sandboxes vs Freestyle](https://www.anchorterminal.com/compare/docker-sandboxes-vs-freestyle.md)
- [Docker Sandboxes vs Maritime](https://www.anchorterminal.com/compare/docker-sandboxes-vs-maritime.md)
- [Docker Sandboxes vs Microsoft Execution Containers](https://www.anchorterminal.com/compare/docker-sandboxes-vs-microsoft-execution-containers.md)
- [Docker Sandboxes vs Modal Sandboxes](https://www.anchorterminal.com/compare/docker-sandboxes-vs-modal-sandboxes.md)
- [Docker Sandboxes vs Morph Cloud](https://www.anchorterminal.com/compare/docker-sandboxes-vs-morph-cloud.md)
- [Docker Sandboxes vs Offscreen](https://www.anchorterminal.com/compare/docker-sandboxes-vs-offscreen.md)
- [Docker Sandboxes vs SPACE](https://www.anchorterminal.com/compare/docker-sandboxes-vs-perplexity-space.md)
- [Docker Sandboxes vs Render Sandboxes](https://www.anchorterminal.com/compare/docker-sandboxes-vs-render-sandboxes.md)
- [Docker Sandboxes vs Runloop Devboxes](https://www.anchorterminal.com/compare/docker-sandboxes-vs-runloop.md)
- [Docker Sandboxes vs Sandbox0](https://www.anchorterminal.com/compare/docker-sandboxes-vs-sandbox0.md)
- [Docker Sandboxes vs Sprites](https://www.anchorterminal.com/compare/docker-sandboxes-vs-sprites.md)
- [Docker Sandboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/docker-sandboxes-vs-together-code-sandbox.md)
- [Docker Sandboxes vs Vercel Sandbox](https://www.anchorterminal.com/compare/docker-sandboxes-vs-vercel-sandbox.md)
- [E2B vs InstaVM](https://www.anchorterminal.com/compare/e2b-vs-instavm.md)
- [Freestyle vs InstaVM](https://www.anchorterminal.com/compare/freestyle-vs-instavm.md)
- [InstaVM vs Maritime](https://www.anchorterminal.com/compare/instavm-vs-maritime.md)
- [InstaVM vs Microsoft Execution Containers](https://www.anchorterminal.com/compare/instavm-vs-microsoft-execution-containers.md)
- [InstaVM vs Modal Sandboxes](https://www.anchorterminal.com/compare/instavm-vs-modal-sandboxes.md)
- [InstaVM vs Morph Cloud](https://www.anchorterminal.com/compare/instavm-vs-morph-cloud.md)
- [InstaVM vs Offscreen](https://www.anchorterminal.com/compare/instavm-vs-offscreen.md)
- [InstaVM vs SPACE](https://www.anchorterminal.com/compare/instavm-vs-perplexity-space.md)
- [InstaVM vs Render Sandboxes](https://www.anchorterminal.com/compare/instavm-vs-render-sandboxes.md)
- [InstaVM vs Runloop Devboxes](https://www.anchorterminal.com/compare/instavm-vs-runloop.md)
- [InstaVM vs Sandbox0](https://www.anchorterminal.com/compare/instavm-vs-sandbox0.md)
- [InstaVM vs Sprites](https://www.anchorterminal.com/compare/instavm-vs-sprites.md)
- [InstaVM vs Together Code Sandbox](https://www.anchorterminal.com/compare/instavm-vs-together-code-sandbox.md)
- [InstaVM vs Vercel Sandbox](https://www.anchorterminal.com/compare/instavm-vs-vercel-sandbox.md)
- [Agent 37 Cloud vs Docker Sandboxes](https://www.anchorterminal.com/compare/agent37-vs-docker-sandboxes.md)
- [Agent 37 Cloud vs InstaVM](https://www.anchorterminal.com/compare/agent37-vs-instavm.md)
- [DeltaBox Lite vs Docker Sandboxes](https://www.anchorterminal.com/compare/deltabox-lite-vs-docker-sandboxes.md)
- [DeltaBox Lite vs InstaVM](https://www.anchorterminal.com/compare/deltabox-lite-vs-instavm.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
