Modal Sandboxes API
Modal Sandboxes are secure containers for executing untrusted user or agent code. Spawned at runtime with `Sandbox.create()`, they support arbitrary command execution, filesystem snapshots, port tunnels, volume mounts, GPU attachment, idle timeouts (up to 24h), readiness probes, named lookup, and tagging. Sandboxes are the workhorse primitive for LLM coding agents and rollout systems on Modal.
Documentation
Documentation
https://modal.com/docs/guide/sandboxes
Documentation
https://modal.com/docs/reference/modal.Sandbox