Modal vs Northflank
Modal runs serverless sandboxes under gVisor or a VM runtime, next to its GPUs, and each one lasts at most 24 hours; filesystem snapshots carry work to a new sandbox. Northflank runs each CPU sandbox in a Kata microVM with its own kernel that runs until you pause it, on its cloud or inside yours.
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.
Northflank
Northflank is a London developer platform for running services, jobs and databases on Kubernetes, and Sandboxes is its product for running untrusted code.
A Northflank sandbox is a container image deployed as a service. CPU sandboxes run in Kata microVMs with their own kernel, and GPU sandboxes run under gVisor. You create and drive them from the JavaScript or Python SDK, the CLI or the dashboard, on Northflank's cloud or inside your own. It suits teams that want one platform for apps, databases, GPUs and sandboxes.
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 | Northflank: 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 | 186th of 365, with limits $1,413 a month | 5th 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 hits Modal's 24-hour limit, so your code snapshots the filesystem and starts a new sandbox each day. Northflank has no session cap and ranks #44 at $2,551; its files outside volumes survive a pause only through a snapshot you take. boat ranks #6 at $657, with no session cap once auto-stop is off. | 61st of 361, with limits $1,574 a month | 44th cheapest of 361 $2,551 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 For many short code runs, Modal ranks #15 at $140 a month, with fast starts and up to 5,000 containers on Team. Northflank is a compromise at $114, because it does not publish how many sandboxes can run at once. | 15th cheapest of 336 $140 a month | 91st of 336, with limits $114 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 Modal's Team plan allows 5,000 containers, so 300 sandboxes at once fit, at $671 a month. Northflank does not publish its limit. 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 | 94th of 349, with limits $810 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 RL rollouts launch huge bursts of short sandboxes, which is what Modal is built for: it ranks #6 here. Northflank's concurrency is not published, so it is a compromise. | 6th cheapest of 349 $11,982 a month | 333rd of 349, with limits $1,742 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 | 62nd cheapest of 359 $889 a month | 139th 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 Docker images run in a Northflank microVM as is: it ranks #36 at $347 a month. Modal runs them with runtime="vm", at $1,112. boat ranks #2 at $86 and runs Docker in every sandbox. | 110th cheapest of 374 $1,112 a month | 36th cheapest of 374 $347 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 runs all day restarts every 24 hours on Modal, from a filesystem snapshot. Northflank fits at $106 a month, and keeps files outside volumes only through a snapshot before a pause. boat ranks #19 at $26 and keeps the disk with no setup. | 129th of 371, with limits $9.07 a month | 124th cheapest of 371 $106 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. On Northflank you install a desktop and a stream in your own image. boat ranks #7 at $200 with a built-in 60 fps desktop and computer tools. | 45th cheapest of 367 $153 a month | 189th of 367, with limits $367 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 | 57th of 356, with limits $121 a month | 83rd of 356, with limits $359 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 | 98th cheapest of 343 $252 a month | 94th cheapest of 343 $200 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 | 171st of 327, with limits $5,957 a month | 83rd of 327, with limits $2,031 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 | 289th of 351, with limits $464 a month | 43rd of 351, with limits $180 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 Both rent GPUs next to their sandboxes. Northflank ranks #5 here at $692 a month, Modal #18 at $1,116. boat has no GPUs. | 18th cheapest of 102 $1,116 a month | 5th cheapest of 102 $692 a month | 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 | Northflank | boat |
|---|---|---|---|
| Isolation | gVisor by default; VM runtime with its own kernel available (Modal VM Sandboxes) | Kata microVM with its own kernel for CPU; gVisor for GPU | 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 | Yes, each CPU sandbox has its own kernel | Yes, in every sandbox |
| Longest session | 24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandbox | No documented limit; runs until you pause or delete it | No cap once auto-stop is off on a paid plan (default 1 hour, timer up to 30 days) |
| What survives a stop | No paused state; your code saves the root disk with a filesystem snapshot (kept 30 days by default, or indefinitely) or a Volume, then starts a new sandbox | Attached volumes survive (billed while paused); the rest resets unless you snapshot it before pausing (microVM only) | The disk, saved every minute and at each stop with no code; kept at least 14 days; memory and processes are not saved |
| Snapshots and fork | One filesystem snapshot boots many new sandboxes; memory snapshots in alpha end the sandbox and expire after 7 days | Filesystem snapshots of a running or stopping sandbox, restored into a new one | Automatic disk snapshots; fork a running sandbox from its last 1-minute snapshot |
| Nested virtualization | VM runtime only, Enterprise plan, as an experimental option | Not documented inside a sandbox | Yes, /dev/kvm for Android emulators and VMs |
| Desktop and browser | No built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox | No built-in desktop; Northflank's guide runs Playwright from your own image; a desktop you install yourself | Built-in 1920x1080, 60 fps Linux desktop, Chrome and computer tools |
| Coding agents | You install the harness in the image (official OpenCode example) | Harnesses with Claude Code, Codex, Cursor, OpenCode, Pi, OMP or Devin CLI, reached by terminal or SSH | Seven harnesses installed, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets are environment variables, or you run your own proxy in a sidecar (beta) | Header injection for listed hosts in the network policy API (documented for your own cluster) | Optional paid AI credentials proxy ($1 a day plus $1 per 1,000 requests) for model providers and HTTPS APIs you register |
| Inbound access | Encrypted and raw TCP tunnels, connect tokens, inbound IP allowlist | HTTPS ports on a code.run domain; public TCP and UDP need a separate load balancer | HTTPS URLs for up to 50 ports, token-gated by default; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound rules | Block all, IP-range allowlist, domain allowlist (beta) | Network policies with allow lists by IP, CIDR or domain | Open internet, no provider-side allowlist |
| GPUs | T4 to B300; 10 at once on Starter, 50 on Team | L4, A100, H100, H200, B200, RTX PRO 6000 and more | None |
| Regions | US, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75x | 17 regions in North America, South America, Europe, Asia, Australia and Africa, fixed per project | Germany, Finland and France; no US or Asia region, and you cannot pick one |
| Self-hosting | No | Bring your own cloud, or the control plane in your VPC on Enterprise | No |
Every feature Battleships tracks (43)
| Feature | Modal | Northflank | boat |
|---|---|---|---|
| Full VM (own kernel) | No documented way | Yes | Yes |
| Docker inside | No documented way | Yes | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Not published | Yes |
| Systemd | No documented way | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | 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 | Yes | Yes |
| Persistent disk | With your own setup | With your own setup | 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 | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | Yes | Yes | 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 | Yes | 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 | Yes | Yes |
| Audit logs | Yes | Yes | No documented way |
| SSO | Yes | Yes | 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
Northflank Sandboxes is not in the public CPU benchmark we use, so we cannot say whether it is faster than Modal or boat. 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 AMD Ryzen 7 9700X hosts, which this run did not measure. Providers ran on different hardware in different regions.
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. Northflank 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 | Northflank, 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 | $30 · Developer Sandbox (free tier) | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $109 · Starter · with limits | $106 · Developer Sandbox (free tier) | $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 | $1,290 · Developer Sandbox (free tier) | $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 | $359 · Developer Sandbox (free tier) · 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 | $1,911 · Team · with limits | $684 · Developer Sandbox (free tier) · with limits | $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; Team is $250 a month with $100 of credit.
Northflank: Northflank bills per second for the plan size you pick, with no monthly fee and no start fee; 4 vCPU / 8 GB is $0.1333 an hour. There is no idle auto-pause, so a sandbox bills until you pause it. Volumes cost $0.11657 per GiB a month, also while paused, and outbound traffic costs $0.06 per GB.
Northflank: 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 Northflank only attached volumes survive a pause unless you snapshot first, and it does not publish how many sandboxes can run at once, so 300 or 1,000 at a time is not confirmed. boat's limit is starts: even the $2,000 plan includes only 90 a minute, charges for starts above that and refuses them above 270 a minute, so 1,000 short jobs at once do not fit.
| Scenario | Modal | Northflank | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario | None for this scenario | None for this scenario |
| One agent that never stops |
| None for this scenario | 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
you run huge bursts of short sandboxes, such as RL rollouts or code runs, or need GPUs up to B300 next to them.
- Huge bursts of short jobs. For RL rollouts and code runs that finish in minutes: Modal publishes no start-rate cap and runs up to 5,000 containers on Team.
- GPUs from T4 to B300. For agents that run models: Modal rents GPUs up to B300 on the same platform as its sandboxes.
- Memory snapshots. For restoring exact clones of a running program: Modal can snapshot a sandbox's memory, though this is still alpha.
Use Northflank when
your sandboxes must run for days with Docker inside, in many regions or inside your own cloud account.
- Sessions with no time limit. For agents that work for days: a Northflank sandbox runs until you pause it, with Docker inside its own microVM kernel.
- Your own cloud. For teams that must run in their own AWS, GCP or Azure account, or want apps, databases and sandboxes on one platform.
- Regions around the world. For users far from Europe and the US: Northflank also runs in Brazil, Australia and South Africa.
Where boat fits
On Modal and on Northflank your code decides what survives: a filesystem snapshot or a volume. If your agents work on one machine for hours or days and should find it as they left it with no snapshot code, with a desktop and the agent driven from your code, look at boat. If you need GPUs or regions outside Europe, pick Modal or Northflank.
The disk comes back with no code
On Modal a sandbox ends within 24 hours, and your code snapshots the filesystem or writes to a Volume first. On Northflank a pause keeps files outside attached volumes only if you snapshot them first. boat saves the disk every minute and at each stop, and keeps it for at least 14 days. Memory and running programs are not saved, so a resume is like a reboot.
A desktop, a browser and agents inside
On Modal you install a desktop yourself, as its VNC example shows. On Northflank you build an image with a desktop and stream it. boat has a 60 fps desktop, Chrome, /dev/kvm and seven coding agents you prompt and steer by API.
Keys kept out with one switch
boat's optional AI credentials proxy ($1 a day plus $1 per 1,000 requests) keeps supported providers' keys out of the sandbox. On Modal you run a sidecar proxy, and Northflank injects headers for hosts you list in a network policy.
Use boat when your agents work on one machine for hours or days and should find it as they left it with no snapshot code: installs, Docker, emulators, a desktop and a browser, with the agent driven from your code. Compare it one to one: boat vs Modal and boat vs Northflank.
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 Northflank?
It depends on the shape. For one coding agent on workdays, Modal costs $0 inside its $30 Starter credit, against $30 on Northflank. For one agent that never stops, Modal costs $109 a month against $106, but Modal needs a new sandbox each day. 50 parallel agents cost $1,480 on Modal's VM runtime against $1,290. boat costs $20, $26 and $317 for those three.
Which is faster, Modal or Northflank?
We cannot say. Northflank is not in the public CPU benchmark we use. 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. boat did 28.06 on an AMD Ryzen 9 9950X host.
Can Modal and Northflank run Docker?
Northflank CPU sandboxes run in Kata microVMs with their own kernel, so Docker can run inside. Modal runs Docker with its VM runtime (runtime="vm"), at the same price; the default gVisor runtime does not document it. Every boat sandbox runs Docker.
Which keeps files between sessions?
Both, if your code does it. On Modal a filesystem snapshot saves the root disk for 30 days by default, or indefinitely, and a Volume keeps one folder. On Northflank attached volumes survive a pause, and a filesystem snapshot keeps the rest. boat saves the disk at every stop with no code and keeps it at least 14 days.
Do both have GPUs?
Yes. Modal rents T4 to B300 and Northflank L4, A100, H100, H200, B200 and more. In the GPU eval jobs use case Northflank costs $692 a month against $1,116 on Modal. boat has no GPUs.
Try boat
Install the CLI, then run boat new.
7-day free trial