CodeSandbox SDK vs Vercel Sandbox: prices, limits and features.
Their prices for 2 vCPU and 4 GB overlap: $0.15 / hour and $0.085 to $0.34 / hour, since CPU is billed only while busy. Here is where they differ, from each one's own pages, plus a third option if neither fits.
The short answer
The CodeSandbox SDK runs microVM sandboxes. Together AI now offers it as Together Code Sandbox and calls the old SDK legacy. Vercel Sandbox runs untrusted code in Firecracker microVMs, billed on active CPU and provisioned memory.
Pick CodeSandbox SDK if you want
- a lower price while the CPU is busy: $0.15 against $0.34 an hour
- longest session: Runs until stopped, unless a ttl is set (Vercel Sandbox: 24 hours on Pro, 45 minutes on Hobby)
Pick Vercel Sandbox if you want
- a lower price while the CPU is idle: $0.085 against $0.15 an hour
- CPU billed only while busy; CodeSandbox SDK bills CPU the whole time a sandbox runs
- fork and snapshots: Snapshots, which CodeSandbox SDK's pages do not state
- largest size: 32 vCPU; 8 on Pro (CodeSandbox SDK: 16 cores)
- security report: SOC 2 Type II, which CodeSandbox SDK's pages do not state
Or Groundbox if you want
- a lower list price than both: $0.08 / hour
- CI runners too: yes, on the same key and bill
Where CodeSandbox SDK or Vercel Sandbox is ahead of Groundbox: longest session, largest size, security report.
Side by side
a rust mark means that side is ahead · each value links to its source · checked 2026-11-20
Each against Groundbox: Groundbox vs CodeSandbox SDK and Groundbox vs Vercel Sandbox. Every other comparison is on /compare.
Sources
CodeSandbox SDK
- Together: Code Sandbox (legacy CodeSandbox SDK), checked 2026-11-19
- Together: Code Sandbox, checked 2026-11-19
- Together pricing, checked 2026-11-20
Vercel Sandbox
- Vercel Sandbox pricing, checked 2026-11-20
- Vercel Sandbox docs, checked 2026-11-19
- Vercel Sandbox: security, checked 2026-11-19
- Vercel Sandbox: persistent sandboxes, checked 2026-11-20
- Vercel Sandbox: firewall, checked 2026-11-19