Modal vs Namespace

Modal runs sandboxes from code inside a serverless AI cloud with GPUs and regions around the world; filesystem snapshots carry work to a new sandbox. Namespace is a build platform: CI runners, caches and Devboxes that keep their storage, on Linux, macOS and Windows.

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.

Namespace

Namespace is a dev platform for fast builds, tests and coding environments: CI runners, build caches and Devboxes, on its own hardware.

Most of Namespace is CI: a faster drop-in for GitHub Actions runners, with Docker, Bazel, Turborepo and Nix caching. Its Devboxes are remote Linux and macOS machines with persistent storage, made for people and AI coding agents. You run Claude Code, Codex, OpenCode, Amp, Copilot or Cursor in persistent Devbox sessions, and Namespace also hosts sessions for Claude Managed Agents, Cursor Cloud Agents, Devin and Amp. It is a different kind of product from boat, so this page compares the part where they overlap: a machine an agent works on.

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “15th cheapest of 336” means 14 of the other 335 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadModal: price rankNamespace: price rankboat: 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
74th of 365, with limits
$3,745 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An agent that never stops is a compromise on both: a Modal sandbox lasts 24 hours at most, so your code snapshots the filesystem and starts a new one, and a Namespace Devbox stops at 3, 5 or 24 hours by plan. boat ranks #6 at $657, with no session cap once auto-stop is off on a paid plan (default 1 hour).
61st of 361, with limits
$1,574 a month
316th of 361, with limits
$6,645 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
Modal fits short code runs, with fast starts and high concurrency: it ranks #15 here at $140 a month. Namespace is a compromise at $250, because it caps Devboxes at 50 per workspace. boat is a compromise because of its start limits.
15th cheapest of 336
$140 a month
244th of 336, with limits
$250 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 fits per-user sandboxes at $671 a month, with your code saving each user's files in a filesystem snapshot. boat ranks #3 at $209: a stopped sandbox has no compute charge and keeps its disk for at least 14 days. Namespace's 50-Devbox cap makes it a compromise.
18th cheapest of 349
$671 a month
279th of 349, with limits
$2,068 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
Modal is built for many short sandboxes at once and ranks #6 for RL rollouts. Namespace and boat are compromises here: Namespace caps Devboxes at 50 per workspace, and boat counts each rollout as a start.
6th cheapest of 349
$11,982 a month
345th of 349, with limits
$9,012 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
282nd of 359, with limits
$1,093 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 runners are Namespace's main product, with Docker, Bazel and Turborepo caching, at $765 a month here. Modal runs Docker jobs with runtime="vm", at $1,112. boat ranks #2 at $86 with Docker and /dev/kvm on every VM, but sells no managed runner or build cache.
110th cheapest of 374
$1,112 a month
87th cheapest of 374
$765 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
129th of 371, with limits
$9.07 a month
201st of 371, with limits
$250 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. Namespace's click API and VNC desktop work on macOS Devboxes; on a Linux Devbox you install a desktop yourself. boat ranks #7 at $200 with a built-in 60 fps Linux desktop.
45th cheapest of 367
$153 a month
108th of 367, with limits
$1,032 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
191st of 356, with limits
$789 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
191st of 343, with limits
$332 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
225th of 327, with limits
$9,012 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
112th of 351, with limits
$339 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 fits GPU jobs, with GPUs from T4 to B300. Namespace's machine shapes and boat's sizes are CPU only.
18th cheapest of 102
$1,116 a month
Not 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
Namespace fits macOS agents, with Devboxes on Apple Silicon. Modal and boat have no macOS.
Not ranked: misses a requirement6th cheapest of 35
$1,255 a month
Not ranked: misses a requirement

Key features

FeatureModalNamespaceboat
IsolationgVisor by default; VM runtime with its own kernel available (Modal VM Sandboxes)Linux Devboxes run a container image; the docs do not say if each has its own kernel (a third-party benchmark reports Firecracker)Full VM with its own kernel, on a host dedicated to boat; vCPUs are shared
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)15.48 runs/s on the VM runtime, 12.60 on gVisor24.90 runs/s28.06 runs/s, on a Ryzen 9 9950X host
Docker insideYes with the VM runtime (runtime="vm"), at the same price; not documented on gVisorYes, in Linux DevboxesYes, with root and systemd, in every sandbox
Nested virtualizationVM runtime only, Enterprise plan, as an experimental option/dev/kvm on Linux compute instances, not on macOS or Windows/dev/kvm on every sandbox
Longest session24 hours (default 5 minutes); for longer work, a filesystem snapshot and a new sandboxDevboxes stop at 3 hours on Developer and Devbox Plus, 5 on Team, 24 on Business, even while you workNo cap once auto-stop is off on a paid plan (default 1 hour, timer up to 30 days)
Files after a stopNo paused state; files survive in Volumes or in a filesystem snapshot you take before the sandbox ends (kept 30 days by default, or indefinitely)A stopped Devbox keeps its storage until you delete it, billed at $0.20 per GB-month usedDisk saved every minute and at each stop, with no code; kept at least 14 days, longer with a saved snapshot
Fork and snapshotsOne filesystem snapshot boots many new sandboxes; memory snapshots in alpha end the sandbox and expire after 7 daysNo fork documented; compute instances suspend and resume with RAM keptFork a running sandbox from its last 1-minute snapshot (disk, not memory); resume is a reboot
Desktop and computer useNo built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandboxScreenshot and click API and VNC on macOS Devboxes; on Linux Devboxes you install a desktop yourself; VNC and RDP for compute instancesBuilt-in 1920x1080, 60 fps Linux desktop, Chrome and computer tools
Coding agentsYou install the harness in the image (official OpenCode example)You run Claude Code, Codex and others in Devbox sessions; hosts Claude Managed Agents, Cursor and Devin sessions; an MCP serverSeven harnesses installed, with a prompt, steer and events API
Keeping keys out of the sandboxSecrets are environment variables, or you run your own proxy in a sidecar (beta)Egress rules inject a header from Namespace Vault, outside the workloadOptional paid AI credentials proxy ($1 a day plus $1 per 1,000 requests) for model providers and HTTPS APIs you register
Reaching the sandboxEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistHTTPS URLs that need a Namespace login; TCP through a CLI port-forwardHTTPS URLs for up to 50 ports, token-gated by default; raw ports over IPv6 on sandboxes with no IPv4 of their own
Outbound network rulesBlock all, IP-range allowlist, domain allowlist (beta)Block, advisory or allow by domain, per Devbox blueprint, runner or instanceOpen internet; no provider-side allowlist
GPUs and operating systemsLinux with GPUs from T4 to B300Linux, macOS on Apple Silicon, Windows on Team plans and up; no GPUsLinux only, Wine for Windows apps; no GPUs
RegionsUS, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75xSeveral regions; region-exclusive residency on EnterpriseGermany, Finland and France; no US or Asia region, and you cannot pick one
Every feature Battleships tracks (43)
FeatureModalNamespaceboat
Full VM (own kernel)No documented wayYesYes
Docker insideNo documented wayYesYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdNo documented wayNot publishedYes
Desktop GUIWith your own setupYesYes
BrowserWith your own setupWith your own setupYes
Computer-use APIWith your own setupYesYes
SSHWith your own setupYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsNo documented wayYesYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)Not publishedNo documented wayYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundYesYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsWith your own setupYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUYesNo documented wayNo documented way
WindowsNo documented wayYesNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedYesYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Modal12.60 runs/s
Namespace24.90 runs/s
boat28.06 runs/s

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), 24.90 on Namespace, 15.48 on Modal's VM runtime and 12.60 on Modal gVisor. boat and Namespace share rank 2, so the run cannot separate them. StarSling ran Modal with cpu=4, and the sandbox saw 4 CPUs (PR #121). A Namespace Devbox's vCPU count is a ceiling it can boost to, not a guaranteed share. 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. Namespace measured on: Linux compute instance (unit-minutes, PAYG/overage $0.0015). 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.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioModal, a monthNamespace, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$0 · Starter$300 · Devbox on Business$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$109 · Starter · with limits$426 · Devbox on Business · 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$2,448 · Devbox on Business$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$1,264 · Devbox Plus · 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$3,287 · Devbox Plus · 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, and pinning a region costs 1.15x to 1.75x.

Namespace: Namespace bills Devboxes in Devbox Minutes at $0.004 each; a 4 vCPU / 8 GB Devbox uses one a minute ($0.24 an hour). Pay as you go, or Devbox Plus at $250 a month for 50,000 minutes. Team and Business plan minutes cover runners and instances, not Devboxes, but you need those plans for longer sessions. Stored files cost $0.20 per GB-month.

Namespace: 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

A Modal sandbox lives at most 24 hours, and a Namespace Devbox stops at 3 hours on Developer and Devbox Plus, 5 on Team and 24 on Business, so the agent that never stops restarts on both. On Modal your code keeps files with a filesystem snapshot or a Volume. The 50-agent fleet needs Docker, which Modal runs on its VM runtime. Namespace caps Devboxes at 50 per workspace, so 300 users at once and 1,000 jobs at once do not fit there. Modal's Team plan fits the 300 users. Namespace does not publish an egress price. On boat the limit that bites is starts: the $20 plan includes 12 a minute and 200 a day, and the $2,000 plan 90 a minute and 2,400 a day, so 1,000 jobs at once do not fit.

ScenarioModalNamespaceboat
One coding agent, workdaysNone for this scenario
  • egress price not published
None for this scenario
One agent that never stops
  • Starter: sessions capped at 24 h
  • Devbox on Business: sessions capped at 24 h
  • egress price not published
None for this scenario
50 agents in parallel
  • missing Docker inside
  • egress price not published
None for this scenario
Sandboxes for your usersNone for this scenario
  • Devbox Plus: max 50 concurrent
  • egress price not published
None for this scenario
1,000 short jobs at once
  • shared vCPUs on this tier (Modal sells dedicated cores separately as “Sandbox (gVisor), request = size, any region”): heavy, sustained CPU use can be slowed by other tenants
  • Devbox Plus: max 50 concurrent
  • egress price not published
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Modal when

your sandboxes need GPUs, must run in the US or Asia-Pacific, or come in huge bursts of short jobs that finish within a day.

  • GPUs on the same platform. Useful if your agent trains or runs models: Modal rents GPUs from T4 to B300 next to its sandboxes.
  • Huge bursts of short jobs. Useful for code runs and RL rollouts: Modal publishes no start-rate cap and runs up to 5,000 containers on Team.
  • Regions around the world. Useful if users sit outside Europe: Modal runs in the US, EU and Asia-Pacific and can pin a sandbox to one.

Use Namespace when

you need macOS or Windows machines, faster GitHub Actions runners with build caches, or Devboxes that keep their storage and stop when idle.

  • macOS and Windows. Useful for iOS, Mac or Windows builds: Namespace runs macOS on Apple Silicon and Windows on Team plans and up.
  • CI runners and build caches. Useful if you want faster GitHub Actions: Namespace is a drop-in runner with Docker, Bazel and Turborepo caching.
  • Devboxes that keep their storage. Useful for people and agents who come back: a stopped Devbox keeps its files and starts again when you connect.

Where boat fits

If your coding agents work for hours or days on Linux, look at boat. A Modal sandbox ends within 24 hours, and a Namespace Devbox stops at 3, 5 or 24 hours by plan. boat gives each agent a full VM with no session cap once auto-stop is off, a disk saved every minute, a built-in desktop and agents you drive from outside.

No clock on the session

A Modal sandbox ends within 24 hours; your code takes a filesystem snapshot or writes to a Volume and starts a new sandbox. A Namespace Devbox stops at its plan's limit even while it works. On a boat paid plan, turn auto-stop off (default 1 hour) and the sandbox runs until you stop it. A boat resume is a reboot too, so this matters only for runs longer than the cap.

A full VM with Docker and /dev/kvm

Docker on Modal needs the VM runtime, and nested virtualization the Enterprise plan. Namespace's docs do not say whether a Devbox has its own kernel. boat gives every sandbox its own kernel, Docker, systemd and /dev/kvm. In StarSling's run of 3 October 2026, boat did 28.06 runs/s and Namespace 24.90, and the run cannot separate them; Modal did 15.48 on its VM runtime.

A Linux desktop and agents built in

On Modal you install a desktop yourself, as its VNC example shows. Namespace's click API works on macOS Devboxes. boat streams a 60 fps Linux desktop with Chrome and ships seven agent harnesses with an API to drive them.

Use boat when your agents work on Linux for hours or days: a full VM with no session cap once auto-stop is off, Docker and /dev/kvm, a built-in desktop, and coding agents you drive from outside. Compare it one to one: boat vs Modal and boat vs Namespace.

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 Namespace?

In most of our scenarios, yes. One agent on workdays costs $0 on Modal inside its $30 Starter credit, against $300 on Namespace, where an 8-hour session needs the Business plan. 50 agents in parallel cost $1,480 on Modal's VM runtime against $2,448. 300 user sandboxes at once cost $579 on Modal and do not fit Namespace's 50-Devbox cap. boat costs $20, $317 and $200 for those three.

Which is faster, Modal or Namespace?

In StarSling's run of 3 October 2026 at 4 vCPU / 8 GB, Namespace did 24.90 V8 Web Tooling runs/s, Modal's VM runtime 15.48 and Modal gVisor 12.60. boat did 28.06 on an AMD Ryzen 9 9950X host, and shares rank 2 with Namespace. Providers ran on different hardware in different regions.

Can Modal and Namespace run Docker?

Namespace Linux Devboxes include Docker. 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 with root and systemd.

How long can a session run on Modal or Namespace?

A Modal sandbox runs 5 minutes by default and 24 hours at most; for longer work, Modal recommends a filesystem snapshot and a new sandbox. A Namespace Devbox stops after 3 hours on Developer and Devbox Plus, 5 on Team and 24 on Business, even while you work. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no session cap.

Which one has GPUs or macOS?

Modal has GPUs from T4 to B300 but no macOS. Namespace has macOS on Apple Silicon and Windows but no GPUs. boat runs Linux CPU machines only.

Is boat SOC 2 compliant?

SOC 2 is in progress, and boat has no SOC 2 report today. Modal has SOC 2 Type II, and Namespace's trust center lists SOC 2 Type II. Live status is at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons