Vercel Sandbox vs GitHub Codespaces

Vercel Sandbox is a sandbox you start from code: a Firecracker microVM for runs of untrusted or agent-written code, in 19 regions, with 24-hour sessions that resume from a snapshot. GitHub Codespaces is a dev environment for people: a Linux dev container per repository, opened in VS Code or the browser, that stops after 12 hours at most.

The companies and products

Vercel Sandbox

Vercel is a cloud platform for web apps and agents, and Vercel Sandbox is its product for running untrusted or agent-written code in isolated Linux microVMs.

Each sandbox is a Firecracker microVM with its own kernel, started from a Vercel image, your own OCI image, or a saved snapshot. You drive it with the JavaScript or Python SDK or the sandbox CLI: run commands, move files, open ports, fork sandboxes, mount Drives and set network rules. Sandboxes are persistent by default: each stop saves the filesystem, and the next session resumes from it. Vercel aims it at code interpreters, app builders, test runs, developer environments and agent workspaces. Its docs suggest a VM for 24/7 hosting.

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.

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. “27th cheapest of 336” means 26 of the other 335 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 workloadVercel Sandbox: price rankGitHub Codespaces: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Both are a compromise for agents that build and test for hours: no built-in desktop to check the UI, no documented /dev/kvm, and a session cap on each.
259th of 365, with limits
$3,351 a month
290th of 365, with limits
$4,618 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Both are a compromise for an always-on assistant: Vercel ends each session at 24 hours and Codespaces at 12, and processes start again. On a paid boat plan, turn auto-stop off and the sandbox runs with no session cap.
75th of 361, with limits
$3,657 a month
320th of 361, with limits
$6,970 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
Vercel Sandbox fits short code bursts because it bills CPU only while code uses it. A codespace builds a dev container on a new VM, so it is a compromise here.
27th cheapest of 336
$216 a month
283rd of 336, with limits
$619 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
Vercel Sandbox fits sandboxes for your own users. Codespaces is made for GitHub users on a repository and does not publish how many can run at once. boat fits at $209 a month in this preset, against $1,267 on Vercel.
25th cheapest of 349
$1,267 a month
276th of 349, with limits
$1,964 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
Vercel Sandbox fits many short parallel rollouts, with high concurrency and fast starts. Codespaces is a compromise, and boat's start limits make it one too.
7th cheapest of 349
$15,761 a month
276th of 349, with limits
$9,489 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
81st cheapest of 359
$1,508 a month
295th of 359, with limits
$1,519 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
Vercel Sandbox fits CI runs. Codespaces has no fork or snapshot API, so each run starts again from a repo or a prebuild. boat fits at $86 a month in this preset.
112th cheapest of 374
$1,144 a month
317th of 374, with limits
$909 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Codespaces is a polished VS Code box per repo, but it stops after 12 hours at most. On Vercel the files stay, but the session stops every 24 hours. boat keeps one machine running once auto-stop is off (default 1 hour).
283rd of 371, with limits
$145 a month
144th of 371, with limits
$270 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
Neither has a built-in desktop. On Vercel you install a browser with root or connect a cloud browser; a codespace can add a noVNC desktop through the desktop-lite dev container feature. boat streams a 60 fps desktop with computer tools.
263rd of 367, with limits
$952 a month
297th of 367, with limits
$1,367 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
100th of 356, with limits
$486 a month
306th of 356, with limits
$678 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
109th cheapest of 343
$468 a month
324th of 343, with limits
$922 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
234th of 327, with limits
$9,960 a month
279th of 327, with limits
$18,637 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
31st cheapest of 351
$554 a month
284th of 351, with limits
$445 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 requirementNot ranked: misses a requirementNot 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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureVercel SandboxGitHub Codespacesboat
What it isA sandbox API for running untrusted or agent-written codeA cloud dev environment for a GitHub repositoryA sandbox API for agents, with full VMs you drive from code
IsolationFirecracker microVM with its own kernelA Docker container on its own newly built VM, with its own virtual networkFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Longest session24 hours per session on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox then resumes from its snapshot, with no cap on total lifetime12 hours at most even while in use, and 30 idle minutes by default (5 to 240)No session cap once you turn auto-stop off on a paid plan; auto-stop defaults to 1 hour and goes up to 30 days
Saving filesFilesystem snapshot at every stop, on by default, $0.08/GB-month; expires 30 days after last use, or never if you set it. Plus Drives: mounted storage kept until you delete itFiles kept while the codespace exists, storage billed; a stopped codespace is deleted after 30 days by default (0 to 30 days)Disk saved every minute and at each stop, at no charge; a stopped disk is kept at least 14 days; saved snapshots never expire, each one above the plan's count costs $0.056 a day
Fork and copiesSandbox.fork() starts children from a sandbox's latest snapshotNo copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuildFork a running sandbox from its last 1-minute snapshot; saved snapshots as templates
Docker and nested virtualizationDocker with sudo; no nested virtualizationDocker inside the dev container through a dev container feature; /dev/kvm not documentedDocker, root, systemd and /dev/kvm on every sandbox
Starting imageYour own OCI image from a Dockerfile, via Vercel Container RegistryDev container config in the repository, with prebuilds built by GitHub ActionsStart from boat's image or a saved snapshot (template), shareable by code; you cannot boot your own Docker or OCI image
Desktop and computer useNo built-in desktop, browser or computer-use API; you install Chromium and agent-browser yourself (root access, Vercel guide) or connect an external cloud browserVS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite dev container feature, which you configure; no computer-use APIBuilt in: 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API, embeddable stream
Driving it from codeJavaScript and Python SDKs, a CLI and an MCP server to run commands, move files and open portsREST API and GitHub CLI to create, start, stop and delete; commands run over SSHAPI, SDKs and CLI to create, fork, stop and run commands, on every plan
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsGitHub Copilot as a VS Code extension; other agents you install and run yourselfSeven harnesses installed, among them Claude Code, Codex and OpenCode, with an API to prompt, steer and stream events
Keys kept outside the sandboxCredentials brokering injects headers for any HTTPS domain you allowSecrets are copied into the codespace as environment variablesOptional AI credentials proxy ($1 per day while on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
Inbound accessPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPA URL per forwarded port, private, organization or public; SSH and CLI tunnels; no public IPUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 of their own); no static IP
Outbound rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while running, on every planOpen internet; GitHub says there is no way to restrict itNo provider-side allowlist; firewall inside the VM
Regions19 regions across the US, Europe, Asia, South America, Africa and AustraliaUS East, US West, Europe West and Southeast AsiaGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureVercel SandboxGitHub Codespacesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNot publishedYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayWith your own setupYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)YesNo documented wayYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopNo documented wayYesNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesNo documented wayNo documented way
Secret proxyYesNo documented wayYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesNo documented wayYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesYesYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Vercel Sandbox12.66 runs/s
GitHub CodespacesNot measured
boat28.06 runs/s

On the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, boat did 28.06 runs per second and Vercel Sandbox did 12.66 (about 2.2x), 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. Providers ran on different hardware in different regions. GitHub Codespaces is not in the public benchmarks we use, so we cannot say how it compares. This measures CPU speed only, not start time.

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 is 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.

ScenarioVercel Sandbox, a monthGitHub Codespaces, a monthboat, 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
$57 · Pro$51 · Personal account: GitHub Free$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$236 · Pro · with limits$270 · Personal account: GitHub Free · 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,884 · Pro$3,019 · Personal account: GitHub Free$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
$828 · Pro$850 · Personal account: GitHub Free · 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
$3,152 · Pro$1,889 · Personal account: GitHub Free · with limits$8,800 · $2000/mo · with limits

Vercel Sandbox: Vercel charges for CPU only while your code uses it ($0.128 per vCPU-hour in iad1), and for memory for the whole time the sandbox runs, idle time included ($0.0212 per GB-hour). It adds $0.60 per million sandboxes created, $0.08 per GB-month of snapshots, and $0.05 per GB-month for Drives plus reads and writes. The $20 Pro credit is shared with your other Vercel usage.

GitHub Codespaces: Codespaces bills $0.09 per core-hour for the whole time a codespace is active, used or not, plus $0.07 per GB-month for storage while it exists, stopped too. There is no 4-core machine with 8 GB, so 4 vCPU jobs are priced on the 4-core 16 GB machine. Personal accounts get a free monthly quota; organizations get none.

GitHub Codespaces: boat charges a flat price per size, per second, while the sandbox runs, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A stopped sandbox has no compute charge, but saved snapshots above the plan's count and the optional AI credentials proxy still charge. Starts above the plan's included number cost $0.03 to $0.07 each.

Limits in those scenarios

For one agent that never stops, neither fits: Vercel ends each session at 24 hours and Codespaces at 12, and running processes start again after each stop. GitHub does not publish how many codespaces can run at once, so 300 user sandboxes and 1,000 short jobs show as not confirmed. Vercel fits both. boat does not fit the 1,000-job burst: even the $2,000 plan includes 90 starts a minute, 600 an hour and 2,400 a day, starts above that are paid, and starts above 270 a minute fail with 429. Other boat limits: a stopped disk is kept at least 14 days unless you save a snapshot, no GPU, and no US or Asia region.

ScenarioVercel SandboxGitHub Codespacesboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • Personal account: GitHub Free: sessions capped at 12 h
None for this scenario
50 agents in parallelNone for this scenario
  • how many machines can run at once: limit not published, probably fine at 50 (the typical published limit is 50)
None for this scenario
Sandboxes for your usersNone for this scenario
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
None for this scenario
1,000 short jobs at onceNone for this scenario
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Vercel Sandbox when

your app runs many short bursts of untrusted or agent-written code from an SDK, or needs to run close to users around the world.

  • Built for code you start from your app. Useful if your product runs agent or user code: an SDK starts a microVM, runs commands and stops it, with high concurrency.
  • A firewall you control from outside. A running sandbox can be switched to deny-all, or to a list of allowed domains, without a restart.
  • Regions all over the world. Useful if your users are far from Europe: Vercel Sandbox runs in 19 regions, from Virginia to Tokyo and Sydney.

Use GitHub Codespaces when

your developers want a ready VS Code environment for a GitHub repository, opened from a branch or pull request.

  • Built into GitHub. Useful if your team lives on GitHub: open a codespace from any repo, branch or pull request, with the dev container already set up.
  • A full editor for people. Useful when a developer does the work: VS Code in the browser or on your machine, JupyterLab and a terminal.
  • Free hours for personal accounts. Useful for occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.

Where boat fits

If you run coding agents that work for hours on one machine, both session caps get in the way: Vercel ends each session at 24 hours and Codespaces at 12. boat gives each agent a full VM with no session cap once auto-stop is off, a built-in desktop, /dev/kvm and an API to drive the agents inside. boat runs only in Europe and caps starts per plan.

No session cap on paid plans

On Vercel a session ends at 24 hours and on Codespaces at 12, and running processes start again each time. A long agent task needs a restart script. On boat, turn auto-stop off (default 1 hour); the disk is saved every minute. Memory is not saved, so a resume is like a reboot.

A full VM with /dev/kvm and a desktop

Neither has a built-in screen for an agent to check the app it built, and neither documents /dev/kvm for Android emulators or VMs. On both you install a browser or desktop yourself. boat streams a 60 fps desktop with Chrome on every sandbox.

Agents driven from outside

Vercel installs agents you start as plain commands, and Codespaces offers Copilot in the editor, with other agents run over SSH. Either way you write the code that prompts and watches each agent. boat gives you one API to prompt, steer and stream them.

Use boat when your agents work for hours on one machine: full VMs with Docker, /dev/kvm and a built-in desktop, no session cap once auto-stop is off, and an API to drive the agents inside. Check the start limits of your plan first. Compare it one to one: boat vs Vercel Sandbox and boat vs GitHub Codespaces.

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 Vercel Sandbox cheaper than GitHub Codespaces?

It depends on the job. One coding agent on workdays costs $57 a month on Vercel and $51 on Codespaces, and 50 agents in parallel cost $2,884 and $3,019. For 1,000 short jobs at once Codespaces prices at $1,889 against $3,152, but GitHub does not confirm that many can run at once. boat is $20 and $317 for the first two; it does not fit the 1,000-job burst.

Which is faster?

Vercel Sandbox did 12.66 V8 Web Tooling runs per second at 4 vCPU / 8 GB, and boat did 28.06 on a Ryzen 9 9950X host, in StarSling's run of 3 October 2026. GitHub Codespaces is not in that run, so we cannot say how it compares.

Can they run 24/7?

Not as one session. Vercel Sandbox sessions stop after 24 hours on Pro and Enterprise, and a codespace stops after 12 hours even while in use. Both keep files, but running processes start again. A boat sandbox runs with no session cap once auto-stop is off on a paid plan (default 1 hour).

Can Vercel Sandbox and Codespaces run Docker?

Yes. Vercel Sandbox runs Docker with sudo, and a codespace runs Docker inside its dev container through a dev container feature. Neither documents /dev/kvm, so Android emulators and VMs inside are not a documented path. Every boat sandbox has Docker, systemd and /dev/kvm.

Which one is better for AI coding agents?

Vercel Sandbox ships Claude Code, Codex, OpenCode and pi and lets you start sandboxes from code, so it suits agents started by your app. Codespaces is built for a person in VS Code, with Copilot as an extension. boat adds a built-in desktop, no session cap once auto-stop is off, and an API to prompt and steer the agents.

Where do they run?

Vercel Sandbox runs in 19 regions, with iad1 in the US as the default. Codespaces runs in US East, US West, Europe West and Southeast Asia. boat runs on machines in Germany, Finland and France, and you cannot pick a region.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons