# 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

| Feature | CodeSandbox SDK | Vercel Sandbox | Groundbox |
| --- | --- | --- | --- |
| Price, 2 vCPU · 4 GB | [$0.15 / hour](https://www.together.ai/pricing) | [$0.085 to $0.34 / hour](https://vercel.com/docs/vercel-sandbox/pricing) | $0.08 / hour |
| Pause keeps memory | Not published | [No: the filesystem is saved, not memory](https://vercel.com/docs/sandbox/concepts/persistent-sandboxes) | Yes, memory and disk |
| CI runners too | [No: the pricing page lists Code Sandbox and Code Interpreter only](https://www.together.ai/pricing) | [No: the pricing page lists sandboxes only](https://vercel.com/docs/vercel-sandbox/pricing) | Yes, on the same key and bill |
| Isolation | [microVM](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Firecracker microVM](https://vercel.com/docs/sandbox/concepts/security) | Firecracker VM |
| Fork and snapshots | Not published | [Snapshots](https://vercel.com/docs/vercel-sandbox/pricing) | Fork a running sandbox; save points |
| Longest session | [Runs until stopped, unless a ttl is set](https://docs.together.ai/docs/together-code-sandbox.md) | [24 hours on Pro, 45 minutes on Hobby](https://vercel.com/docs/vercel-sandbox/pricing) | 720 hours, renewable |
| Self-host | Not published | Not published | No |
| GPUs | Not published | Not published | Not offered |
| Largest size | [16 cores](https://docs.together.ai/docs/together-code-sandbox.md) | [32 vCPU; 8 on Pro](https://vercel.com/docs/vercel-sandbox/pricing) | 16 vCPU |
| SDK languages | [Python and TypeScript](https://docs.together.ai/docs/together-code-sandbox.md) | [JavaScript / TypeScript and Python](https://vercel.com/docs/vercel-sandbox) | TypeScript and Python |
| Security report | Not published | [SOC 2 Type II](https://vercel.com/docs/sandbox/concepts/security) | No SOC 2 report |
| Free to start | [Legacy SDK: a free Build plan](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Hobby, within monthly quotas](https://vercel.com/docs/vercel-sandbox/pricing) | $5 of usage, no card |
| Plans | [Legacy SDK: Build (free) and Scale plans; the new SDK is sold through Together's sales team](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Hobby free within monthly quotas; Pro usage comes out of the plan's $20 monthly credit, then rates apply](https://vercel.com/docs/vercel-sandbox/pricing) | Free: everything, with $5 of usage. $20 / month: $20 of usage included, then pay as you go |
| CPU | [$0.0446 per vCPU-hour (Together)](https://www.together.ai/pricing) | [$0.128 per active CPU-hour (iad1); time waiting on I/O is not billed](https://vercel.com/docs/vercel-sandbox/pricing) | $0.04 per vCPU-hour, a dedicated core |
| Memory | [$0.0149 per GiB-hour (Together)](https://www.together.ai/pricing) | [$0.0212 per GB-hour of provisioned memory (iad1)](https://vercel.com/docs/vercel-sandbox/pricing) | Included, up to 4 GB per vCPU |
| Billing | [Legacy SDK: VM credits at $0.01486 each, rounded up to the minute](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [Memory in 1-minute minimum increments; $0.60 per million sandbox creations](https://vercel.com/docs/vercel-sandbox/pricing) | Per second, no minimum |
| Sizes | [New SDK: 0.1 to 16 cores, 1 to 8 GB per CPU](https://docs.together.ai/docs/together-code-sandbox.md) | [1 to 32 vCPU, 2 GB per vCPU; 8 vCPU at most on Pro](https://vercel.com/docs/vercel-sandbox/pricing) | 1 to 16 vCPU, up to 4 GB per vCPU |
| Sandboxes at once | [Legacy SDK: 10 on Build, 250 on Scale](https://docs.together.ai/docs/together-code-sandbox-legacy.md) | [10 on Hobby, 10,000 on Pro](https://vercel.com/docs/vercel-sandbox/pricing) | 20 once a card is on file |
| Egress controls | Not published | [Allow all, deny all, or a domain and CIDR allowlist](https://vercel.com/docs/sandbox/concepts/firewall) | An allowlist of hosts per sandbox |

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](https://groundbox.dev/compare/codesandbox) and [Groundbox vs Vercel Sandbox](https://groundbox.dev/compare/vercel-sandbox). Every other comparison is on [/compare](https://groundbox.dev/compare).

## Sources

### CodeSandbox SDK

- [Together: Code Sandbox (legacy CodeSandbox SDK)](https://docs.together.ai/docs/together-code-sandbox-legacy.md), checked 2026-11-19
- [Together: Code Sandbox](https://docs.together.ai/docs/together-code-sandbox.md), checked 2026-11-19
- [Together pricing](https://www.together.ai/pricing), checked 2026-11-20

### Vercel Sandbox

- [Vercel Sandbox pricing](https://vercel.com/docs/vercel-sandbox/pricing), checked 2026-11-20
- [Vercel Sandbox docs](https://vercel.com/docs/vercel-sandbox), checked 2026-11-19
- [Vercel Sandbox: security](https://vercel.com/docs/sandbox/concepts/security), checked 2026-11-19
- [Vercel Sandbox: persistent sandboxes](https://vercel.com/docs/sandbox/concepts/persistent-sandboxes), checked 2026-11-20
- [Vercel Sandbox: firewall](https://vercel.com/docs/sandbox/concepts/firewall), checked 2026-11-19

## Try the third option free.

[Start free, no card](https://groundbox.dev/signup)[Groundbox vs CodeSandbox SDK](https://groundbox.dev/compare/codesandbox)
