Modal vs Unikraft Cloud
Modal runs sandboxes under gVisor or a VM runtime on a big AI compute platform with GPUs, billed per second and capped at 24 hours; filesystem snapshots carry work to a new sandbox. Unikraft Cloud turns a Dockerfile into a small Firecracker microVM that sleeps when idle and wakes on the next request, sold as flat plans with a fixed pool of running capacity.
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.
Unikraft Cloud
Unikraft Cloud is a microVM cloud from Unikraft Inc. It runs any Dockerfile-based workload as a minimal Linux microVM, with cold starts it states as under 10 ms and scale-to-zero.
Your Dockerfile becomes the VM image at build time. Each instance runs on a customized Firecracker VMM and can go into standby when no traffic arrives. It is a general compute platform for dense, bursty work such as HTTP services, browsers and agent fleets. It sells flat self-serve plans, plus Enterprise dedicated hosts, on-prem and bring your own cloud. You reach instances through services, the CLI and a sandbox plugin for commands and files. For SSH or a desktop, you add them to your image with its official guides.
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 workload | Modal: price rank | Unikraft Cloud: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month | 106th of 365, with limits $633 a month | Not ranked: misses a requirement | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An agent that never stops hits Modal's 24-hour cap, so your code snapshots the filesystem and starts a new sandbox each day. On Unikraft it shares the plan's memory pool. boat ranks #6 at $657, with no session cap once auto-stop is off on a paid plan. | 61st of 361, with limits $1,574 a month | Not ranked: misses a requirement | 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 Short code runs fit Modal well: it ranks #15 at $140 a month, with fast starts and up to 5,000 containers on Team. Unikraft suits the shape too, since standby instances do not use the pool, but self-serve plans stop at 24 running instances. | 15th cheapest of 336 $140 a month | Not ranked: misses a requirement | 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 Modal fits hundreds of user sandboxes on its Team plan, at $671 a month. Unikraft Pro holds 5,000 standby instances but 24 running ones. boat ranks #3 at $209; a stopped boat sandbox has no compute charge and keeps its disk for at least 14 days. | 18th cheapest of 349 $671 a month | Not ranked: misses a requirement | 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 RL rollouts launch many short sandboxes at once, which Modal is built for (#6 here) and which is beyond Unikraft's self-serve pools. | 6th cheapest of 349 $11,982 a month | Not ranked: misses a requirement | 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 | 62nd cheapest of 359 $889 a month | Not ranked: misses a requirement | 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 Docker images run on Modal with runtime="vm", at $1,112 a month here. Unikraft documents no container runtime inside a running instance. boat ranks #2 at $86 and runs Docker in every sandbox. | 110th cheapest of 374 $1,112 a month | Not ranked: misses a requirement | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Unikraft fits a box kept all month at $39 a month (#121); you add sshd to your image and reach it through a TLS tunnel. On Modal your code restores the disk from a filesystem snapshot each day. boat ranks #19 at $26, with built-in SSH. | 129th of 371, with limits $9.07 a month | 121st cheapest of 371 $39 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 Modal ranks #45 here at $153 a month: its official example installs Xvfb, Chromium and noVNC in a VM sandbox. Unikraft documents a VNC desktop recipe that you build into your image. boat ranks #7 at $200 with a built-in 60 fps desktop. | 45th cheapest of 367 $153 a month | Not ranked: misses a requirement | 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 | 57th of 356, with limits $121 a month | Not ranked: misses a requirement | 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 | 98th cheapest of 343 $252 a month | Not ranked: misses a requirement | 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 | 171st of 327, with limits $5,957 a month | Not ranked: misses a requirement | 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 | 289th of 351, with limits $464 a month | Not ranked: misses a requirement | 3rd cheapest of 351 $200 a month |
| GPU eval jobs 10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month Modal rents GPUs from T4 to B300 next to its sandboxes. Unikraft offers NVIDIA GPUs on Enterprise, and boat has none. | 18th cheapest of 102 $1,116 a month | Not ranked: misses a requirement | Not 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Modal | Unikraft Cloud | boat |
|---|---|---|---|
| Isolation | gVisor by default; VM runtime with its own kernel available (Modal VM Sandboxes) | Minimal Linux microVM on a customized Firecracker VMM; full VMs on Enterprise | Full VM with its own kernel, on AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; vCPUs are shared |
| Docker inside | Yes with the VM runtime (runtime="vm"), at the same price; not documented on gVisor | The Dockerfile becomes the VM image; no container runtime inside documented | Yes, Docker, systemd and root in every sandbox |
| Nested virtualization | VM runtime only, Enterprise plan, as an experimental option | Enterprise only, with a per-instance flag | Yes, /dev/kvm on every plan |
| SSH | Raw TCP tunnels to a server you run in the sandbox | SSH through sshd in your image and a TLS tunnel (socat or 'unikraft instances tunnel'); no built-in SSH endpoint | Built in on every sandbox, no tunnel |
| Desktop, browser, computer use | No built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox | No prebuilt desktop; an official VNC/noVNC recipe you build into your image | Built-in 1920x1080, 60 fps desktop, Chrome and computer tools |
| Idle and wake | No paused state; an idle sandbox pays until it is terminated | Standby after 1 second idle by default, wakes on the next request | Stop with no compute charge and the disk saved; start again by API |
| Longest session | 24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandbox | No published maximum | No cap once auto-stop is off on a paid plan (default 1 hour, timer up to 30 days) |
| Files between sessions | Root disk ends with the sandbox unless you save a filesystem snapshot (30 days by default, or indefinitely) and restore from it, or write to a Volume | Volumes, and stateful standby keeps memory and caches | Disk saved every minute and at each stop, with no code; kept at least 14 days |
| Snapshots and fork | One filesystem snapshot boots many new sandboxes; memory snapshots in alpha end the sandbox | Checkpoint a running microVM with a pause of a few milliseconds and start new instances from it | Fork a running sandbox from its last 1-minute disk snapshot, without stopping it |
| Custom images | Build images in code or pull any linux/amd64 registry image | Any Dockerfile, built into the VM image | boat's image or a saved snapshot; you cannot boot your own Docker image |
| GPUs | T4 to B300; 10 at once on Starter, 50 on Team | NVIDIA GPUs and vGPUs on Enterprise | None |
| Running at once, self-serve | 100 containers on Starter, 5,000 on Team | 2, 8 or 24 running instances sharing a pool of 2 vCPU / 4 GiB, 8 vCPU / 8 GiB or 24 vCPU / 32 GiB | 100 to 2,000 sandboxes at once on paid plans, up to 16 vCPU / 32 GB each; starts limited per plan |
| Outbound network rules | Block all, IP-range allowlist, domain allowlist (beta) | Network shield, Enterprise only, limited access | Open internet, no provider-side allowlist |
| Coding agents and API keys | You install the harness in the image (official OpenCode example); secrets are environment variables or your own sidecar proxy (beta) | You add the agent to your image; secret injection is part of the Enterprise network shield | Seven harnesses installed with a prompt API; optional paid AI credentials proxy on every plan |
| Regions | US, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75x | Dallas, Frankfurt, San Francisco, Singapore and Washington DC; more on request | Germany, Finland and France; no US or Asia region, and you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Modal | Unikraft Cloud | boat |
|---|---|---|---|
| Full VM (own kernel) | No documented way | Yes | Yes |
| Docker inside | No documented way | No documented way | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Yes | Yes |
| Systemd | No documented way | Not published | Yes |
| Desktop GUI | With your own setup | With your own setup | Yes |
| Browser | With your own setup | With your own setup | Yes |
| Computer-use API | With your own setup | No documented way | Yes |
| SSH | With your own setup | With your own setup | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | No documented way | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Not published | Yes | Yes |
| Memory fork | Yes | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | No documented way | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | Yes | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | With your own setup | No documented way | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | No documented way | No documented way | No documented way |
| GPU | Yes | Yes | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Not published | Yes |
| Usage per sandbox (API) | Not published | No documented way | Yes |
| Audit logs | Yes | Yes | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Unikraft Cloud is not in the public CPU benchmark we use, so there is no comparable measurement for it. In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB did 28.06 runs/s on boat (second of 15), 15.48 on Modal's VM runtime and 12.60 on Modal gVisor. StarSling ran Modal with cpu=4, and the sandbox saw 4 CPUs (PR #121). Every boat sandbox in that run ran on an AMD Ryzen 9 9950X host; boat also places some sandboxes on other hosts and does not promise a CPU model. Providers ran on different hardware in different regions. Unikraft states cold starts under 10 ms; that is its own figure and measures start time, not CPU speed.
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. Unikraft Cloud 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.
| Scenario | Modal, a month | Unikraft Cloud, a month | boat, 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 · Starter | $39 · Hobby | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $109 · Starter · with limits | $39 · Hobby | $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 limits | Not ranked: misses a requirement | $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 · Team | Not ranked: misses a requirement | $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 limits | Not ranked: misses a requirement | $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 4 vCPU / 8 GiB costs $0.476 an hour at a full request. StarSling ran Modal with cpu=4 (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.
Unikraft Cloud: Unikraft Cloud charges a flat monthly fee for a pool of running capacity: free for 2 vCPU / 4 GiB, $39 for 8 vCPU / 8 GiB, $199 for 24 vCPU / 32 GiB, with standby instances not counted. It publishes no per-hour, disk or egress rate, so anything bigger is an Enterprise quote.
Unikraft Cloud: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge. Saved snapshots above the plan's count ($0.056 a day each) and the optional AI credentials proxy still charge while sandboxes are stopped. Starts above the plan's included number cost $0.03 to $0.07 each.
Limits in those scenarios
On Modal, a sandbox lives at most 24 hours, so the workday, always-on and fleet scenarios restore work from a filesystem snapshot or a Volume, which your code sets up. The 50-agent fleet needs Docker, which Modal runs on its VM runtime. On Unikraft, every running instance shares the plan's pool: Team's 8 GiB is filled by one 4 vCPU / 8 GB agent, so 50 agents, 300 user sandboxes or 1,000 jobs at once fit no self-serve plan. boat fits all but the burst, where even the $2,000 plan includes only 90 starts a minute, charges for starts above that and refuses them above 270.
| Scenario | Modal | Unikraft Cloud | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users | None for this scenario |
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use Modal when
your sandboxes need GPUs, run as huge bursts of short jobs, or need outbound rules and regions outside Europe without a sales call.
- GPUs on the same platform. For agents that train or run models, Modal rents GPUs from T4 to B300 next to its sandboxes on self-serve plans.
- Very large bursts, self-serve. For huge numbers of short jobs, Modal runs up to 5,000 containers on Team without a sales call.
- Outbound rules and per-second billing. Modal can block outbound traffic or allow only chosen domains, and bills by the second instead of a flat pool.
Use Unikraft Cloud when
you run many small services or headless browsers that sleep most of the time and must wake fast, or want on-prem or your own cloud under Enterprise.
- Fast wake and scale-to-zero. For services that sleep most of the time, Unikraft instances go into standby when idle and wake on the next request.
- Memory checkpoints of running VMs. Unikraft can checkpoint a running microVM with a pause of a few milliseconds and start new instances from it.
- No session clock and your own hardware. Unikraft publishes no session limit, and Enterprise adds dedicated hosts, on-prem or your own cloud.
Where boat fits
If the sandboxes are for coding agents that work for hours, look at boat. Modal ends a sandbox within 24 hours, and your code carries work across with snapshots. Unikraft caps self-serve plans at small shared pools. Every boat sandbox is a full VM with Docker, a desktop, built-in SSH and a disk saved every minute.
A real machine with Docker and /dev/kvm
Agents run docker compose, databases and emulators. Modal runs Docker on its VM runtime, and nested virtualization needs the Enterprise plan. Unikraft documents no container runtime inside an instance and keeps nested virtualization for Enterprise. Every boat sandbox has both, on every plan.
Work kept with no code
Modal's root disk ends with the sandbox, within 24 hours, unless your code saves a filesystem snapshot or writes to a Volume. boat saves the disk every minute and at each stop, with no compute charge while stopped, and has no session cap once auto-stop is off. Saved snapshots above the plan's count and the optional AI credentials proxy still charge.
Desktop, agents and keys built in
On Modal and on Unikraft you build a desktop and coding agents into the image, with official recipes on both. boat has a 60 fps desktop, seven agents driven from outside and an optional paid credentials proxy. On Unikraft secret injection is Enterprise only.
Use boat when your agents need a whole machine for hours or days: Docker, /dev/kvm, SSH, a desktop, coding agents driven from outside, and a disk saved every minute. Compare it one to one: boat vs Modal and boat vs Unikraft Cloud.
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 Unikraft Cloud?
For one agent on workdays, Modal costs $0 inside its $30 Starter credit, against $39 for the Unikraft Team pool. To keep files between days, Modal needs a filesystem snapshot that your code saves and restores, or a Volume. For one agent that never stops, Unikraft costs $39 a month against $109 on Modal, which also caps sessions at 24 hours. For 50 agents or sandboxes for your users, no self-serve Unikraft plan is big enough. boat costs $20 and $26 for the first two.
Which is faster, Modal or Unikraft Cloud?
For CPU work, Unikraft has no comparable measurement. In StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 V8 Web Tooling runs/s and Modal gVisor 12.60, at 4 vCPU / 8 GB, and boat did 28.06 on an AMD Ryzen 9 9950X host. For start time, Unikraft says its microVMs cold boot in under 10 ms, which is its own figure.
Can Modal or Unikraft Cloud run Docker inside?
Modal runs Docker with its VM runtime (runtime="vm"), at the same price; the default gVisor runtime does not document it. Unikraft builds your Dockerfile into the VM image and documents no container runtime inside a running instance. Every boat sandbox runs Docker and systemd.
How long can a sandbox run?
A Modal sandbox runs at most 24 hours, with a 5-minute default; for longer work, Modal recommends a filesystem snapshot and a new sandbox. Unikraft publishes no maximum, and idle instances go into standby. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no session cap.
Do Modal and Unikraft Cloud have GPUs?
Modal rents GPUs from T4 to B300 on its self-serve plans. Unikraft offers NVIDIA GPUs and vGPUs on Enterprise. boat has no GPUs.
Try boat
Install the CLI, then run boat new.
7-day free trial