Modal Sandboxes
Sandboxes on Modal’s serverless compute platform for running untrusted code at very high scale, with GPUs, snapshots and tunnels. The best fit when scale or GPUs matter most, especially for teams already on Modal.
Overview
Modal is a serverless compute platform for Python-heavy AI workloads, and its Sandboxes product exposes the same infrastructure for running untrusted code. Its strengths are scale — Modal says its scheduler is tested with over a million concurrent sandboxes — and GPUs, which are available in sandboxes at the same rates as the rest of the platform.
Isolation is gVisor by default, with a VM option. Snapshots (filesystem, directory and alpha memory snapshots) support fast restore and forking, which suits reinforcement learning and evaluation pipelines.
Notable
- Raised a $750M Series D led by Accel at a $15.75B valuation in October 2026.
- Says its scheduler is tested with over 1 million concurrent sandboxes.
- Lists Cognition, Linear and Ramp among sandbox customers.
Modal Sandboxes specifications
| Attribute | Details |
|---|---|
| Isolation | gVisor by default, or VMs with their own Linux kernel; GPU sandboxes use gVisor |
| Deployment | Hosted platform |
| Open source | No (Client SDK Apache-2.0) |
| SDKs and interfaces | Python, JavaScript/TypeScript, Go |
| Cold start (vendor claim) | Sub-second, including for large custom images (vendor claim) |
| Max session length | 5 minutes default, configurable up to 24 hours; snapshots carry state beyond that |
| Persistence | Filesystem snapshots, directory snapshots, memory snapshots (alpha) and Modal Volumes |
| GPU | Yes — Modal’s full GPU range (T4 to B300) at standard per-second rates, e.g. H100 $0.001097/s |
| Networking | Outbound open by default; block all, CIDR allowlists or domain allowlists (beta), updatable at runtime; encrypted tunnels with public URLs and connect tokens |
| Pricing | Per second at sandbox (non-preemptible) rates: $0.00003942 per physical core-second (1 core = 2 vCPU) + $0.00000667 per GiB-second; GPUs at standard rates. Team plan $250/month |
| Free tier | $30/month credits on Starter ($100/month on Team) |
| Compliance | SOC 2 on all plans; HIPAA on Enterprise |
| Regions | Region selection available at a price multiplier |
Facts from Modal Sandboxes’s public documentation, verified November 8, 2026. Performance numbers are vendor claims.
Strengths and trade-offs
Strengths
- You need very high concurrency (RL, evals, batch agents)
- You need GPUs inside the sandbox
- You already use Modal for inference or training
- You want Go as well as Python and TypeScript SDKs
Trade-offs
- Sandbox compute billed at roughly 3x Modal’s standard list rates
- Not open source and no documented BYOC
- gVisor by default rather than microVMs
Best for: High-concurrency and GPU-backed sandboxes — RL rollouts, evals and coding agents at scale.
Where Modal Sandboxes ranks
How Modal Sandboxes compares
| Sandbox | Isolation | Open source | Self-host / BYOC | Cold start (vendor) | Max session | Snapshots / pause | GPU | SDKs |
|---|---|---|---|---|---|---|---|---|
| Modal Sandboxes | gVisor or VM | No | No / Not documented | <1 s | Up to 24 h | Yes / Yes | Yes | Python, JavaScript/TypeScript, Go |
| E2B | Firecracker microVM | Yes | Yes / Yes | Not documented | 1 h / 24 h (Pro) | Yes / Yes | No | Python, JavaScript/TypeScript |
| Daytona | Containers or VMs | No | Not documented / Yes | <90 ms | Unlimited | Yes / Yes | Yes | Python, TypeScript, Ruby, Go, Java |
| Beam Sandboxes | gVisor | Yes | Yes / Yes | ~0.5 s | Configurable | Yes / Yes | Yes | Python, TypeScript |
| Northflank Sandboxes | Cloud Hypervisor microVM | No | No / Yes | <1 s | Unlimited | Not documented / Yes | Yes | JavaScript/TypeScript, Python |
| Morph Cloud | VM | No | No / Not documented | <250 ms (restore) | Configurable | Yes / Yes | Not documented | Python, TypeScript |
Head-to-head: E2B vs Modal Sandboxes · Daytona vs Modal Sandboxes · Modal Sandboxes vs Vercel Sandbox · Modal Sandboxes vs Cloudflare Sandbox SDK · Modal Sandboxes vs Fly.io Sprites · Northflank Sandboxes vs Modal Sandboxes · Beam Sandboxes vs Modal Sandboxes
Frequently asked questions
What is Modal Sandboxes?
How does Modal Sandboxes isolate code?
Is Modal Sandboxes open source?
How much does Modal Sandboxes cost?
What are the best Modal Sandboxes alternatives?
Sources
Cite this page
Agent Sandboxes. (2026). Modal Sandboxes. agentsandboxes.org. Last reviewed November 8, 2026. https://agentsandboxes.org/sandboxes/modal/
Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.