What you get
Modal Sandboxes
A secure container for untrusted code, on gVisor by default or a VM runtime with a full Linux kernel.
Server4Agent
A persistent server that holds your projects, each an app at its own URL with managed HTTPS.
How you start
Modal Sandboxes
Call Sandbox.create from the Python, JavaScript or Go SDK, inside a Modal App.
Server4Agent
Connect the chat app you already use over MCP, or type the goal in the dashboard. REST, SDKs and a CLI for developers.
How long it runs
Modal Sandboxes
Each Sandbox has a lifetime you set: 5 minutes by default, up to 24 hours. Filesystem snapshots carry state into a new Sandbox.
Server4Agent
No lifetime to set. A project stays online at its URL; an idle server sleeps and the next request wakes it.
Who can open it
Modal Sandboxes
Tunnels give each app a random public URL, and your app decides who gets in.
Server4Agent
Private by default. Open it to your team, to named teammates, behind a password, or to the public.
Scale
Modal Sandboxes
Sandboxes launch in under a second. Starter allows 100 concurrent containers and Team 5,000.
Server4Agent
Servers come in Small (3 projects), Medium (10 projects) and Large (unlimited projects), each project at its own URL.
Compute price
Modal Sandboxes
Sandbox CPU is $0.00003942 per core per second and memory $0.00000667 per GiB per second, at non-preemptible rates (3x list price).
Server4Agent
A monthly plan that includes the server, with an account-wide budget cap that stops spend at your ceiling.
Plans
Modal Sandboxes
Starter is $0 plus compute with $30 a month of credits and 3 seats. Team is $250 a month plus compute with $100 of credits.
Server4Agent
Free, then Solo $19, Starter $29, Pro $99 and Business $299 a month, each with AI credits for our build agent.