GitHub Codespaces vs Docker Cloud Sandboxes
GitHub Codespaces gives a developer a ready VS Code environment for a GitHub repository. It stops after 12 hours at most. Docker Cloud Sandboxes give each coding agent its own microVM with Docker inside, started from the same sbx CLI as on your laptop. One run ends 24 hours after creation, and Docker's always-on entitlement restarts it with memory kept.
The companies and products
GitHub Codespaces
GitHub Codespaces is GitHub's cloud development environment: a ready-to-code Linux machine for a repository, opened in the browser, VS Code or the GitHub CLI.
Codespaces is a different kind of product from boat: a dev environment for people who work on a GitHub repository, not a sandbox API for agents. Each codespace is a Docker container built from the repo's dev container config. It runs on its own newly built VM on Azure, with 2 to 32 cores. It is built for developers and teams who want every contributor to start from the same setup, with prebuilds, port forwarding and GitHub billing.
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
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. “290th cheapest of 365” means 289 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 | GitHub Codespaces: price rank | Docker Cloud Sandboxes: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A codespace stops after 12 hours at most. A Docker run ends 24 hours after creation, and Docker allows 10 sandboxes at once by default. boat has /dev/kvm and no session cap once auto-stop is off on a paid plan (default 1 hour). | 290th of 365, with limits $4,618 a month | 295th of 365, with limits $4,928 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB A codespace stops after 12 hours and its processes end. Docker's always-on entitlement restarts a sandbox at 24 hours with memory kept. On boat, turn auto-stop off on a paid plan and the sandbox runs until you stop it. | 320th of 361, with limits $6,970 a month | 139th of 361, with limits $5,110 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 Docker fits short code runs better than Codespaces: small microVMs billed per second, 10 at once by default. Each codespace builds a dev container on a new VM, which prebuilds speed up. On boat each start counts against the plan's start cap. | 283rd of 336, with limits $619 a month | 239th of 336, with limits $233 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 machines at once. Docker allows 10 by default, and higher quotas go through Docker. GitHub does not publish its limit. boat runs 100 to 2,000 at once by plan, and each start counts against the plan's start cap. | 276th of 349, with limits $1,964 a month | 266th of 349, with limits $1,628 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 | 276th of 349, with limits $9,489 a month | 122nd of 349, with limits $7,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 | 295th of 359, with limits $1,519 a month | 291st of 359, with limits $1,400 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 Android or VM image builds need /dev/kvm. Neither Codespaces nor Docker documents it; boat has it on every sandbox. Docker can snapshot a warm sandbox and restore copies; Codespaces has no copy endpoint. | 317th of 374, with limits $909 a month | 300th of 374, with limits $672 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Codespaces is the more polished editor for a person, and Docker the closer fit for an agent. A codespace stops after 12 hours; a Docker run needs its always-on entitlement past 24 hours. A boat sandbox runs all month once auto-stop is off. | 144th of 371, with limits $270 a month | 140th of 371, with limits $204 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 A codespace can add a basic noVNC desktop through the desktop-lite add-on, which you configure. Docker has no display server; its official Playwright kit adds headless Chromium. boat streams a desktop and Chrome at 60 fps. | 297th of 367, with limits $1,367 a month | 298th of 367, with limits $1,400 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, with no screen to watch. A codespace can run a browser in a noVNC desktop that you set up. boat has a desktop with Chrome that you can watch and take over. | 306th of 356, with limits $678 a month | 189th of 356, with limits $700 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 | 324th of 343, with limits $922 a month | 192nd of 343, with limits $350 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 | 279th of 327, with limits $18,637 a month | 190th of 327, with limits $7,000 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 | 284th of 351, with limits $445 a month | 114th of 351, with limits $350 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 | GitHub Codespaces | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Isolation | A Docker container on its own newly built VM, with its own virtual network | MicroVM with its own Linux kernel and its own Docker Engine; hypervisor not named | Full VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs |
| How long it runs | Stops after 30 idle minutes by default and after 12 hours at most, even while in use | 1 hour by default, at most 24 hours from creation; with the always-on entitlement, a restart at expiry keeps memory | No cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days |
| Machines at once | Limits exist but GitHub does not publish them | 10 by default; higher quotas through Docker, not self-serve | 100 on the $20 plan, up to 2,000 on the $2,000 plan, self-serve; each plan also caps starts per minute, hour and day |
| Stop and resume | Files kept, storage billed while it exists; processes end; stopped codespaces are deleted after 30 days by default | Stop keeps memory and files and costs nothing; resume picks up where it left off | Disk saved every minute and at each stop; resume is like a reboot; disk kept at least 14 days, longer with a saved snapshot |
| Fork and snapshots | No copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuild | Snapshot a running sandbox with disk or disk and memory, then restore it as a new sandbox | Fork a running sandbox from its last 1-minute disk snapshot; writes from the last minute or so can be missing; saved snapshots as templates |
| Docker inside | Docker and sudo inside the dev container, through a dev container feature | Its own Docker Engine; the agent runs as a non-root user with sudo | Docker, root and systemd on every sandbox |
| Nested virtualization | /dev/kvm is not documented | Not documented | /dev/kvm on every sandbox for Android emulators and VMs |
| Desktop and browser | VS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite add-on, which you configure | No display server; headless Chromium through Docker's official Playwright kit | Built-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents; no GPU |
| Coding agents | GitHub Copilot as a VS Code extension; other agents you install and run yourself | Claude Code, Codex, Copilot, OpenCode and more, run from the sbx CLI; the API runs processes but has no agent prompt or events API | Seven harnesses installed, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets are copied into the codespace as environment variables | Cloud proxy sets the auth header for built-in AI services and custom hosts; the sandbox sees a placeholder | Optional proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs; other secrets still enter the sandbox |
| Reaching the sandbox | A URL per forwarded port, private, organization or public; SSH and CLI tunnels; no public IP | Public HTTPS URL per published port; not a TCP tunnel; SSH with Docker-issued certificates | Up to 50 HTTPS URLs per sandbox, token-protected by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound rules | Open internet; GitHub says there is no way to restrict it | Allow and deny rules by host, with allow-all, balanced and deny-all presets | Open internet; no provider-side allowlist |
| Laptop and cloud | Cloud only; open it from VS Code on your machine or the browser | Same microVM and CLI locally or in the cloud; move a sandbox either way | Cloud only |
| Regions | US East, US West, Europe West and Southeast Asia | Not published | Germany, Finland and France; you cannot pick one; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | GitHub Codespaces | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | Yes |
| Browser | No documented way | With your own setup | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | No documented way | Yes | Yes |
| Fork/clone | No documented way | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | No documented way | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | No documented way | Not published | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | No documented way | Yes | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | No documented way | No documented way | 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 | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | No documented way | No documented way | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
GitHub Codespaces and Docker Cloud Sandboxes are not in the public benchmarks we use, so we cannot say which is faster. 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. GitHub Codespaces and Docker Cloud Sandboxes 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 | GitHub Codespaces, a month | Docker Cloud Sandboxes, 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 | $51 · Personal account: GitHub Free | $49 · Docker Agentic Platform (pay-as-you-go) | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $270 · Personal account: GitHub Free · with limits | $204 · Docker Agentic Platform (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 | $3,019 · Personal account: GitHub Free | $2,464 · Docker Agentic Platform (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 | $850 · Personal account: GitHub Free · with limits | $700 · Docker Agentic Platform (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,889 · Personal account: GitHub Free · with limits | $1,400 · Docker Agentic Platform (pay-as-you-go) · with limits | $8,800 · $2000/mo · with limits |
GitHub Codespaces: Codespaces bills $0.09 per core-hour while a codespace is active, used or not, plus $0.07 per GB-month of storage while it exists, stopped too. There is no 4-core machine with 8 GB, so a 4 vCPU / 8 GB job is priced on the 4-core 16 GB machine. Personal accounts get a free monthly quota, and organizations do not.
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 costs nothing, and volumes and egress are free. Model calls are billed by your model provider.
Docker Cloud Sandboxes: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. Unused time does not carry over. 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 boat keeps its disk for at least 14 days. Saved snapshots above the included count and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; create, fork and resume each count as one start, and an extra start costs $0.03 to $0.07. A card is required, also for the 7-day trial.
Limits in those scenarios
Neither fits the always-on scenario as-is: Codespaces needs a restart every 12 hours, and Docker needs its always-on entitlement or a resume every 24 hours. Docker's default quota of 10 sandboxes at once rules it out for 50 agents, sandboxes for your users and 1,000 short jobs, unless Docker raises your quota. GitHub does not publish its limit, so 50 agents are likely fine, and 300 or 1,000 at once are not confirmed. boat's limits: auto-stop defaults to 1 hour, and each plan caps starts. For 1,000 short jobs at once, even the $2,000 plan needs paid extra starts and refuses starts above 270 a minute, so boat does not fit that scenario. boat has no US or Asia region. A boat resume is like a reboot, and if a machine fails you lose what was written after the last good snapshot.
| Scenario | GitHub Codespaces | Docker Cloud Sandboxes | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario | 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 GitHub Codespaces when
your developers want a ready VS Code environment for a GitHub repository, opened from a branch or pull request, in the US, EU or Asia.
- Built into GitHub. For teams that live on GitHub: open a ready dev container from any repo, branch or pull request, in VS Code or the browser.
- Free hours for personal accounts. For occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.
- Regions in the US and Asia. For developers in the US or Asia: codespaces run in US East, US West, Europe West and Southeast Asia.
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 memory kept across stops and strict outbound rules.
- Stop and fork with memory. For agents that pause between steps: a stopped sandbox comes back with its memory and running processes, and can be copied with them.
- Outbound rules at the proxy. For teams that must limit where an agent connects: allow and deny rules by host, enforced outside the VM.
- The same sandbox on your laptop. For people already using sbx locally: the cloud runs the same microVM and CLI, and you can move work between them.
Where boat fits
Codespaces stops each machine at 12 hours. Docker ends one run at 24 hours unless its always-on entitlement restarts it, and allows 10 at once by default. If your agents work for days, many at once, or need a screen or /dev/kvm, boat gives each one a full VM. It has no session cap once auto-stop is off on a paid plan (default 1 hour).
No session cap once auto-stop is off
A codespace stops at 12 hours even while in use, and its processes end. A Docker run ends 24 hours after creation; the always-on entitlement restarts it with memory kept. boat runs until you stop it once auto-stop is off. A boat resume is like a reboot: memory and running programs are not kept.
A whole machine, screen included
Neither documents /dev/kvm, so Android emulators and microVMs are not a supported setup. Codespaces can add a noVNC desktop that you configure, and Docker adds headless Chromium through its Playwright kit. Every boat sandbox has /dev/kvm, systemd and a 60 fps desktop with Chrome.
Agents you drive from outside
On Codespaces you write the code that starts and watches each agent over SSH. On Docker you attach to its terminal from the sbx CLI and parse its text. boat installs seven agents with a prompt, steer and events API.
Use boat when your agents work for days or by the dozen, need /dev/kvm, a desktop or a browser, or are driven from your own app through an agent API. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs GitHub Codespaces and boat vs Docker Cloud Sandboxes.
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 GitHub Codespaces cheaper than Docker Cloud Sandboxes?
Docker is a little cheaper where we can compare. One coding agent on workdays is $49 a month on Docker against $51 on Codespaces. 50 agents in parallel are $2,464 against $3,019, though Docker allows 10 at once by default. boat comes to $20 and $317 for the same two.
Which is faster, Codespaces or Docker Cloud Sandboxes?
Neither is in the public benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB on a Ryzen 9 9950X host. boat does not promise a CPU model.
Can I run Docker inside GitHub Codespaces or Docker Cloud Sandboxes?
Yes, both. A codespace is a dev container with Docker and sudo, and each Docker cloud sandbox has its own Docker Engine. Neither documents /dev/kvm. Every boat sandbox has Docker, systemd and /dev/kvm.
Can either run an AI agent 24/7?
Codespaces needs restarts: it stops after 12 hours at most, and after 30 idle minutes by default. A Docker run ends 24 hours after creation; the always-on entitlement restarts it with memory kept, or you resume it. A boat sandbox has no session cap once auto-stop is off on a paid plan (default 1 hour).
How many can I run at once?
Docker allows 10 sandboxes at once by default, and higher quotas go through Docker. GitHub says there are limits on how many codespaces you can run but does not publish them. boat's $20 plan runs 100 at once with 200 starts a day included, and higher plans go up to 2,000.
Is boat SOC 2 compliant?
SOC 2 is in progress; there is no SOC 2 report today. We're open about where we stand: live status at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs GitHub Codespaces
- boat vs Docker Cloud Sandboxes
- E2B vs GitHub Codespaces
- Daytona vs GitHub Codespaces
- Modal vs GitHub Codespaces
- Vercel Sandbox vs GitHub Codespaces
- Cloudflare Sandbox vs GitHub Codespaces
- Blaxel vs GitHub Codespaces
- Runloop vs GitHub Codespaces
- Tensorlake vs GitHub Codespaces
- Morph Cloud vs GitHub Codespaces
- CodeSandbox SDK vs GitHub Codespaces