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.
OptionalcpuHard limit 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.
OptionalexperimentalOptional experimental options.
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.
OptionalmemoryHard limit of memory in MiB.
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.
OptionaltimeoutMaximum lifetime of the Sandbox in milliseconds. Defaults to 5 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().