Upstash Box vs Modal VM Sandboxes

Upstash Box gives each agent a light container that pauses when idle, keeps its files and wakes on the next request. Modal VM Sandboxes give each agent a real Linux VM with Docker and systemd. Each VM runs up to 24 hours, and a filesystem snapshot or a Volume carries its files to the next one.

The companies and products

Upstash Box

Upstash Box is a cloud computer for AI agents from Upstash, the company known for serverless Redis, Vector and QStash.

Each box is a Docker container with its own filesystem, shell, git and an optional coding agent such as Claude Code, Codex, OpenCode or Cursor, which you drive from TypeScript or Python SDKs. A box pauses when it sits idle, keeps its files, and you pay for the CPU it actually uses. Upstash built it to run its own Context7 service and opened it to everyone in March 2026.

Modal VM Sandboxes

Modal is a serverless cloud for AI work, and VM Sandboxes are the version of its sandboxes that run in a virtual machine with their own Linux kernel.

You create a VM Sandbox from Python, TypeScript or Go code with runtime="vm", run commands in it, and terminate it when the job is done. Modal built the runtime on the Rust-based Cloud Hypervisor, so Docker, FUSE, systemd and nested cgroups work, with the same API, images and prices as its gVisor sandboxes. It became generally available on 1 October 2026. It suits teams that want many agent machines next to Modal's inference and training.

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. “13th cheapest of 336” means 12 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 workloadUpstash Box: price rankModal VM Sandboxes: 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 for databases and test services. Modal's VM runs it, and you snapshot the filesystem or use a Volume to carry work past 24 hours. Each Upstash box is a Docker container, and Upstash does not document running Docker inside it. boat runs Docker in a VM that saves its disk with no code.
98th of 365, with limits
$464 a month
27th cheapest of 365
$633 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
170th of 361, with limits
$450 a month
Not ranked: misses a requirement6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Short code runs suit both. An idle Upstash box costs no CPU, and a paused box wakes when work arrives. Modal bills per second on the larger of request and use, and runs up to 5,000 containers at once on Team.
13th cheapest of 336
$119 a month
Not ranked: misses a requirement189th 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
Users who come back to the same sandbox fit all three. Upstash and boat keep files between visits with no code. On Modal you snapshot each user's filesystem and boot from it when the user returns; snapshots are kept 30 days by default, or with no expiry.
4th cheapest of 349
$222 a month
Not ranked: misses a requirement3rd 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
Huge bursts of short rollouts suit Modal: Team runs 5,000 containers at once with no per-start fee. Upstash runs 1,000 boxes at once on Pay as You Go. boat charges for starts above 90 a minute and refuses them above 270, even on the $2,000 plan.
343rd of 349, with limits
$8,000 a month
163rd of 349, with limits
$11,982 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
67th cheapest of 359
$1,011 a month
Not ranked: misses a requirement10th 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 container images need Docker, which Modal's VM and boat run. Upstash does not document Docker inside a box. For Android emulators, boat has /dev/kvm on every plan, and Modal offers nested virtualization on Enterprise only, as an experimental option.
122nd cheapest of 374
$1,480 a month
170th of 374, with limits
$655 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box that stays on all month fits Upstash's flat-price keep-alive box ($16 a month for 4 vCPU / 8 GB) and boat ($26 running all month). A Modal VM stops at 24 hours, so you boot a new one from a filesystem snapshot each day.
8th cheapest of 371
$19 a month
Not ranked: misses a requirement19th 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 screen. Upstash runs Chromium on a virtual display with a view-only live view, and has no desktop or VNC. On Modal you set it up: its runnable example installs Xvfb, x11vnc, noVNC and Chromium. boat streams a Linux desktop at 60fps.
123rd of 367, with limits
$76 a month
Not ranked: misses a requirement7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
48th of 356, with limits
$38 a month
Not ranked: misses a requirement7th 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
41st cheapest of 343
$400 a month
Not ranked: misses a requirement6th 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
201st of 327, with limits
$8,000 a month
Not ranked: misses a requirement73rd 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
Parallel red-team agents often need Docker in a full VM. In the Parallel red teaming ranking, boat is #3 at $200 a month and Modal VM Sandboxes #27 at $464. Upstash does not document Docker inside a box.
255th of 351, with limits
$259 a month
27th cheapest of 351
$464 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

FeatureUpstash BoxModal VM Sandboxesboat
IsolationDocker container per box on AWSVM with its own Linux kernel on Cloud HypervisorFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Docker and systemd insideEach box is a Docker container; Upstash does not document running Docker inside it, and custom images are listed as coming soonYes; you start dockerd yourselfYes, Docker and systemd run in every sandbox as on any Linux server
Nested virtualizationNot documented; boxes are containersEnterprise plan only, as an experimental optionYes, /dev/kvm on every plan for Android emulators and VMs
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)Not in the public benchmarks we useVM runtime 15.48 runs/s, gVisor 12.60, both rank 7 of 15 (shared); measured with cpu=428.06 runs/s, second of 15, on an AMD Ryzen 9 9950X host
Longest sessionNo cap documented; a box pauses when idle and resumes later, and a keep-alive box stays on24 hours (default 5 minutes); continue in a new sandbox from a filesystem snapshotNo cap once auto-stop is off on a paid plan (default 1 hour, up to 30 days)
Stop and resumePauses itself after 6 hours idle on paid plans and keeps its files; storage keeps billing while pausedNo paused state. You set it up: snapshot the filesystem (kept 30 days by default, or with no expiry) and boot a new sandbox from it, or keep files in a VolumeStop saves the disk with no code; no compute charge while stopped; disk kept at least 14 days; a resume is like a reboot
Wake on requestYes; a request to a public URL resumes a paused box and waits for the appNo paused state to wake from; your code boots a new sandbox from a snapshotNo; a stopped sandbox is started by API
Fork and snapshotsSnapshot a running box and start many new boxes from itSnapshot a running sandbox's filesystem and boot any number of new sandboxes from it; memory snapshots in alpha end the sandboxFork a running sandbox from its last 1-minute disk snapshot; writes from the last minute or so can be missing
Disk10, 20 or 30 GB by size; Medium (4 vCPU) is 20 GB in the docs and 30 GB in the pricing tableFixed 512 GiB root filesystem on VMs51 GB on 2 and 4 vCPU sizes, up to 251 GB on xlarge; fixed per size
Desktop and browserManaged Chromium on a virtual display with AI page actions, CDP, recordings and a view-only live stream; no desktop or VNCNot built in. You set it up: Modal's runnable example installs Xvfb, x11vnc, noVNC, Chromium and a Browser Use agentLinux desktop and Chrome streamed at 1920x1080, 60fps, with computer-use tools
Coding agentsClaude Code, Codex, OpenCode and Cursor built in, plus custom agents, with run and stream APIs, webhooks and scheduled promptsYou install the harness in the image; official examples cover the Claude Agent SDK and OpenCodeSeven harnesses preinstalled, with a prompt, steer and events API
Keeping API keys out of the sandboxHost proxy injects headers into outbound HTTPS on port 443 for any host; set when the box is createdYou set it up: run a credential-injecting proxy in a Sidecar (experimental), from an official exampleOptional AI credentials proxy ($1 a day plus $1 per 1,000 requests) for supported model providers; other secrets still enter the sandbox
Inbound accessHTTPS URL per port, public unless you add a token or basic auth; SSH through a gateway; no raw TCP documentedEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistUp to 50 HTTPS URLs, token-protected by default; raw ports over IPv6 on sandboxes with no IPv4 of their own
Outbound rulesAllow all, deny all, or allow and deny by domain and CIDR, changeable on a running boxBlock all, IP-range allowlist, domain allowlist (beta)Open internet, no provider-side allowlist
RegionsAWS us-east-1; custom regions on EnterpriseUS, EU and Asia-Pacific plus narrower regions; pinning costs 1.15x to 1.75xGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureUpstash BoxModal VM Sandboxesboat
Full VM (own kernel)No documented wayYesYes
Docker insideNot publishedYesYes
Nested virtualizationNo documented wayYesYes
RootNot publishedYesYes
SystemdNot publishedYesYes
Desktop GUINo documented wayWith your own setupYes
BrowserYesWith your own setupYes
Computer-use APINo documented wayWith your own setupYes
SSHYesWith your own setupYes
Persistent diskYesWith your own setupYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNot publishedYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesWith your own setupYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesWith your own setupYes
Agent harness APIYesNo documented wayYes
MCP serverYesNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64YesNo 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 publishedNot publishedYes
Usage per sandbox (API)YesNot publishedYes
Audit logsNot publishedYesNo documented way
SSONo documented wayYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayYesNo documented way
EU data residencyNo documented wayYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Upstash BoxNot measured
Modal VM Sandboxes15.48 runs/s
boat28.06 runs/s

On the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, in StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s, second of 15. Modal's VM runtime did 15.48 and its gVisor runtime 12.60, both rank 7 (shared). StarSling ran Modal with cpu=4, and the sandbox saw 4 CPUs (PR #121); sized that way, Modal bills 4 cores, $0.76/h. 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. Upstash Box is not in StarSling's CPU benchmark. ComputeSDK measured it at its default size: a median of 2.34 s to the first command with 100 at once (2026-11-06), and 445 ms one at a time (2026-08-07).

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 VM Sandboxes measured on: VM Sandbox, request = size. 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. Upstash Box 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.

ScenarioUpstash Box, a monthModal VM Sandboxes, 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
$21 · Pay as You Go$0 · Starter$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$21 · Pay as You Go$109 · Starter · 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
$900 · Pay as You Go · with limits$1,480 · Starter$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
$306 · Pay as You Go$579 · Team$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,822 · Pay as You Go$1,911 · Team · with limits$8,800 · $2000/mo · with limits

Upstash Box: A standard box is billed for the CPU it actually uses, at $0.10, $0.20 or $0.40 per active CPU hour for Small, Medium and Large, plus $0.10 per GB-month of storage, snapshots included. RAM is free, and Pay as You Go has no monthly fee. A keep-alive box costs a flat $8, $16 or $32 a month whether it is busy or not. Egress has no published price.

Modal VM Sandboxes: Modal prices CPU per physical core, and one core equals two vCPUs. It bills by the second for the larger of the CPU and memory you request and what you use, until the sandbox ends. A 4 vCPU / 8 GiB sandbox is 2 cores + 8 GiB: $0.476 an hour when the request equals the size. The scenario bills use a minimal request that bursts above it, which is not guaranteed. Starter is $0 with $30 of credit a month. Team is $250 a month with $100 of credit. Egress above the plan allowance costs $0.04 per GiB.

Modal VM Sandboxes: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A running sandbox bills per second at full rate, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. Egress is not billed. A stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

Upstash does not document Docker inside a box, so the 50-agent scenario does not fit there. Its disks stop at 10, 20 or 30 GB by size (Medium is 20 GB in the docs, 30 GB in the pricing table), and its egress price is not published. A Modal VM Sandbox runs 24 hours at most, and files carry over through a filesystem snapshot or a Volume, which your code sets up. So the always-on scenario needs a new sandbox each day and is marked as not fitting as-is. Modal fits the workday, 50-agent and user-sandbox scenarios; its 1,000-job burst relies on shared CPU above a minimal request. Upstash fits the burst at $1,822 a month. boat runs 100 sandboxes at once on the $20 plan and 2,000 on the $2,000 plan. Even the $2,000 plan includes only 90 starts a minute; extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat never queues a start, so it does not fit the burst.

ScenarioUpstash BoxModal VM Sandboxesboat
One coding agent, workdays
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenarioNone for this scenario
One agent that never stops
  • flat pool: the tier is billed whether used or not
  • egress price not published
  • Starter: sessions capped at 24 h
None for this scenario
50 agents in parallel
  • not confirmed: Docker inside
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenarioNone for this scenario
Sandboxes for your users
  • egress price not published
None for this scenarioNone for this scenario
1,000 short jobs at once
  • egress price not published
  • shared vCPUs on this tier (Modal (VM Sandboxes) sells dedicated cores separately as “VM Sandbox, request = size”): heavy, sustained CPU use can be slowed by other tenants
  • 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 Upstash Box when

your agents mostly wait, need to wake on an incoming request, run light work without Docker, must stay inside a strict outbound allowlist, start in big bursts, or must run in the US.

  • Idle costs no CPU, and a request wakes the box. Good for agents that wait a lot: an idle box costs no CPU, RAM is free, and a request to its URL wakes it.
  • Boxes that stay around. A box keeps its files across pauses with no documented session cap, and a keep-alive box stays on all month for a flat price.
  • Coding agents built in. Useful if you want Claude Code, Codex, OpenCode or Cursor ready in each box, with streaming, webhooks and scheduled prompts.

Use Modal VM Sandboxes when

you need Docker in a real VM for jobs that finish within a day, run huge bursts of them, need a large disk or regions outside Europe, or already run your models on Modal.

  • A real kernel for Docker and systemd. Each sandbox is a VM with its own Linux kernel, so Docker, FUSE and systemd work for jobs that need them.
  • Very large bursts and a big disk. Useful for huge fan-outs that finish within a day: Team runs 5,000 containers at once, and each VM has 512 GiB of disk.
  • Regions and one AI platform. Runs in the US, EU and Asia-Pacific, next to Modal's inference and training on the same account and bill.

Where boat fits

Look at boat if your agents install, build, test and come back to the same machine for days. It gives each one a full VM with Docker that saves its disk with no code and has no session cap once auto-stop is off. boat bills a running sandbox at full rate, has no US region and caps starts per plan.

Docker and emulators in every sandbox

Each Upstash box is a Docker container, and Upstash does not document running Docker inside it. Modal runs Docker, but offers nested virtualization on Enterprise only, as an experimental option. boat has Docker and /dev/kvm on every plan.

A machine that keeps its work with no code

A Modal VM ends within 24 hours, so you snapshot its filesystem or keep files in a Volume. Upstash keeps files, but its disks stop at 30 GB. boat saves the disk every minute and at each stop, with 51 GB at the default size. If a boat machine fails, writes after the last good snapshot are lost.

A desktop the agent can see

Computer-use agents need a screen to look at and click. Upstash has a Chromium a person can only watch, with no desktop or VNC. On Modal you set up Xvfb, VNC and the browser from its example. boat streams a Linux desktop at 60fps.

Use boat when your agents need a real machine they come back to: Docker, emulators, a desktop and a disk saved every minute with no code, with no session cap once auto-stop is off. Compare it one to one: boat vs Upstash Box and boat vs Modal VM Sandboxes.

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 Upstash Box cheaper than Modal VM Sandboxes?

In most of our scenarios, yes. One always-on agent is $21 a month on Upstash against $109 on Modal, where a Modal VM also needs a new sandbox each day. Sandboxes for your users are $306 against $579, and 1,000 short jobs at once $1,822 against $1,911. For one agent on workdays Modal costs $0 inside Starter's $30 monthly credit, against $21; you snapshot the filesystem or use a Volume to keep files between days. For 50 agents, Modal fits at $1,480 and Upstash does not. boat comes to $20, $26, $317 and $200 for the first four.

Which is faster, Upstash Box or Modal VM Sandboxes?

Upstash Box is not in StarSling's CPU benchmark, so we cannot compare them on CPU. 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. boat did 28.06 in the same run, on an AMD Ryzen 9 9950X host.

Can Upstash Box or Modal VM Sandboxes run Docker?

Modal VM Sandboxes can: each is a VM with its own kernel, and you start dockerd yourself. Each Upstash box is a Docker container, and Upstash does not document running Docker inside it. boat runs Docker and systemd in every sandbox.

How long can each one run?

A Modal VM Sandbox runs 5 minutes by default and 24 hours at most; a filesystem snapshot carries its files to a new sandbox. An Upstash box has no documented cap: it pauses when idle and resumes with its files, and a keep-alive box stays on. boat has no session cap once auto-stop is off on a paid plan; the default is 1 hour.

Where do Upstash Box and Modal VM Sandboxes run?

Upstash Box runs in AWS us-east-1, with custom regions on Enterprise. Modal runs in the US, EU and Asia-Pacific, and pinning a region costs 1.15x to 1.75x. boat runs on machines in Germany, Finland and France, and you cannot pick a region.

Is boat SOC 2 compliant?

SOC 2 is in progress at boat, so there is no SOC 2 report today. Modal has SOC 2 on every plan, and Upstash's trust center lists SOC 2 Type II for the company. boat's live status is at status.ascii.dev and its data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons