Sandbox Templates
Sandbox workload templates let workspace admins define reusable runtime shapes for a workspace. A template stores the image, environment, resource requests, and driver-specific configuration that sandboxes should inherit. When you create a sandbox from a template, the create request can still attach providers, labels, and policy, but the workload comes from the named template.
Create a Template
Use --gpu without a count when the template should request the active
driver’s default GPU assignment. Use --gpu COUNT when the template needs a
specific number of GPUs.
For a separate template with driver-specific settings, create it with
--driver-config-json:
If you omit --image, the gateway applies its default sandbox image when a sandbox is created from the template. Use this when the template should only define resource, environment, or driver settings.
Create a Sandbox from a Template
The --template flag cannot be combined with inline workload flags such as --from, --cpu, --memory, --gpu, --env, or --driver-config-json. Put those values on the template instead. Create-time policy and provider attachments remain part of the sandbox request, so each sandbox can keep its own access boundary.
Manage Templates
Use --all-workspaces with sandbox template list when you need an admin view across workspaces:
For JSON or YAML, template list output contains templates and
next_page_token fields. Pass the returned token to --page-token to
continue.