OptionalblockWhether to block all network access from the Sandbox.
OptionalcidrList of CIDRs the Sandbox is allowed to access. If None, all CIDRs are allowed. Cannot be used with blockNetwork.
OptionalcloudCloud provider to run the Sandbox on.
OptionalcloudMount points for CloudBucketMounts.
OptionalcommandSequence of program arguments for the main process. Default behavior is to sleep indefinitely until timeout or termination.
OptionalcpuReservation of physical CPU cores for the Sandbox, can be fractional.
OptionalencryptedList of ports to tunnel into the Sandbox. Encrypted ports are tunneled with TLS.
OptionalenvEnvironment variables to set in the Sandbox.
OptionalgpuGPU reservation for the Sandbox (e.g. "A100", "T4:2", "A100-80GB:4").
Optionalh2List of encrypted ports to tunnel into the Sandbox, using HTTP/2.
OptionalidleThe amount of time in milliseconds that a sandbox can be idle before being terminated.
OptionalmemoryReservation of memory in MiB.
OptionalnameOptional name for the Sandbox. Unique within an App.
OptionalproxyReference to a Modal Proxy to use in front of this Sandbox.
OptionalptyEnable a PTY for the Sandbox.
OptionalregionsRegion(s) to run the Sandbox on.
OptionalsecretsSecrets to inject into the Sandbox as environment variables.
OptionaltimeoutTimeout of the Sandbox container, defaults to 10 minutes.
OptionalunencryptedList of ports to tunnel into the Sandbox without encryption.
OptionalverboseEnable verbose logging.
OptionalvolumesMount points for Modal Volumes.
OptionalworkdirWorking directory of the Sandbox.
Optional parameters for client.sandboxes.create().