Optional
blockWhether to block all network access from the Sandbox.
Optional
cidrList of CIDRs the Sandbox is allowed to access. If None, all CIDRs are allowed. Cannot be used with blockNetwork.
Optional
cloudCloud provider to run the Sandbox on.
Optional
cloudMount points for cloud buckets.
Optional
commandSequence of program arguments for the main process. Default behavior is to sleep indefinitely until timeout or termination.
Optional
cpuReservation of physical CPU cores for the Sandbox, can be fractional.
Optional
encryptedList of ports to tunnel into the Sandbox. Encrypted ports are tunneled with TLS.
Optional
gpuGPU reservation for the Sandbox (e.g. "A100", "T4:2", "A100-80GB:4").
Optional
h2List of encrypted ports to tunnel into the Sandbox, using HTTP/2.
Optional
memoryReservation of memory in MiB.
Optional
nameOptional name for the Sandbox. Unique within an App.
Optional
proxyReference to a Modal Proxy to use in front of this Sandbox.
Optional
regionsRegion(s) to run the Sandbox on.
Optional
secretsSecrets to inject into the Sandbox.
Optional
timeoutTimeout of the Sandbox container, defaults to 10 minutes.
Optional
unencryptedList of ports to tunnel into the Sandbox without encryption.
Optional
verboseEnable verbose logging.
Optional
volumesMount points for Modal Volumes.
Optional
workdirWorking directory of the Sandbox.
Options for
App.createSandbox()
.