Docker Cloud Sandboxes vs OpenAI Containers
Docker Cloud Sandboxes gives each coding agent its own microVM with Docker inside, for up to 24 hours per run, started from the same sbx CLI you use on your laptop. OpenAI Containers are a tool inside OpenAI's model API: the model runs Python or shell commands in a box without sudo. By default the box expires after 20 minutes without use.
The companies and products
Docker Cloud Sandboxes
Docker Cloud Sandboxes runs Docker's sbx coding-agent microVMs on Docker-managed compute instead of your laptop.
Each sandbox is a microVM with its own Linux kernel and its own Docker Engine. You start it from the same sbx CLI you use locally, or from the Sandboxes API, with Claude Code, Codex and other agents ready to run. You can move a sandbox from your laptop to the cloud and back, publish HTTPS ports and SSH in. It launched on September 24, 2026, and it bills pay-as-you-go on a personal Docker account.
- Launched
- September 24, 2026
- Session length
- 1 hour by default, up to 24 hours from creation; with the always-on entitlement, a restart at expiry keeps memory
- Regions
- Not published
OpenAI Containers
OpenAI Containers are the sandboxes OpenAI runs for its own model tools: Code Interpreter, Hosted Shell and the Agents API's hosted sandbox.
This is a different kind of product from boat: a tool inside OpenAI's model API, not a machine you rent. You create a container through the API, or a Responses call makes one. The model runs Python or shell commands in it on a fixed Debian 12 image without sudo. By default the container expires after 20 minutes without use; the create call can set a different idle time. It is built for apps that already call OpenAI models and want them to run code, read files and make charts without running any servers.
Which use cases each one fits
For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “295th cheapest of 365” means 294 of the other 364 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.
| Use case and its workload | Docker Cloud Sandboxes: price rank | OpenAI Containers: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory needs agents that run for days and by the dozen. Docker ends each run at 24 hours unless the always-on entitlement restarts it, and runs 10 at once by default. Hosted OpenAI containers document no Docker or root and discard files when they expire; the Agents API can drive a sandbox you host. | 295th of 365, with limits $4,928 a month | 357th of 365, with limits $17,371 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An assistant that lives on its machine all month needs a disk that survives. A Docker run ends 24 hours after creation unless the always-on entitlement restarts it. An OpenAI container expires after its idle time (20 minutes by default, settable with expires_after), and its files go with it. | 139th of 361, with limits $5,110 a month | 344th of 361, with limits $13,140 a month | 6th cheapest of 361 $657 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month Short code runs are where both fit best. Docker bills small sandboxes by the second, and OpenAI's runs live inside the model call itself, with no machine to manage. On boat each run counts as a start. | 239th of 336, with limits $233 a month | 198th of 336, with limits $6,000 a month | 189th of 336, with limits $2,000 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month Serving your own users needs many sandboxes and a way in. Docker allows 10 at once by default. OpenAI documents no inbound ports for hosted containers. boat gives HTTPS URLs on up to 50 ports. | 266th of 349, with limits $1,628 a month | 349th of 349, with limits $3,780 a month | 3rd cheapest of 349 $209 a month |
| RL rollouts 1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month | 122nd of 349, with limits $7,000 a month | 195th of 349, with limits $30,000 a month | 39th of 349, with limits $2,000 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month | 291st of 359, with limits $1,400 a month | 355th of 359, with limits $5,760 a month | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month CI needs Docker, root and open internet. Docker has all three. Hosted OpenAI containers document no Docker or root, and Code Interpreter has no outbound access until an admin allows domains. boat adds /dev/kvm for Android and VM builds. | 300th of 374, with limits $672 a month | 347th of 374, with limits $1,728 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box you keep all month needs long sessions and a disk that stays. Docker keeps the disk but ends a run at 24 hours unless the always-on entitlement restarts it. Hosted OpenAI containers discard files when they expire. | 140th of 371, with limits $204 a month | 365th of 371, with limits $1,051 a month | 19th cheapest of 371 $26 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month OpenAI's Agents API has a hosted browser for computer use. Docker has no display server; its Playwright kit adds headless Chromium. boat streams a full 60 fps desktop with Chrome. | 298th of 367, with limits $1,400 a month | 353rd of 367, with limits $5,280 a month | 7th cheapest of 367 $200 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month Docker's official Playwright kit adds headless Chromium, OpenAI's hosted browser is driven by its own Codex harness, and boat runs Chrome you can drive with any agent. | 189th of 356, with limits $700 a month | 335th of 356, with limits $1,440 a month | 7th cheapest of 356 $200 a month |
| Scraping & bots (startup scale) 50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month | 192nd of 343, with limits $350 a month | 334th of 343, with limits $1,755 a month | 6th cheapest of 343 $90 a month |
| Mass scraping & bots (undetectable) 1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month | 190th of 327, with limits $7,000 a month | 307th of 327, with limits $35,100 a month | 73rd of 327, with limits $1,800 a month |
| Parallel red teaming 200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month | 114th of 351, with limits $350 a month | 310th of 351, with limits $870 a month | 3rd cheapest of 351 $200 a month |
| GPU eval jobs 10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
| macOS agents 5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Docker Cloud Sandboxes | OpenAI Containers | boat |
|---|---|---|---|
| What it is | A microVM you start, stop and SSH into from the sbx CLI | A sandbox tool the model uses inside OpenAI's API | A cloud VM you create, keep, stop and reach from outside |
| Isolation | MicroVM with its own Linux kernel and Docker Engine; hypervisor not named | A fully sandboxed virtual machine; hypervisor not named | Full VM with its own kernel, on hosts dedicated to boat; vCPUs are shared |
| Root and Docker inside | Its own Docker Engine; agent runs as a non-root user with sudo | Commands do not run with sudo; Docker not documented; the Agents API can drive a self-hosted sandbox you control | Root, systemd and Docker on every sandbox |
| Nested virtualization | Not documented | Not documented | Yes, /dev/kvm for Android emulators and VMs |
| Machine size | 1 vCPU / 2 GiB up to 16 vCPU / 32 GiB, amd64 or arm64 by account | 1, 4, 16 or 64 GB of memory; vCPU not published. Agents API sandboxes up to 4 vCPU / 16 GB | 4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB (needs the $100 plan) |
| Session length | 1 hour by default, at most 24 hours per run; the always-on entitlement restarts it at expiry with memory kept | Expires after 20 minutes without use by default; expires_after can set another idle time, no maximum published | Auto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan |
| Files after the session | Stop keeps memory and files | Data is discarded when the container expires; Agents API files in /workspace/outputs stay downloadable | Disk saved every minute and at each stop, kept at least 14 days; a resume is like a reboot |
| Fork | Snapshot a running sandbox with disk or disk and memory, restore it as a new one | No fork call documented; you create a new container and upload the same files | Fork a running sandbox from its last 1-minute disk snapshot |
| Sandboxes at once | 10 by default; higher quotas through Docker, not self-serve | Not published | 100 on the $20 plan, up to 2,000 on the $2,000 plan; starts capped per plan (12 a minute and 200 a day on $20) |
| Inbound access | Public HTTPS URL per published port, not protected by Docker sign-in; SSH | No inbound ports documented for hosted containers; you reach them through the API | SSH, HTTPS URLs for up to 50 ports, token-gated by default; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound internet | Allow and deny rules by host, with allow-all, balanced and deny-all presets | Code Interpreter and Hosted Shell: off until an admin sets an org allowlist; Agents API sandboxes: on, can be limited to 1 to 100 hosts | Open internet, no provider-side allowlist |
| Keeping API keys out of the sandbox | Cloud proxy sets the auth header; the sandbox sees a placeholder | domain_secrets: a sidecar adds the real header for approved domains | Optional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs |
| Coding agents | Claude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI; no agent prompt or events API | Agents API (beta) drives a managed Codex harness with steering, events and webhooks | Seven agents installed, with a prompt, steer and events API to drive them from outside |
| Desktop and computer use | No display server; headless Chromium through Docker's official Playwright kit | Hosted browser for the Agents API computer_use tool | 1920x1080, 60 fps Linux desktop with Chrome and computer-use tools |
Every feature Battleships tracks (43)
| Feature | Docker Cloud Sandboxes | OpenAI Containers | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | Yes | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | No documented way | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | Yes | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | No documented way | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | No documented way | Yes | No documented way |
| Wake on request | Not published | No documented way | No documented way |
| HTTPS preview URLs | Yes | No documented way | Yes |
| Raw TCP inbound | Not published | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | Yes | Yes |
| Secret proxy for any API | Yes | Yes | Yes |
| Preinstalled agents | Yes | No documented way | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | Yes | No documented way | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | Yes | No documented way | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | No documented way | Yes | No documented way |
| HIPAA | No documented way | Yes | No documented way |
| EU data residency | Not published | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Docker Cloud Sandboxes nor OpenAI Containers is in the public benchmarks we use, so we cannot say which is faster. OpenAI does not publish the vCPU behind each container size. For reference, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15 in StarSling's run of 3 October 2026 (run 37073680030). Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure.
V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Docker Cloud Sandboxes and OpenAI Containers are not in the public benchmarks we use, so we cannot say which is faster.
Pricing in five scenarios
Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.
| Scenario | Docker Cloud Sandboxes, a month | OpenAI Containers, a month | boat, a month |
|---|---|---|---|
| One coding agent, workdays 4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days | $49 · Docker Agentic Platform (pay-as-you-go) | $228 · API pay as you go · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $204 · Docker Agentic Platform (pay-as-you-go) · with limits | $1,051 · API pay as you go · with limits | $26 · $20/mo |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $2,464 · Docker Agentic Platform (pay-as-you-go) · with limits | $11,405 · API pay as you go · with limits | $317 · $20/mo × 3 seats |
| Sandboxes for your users 2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once | $700 · Docker Agentic Platform (pay-as-you-go) · with limits | $1,620 · API pay as you go · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $1,400 · Docker Agentic Platform (pay-as-you-go) · with limits | $6,000 · API pay as you go · with limits | $8,800 · $2000/mo · with limits |
Docker Cloud Sandboxes: Docker bills per second for the size you pick, from $0.07 an hour for 1 vCPU / 2 GiB to $1.12 an hour for 16 vCPU / 32 GiB, with no monthly fee. A 4 vCPU / 8 GiB sandbox costs $0.28 an hour. A stopped sandbox has no compute charge, and model calls are billed by your model provider.
OpenAI Containers: OpenAI bills each container session by the minute for the memory size you pick, with a 5-minute minimum, and model tokens are billed on top. There is no plan fee. The scenarios use the 16 GB size ($1.44 an hour) for 8 GB needs and the 4 GB size for 4 GB needs, since vCPU is not published.
OpenAI Containers: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge and keeps its disk for at least 14 days, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.
Limits in those scenarios
Docker fits one coding agent on workdays. Its 24-hour run limit rules out an agent that never stops unless the always-on entitlement restarts it, and its default of 10 sandboxes at once rules out 50 agents, 300 user sandboxes and a 1,000-job burst unless Docker raises your quota. Hosted OpenAI Containers fit none of the five scenarios as written: files go when a container expires, Docker and root are not documented, Code Interpreter has no internet until an admin sets an allowlist, and no vCPU or concurrency limit is published. boat fits four of five: for 1,000 short jobs at once, the $2,000 plan charges for starts above 90 a minute and refuses them above 270. boat's auto-stop defaults to 1 hour, and a resume is like a reboot.
| Scenario | Docker Cloud Sandboxes | OpenAI Containers | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use Docker Cloud Sandboxes when
you already run agents in sbx on your laptop and want a few of them to keep going in the cloud, with Docker inside and memory kept across stops.
- A real machine with Docker inside. For coding agents that build and test: each sandbox has its own kernel, its own Docker Engine, sudo and SSH.
- Stop and fork with memory. For agents that pause between steps: a stopped sandbox comes back with memory and processes, and a running one can be snapshotted with its memory.
- The same sandbox on your laptop. If you already run sbx locally, the cloud is the same microVM and CLI, and you can move work between them.
Use OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of code or shell commands on files you give it.
- Built into the model call. If your app already calls OpenAI models, one tool line in a request gives the model a place to run code, with no plan fee.
- Locked-down network by default. If code must only reach chosen hosts, Code Interpreter and Hosted Shell have no outbound access until an admin allows domains.
- US or EU processing and your own compute. Code Interpreter can process data in the US or Europe, and the Agents API can drive a sandbox you host.
Where boat fits
If your agents run for days, by the dozen, or need a screen, look at boat. Docker caps one run at 24 hours and 10 at once by default. Hosted OpenAI containers discard their files when they expire and document no Docker or root. boat gives each agent a full VM with no session cap once auto-stop is off on a paid plan. boat has limits too: start limits per plan and no region outside Germany, Finland and France.
A disk that stays
A multi-day agent on Docker needs the always-on entitlement, or your code resumes it before 24 hours. On OpenAI, files go when the container expires. boat saves the disk every minute and keeps a stopped disk at least 14 days; a resume is like a reboot.
A whole machine, screen included
Docker documents no /dev/kvm or display server, and hosted OpenAI containers document no sudo or Docker. boat has root, systemd, Docker, /dev/kvm for Android emulators and a 60 fps desktop with Chrome.
Drive agents inside from outside
Docker starts agents from the sbx CLI, with no agent events API. OpenAI's Agents API drives its own Codex harness. boat installs seven agents and drives any of them through one prompt, steer and events API.
Use boat when your agents run for days or by the dozen, need root, Docker, Android emulators or a desktop, or have to be driven from your own app through an API. Compare it one to one: boat vs Docker Cloud Sandboxes and boat vs OpenAI Containers.
boat's own limits
- Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
- Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
- A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
- Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
- boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
- Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
- Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
- Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source
Questions people ask
Is Docker Cloud Sandboxes cheaper than OpenAI Containers?
For one coding agent on workdays, Docker comes to $49 a month against $228 on OpenAI's 16 GB size, and OpenAI also bills model tokens on top. boat comes to $20 a month for the same 4 vCPU / 8 GB machine. For a few short code runs a month, OpenAI, with no plan fee, can cost less than boat.
Which is faster?
We cannot say: neither is in the public benchmarks we use, and OpenAI does not publish the vCPU behind its containers. boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on a Ryzen 9 9950X host.
Can OpenAI Containers run Docker?
Docker is not documented for hosted containers, and hosted shell commands do not run with sudo. You can connect the Agents API to a self-hosted sandbox where you control the machine. Docker Cloud Sandboxes give each sandbox its own Docker Engine, and boat gives root, systemd, Docker and /dev/kvm.
How long can a sandbox run on each?
A Docker cloud sandbox runs 1 hour by default and at most 24 hours per run; the always-on entitlement restarts it at expiry. An OpenAI container expires after 20 minutes without use by default, and expires_after can set another idle time; its data is discarded at expiry. boat has no session cap once auto-stop is off on a paid plan (the default is 1 hour).
Can I open a web app running inside the sandbox?
On Docker, yes: each published port gets a public HTTPS URL, and you can SSH in. OpenAI documents no ports, URLs or SSH for hosted containers. boat gives HTTPS URLs for up to 50 ports, token-gated by default, and SSH.
Can I use OpenAI models with Docker Cloud Sandboxes or boat?
Yes. Both run Codex inside the sandbox. Docker's cloud proxy keeps the real key outside for built-in AI services. On boat, the optional paid credentials proxy does the same for supported model providers and custom HTTPS APIs.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Docker Cloud Sandboxes
- boat vs OpenAI Containers
- E2B vs Docker Cloud Sandboxes
- Daytona vs Docker Cloud Sandboxes
- Modal vs Docker Cloud Sandboxes
- Vercel Sandbox vs Docker Cloud Sandboxes
- Cloudflare Sandbox vs Docker Cloud Sandboxes
- Blaxel vs Docker Cloud Sandboxes
- Runloop vs Docker Cloud Sandboxes
- Tensorlake vs Docker Cloud Sandboxes
- Morph Cloud vs Docker Cloud Sandboxes
- CodeSandbox SDK vs Docker Cloud Sandboxes