ServiceActive

Modal Sandboxes

Secure containers for executing untrusted user or agent code on Modal with lifecycle events, probes, and configurable timeouts.

Open source page

Product features

Product features

Blocks until port 8080 is accepting connections

Blocks until "test -f /tmp/ready" exits with code 0

Events

Exec readiness probe

Idle Timeouts

Lifecycle

Readiness Probes

Sandboxes

TCP readiness probe

The server is now ready — interact with it via tunnels, exec, etc.

Timeouts

What are Sandboxes and why should I use them?