Vercel Sandbox vs CodeSandbox SDK

Both run each sandbox in a Firecracker microVM with its own kernel. Vercel Sandbox is built for runs of untrusted code in 19 regions; each session stops after 24 hours and resumes from a snapshot. CodeSandbox SDK keeps VMs that hibernate with their memory and wake on the next request; Together now calls it its deprecated SDK.

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.

CodeSandbox SDK

CodeSandbox SDK is an API from CodeSandbox, now a Together AI company, that starts sandboxed development VMs on the same infrastructure as the CodeSandbox editor.

Each sandbox is a Firecracker microVM built from a template or any Dockerfile. When it goes idle, it hibernates with a memory snapshot, and it resumes or forks from that snapshot in seconds. You drive it from a TypeScript SDK through terminals, commands, files and HTTPS hosts. Together's docs call it the deprecated offering and point new users to its successor, the together-sandbox SDK.

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 rankCodeSandbox SDK: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
259th of 365, with limits
$3,351 a month
32nd cheapest of 365
$3,731 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An agent that never stops fits CodeSandbox SDK at $4,811 a month. Vercel is listed with limits ($3,657) because its sessions end at 24 hours. boat fits at $657 with auto-stop off.
75th of 361, with limits
$3,657 a month
50th cheapest of 361
$4,811 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
Both fit short code bursts: Vercel at $216 a month, billing CPU only while code uses it, and CodeSandbox SDK at $642, waking hibernated VMs with their memory. boat's start limits make it a compromise here.
27th cheapest of 336
$216 a month
54th cheapest of 336
$642 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 fits 300 sandboxes at once at $1,267 a month. CodeSandbox SDK ($1,707) is listed with limits: its Scale plan stops at 250 VMs. boat fits at $209.
25th cheapest of 349
$1,267 a month
140th of 349, with limits
$1,707 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 is a full match at $15,761 a month, with high concurrency and fast starts. CodeSandbox SDK's memory forks help, but its 250 VM cap on Scale makes it a compromise ($3,861).
7th cheapest of 349
$15,761 a month
341st of 349, with limits
$3,861 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
77th cheapest of 359
$1,335 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
All three fit CI: boat at $86 a month, CodeSandbox SDK at $860 and Vercel at $1,144. Jobs that build Android apps or VM images need /dev/kvm, which only boat documents.
112th cheapest of 374
$1,144 a month
96th cheapest of 374
$860 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Both are listed with limits for a dev box: Vercel sessions stop every 24 hours ($145 a month), and CodeSandbox SDK documents no SSH ($240). boat fits at $26 with SSH and auto-stop off.
283rd of 371, with limits
$145 a month
316th of 371, with limits
$240 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
CodeSandbox SDK fits at $1,236 a month if you add a VNC desktop to your own Dockerfile. On Vercel you set up a browser yourself, so it is listed with limits ($952). boat streams a 60 fps desktop built in at $200.
263rd of 367, with limits
$952 a month
54th cheapest of 367
$1,236 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
Vercel has a guide to install Chromium and agent-browser, and CodeSandbox SDK offers a headless Chromium template; both are listed with limits. boat ships Chrome on a desktop with browser control at $200 a month.
100th of 356, with limits
$486 a month
125th of 356, with limits
$741 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
119th cheapest of 343
$871 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
194th of 327, with limits
$7,390 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
29th cheapest of 351
$505 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 SandboxCodeSandbox SDKboat
IsolationFirecracker microVM with its own kernelFirecracker microVM with its own kernelFull 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 on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox resumes from its snapshot in a new sessionNo hard cap; hibernates after an idle timeout (30 minutes by default on paid plans, up to 1 day)No session cap once you turn auto-stop off on a paid plan; auto-stop defaults to 1 hour
Pause and resumeFilesystem snapshot at every stop; a new session boots from it and processes start againHibernates with a memory snapshot and resumes with processes running in about 0.5 to 2 s; after a long idle period the snapshot is archived and resume takes longerDisk saved every minute and at each stop, kept at least 14 days after a stop; memory is not kept, and a resume is like a reboot
Wake on requestNoYes; an HTTP request to a host wakes a hibernated VMNo; you resume a stopped sandbox by API or CLI
ForkSandbox.fork() starts children from a sandbox's latest filesystem snapshot; no memory forkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentFork a running sandbox from its last 1-minute disk snapshot; the fork boots fresh
Biggest machine8 vCPU / 16 GB on Pro, 32 vCPU / 64 GB on Enterprise16 cores / 32 GB on Scale, 64 cores / 128 GB on Enterprise16 vCPU / 32 GB on the $100 plan or higher
DiskFilesystem snapshots at $0.08/GB-month; Drives up to 16 TiB by default, $0.05/GB-month plus reads and writes20 GB on every size; more on request, price not publishedFixed per size: 51 GB at 4 vCPU / 8 GB, up to 251 GB at 16 vCPU / 32 GB
Regions19 regions across the US, Europe, Asia, South America, Africa and AustraliaA country hint steers scheduling, but placement is not guaranteedGermany, Finland and France; you cannot pick a region; no US or Asia region
Egress rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while runningNo provider-side allowlist documentedNo provider-side allowlist; firewall inside the VM
Docker and imagesDocker with sudo; images from your own DockerfileDocker and root; templates build from any DockerfileDocker with root and systemd; start from boat's image or a saved snapshot, not your own OCI image
Nested virtualizationNo; Firecracker does not expose /dev/kvm to guestsNot documentedYes, /dev/kvm for Android emulators and VMs
Inbound accessPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPHTTPS host per port, public by default, signed tokens for private sandboxes; SSH, raw TCP and a public IP are not documentedUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 of their own); no static IP
Desktop and browserNo built-in desktop or computer-use API; you install Chromium and agent-browser yourself (Vercel guide) or connect an external browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileBuilt in: 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsYou install your own agent in the template and run it through the commands APIClaude Code, Codex, pi, OpenCode, Prime Agent, Kimi Code and Mistral Vibe, with an API to prompt, steer and stream events
Keeping API keys out of the sandboxCredentials brokering injects headers for any HTTPS domain you allowSecrets passed in as environment variables; no credentials proxy documentedOptional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
Every feature Battleships tracks (43)
FeatureVercel SandboxCodeSandbox SDKboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayWith your own setupYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayNo documented wayYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesYesYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayYesNo documented way
Wake on requestNo documented wayYesNo 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 limitsYesNot publishedYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Vercel Sandbox12.66 runs/s
CodeSandbox SDKNot 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). boat was second of 15; Vercel shared rank 7. 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. CodeSandbox SDK is not in that run, so we cannot say how it compares on CPU speed. For start time with 100 at once (6 November 2026), ComputeSDK measured Vercel at 533 ms and CodeSandbox SDK at 11.76 s median, each at its default size; boat is not in ComputeSDK.

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. CodeSandbox SDK 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 monthCodeSandbox SDK, 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$193 · Scale$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$236 · Pro · with limits$341 · Scale$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$2,500 · Scale$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$815 · Scale · 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,632 · Scale · 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 ($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. Rates are up to 1.73x higher outside the US. The $20 Pro credit is shared with your other Vercel usage.

CodeSandbox SDK: You buy VM credits at $0.01486 each, and each size burns a fixed number per hour: 20 for a 4 vCPU / 8 GB VM, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM costs nothing. The Scale plan adds a $170 monthly platform fee that is not usage credit. CodeSandbox's pricing pages blocked our automated check on 8 November 2026, so these prices are as checked on 28 September 2026.

CodeSandbox SDK: 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 card is required, also for the 7-day trial. 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, Vercel ends each session at 24 hours; it resumes from its snapshot, but running processes start again. CodeSandbox SDK keeps going. CodeSandbox SDK's Scale plan allows 250 VMs at once and 1,000 new sandboxes an hour, so 300 user sandboxes and 1,000 short jobs need Enterprise, and its price for more disk and for egress is not published. Vercel fits both. boat fits every scenario but the 1,000-job burst: the $2,000 plan includes 90 starts a minute and 2,400 a day, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat also keeps a stopped disk at least 14 days unless you save a snapshot, and a machine failure loses what was written after the last 1-minute snapshot.

ScenarioVercel SandboxCodeSandbox SDKboat
One coding agent, workdaysNone for this scenario
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenario
50 agents in parallelNone for this scenario
  • egress price not published
None for this scenario
Sandboxes for your usersNone for this scenario
  • Scale: max 250 concurrent
  • egress price not published
None for this scenario
1,000 short jobs at onceNone for this scenario
  • Scale: max 250 concurrent
  • egress price not published
  • 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

you run many short bursts of untrusted code, want egress rules you change from outside, or need to run close to users outside Europe.

  • Regions all over the world. Useful if your users are spread out: Vercel Sandbox runs in 19 regions, while CodeSandbox SDK takes a placement hint.
  • 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.
  • Room for big bursts. Useful for thousands of short jobs: Pro allows up to 10,000 sandboxes at once, while CodeSandbox SDK's Scale plan stops at 250 VMs.

Use CodeSandbox SDK when

your sandboxes sleep between visits and should wake on the next HTTP request with their memory intact, and you accept that Together calls this SDK deprecated.

  • Hibernation with memory and wake on request. Useful for sandboxes that sleep between visits: an HTTP request wakes a hibernated VM with its processes still running.
  • Forks that share memory. Good for branching many runs from one warm state, such as rollouts or test variants.
  • No 24-hour session cap. Useful for agents that keep working: a busy VM keeps running, where Vercel stops every session after 24 hours.

Where boat fits

Vercel Sandbox and CodeSandbox SDK are code boxes you drive through an SDK. If your agents work for hours on one machine, with builds, Docker, emulators, a browser and servers other people reach, look at boat. Each sandbox is a full VM with installed agents and a built-in desktop. Check its start limits first: each create, fork and resume counts as a start.

A whole machine with SSH and KVM

Neither documents SSH. Vercel has no nested virtualization, and CodeSandbox SDK does not document it, so Android emulator builds and VM-based tests need another host. boat has SSH and /dev/kvm in every sandbox.

A desktop and a browser built in

Neither has a built-in desktop. On Vercel you install a browser yourself; on CodeSandbox SDK you start from a headless Chromium template or add a VNC desktop to your Dockerfile. boat streams a 1920x1080, 60 fps desktop with Chrome.

Drive the agents inside from outside

Vercel installs coding agents, but you run them as plain commands, and on CodeSandbox SDK you bring your own. Either way you write the code that prompts, steers and reads every agent; boat gives you one API for that.

Use boat when your agents work for hours on one machine: builds, Docker, emulators, a built-in desktop with a browser and servers other people reach, with 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 CodeSandbox SDK.

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 CodeSandbox SDK?

It depends on the job. One workday agent costs $57 on Vercel against $193 on CodeSandbox SDK, but 50 parallel agents cost $2,884 against $2,500. One agent that never stops is $341 on CodeSandbox SDK, and Vercel does not fit it as one session. For 1,000 short jobs at once Vercel fits at $3,152 a month, while CodeSandbox SDK's Scale plan caps at 250 VMs. boat costs $20 and $317 for the first two, and $26 for the agent that never stops.

Which is faster, Vercel Sandbox or CodeSandbox SDK?

Vercel Sandbox did 12.66 runs per second on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026. CodeSandbox SDK is not in that run, so there is no fair CPU comparison. boat did 28.06 in the same run, on an AMD Ryzen 9 9950X host. For start time with 100 at once, ComputeSDK measured Vercel at 533 ms and CodeSandbox SDK at 11.76 s.

Can either one run 24/7?

Vercel Sandbox cannot as one session: Pro and Enterprise sessions stop at 24 hours, then resume from a snapshot with processes started again. CodeSandbox SDK has no hard session cap, so a busy VM keeps running and only hibernates when idle. boat has no session cap once you turn auto-stop off (default 1 hour) on a paid plan.

Can Vercel Sandbox and CodeSandbox SDK run Docker?

Yes, both run Docker inside the sandbox and can boot from your own Dockerfile. Neither documents /dev/kvm for Android emulators or nested VMs, which boat has. boat cannot boot your own Dockerfile image; you start from its image or a saved snapshot.

Is CodeSandbox SDK still maintained?

CodeSandbox is now part of Together AI. Together's docs call the CodeSandbox-based SDK deprecated and name together-sandbox as its successor. The last SDK release is 2.4.2 (December 2025), and self-serve sign-up still runs through CodeSandbox.

Where do they run?

Vercel Sandbox runs in 19 regions, with iad1 in the US as the default. CodeSandbox SDK takes a country hint that can steer a sandbox to a cluster in Europe, but placement is not guaranteed. boat runs on machines in Germany, Finland and France, and you cannot pick a region. Snapshot copies can be stored outside the EU.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons