Skip to main content
Configure Modal through its SDK or the host environment variables MODAL_TOKEN_ID and MODAL_TOKEN_SECRET. Supply both variables together when using explicit tokens.

Configure

Provider Params

Every provider accepts the common Environment schema plus its own declared provider options. Use the command below to list all accepted keys. Pass provider options alongside shared fields in --env-params or the flat YAML provider section. Image, resources, outbound policy, and environment variables retain their unified entry points; native aliases and unknown keys are rejected.
Use resources, run_resources, and evaluation_resources. Provider capabilities still differ: unsupported requirements fail explicitly, while storage limits follow the documented provider support policy. See Resource Limits.

Provider Behavior

The adapter loads setup.image from a registry. Public, no-network, and allowlist policies are supported. A public baseline initializes native allowlists when a later phase requires a policy transition. Optional command supplies the sandbox startup command. Use setup.workdir for the default command directory and setup.build_timeout_seconds for environment creation. The Benchmark selects the task workspace independently through its prepared input; neither setting replaces that workspace or an individual command timeout. When timeout is omitted, the adapter starts with a 43200-second lifetime and extends it for resolved agent, verifier, startup, and artifact collection budgets, up to the 24-hour platform limit. An explicit timeout takes precedence.

Native KVM

Set runtime to vm or gvisor to choose the runtime explicitly. With kvm=true, the adapter selects vm and passes enable_nested_virt=True to Modal. Nested virtualization requires Enterprise access; see the official requirements. A VM sandbox cannot request GPU resources. The androidworld Recipe supplies KVM, image, startup, and resource defaults automatically:
No nested Docker daemon is needed. Other benchmarks leave runtime selection to Modal unless configured explicitly.