Vercel Sandbox vs Replit

Vercel Sandbox is an API for running untrusted or agent-written code: your program starts a Firecracker microVM, runs commands in it, and stops it, and a persistent sandbox resumes from its snapshot. Replit is an AI app builder where a person describes an app, Replit Agent writes it, and Replit hosts it.

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.

Replit

Replit is an AI app builder and hosting platform: you describe an app in chat, Replit Agent writes it, and Replit publishes it.

You work in a browser workspace where Replit Agent sets up the project, writes the code, tests it and fixes problems, with system packages managed by Nix. When the app is ready you publish it as an Autoscale, Static, Scheduled or Reserved VM deployment, with Postgres and object storage next to it. It is built for people and teams who want a working app, not for programs that need to create many machines by API. This page compares the parts where the two overlap.

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 rankReplit: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory starts and steers many agents from code. On Vercel you install a browser yourself, and processes start again every 24 hours. Replit's MCP server drives Replit Agent per app, with up to 10 parallel Agent tasks on Pro.
259th of 365, with limits
$3,351 a month
204th of 365, with limits
$2,000 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. On Replit an always-on assistant is a Reserved VM that bills all month.
75th of 361, with limits
$3,657 a month
246th of 361, with limits
$2,033 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 fully and bills CPU only while code runs. Replit's Autoscale bills only while it serves requests, but you set up the code runner yourself as an HTTP app.
27th cheapest of 336
$216 a month
225th of 336, with limits
$146 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 users. On Replit each machine is a published app, and how many can run at once is not published.
25th cheapest of 349
$1,267 a month
229th of 349, with limits
$825 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 thanks to fast starts and up to 10,000 sandboxes at once on Pro. Replit does not publish how many deployments can run at once.
7th cheapest of 349
$15,761 a month
253rd of 349, with limits
$4,226 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
266th of 359, with limits
$685 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
CI jobs that build containers need Docker. Vercel Sandbox and boat document it; Replit's Nix-based environment docs do not describe it.
112th cheapest of 374
$1,144 a month
278th of 374, with limits
$425 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A Replit workspace is a good place to code by hand. On Vercel the files stay across sessions, but running processes start again every 24 hours. boat keeps one machine up with its disk once auto-stop is off.
283rd of 371, with limits
$145 a month
181st of 371, with limits
$109 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
Vercel Sandbox has no built-in desktop; you install Chromium yourself or connect an external browser. Replit's VNC pane shows a desktop to a person, with no documented computer-use API. boat streams a 60 fps desktop with computer tools.
263rd of 367, with limits
$952 a month
225th of 367, with limits
$619 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
277th of 356, with limits
$317 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
282nd of 343, with limits
$217 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
147th of 327, with limits
$4,378 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
241st of 351, with limits
$215 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 SandboxReplitboat
Kind of productSandbox API: microVMs your code starts with the JavaScript or Python SDK or the CLIAI app builder with browser workspaces and app hostingSandboxes you create, stop and fork by API, SDK or CLI
IsolationFirecracker microVM with its own kernelNot documented for workspaces; the security page says strong logical separation between usersFull 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; the sandbox then resumes from its snapshot, with no cap on total lifetimeA Reserved VM runs continuously at a fixed monthly price per sizeNo session cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour and goes up to 30 days
Saving filesFilesystem snapshot at every stop ($0.08/GB-month), kept 30 days after last use by default or set to never; Drives keep mounted storage until you delete themWorkspace files persist, and Agent checkpoints save files, database and settings for rollback; published apps keep data in Postgres or App StorageDisk saved every minute and at each stop; no compute charge while stopped; disk kept at least 14 days, longer with a saved snapshot
Docker insideYes, with sudoNot documented; system packages come from NixYes, with root and systemd
Nested virtualizationNo; Firecracker does not expose /dev/kvmNot documentedYes, /dev/kvm (Android emulator, VMs)
Custom imagesYour own OCI images from a Dockerfile, via Vercel Container RegistryEnvironments set up with Nix packagesboat's image or a saved snapshot (template), shareable by code; you cannot boot your own Docker image
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsReplit Agent, which an MCP client can also drive (create, update, ask, publish)Claude Code, Codex, pi, OpenCode, Prime Agent, Kimi Code, Mistral Vibe, with an API to prompt, steer and stream events
Desktop and computer useNo built-in desktop or computer-use API; you install Chromium and agent-browser yourself (Vercel guide) or connect an external browserVNC pane that streams a desktop to your browser; no computer-use API documented1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API, embeddable stream
Reaching the machinePublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPPublished apps on HTTPS and custom domains; SSH into the workspace on paid plansUp 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 egress allowlist documented; static outbound IPs on EnterpriseNo provider-side allowlist; firewall inside the VM
Keys kept outside the sandboxCredentials brokering injects headers for any HTTPS domain you allowReplit manages keys for OpenAI, Anthropic, Google, Grok and OpenRouter models, billed to credits; other keys are app secretsOptional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
Hosting that sleeps when idleNo wake on requestAutoscale starts on the first request and goes idle after 15 minutes; no compute charge while idle, plus a $2 monthly base feeNo wake on request; you stop and resume sandboxes yourself, or auto-stop stops them
Regions19 regions across the US, Europe, Asia, South America, Africa and AustraliaPublished apps in North America, Europe, Asia, South America or Australia on Core and up; data mainly in the USGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureVercel SandboxReplitboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayYesYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesYesYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesNo documented wayYes
Memory forkNo documented wayNo documented wayNo 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 wayNot publishedYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesNo documented wayNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesYesYes
Agent harness APINo documented wayYesYes
MCP serverYesYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNot publishedNo 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 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
ReplitNot 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. Replit 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. Replit 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 monthReplit, 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$122 · Pro $100 (annual) · 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$122 · Pro $100 (annual) · 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$6,092 · Pro $2,500 (annual) · 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$403 · Pro $250 (annual) · 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$825 · Pro $1,000 (annual) · 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.

Replit: Replit plans (Core $20, or $18 billed annually; Pro from $100) turn into monthly credits for Agent work and hosting. A Reserved VM has a fixed monthly price per size, such as $130 for 4 vCPU / 16 GB with dedicated vCPUs, and bills busy or idle. Autoscale charges a $2 monthly base fee and bills only while it serves requests. Our bills price agents as Reserved VMs and leave out Agent usage.

Replit: 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

Replit is marked as not a fit in every scenario because it is an app platform: each always-on machine is a published Reserved VM, an agent that works only on workdays still pays for the whole month, and how many can run at once is not published. Vercel Sandbox fits four of the five scenarios. For one agent that never stops, each session ends at 24 hours and running processes start again. For 1,000 short jobs at once Vercel fits, while boat's $2,000 plan includes 600 starts an hour, charges for starts above 90 a minute (about $8,800 a month) and refuses them above 270.

ScenarioVercel SandboxReplitboat
One coding agent, workdaysNone for this scenario
  • different kind of product: app platform
  • monthly / always-on product: priced as 1 machines kept on and reused
None for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • different kind of product: app platform
None for this scenario
50 agents in parallelNone for this scenario
  • not confirmed: Docker inside
  • different kind of product: app platform
  • monthly / always-on product: priced as 50 machines kept on and reused
  • 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
  • adjacent product, not a like-for-like sandbox
  • different kind of product: app platform
  • 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
  • adjacent product, not a like-for-like sandbox
  • different kind of product: app platform
  • 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 own code runs many short bursts of untrusted code, needs a firewall it can change while running, or must run close to users outside Europe.

  • Sandboxes your code starts. Useful if your app runs untrusted code: an SDK call starts a microVM, runs commands, and stops it.
  • 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.
  • Images from your Dockerfile. Useful if you already have a Dockerfile: build it into an image and boot sandboxes straight into it.

Use Replit when

you want Replit Agent to build a web app from a description and host it for you, with a database and hosting that sleeps when idle.

  • An app built and hosted for you. Useful if you want a working app from a description: Replit Agent builds, tests and publishes it for you.
  • Hosting that sleeps when idle. Useful for web apps with uneven traffic: Autoscale wakes on the first request and has no compute charge while idle.
  • Databases next to the app. Useful if your app needs data: Postgres and App Storage come built into each Replit app.

Where boat fits

If you compare these two to run AI agents, boat is built for that job. Like Vercel Sandbox, your code creates the machines. Unlike it, each one is a full VM that can run as one session for days, with a desktop, Docker and /dev/kvm, and agents you drive from outside. 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 from its snapshot, but processes start again. Replit keeps a Reserved VM on, but it is one published app billed all month. On boat, turn auto-stop off on a paid plan (default 1 hour) for no session cap; boat saves the disk every minute.

A desktop and a browser built in

An agent needs a screen to open the app it built and check it. On Vercel Sandbox you install a browser yourself, and Replit's VNC pane is for a person. boat streams a 60 fps desktop with computer tools and a browser-control API.

Drive the agents inside from outside

On Vercel the agents are installed, but you write the code that prompts, steers and reads them. Replit's MCP server drives Replit Agent, with no documented event stream. boat gives one API to prompt, steer and stream events.

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

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 Replit?

It depends, and Replit is not a like-for-like sandbox in any scenario. Vercel is lower for one coding agent on workdays ($57 against $122) and for 50 parallel agents ($2,884 against $6,092). Replit is lower for one agent running all month ($122 against $236), for sandboxes for your users ($403 against $828) and for 1,000 short jobs ($825 against $3,152). boat costs $20 for the workday agent and $317 for the 50 agents.

Which is faster, Vercel Sandbox or Replit?

We cannot say, because Replit is not in the public benchmarks we use. 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.

Can Vercel Sandbox or Replit run Docker?

Vercel Sandbox can run Docker inside, with sudo. Replit sets up environments with Nix packages, and its docs do not describe running Docker. Every boat sandbox has Docker, root, systemd and /dev/kvm.

Can either run an agent 24/7?

Not as one Vercel session: Pro sessions stop after 24 hours, then the sandbox resumes from its snapshot and an onResume hook can restart your processes. A Replit Reserved VM runs continuously, but it is a published app billed at a fixed monthly price. boat has no session cap once auto-stop is off (default 1 hour).

Is Replit a sandbox for AI agents like Vercel Sandbox?

Not in the usual sense. Replit is an app builder where Replit Agent writes and publishes apps, and its docs describe no API to start many machines. Vercel Sandbox and boat are both built for code that creates machines by API.

Where do they run?

Vercel Sandbox runs in 19 regions, with iad1 in the US as the default. Replit hosts data mainly in the US and publishes apps on five continents on Core and up. 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