Modal Sandboxes
Secure containers for executing untrusted user or agent-generated code, created via Sandbox.create() in the Python, JavaScript, and Go SDKs. Supports exec() for arbitrary commands, filesystem access, Volumes, Secrets, and network tunnels that can expose a container port over HTTPS. Lifecycle control is SDK/gRPC-only; a running sandbox's tunneled port is the only HTTP surface, and its shape is user-defined.