Vercel Sandbox vs Together Code Sandbox

Vercel Sandbox is a self-serve microVM for running untrusted code, with a firewall you control, 19 regions, and persistent sandboxes that resume across 24-hour sessions. Together Code Sandbox starts VMs from Docker-image snapshots and can save their memory, but Together must enable it for your organization.

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.

Together Code Sandbox

Together AI is a cloud for running and training AI models, and Code Sandbox is its product for running code in isolated VMs.

You build a snapshot from a Docker image or Dockerfile on Together's builder, then start sandboxes from it and run commands and file operations through the together-sandbox SDK or CLI. When a sandbox ends you can save its disk, and its memory too, as a new snapshot to start more sandboxes from. It is aimed at model-generated code, agent tool calls and reinforcement learning rollouts, and Together must enable it for your organization. The pricing page also lists Code Interpreter at $0.03 per 60-minute session.

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 rankTogether Code Sandbox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs Docker, root and often /dev/kvm. Vercel has Docker with sudo but no nested virtualization. Together runs commands as user 1000 by default, root on request, and documents neither Docker inside nor /dev/kvm. boat has all three.
259th of 365, with limits
$3,351 a month
67th of 365, with limits
$528 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
On Vercel a persistent sandbox resumes across 24-hour sessions, and an onResume hook restarts your processes. A Together sandbox runs until you terminate it or its ttl ends, with no idle detection or wake on request.
75th of 361, with limits
$3,657 a month
107th of 361, with limits
$1,095 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 and bills CPU only while code runs. Together's pricing page lists Code Interpreter at $0.03 per 60-minute session, and Code Sandbox also runs commands through an API once Together enables it.
27th cheapest of 336
$216 a month
318th of 336, with limits
$2,190 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 you hand to users; its URLs have no built-in auth. On Together every port URL is public unless you set an experimental access policy. boat's URLs are token-gated by default.
25th cheapest of 349
$1,267 a month
231st of 349, with limits
$900 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 thanks to high concurrency and fast starts. Together can branch rollouts from a memory snapshot, but Together must enable that VM product first.
7th cheapest of 349
$15,761 a month
309th of 349, with limits
$21,900 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
260th of 359, with limits
$450 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
112th cheapest of 374
$1,144 a month
253rd of 374, with limits
$180 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
On Vercel the files stay across sessions, but running processes start again every 24 hours. Together has no wake on request. boat keeps one machine running once auto-stop is off (default 1 hour).
283rd of 371, with limits
$145 a month
226th of 371, with limits
$22 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
Computer-use agents need a desktop and a browser. On Vercel and on Together you install them yourself (Vercel has a browser guide). boat streams a 60 fps desktop with Chrome.
263rd of 367, with limits
$952 a month
105th of 367, with limits
$600 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
195th of 356, with limits
$900 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
181st of 343, with limits
$180 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
126th of 327, with limits
$3,600 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
95th of 351, with limits
$150 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 SandboxTogether Code Sandboxboat
IsolationFirecracker microVM with its own kernelA VM per sandbox on Together's infrastructureFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Getting startedSelf-serve on Hobby and Pro; Enterprise by contractThe SDK and CLI must be enabled for your organization by TogetherSign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard
Longest session24 hours per session on Pro and Enterprise, 45 minutes on Hobby; the sandbox then resumes from its snapshot, with no cap on total lifetimeRuns until you terminate it or its ttl, counted from creation, runs outNo session cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour and goes up to 30 days
Machine sizeUp to 8 vCPU / 16 GB on Pro, 32 vCPU / 64 GB on Enterprise0.1 to 16 cores, 1 to 8 GB of memory per core; disk size not configurable2, 4, 8 or 16 vCPU at 2 GB per vCPU; 16 vCPU needs the $100 plan or higher
Saving stateFilesystem snapshot at every stop ($0.08/GB-month), kept 30 days after last use by default or set to never; processes start againEnd a sandbox with a snapshot of its disk, or disk and memory; new sandboxes from a memory snapshot resume with processes runningDisk saved every minute and at each stop; no compute charge while stopped; disk kept at least 14 days; resume boots the machine again
Docker insideYes, with sudoNot documented; commands run as user 1000 by default, root per exec on requestYes, with root and systemd
Nested virtualizationNo; Firecracker does not expose /dev/kvmNot documentedYes, /dev/kvm for Android emulators and VMs
Custom imagesYour own OCI images from a Dockerfile, via Vercel Container RegistrySnapshots built from a Docker image or Dockerfile on Together's builderboat's image or a saved snapshot (template), shareable by code; you cannot boot your own Docker image
Reaching the sandboxPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPA URL per port, open to everyone by default; an experimental policy limits access by IP or requires a token; SSH 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
Egress rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while runningNo provider-side egress allowlist documentedNo provider-side allowlist; firewall inside the VM
Keys kept outside the sandboxCredentials brokering injects headers for any HTTPS domain you allowNo 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
Desktop, browser, computer useNo built-in desktop or computer-use API; you install Chromium and agent-browser yourself (Vercel guide) or connect an external browserNo built-in desktop or stream; you install a browser or virtual display in your own image1920x1080, 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 agent in your image and run it through execs; a Harbor guide for agent evalsClaude Code, Codex, pi, OpenCode, Prime Agent, Kimi Code, Mistral Vibe, with an API to prompt, steer and stream events
Every feature Battleships tracks (43)
FeatureVercel SandboxTogether Code Sandboxboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNot publishedYes
BrowserWith your own setupNot publishedYes
Computer-use APINo documented wayNot publishedYes
SSHNo documented wayNo documented wayYes
Persistent diskYesWith your own setupYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNo documented wayYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayNo documented wayNo 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 serverYesYesNo 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 wayYesYes
Audit logsNot publishedNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Vercel Sandbox12.66 runs/s
Together Code SandboxNot 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 sandboxes on Ryzen 7 9700X hosts and does not promise a CPU model. Providers ran on different hardware in different regions. Together Code Sandbox is not in the public benchmarks we use, so we cannot say how it compares.

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. Together Code Sandbox 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 monthTogether Code Sandbox, 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$5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$236 · Pro · with limits$22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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$264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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
$828 · Pro$900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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$6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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. The $20 Pro credit is shared with your other Vercel usage.

Together Code Sandbox: Together lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB-hour, about $0.30 an hour at 4 vCPU / 8 GB, from prepaid credits. Your organization must have it enabled first. Billing granularity, snapshot storage and egress prices are not published. The table uses the Code Interpreter line ($0.03 per 60-minute session) because Code Sandbox needs enablement.

Together Code Sandbox: 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

The table's Together column uses the Code Interpreter line, because Code Sandbox needs Together to enable it; Code Interpreter sessions end after 60 minutes, its disk is not confirmed and its machine size is not published, so it does not fit any scenario. Code Sandbox goes up to 16 cores, and Together publishes no concurrency or start limits for it. Vercel fits most rows, but each session ends at 24 hours, so one agent that never stops has its processes restarted every day. For 1,000 short jobs at once, Vercel fits at $3,152 a month. boat does not: the $2,000 plan includes 2,400 starts a day, extra starts are paid (about $8,800 a month), and starts above 270 a minute fail with 429.

ScenarioVercel SandboxTogether Code Sandboxboat
One coding agent, workdaysNone for this scenario
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
50 agents in parallelNone for this scenario
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
Sandboxes for your usersNone for this scenario
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
None for this scenario
1,000 short jobs at onceNone for this scenario
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • 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 want self-serve sandboxes today for many short bursts of untrusted code, a firewall you control from outside, or regions close to users outside Europe.

  • Self-serve, with regions worldwide. Anyone can sign up and start sandboxes today, in 19 regions from Virginia to Tokyo and Sydney.
  • A firewall you control from outside. A running sandbox can switch to deny-all or a list of allowed domains without a restart.
  • Built for big bursts of short runs. Good for code interpreters and many parallel rollouts: CPU is billed only while code uses it, and Pro runs up to 10,000 at once.

Use Together Code Sandbox when

you already run models on Together and want light sandboxes, from a tenth of a core, that you can save with their memory and branch from.

  • Memory snapshots to branch from. Useful for rollouts and test variants: save a sandbox with its memory and start many copies with processes still running.
  • Sandboxes next to your models. Handy if you already run inference or fine-tuning on Together: sandboxes and models share one account.
  • Sizes cut to the job. Good for many light jobs: sandboxes start at a tenth of a core, priced per vCPU-hour and GiB-hour.

Where boat fits

Vercel Sandbox and Together Code Sandbox both run code you hand them, and neither has a built-in desktop. If you run agents that work for hours, build and test apps, run Docker or emulators, and need a screen to check their work, boat gives each one a whole machine you can start today. boat runs only in the EU and limits starts per plan.

Agents can work all day

Vercel stops each session after 24 hours; the sandbox resumes, but processes start again. A Together sandbox runs until its ttl ends, with no idle detection or wake on request. On boat, turn auto-stop off on a paid plan (default 1 hour) for no session cap; boat saves the disk every minute.

A whole machine with a screen

boat gives root, systemd, Docker, /dev/kvm and a 60 fps desktop with Chrome. Vercel has no nested virtualization or built-in desktop, and Together documents neither Docker inside nor a desktop, so you build those into your own image.

Private hosting and agents driven from outside

On Together every port is public by default, and Vercel's URLs have no built-in auth. boat serves token-gated HTTPS on up to 50 ports and gives one API to prompt and steer the agents inside.

Use boat when your agents work for hours on one machine: builds, tests, Docker, emulators and a desktop with a browser, with private hosting 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 Together Code Sandbox.

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 Together Code Sandbox?

At Together's Code Sandbox list rates (compute only), Together costs a little less: one agent on workdays $52 against $57 on Vercel, 50 agents $2,619 against $2,884, and 1,000 short jobs $1,488 against $3,152. Code Sandbox must be enabled by Together, and its billing granularity is not published. boat costs $20 for the workday agent and $317 for the 50 agents.

Which is faster?

Vercel Sandbox did 12.66 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, and boat did 28.06 on an AMD Ryzen 9 9950X host. Together Code Sandbox is not in that benchmark.

Can Vercel Sandbox and Together Code Sandbox run Docker?

Vercel Sandbox runs Docker inside with sudo. Together builds sandboxes from Docker images, but its docs do not describe Docker inside a sandbox. boat runs Docker, systemd and root on every sandbox.

Can I sign up for Together Code Sandbox today?

The together-sandbox SDK and CLI must be enabled for your organization, so you ask Together for access. Vercel Sandbox and boat are both self-serve; boat needs a card, also for the trial.

Which one can save memory and branch from it?

Together can end a sandbox with a snapshot of its disk and memory, and new sandboxes start from it with processes running. Vercel snapshots the filesystem at each stop, so processes start again. boat saves the disk every minute and can fork a running sandbox, without memory.

Do they have a desktop for computer use?

Not built in. On both you install a browser or display yourself; Vercel has a guide for Chromium and agent-browser. boat streams a 60 fps desktop with Chrome, computer tools and a browser-control API.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons