Modal vs Azure Container Apps Sandboxes
Modal gives you short-lived sandboxes on a big AI compute platform, with GPUs next to them and a 24-hour session limit; filesystem snapshots carry work to a new sandbox. Azure gives each sandbox its own microVM inside your Azure account, with no session cap, that can suspend with its memory and wake on traffic.
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.
Azure Container Apps Sandboxes
Azure Container Apps Sandboxes is a service inside Microsoft Azure that gives each agent or user an isolated microVM you create, suspend and resume through an SDK.
It is part of Azure Container Apps, the hyperscaler's serverless container platform, and lives in your Azure subscription as a sandbox group resource. Each sandbox boots from an OCI image or a snapshot and has its own kernel. A stop keeps the disk, or the disk and the memory, and a memory-mode sandbox resumes in under a second. It is built for teams already on Azure that want stateful code execution with Azure networking, identity and billing.
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 | Azure Container Apps Sandboxes: 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 | 33rd cheapest of 365 $5,276 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An agent that runs all month hits Modal's 24-hour limit, so your code snapshots the filesystem and starts a new sandbox each day. Azure bills every running second. On boat, turn auto-stop off (default 1 hour) on a paid plan for no session cap. | 61st of 361, with limits $1,574 a month | 52nd cheapest of 361 $6,780 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 Both fit short code runs. Modal ranks #15 here at $140 a month, with fast starts and big bursts. Azure costs $354, and a sandbox can suspend with its memory and resume in under a second. boat is a compromise here because of its start limits. | 15th cheapest of 336 $140 a month | 39th cheapest of 336 $354 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 Both fit sandboxes for your users: Modal at $671 a month and Azure at $2,260. Azure suspends idle ones with their memory. 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 | 32nd cheapest of 349 $2,260 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 many short sandboxes at once, which is what Modal is built for: it ranks #6 here. Azure's default quota of 300 active cores per region caps a fleet until support raises it. | 6th cheapest of 349 $11,982 a month | 158th of 349, with limits $10,740 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 | 85th cheapest of 359 $1,728 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 that builds Docker images needs Modal's VM runtime or an Azure image that ships Docker, like azure-dev. Both cost about $1,050 to $1,110 a month in our CI preset. boat ranks #2 at $86 and runs Docker in every sandbox. | 110th cheapest of 374 $1,112 a month | 108th cheapest of 374 $1,046 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box wants a disk that stays and a way in over SSH. On Modal your code restores the root disk from a filesystem snapshot. Azure keeps the disk but does not document SSH. boat has SSH and saves the disk every minute. | 129th of 371, with limits $9.07 a month | 327th of 371, with limits $262 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 Computer-use agents need a screen. Modal ranks #45 here at $153: its official example installs Xvfb, Chromium and noVNC in a VM sandbox. On Azure you build a desktop into your own OCI image. boat ranks #7 at $200 and streams a Linux desktop at 60 fps. | 45th cheapest of 367 $153 a month | 58th cheapest of 367 $1,573 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 | 129th of 356, with limits $795 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 | 112th cheapest of 343 $561 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 | 240th of 327, with limits $10,956 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 | 30th cheapest of 351 $517 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 Modal has GPUs from T4 to B300; Azure's sandboxes and boat have none, so Modal is the pick for GPU jobs. | 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 | Azure Container Apps Sandboxes | boat |
|---|---|---|---|
| Isolation | gVisor by default; VM runtime with its own kernel available | MicroVM per sandbox with its own kernel | 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 | Depends on the image: azure-dev ships Docker on systemd; the default ubuntu image has only Buildah | Docker, systemd and root in every sandbox |
| Nested virtualization | VM runtime only, Enterprise plan, as an experimental option | Not documented | Yes, /dev/kvm for Android emulators and VMs |
| Longest session | 24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandbox | No cap; runs until stopped or auto-suspended when idle | No cap once auto-stop is off on a paid plan (default 1 hour, timer up to 30 days) |
| Stop and resume | No paused state; a filesystem snapshot (kept 30 days by default, or indefinitely) restores the root disk into a new sandbox, and Volumes keep files | Suspend with memory and disk; resume in under a second with processes running | Stop with no compute charge; disk saved every minute and at each stop, with no code; a resume is like a reboot |
| Snapshots and fork | One filesystem snapshot boots many new sandboxes; memory snapshots in alpha end the sandbox and expire after 7 days | Snapshot a running sandbox with its memory and create new sandboxes from it | Fork a running sandbox from its last 1-minute disk snapshot, without stopping it |
| GPUs | T4 to B300; 10 at once on Starter, 50 on Team | None | None |
| Desktop, browser and computer use | You set it up: Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox | No desktop or browser in the public images; you can build one into your own OCI image | Linux desktop streamed at 1920x1080, 60 fps, with Chrome and computer-use tools preinstalled |
| Inbound access | Encrypted and raw TCP tunnels, connect tokens, inbound IP allowlist | Public HTTPS routes per published port; private endpoint from your VNet; no public IP | HTTPS URLs for up to 50 ports, token-gated by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound rules | Block all, IP-range allowlist, domain allowlist (beta) | Allow, deny, rewrite and header rules by host, path and method; VNet integration | Open internet, no provider-side allowlist |
| Coding agents and API keys | You install the harness in the image; secrets are environment variables, or you run your own proxy in a sidecar (beta) | Copilot CLI and Claude Code images run through the exec API; their tokens are injected at start, or an egress Transform rule adds a secret to outbound headers so it never enters the sandbox | Seven agents preinstalled with a prompt, steer and events API; optional paid proxy keeps supported providers' keys outside |
| Fleet size | 100 containers on Starter, 5,000 on Team | 300 concurrent active cores per region and subscription by default; more by Azure support request | 100 to 2,000 sandboxes by plan, self-serve; starts per minute capped by plan |
| Regions | US, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75x | 40 Azure regions on six continents | Germany, Finland and France; no US or Asia region, and you cannot pick one |
| Account and access | Modal account, driven from Python, TypeScript or Go | Azure subscription and Microsoft Entra ID with the SandboxGroup Data Owner role | Sign in with GitHub, Google or an emailed code; a card is required, also for the trial |
Every feature Battleships tracks (43)
| Feature | Modal | Azure Container Apps Sandboxes | boat |
|---|---|---|---|
| Full VM (own kernel) | No documented way | Yes | Yes |
| Docker inside | No documented way | Yes | Yes |
| Nested virtualization | No documented way | Not published | Yes |
| Root | Yes | Yes | Yes |
| Systemd | No documented way | Yes | 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 | No documented way | 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 | No documented way | 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 | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | 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 | Yes | 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
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, 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. Azure Container Apps Sandboxes is not in the public benchmarks we use, so we cannot say how it compares.
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. Azure Container Apps Sandboxes 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 | Azure Container Apps Sandboxes, 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 | $68 · Pay-as-you-go | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $109 · Starter · with limits | $262 · Pay-as-you-go · 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 | $1,480 · Starter · with limits | $3,421 · Pay-as-you-go | $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 | $989 · Pay-as-you-go | $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 | $2,148 · Pay-as-you-go | $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, until the sandbox 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, and pinning a region multiplies the price by 1.15x to 1.75x.
Azure Container Apps Sandboxes: Azure bills per second on the Container Apps Consumption meters for the vCPU and memory of the sandbox's tier while it runs, including idle time before auto-suspend. The XL tier (4 cores / 8 GiB) is $0.432 an hour at East US rates. There is no plan fee, and a stopped sandbox pays no CPU or memory. Storage for images and snapshots is announced as billed per GiB.
Azure Container Apps 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 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. 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 the default gVisor sandbox does not document; Modal VM Sandboxes run it. Azure fits the workday and fleet scenarios, but it bills every running second, so the always-on agent gets close only with a 3-year commitment. Azure's default quota is 300 active cores per region and subscription, so 300 user sandboxes and 1,000 jobs at once need a support request first. For 1,000 short jobs at once, Azure fits at $2,148 a month after that raise. boat's $2,000 plan includes 90 starts a minute, and starts above 270 a minute fail with 429, so that burst does not fit on boat.
| Scenario | Modal | Azure Container Apps Sandboxes | 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 |
| 50 agents in parallel |
| None for this scenario | None for this scenario |
| Sandboxes for your users | None for this scenario | None for this scenario | None for this scenario |
| 1,000 short jobs at once |
| None for this scenario |
|
Which one should you use?
Use Modal when
your sandboxes need GPUs, or are huge bursts of short jobs that finish in minutes on a platform you already use for models.
- GPUs on the same platform. If your agent runs or trains models, Modal rents GPUs from T4 to B300 next to its sandboxes; Azure's sandboxes have none.
- Built for huge bursts. For many short jobs at once, Modal runs up to 5,000 containers on Team without a support request.
- Images from code. Teams that like code over config can build images in Python or pull any linux/amd64 registry image.
Use Azure Container Apps Sandboxes when
your team runs on Azure and wants stateful sandboxes that suspend with their memory, wake on traffic and sit behind strict egress rules.
- Suspend with memory. For stateful jobs that sleep between requests, a sandbox suspends with its memory and resumes in under a second.
- No session cap. A sandbox keeps running until you stop it or it goes idle, so long jobs are not cut off at 24 hours.
- Inside your Azure account. Teams already on Azure get Entra ID, Azure billing, VNets and fine-grained egress rules, in 40 regions.
Where boat fits
Modal and Azure both shine at short sandboxes: Modal for bursts next to GPUs, Azure for jobs that sleep with their memory. If your agents work for hours or days, installing, building, testing and checking their work on a screen, look at boat. Each sandbox is a whole computer that saves its disk with no code and has no session cap once auto-stop is off.
A whole computer with Docker and /dev/kvm
On Modal, Docker needs the VM runtime, and nested virtualization needs the Enterprise plan. On Azure, Docker depends on the image, and /dev/kvm is not documented. boat gives every sandbox root, systemd, Docker and /dev/kvm.
A screen and agents built in
On Modal and Azure you build the display and streaming stack yourself; Modal publishes an example for it. boat has a 60 fps desktop, Chrome and seven coding agents you drive from outside through one API.
Work kept with no code
On Modal your code snapshots the filesystem before the 24-hour limit. boat saves the disk every minute and at each stop, and keeps it at least 14 days. Writes from the last minute can be missing after a machine failure. Memory is not saved, so a resume is like a reboot.
Use boat when your agents work for hours or days and need a whole computer: SSH, Docker, emulators, a desktop and a browser, with the disk saved every minute and no code. Compare it one to one: boat vs Modal and boat vs Azure Container Apps 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 Modal cheaper than Azure Container Apps Sandboxes?
In most scenarios, yes. One agent on workdays costs $0 on Modal inside its $30 Starter credit, against $68 on Azure. Sandboxes for your users cost $579 against $989. For 1,000 short jobs at once, Modal costs $1,911 against $2,148 on Azure, but Modal's bill uses shared burst CPU. boat costs $20 and $200 for the first two, and does not fit the burst.
Which is faster, Modal or Azure Container Apps Sandboxes?
We cannot say: Azure is not in the public benchmarks we use. In StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 runs/s and its gVisor runtime 12.60 on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB. boat did 28.06 on an AMD Ryzen 9 9950X host.
Can Modal or Azure sandboxes run Docker?
Modal runs Docker with its VM runtime (runtime="vm"), at the same price; its default gVisor runtime does not document Docker. On Azure it depends on the image: azure-dev ships Docker on systemd, while the default ubuntu image has only Buildah. Every boat sandbox runs Docker with no extra setting.
How long can a sandbox run on Modal and on Azure?
Modal sandboxes default to 5 minutes and stop at 24 hours at most; for longer work, Modal recommends a filesystem snapshot and a new sandbox. Azure documents no session cap: a sandbox runs until you stop it or it auto-suspends when idle. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no session cap.
Which one has GPUs?
Modal, with GPUs from T4 to B300 on its gVisor runtime. Azure Container Apps Sandboxes and boat are CPU machines.
Can I SSH into Modal or Azure sandboxes?
Azure gives you a shell through the aca CLI, the SDK or the portal, and does not document SSH. Modal offers raw TCP tunnels you can wire up yourself. Every boat sandbox has an SSH endpoint, so editors that connect over SSH work.
Try boat
Install the CLI, then run boat new.
7-day free trial