Modal vs Deno Sandbox

Modal runs sandboxes for up to 24 hours inside a large AI compute platform, with GPUs, regions around the world and a VM runtime for Docker. Deno Sandbox gives short runs of code a small Firecracker microVM that Deno says starts in under 200 ms, locks down outbound traffic and lives up to 30 minutes. Deno Sandbox is closed to new customers since November 2026.

The companies and products

Modal

Modal is a serverless cloud for AI work: inference, training, batch jobs and sandboxed code, all driven from Python, TypeScript or Go code.

Modal Sandboxes are containers you create from code, run commands in, and then terminate. By default they run under gVisor, a user-space kernel from Google. Since October 2026 you can also pick a VM runtime with its own Linux kernel for Docker and FUSE (Battleships tracks that as a separate card, Modal VM Sandboxes). Your code can save a sandbox's disk as a filesystem snapshot and start new sandboxes from it. It suits teams that already run models on Modal and want scalable code execution next to their GPUs.

Deno Sandbox

Deno Sandbox comes from the company behind the Deno runtime and runs untrusted or AI-generated code in Linux microVMs. Since November 2026 it is not part of Deno Deploy plans and is not available to new customers.

Each sandbox is a Firecracker microVM with 2 vCPU, 768 MB to 4 GB of memory and a 10 GB disk that is wiped when it ends, created from a TypeScript or Python SDK. A bootable volume (Chicago only) can be the root disk and keep its files. Deno Deploy can limit outbound traffic to a host allowlist and swap placeholder secrets for real ones. A sandbox can be promoted to a Deno Deploy app.

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. “15th cheapest of 336” means 14 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 workloadModal: price rankDeno 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 and a disk that stays for hours. On Modal you pick the VM runtime, install a desktop yourself and snapshot the filesystem between sessions. Deno's 2 vCPU, 30-minute sandbox does not document Docker. boat ranks 8th here with a full match.
106th of 365, with limits
$633 a month
No published price5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An agent that lives on its machine all month outlasts both. Modal ends a sandbox within 24 hours, and your code continues from a filesystem snapshot. Deno ends one within 30 minutes. On boat, turn auto-stop off on a paid plan (default 1 hour) and there is no session cap.
61st of 361, with limits
$1,574 a month
No published price6th 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 suit short code runs. Modal ranks 11th here with a full match at about $140 a month. A new team cannot choose Deno Sandbox: it is closed to new customers since November 2026, so it has no price or rank.
15th cheapest of 336
$140 a month
No published price189th 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
Modal fits sandboxes for your users with up to 5,000 containers on Team and ranks 15th at about $671 a month. boat ranks 2nd at about $209: a stopped sandbox has no compute charge and keeps its disk for at least 14 days. A new team cannot choose Deno Sandbox.
18th cheapest of 349
$671 a month
No published price3rd 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
RL rollouts launch many short sandboxes at once, which Modal is built for: 5,000 containers at once on Team. Deno Sandbox is closed to new customers, and existing organizations get 5 at once by default.
6th cheapest of 349
$11,982 a month
No published price39th 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
62nd cheapest of 359
$889 a month
No published price10th 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 Docker images need the VM runtime on Modal (runtime="vm"). Deno does not document Docker. Every boat sandbox runs Docker.
110th cheapest of 374
$1,112 a month
No published price2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
129th of 371, with limits
$9.07 a month
No published price19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Modal has no built-in desktop, but its official example installs Xvfb, Chromium and noVNC in a VM sandbox. With that setup Modal ranks 6th at about $153 a month, and boat ranks 8th at $200 with its desktop built in. Deno documents no desktop.
45th cheapest of 367
$153 a month
No published price7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
57th of 356, with limits
$121 a month
No published price7th 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
98th cheapest of 343
$252 a month
No published price6th 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
171st of 327, with limits
$5,957 a month
No published price73rd 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
289th of 351, with limits
$464 a month
No published price3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Modal has GPUs from T4 to B300. Neither Deno Sandbox nor boat has any, so Modal is the pick for GPU jobs.
18th cheapest of 102
$1,116 a month
No published priceNot 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 requirementNo published priceNot ranked: misses a requirement

Key features

FeatureModalDeno Sandboxboat
IsolationgVisor by default; VM runtime with its own kernel (runtime="vm")Firecracker microVM with its own kernelFull VM with its own kernel on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Machine sizeYou request CPU and memory per sandbox; 512 GiB disk by default2 vCPU (no CPU option documented), 768 MB to 4 GB memory, 10 GB disk2 to 16 vCPU and 4 to 32 GB, with 51 to 251 GB of disk; 16 vCPU needs the $100 plan or higher
Longest session24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandboxUp to 30 minutes; longer work can be promoted to a Deno Deploy appAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap
Disk that persistsNo paused state; filesystem and directory snapshots keep files after a sandbox ends (30 days by default, or no expiry); Volumes keep foldersDefault root disk wiped at the end; a bootable volume (300 MB to 20 GB, Chicago only) can be the root disk and keeps its filesWhole disk saved every minute and at each stop with no code; a stopped sandbox keeps its disk for at least 14 days; writes after the last snapshot can be lost if a machine fails
Snapshots and forkOne filesystem snapshot boots many identical sandboxes; memory snapshots in alpha end the sandbox and expire after 7 daysRead-only snapshots of a volume that new sandboxes can boot from (Chicago only)Automatic disk snapshots; fork a running sandbox from its last 1-minute snapshot; no memory snapshots
Docker and nested virtualizationDocker with the VM runtime; nested virtualization on the VM runtime, Enterprise plan only, as an experimental optionDocker and nested virtualization not documentedDocker, systemd and /dev/kvm in every sandbox
GPUsT4 to B300, on the gVisor runtime; 10 at once on Starter, 50 on TeamNoneNone
Desktop, browser, computer useNo built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandboxNo desktop documented; a VS Code editor in the browser and SSH; you install a browser with apt-get1920x1080, 60 fps desktop, Chrome and computer tools built in
Availability and sandboxes at onceSelf-serve; 100 containers at once on Starter, 5,000 on Team; no start-rate cap publishedClosed to new customers since November 2026; existing organizations get 5 at once by default100 at once on the $20 plan, 2,000 on $2,000; $20 includes 12 starts a minute and 200 a day; extra starts $0.03 to $0.07
Inbound accessEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistHTTPS URL per exposed port, public without authentication; SSHHTTPS URLs for up to 50 ports, token-gated by default; SSH; raw ports (IPv6 only on sandboxes without their own IPv4)
Outbound rulesBlock all, IP-range allowlist, domain allowlist (beta)Host allowlist per sandbox, enforced outside your codeOpen internet, no provider-side allowlist
Keeping API keys out of the sandboxSecrets are environment variables, or you run your own proxy in a sidecar (beta example)Any secret swapped in on outbound HTTPS requests to approved hosts; the sandbox sees a placeholderOptional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for supported model providers; other secrets enter the sandbox
Coding agentsYou install a harness in the image (official OpenCode example)A root image with Claude Code, run through the shell command APISeven agent harnesses installed, with a prompt, steer and events API
Start time and regions100 sandboxes at once: median 796 ms to first command (ComputeSDK, 6 November 2026, default size); US, EU and Asia-Pacific, pinning a region costs 1.15x to 1.75xUnder 200 ms, as stated by Deno; Amsterdam and ChicagoBoots a full VM; not in the public start-time benchmarks we use; Germany, Finland and France, no region choice
Every feature Battleships tracks (43)
FeatureModalDeno Sandboxboat
Full VM (own kernel)No documented wayYesYes
Docker insideNo documented wayNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNo documented wayNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APIWith your own setupNo documented wayYes
SSHWith your own setupYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayNo documented wayYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)Not publishedNo documented wayYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsWith your own setupYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayNo documented wayNo documented way
GPUYesNo 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 limitsNot publishedYesYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesNot publishedNo documented way
HIPAAYesNot publishedNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Modal12.60 runs/s
Deno SandboxNot measured
boat28.06 runs/s

StarSling's run of 3 October 2026 (run 37073680030) ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, median of 5 sandboxes. Modal's VM runtime did 15.48 runs/s and its default gVisor runtime 12.60. boat did 28.06, second of 15. 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. Deno Sandbox is not in the public benchmarks we use, so we cannot say which is faster. Deno says a sandbox starts in under 200 ms, which is a start time, not a CPU score.

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. Modal measured on: Sandbox (gVisor), request = size, any region. 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. Deno 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.

ScenarioModal, a monthDeno 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
$0 · StarterNo published price$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$109 · Starter · with limitsNo published price$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
$1,480 · Starter · with limitsNo published price$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
$579 · TeamNo published price$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
$1,911 · Team · with limitsNo published price$8,800 · $2000/mo · with limits

Modal: Modal bills by the second for whichever is higher, the CPU and memory you request or what you use, and an idle sandbox pays until it is terminated. Modal prices CPU per physical core, and one core equals 2 vCPU, so a 4 vCPU / 8 GiB sandbox is $0.476 an hour at a full request. StarSling ran Modal with cpu=4 and the sandbox saw 4 CPUs (PR #121); sized that way, Modal bills 4 cores, $0.76 an hour. Starter is free with $30 of monthly credit, and Team is $250 a month with $100 of credit.

Deno Sandbox: Deno Sandbox is no longer included in Deno Deploy plans and is not available to new customers (November 2026). Deno publishes no current sandbox rates, so this page gives Deno no price.

Deno Sandbox: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default sandbox (4 vCPU / 8 GB) costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge and keeps its disk for at least 14 days, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; each extra start costs $0.03 to $0.07.

Limits in those scenarios

Modal fits two of the five scenarios as priced: one workday agent and sandboxes for your users. A sandbox lives at most 24 hours, so always-on work needs your code to snapshot the filesystem and start a new sandbox each day, and the 50-agent fleet needs Docker, which takes the VM runtime. For 1,000 short jobs at once, Modal's tier uses shared vCPUs. Deno Sandbox has no price in our scenarios, because it is closed to new customers. boat fits four of the five. For 1,000 short jobs at once, its $2,000 plan includes 90 starts a minute and 2,400 a day, bills extra starts at $0.03 to $0.07, and refuses starts above 3 times the included rate per minute.

ScenarioModalDeno Sandboxboat
One coding agent, workdaysNone for this scenario
  • discontinued / closed to new customers
None for this scenario
One agent that never stops
  • Starter: sessions capped at 24 h
  • discontinued / closed to new customers
None for this scenario
50 agents in parallel
  • missing Docker inside
  • discontinued / closed to new customers
None for this scenario
Sandboxes for your usersNone for this scenario
  • discontinued / closed to new customers
None for this scenario
1,000 short jobs at once
  • shared vCPUs on this tier (Modal sells dedicated cores separately as “Sandbox (gVisor), request = size, any region”): heavy, sustained CPU use can be slowed by other tenants
  • discontinued / closed to new customers
  • 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 Modal when

your sandboxes need GPUs, run up to a day, must run in many regions, need an outbound allowlist, or come in huge bursts of thousands at once.

  • GPUs next to your sandboxes. Useful if your agent trains or runs models: Modal rents GPUs from T4 to B300 on the same platform as its sandboxes.
  • Longer runs and very large fleets. A Modal sandbox can run 24 hours, against 30 minutes on Deno, and Team runs up to 5,000 containers at once.
  • Open to new customers, more regions, bigger machines. Modal is self-serve, runs in the US, EU and Asia-Pacific and lets you size CPU and memory. Deno Sandbox is closed to new customers and fixed at 2 vCPU.

Use Deno Sandbox when

Use Deno Sandbox if your organization already has it and you run short pieces of untrusted code that must start in milliseconds and reach only the hosts you allow. New customers cannot sign up since November 2026.

  • Fast starts and active-CPU billing. Good for short bursts of code: Deno says a sandbox starts in under 200 ms, and its launch post billed CPU only while code runs.
  • Locked-down traffic and hidden secrets. For untrusted code: Deno allows only listed hosts, enforced outside your code, and swaps placeholder secrets for real ones.
  • A path to Deno Deploy. Fits organizations that already have Deno Sandbox: a sandbox can be promoted to a Deno Deploy app. New customers cannot sign up.

Where boat fits

Modal and Deno Sandbox both treat a sandbox as something that ends: within 24 hours on Modal and 30 minutes on Deno. On Modal your code takes a filesystem snapshot to carry work forward; on Deno a volume keeps files. If you run coding agents that work for hours or days, with Docker, a browser and a project that should still be there tomorrow, look at boat. It gives each agent a full VM that saves its disk with no code and stops with no compute charge.

A machine that keeps its work with no code

Modal can keep a sandbox's whole root disk with a filesystem snapshot, but your code takes it and starts a new sandbox from it. Deno keeps files only in a volume, in Chicago. boat saves the whole disk every minute and at each stop. If a machine fails, boat loses writes made after the last snapshot.

Docker, /dev/kvm and a desktop built in

Modal runs Docker on its VM runtime, which has no GPUs, and you install a desktop yourself from its official example. Deno does not document Docker. boat has Docker, /dev/kvm and a 60 fps desktop in every sandbox.

Room and speed for builds

Deno documents 2 vCPU and up to 4 GB, so big builds run slowly or run out of memory. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, Modal's VM runtime 15.48 and its gVisor runtime 12.60. Providers ran on different hardware in different regions.

Use boat when your agents work for hours or days: installs, builds, tests, Docker and a desktop, on a VM that saves its disk with no code. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs Modal and boat vs Deno 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 Modal cheaper than Deno Sandbox?

We cannot compare. Deno Sandbox is closed to new customers since November 2026, and Deno publishes no current sandbox rates. On Modal, one workday agent costs $0 inside the $30 Starter credit, and 30,000 short user sessions cost about $579 a month. On boat the same two cost $20 and $200.

Which is faster, Modal or Deno Sandbox?

For CPU work only Modal has a measurement. In StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 runs/s and its gVisor runtime 12.60 at 4 vCPU / 8 GB, and boat did 28.06. Deno Sandbox is not in that benchmark and is fixed at 2 vCPU. Deno says its sandboxes start in under 200 ms.

Can Modal or Deno Sandbox run Docker?

Modal runs Docker with its VM runtime, chosen with runtime="vm", which has no GPUs. Deno's docs do not say Docker works inside a sandbox. Every boat sandbox runs Docker and systemd and exposes /dev/kvm.

How long can a sandbox run on Modal and on Deno?

A Modal sandbox defaults to 5 minutes and can run up to 24 hours; for longer work Modal recommends a filesystem snapshot and a new sandbox. A Deno sandbox lives up to 30 minutes, and you can promote it to a Deno Deploy app. boat auto-stop defaults to 1 hour; on a paid plan you can turn it off, and then there is no session cap.

Do Modal and Deno Sandbox keep files?

Yes, in different ways. Modal's filesystem snapshot saves the whole root disk, installed packages included, for 30 days by default or with no expiry, and a Volume keeps one folder. Deno keeps files in volumes of 300 MB to 20 GB, only in Chicago. boat saves the whole disk every minute and at each stop with no code, and keeps a stopped sandbox's disk for at least 14 days.

Which one has GPUs?

Modal rents GPUs from T4 to B300, with 10 at once on Starter and 50 on Team. Deno Sandbox has none, and neither does boat.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons