Skip to content

Guides

Provider options

One API for every provider, without losing any provider's own features.

How options merge

provider_options (providerOptions in TypeScript) maps a provider id to fields of that provider's own create request, named exactly as in its API docs. When SandboxPlease starts the sandbox on a provider, it merges that provider's entry into the request it sends: objects merge key by key, arrays and values replace. Entries for the other providers are ignored. An unknown provider id is a unknown_provider error listing the valid ids.

template stays generic, but template names differ per vendor: provider_options.e2b.template replaces it when the sandbox lands on E2B.

With fallbacks

One request can carry options for every provider in its fallback list. Below, E2B gets its template and metadata; if E2B fails and the sandbox falls back to Modal, Modal gets its ports and the generic template. Every entry is checked before anything starts, so a bad option fails the request at once, not halfway through the fallbacks.

Fields SandboxPlease owns

Size, lifetime, credentials and anything that changes what SandboxPlease bills or when it kills the sandbox stay SandboxPlease's. Setting one in provider_options is a provider_option_conflict error that names the field and the SandboxPlease parameter to use instead. A few fields change the vendor's price, like a GPU; they work only on your own provider key (BYOK), where the vendor bills you directly.

Response · 400
{
  "error": {
    "code": "provider_option_conflict",
    "message": "provider_options.e2b.timeout is set by SandboxPlease and cannot be overridden",
    "hint": "Drop provider_options.e2b.timeout and use timeout instead.",
    "details": { "field": "provider_options.e2b.timeout", "use": "timeout" }
  }
}

Per provider

One example per provider, taken from the vendor's API docs. SandboxPlease keeps the option names, never their values: they can hold environment variables and secrets.

E2B provider_options.e2b

autoPause and autoResume keep a sandbox alive past what SandboxPlease bills, so they run on your own E2B key only.

provider_options.e2b
{
  "template": "my-python-template",
  "metadata": {
    "team": "ml"
  },
  "network": {
    "allowOut": ["pypi.org", "*.github.com"],
    "denyOut": ["0.0.0.0/0"]
  }
}
Set by SandboxPleaseUse instead
templateIDtemplate
timeouttimeout
cpuCountsize
memoryMBsize
devicesdevices
autoPauseyour own key (BYOK)
autoResumeyour own key (BYOK)
lifecycleyour own key (BYOK)
volumeMountsyour own key (BYOK)
network.rulesyour own key (BYOK)
iamyour own key (BYOK)

E2B API referenceOpenAPI spec (NewSandboxV2)

Daytona provider_options.daytona

provider_options.daytona
{
  "labels": {
    "team": "ml"
  },
  "network_policy": {
    "allow_domains": ["pypi.org", "*.github.com"]
  },
  "lifecycle_policy": {
    "idle_expiry_seconds": 900,
    "on_idle_timeout": "stop"
  }
}
Set by SandboxPleaseUse instead
cpusize
cores_maxsize
memory_mibsize
memory_max_mibsize
lifecycle_policy.timeout_secondstimeout
lifecycle_policy.on_timeouttimeout
imagetemplate
disk_mibyour own key (BYOK)
disk_max_mibyour own key (BYOK)
spotyour own key (BYOK)
gpuyour own key (BYOK)
memoryyour own key (BYOK)
diskyour own key (BYOK)
classyour own key (BYOK)
snapshotyour own key (BYOK)
volumesyour own key (BYOK)
secretsyour own key (BYOK)

Daytona API: create a sandbox

Vercel Sandbox provider_options.vercel

provider_options.vercel
{
  "source": {
    "type": "git",
    "url": "https://github.com/vercel/next.js",
    "depth": 1
  },
  "ports": [3000],
  "networkPolicy": {
    "mode": "custom",
    "allowedDomains": ["registry.npmjs.org"]
  }
}
Set by SandboxPleaseUse instead
projectIdyour Vercel key (<token>:<teamId>:<projectId>)
resourcessize
timeouttimeout
persistenttimeout
imagetemplate
source.snapshotIdyour own key (BYOK)
mountsyour own key (BYOK)
networkIdyour own key (BYOK)
credentialsyour own key (BYOK)

Vercel REST API: create a sandbox

Blaxel provider_options.blaxel

provider_options.blaxel
{
  "metadata": {
    "labels": {
      "team": "ml"
    }
  },
  "spec": {
    "region": "eu-lon-1",
    "runtime": {
      "ports": [
        {
          "name": "web",
          "target": 3000,
          "protocol": "HTTP"
        }
      ]
    }
  }
}
Set by SandboxPleaseUse instead
metadata.namethe generated name in provider_metadata
spec.runtime.memorysize
spec.runtime.ttltimeout
spec.runtime.expirestimeout
spec.lifecycletimeout
spec.runtime.imagetemplate
spec.runtime.envsenv
spec.volumesyour own key (BYOK)
spec.vpcyour own key (BYOK)
spec.network.subnetyour own key (BYOK)
spec.network.egressyour own key (BYOK)

Blaxel API: create a sandbox

Fly.io Sprites provider_options.sprites

provider_options.sprites
{
  "url_settings": {
    "auth": "public"
  }
}
Set by SandboxPleaseUse instead
namethe generated name in provider_metadata
config.cpussize
config.ram_mbsize
config.storage_gbsize

Sprites API: create a sprite

Northflank provider_options.northflank

provider_options.northflank
{
  "ports": [
    {
      "name": "web",
      "internalPort": 8080,
      "public": true,
      "protocol": "HTTP"
    }
  ],
  "deployment": {
    "storage": {
      "ephemeralStorage": {
        "storageSize": 4096
      }
    }
  }
}
Set by SandboxPleaseUse instead
namethe generated id in provider_metadata
billingsize
deployment.instancespause
deployment.external.imagePathtemplate
createOptions.expiryTimetimeout
deployment.gpuyour own key (BYOK)
deployment.external.credentialsyour own key (BYOK)
deployment.internalyour own key (BYOK)
deployment.imageyour own key (BYOK)
deployment.containerSnapshotyour own key (BYOK)
createOptions.volumesToAttachyour own key (BYOK)
ports[].domainsyour own key (BYOK)
ports[].security.ssoyour own key (BYOK)

Northflank API: create a deployment service

CodeSandbox provider_options.codesandbox

Top-level fields go to the fork request; start goes to the VM start request.

provider_options.codesandbox
{
  "description": "agent run 42",
  "start": {
    "ipcountry": "NL"
  }
}
Set by SandboxPleaseUse instead
start.tiersize
start.hibernation_timeout_secondstimeout
start_optionsprovider_options.codesandbox.start
start.automatic_wakeup_configyour own key (BYOK)

CodeSandbox SDK: createSandboxForkRequest and VmStartRequest

miniSandbox provider_options.minisandbox

miniSandbox speaks the E2B API, so it takes E2B's create fields.

provider_options.minisandbox
{
  "metadata": {
    "team": "ml"
  }
}
Set by SandboxPleaseUse instead
templateIDtemplate
timeouttimeout
cpuCountsize
memoryMBsize
devicesdevices
autoPauseyour own key (BYOK)
autoResumeyour own key (BYOK)
lifecycleyour own key (BYOK)
volumeMountsyour own key (BYOK)
network.rulesyour own key (BYOK)
iamyour own key (BYOK)

E2B API referenceOpenAPI spec (NewSandboxV2)

Boat provider_options.boat

provider_options.boat
{
  "name": "agent-run-42",
  "labels": {
    "team": "ml"
  },
  "hostedPorts": [
    {
      "port": 3000,
      "public": true
    }
  ]
}
Set by SandboxPleaseUse instead
typesize
ttlSecondstimeout
fromtemplate
countone call per sandbox
environmentyour own key (BYOK)
noEnvyour own key (BYOK)
orgyour own key (BYOK)
teamIdyour own key (BYOK)

Boat OpenAPI spec

Novita provider_options.novita

Novita runs the E2B stack, so it takes E2B's create fields; internet access is allow_internet_access.

provider_options.novita
{
  "metadata": {
    "team": "ml"
  },
  "allow_internet_access": false
}
Set by SandboxPleaseUse instead
templateIDtemplate
timeouttimeout
cpuCountsize
memoryMBsize
devicesdevices
autoPauseyour own key (BYOK)
autoResumeyour own key (BYOK)
lifecycleyour own key (BYOK)
volumeMountsyour own key (BYOK)
network.rulesyour own key (BYOK)
iamyour own key (BYOK)

Novita Sandbox docsGo SDK create request

InstaBox provider_options.instabox

template is a template id, or a snapshot id (sn_…) such as an imported Docker or OCI image.

provider_options.instabox
{
  "template": "sn_01jd8z4n6q8s0u2w4y6a8c0e2g",
  "autoSuspendAfterSeconds": 600,
  "metadata": {
    "team": "ml"
  }
}
Set by SandboxPleaseUse instead
vcpussize
memMiBsize
deleteAfterSecondstimeout
templateIdtemplate
snapshotIdtemplate
imageIdtemplate
gpuyour own key (BYOK)
modelyour own key (BYOK)
acceptMinimumLeaseyour own key (BYOK)
vaultyour own key (BYOK)
secretsyour own key (BYOK)
envSecretsyour own key (BYOK)
directSecretsyour own key (BYOK)
orgIdyour own key (BYOK)

InstaBox API: create a sandbox

Tensorlake provider_options.tensorlake

template is a registered Sandbox Image name. secret_names injects secrets stored in your Tensorlake project.

provider_options.tensorlake
{
  "template": "my-sandbox-image",
  "network": {
    "allow_out": ["pypi.org", "github.com"]
  },
  "secret_names": ["HF_TOKEN"]
}
Set by SandboxPleaseUse instead
namethe generated name in provider_metadata
resources.cpussize
resources.memory_mbsize
timeout_secstimeout
imagetemplate
waitnothing: SandboxPlease waits for the sandbox to run
resources.disk_mbyour own key (BYOK)
resources.gpusyour own key (BYOK)
secret_namesyour own key (BYOK)
file_systemsyour own key (BYOK)
snapshot_idyour own key (BYOK)
template_idyour own key (BYOK)

Tensorlake: sandbox lifecycleTensorlake OpenAPI spec

Upstash Box provider_options.upstash

Upstash publishes no REST reference: field names follow its open-source SDK. SandboxPlease creates ephemeral boxes so the TTL bounds their lifetime.

provider_options.upstash
{
  "runtime": "python",
  "labels": ["agent-run-42"],
  "network_policy": {
    "mode": "custom",
    "allowed_domains": ["pypi.org", "*.github.com"]
  }
}
Set by SandboxPleaseUse instead
ephemeraltimeout
ttltimeout
keep_alivetimeout
sizesize
snapshot_idtemplate
agentyour own key (BYOK)

Upstash Box SDK (create request)

Freestyle provider_options.freestyle

The VM boots at its snapshot's size: a template snapshot keeps its own vCPU and memory. firewall defaults to open outbound internet; pass your own rules to restrict it.

provider_options.freestyle
{
  "idleTimeoutSeconds": 900,
  "metadata": {
    "team": "ml"
  },
  "automaticRestart": false
}
Set by SandboxPleaseUse instead
snapshotIdsize, or template for your own snapshot
ttlSecondstimeout
networksyour own key (BYOK)
vpcsyour own key (BYOK)
tlsyour own key (BYOK)
firewallyour own key (BYOK)
reassignSlugyour own key (BYOK)
slugyour own key (BYOK)
customerIdyour own key (BYOK)
customeryour own key (BYOK)

Freestyle VMsFreestyle OpenAPI spec (create_vm)

Namespace provider_options.namespace

SandboxPlease runs one container named main from template (default ubuntu:24.04) and execs into it. Append @eu to the token for the EU region; the default is us.

provider_options.namespace
{
  "labels": [
    {
      "name": "team",
      "value": "ml"
    }
  ],
  "experimental": {
    "authorizedSshKeys": ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI… you@laptop"]
  }
}
Set by SandboxPleaseUse instead
shapesize
deadlinetimeout
containerstemplate for the image, env for its environment
workloadPermissionsyour own key (BYOK)
volumesyour own key (BYOK)
containerCacheyour own key (BYOK)
additionalRegistriesyour own key (BYOK)
applicationsyour own key (BYOK)
ingressBaseDomainyour own key (BYOK)
experimental.volumesyour own key (BYOK)
experimental.containerCacheyour own key (BYOK)
experimental.prometheusMetricsSinkyour own key (BYOK)
experimental.withConfigurationyour own key (BYOK)
experimental.disksyour own key (BYOK)

Namespace Compute API (CreateInstance)Namespace machine shapes

Koyeb provider_options.koyeb

SandboxPlease creates one app and one SANDBOX service per sandbox, in the region of your key (`token@region`, Frankfurt by default). Koyeb deletes it after the timeout, 24 hours at most. Only one port is published at a time: a new port_url moves the public route to that port.

provider_options.koyeb
{
  "definition": {
    "docker": {
      "privileged": true
    },
    "config_files": [
      {
        "path": "/etc/app/config.yaml",
        "content": "debug: true",
        "permissions": "0644"
      }
    ]
  }
}
Set by SandboxPleaseUse instead
namethe generated name in provider_metadata
app_idthe app SandboxPlease creates per sandbox
life_cycle.delete_after_createtimeout
definition.typenothing: SandboxPlease only creates sandboxes
definition.docker.imagetemplate
definition.envenv
definition.instance_typessize
definition.regionsthe region in KOYEB_API_TOKEN (`token@region`)
definition.scalingsnothing: a sandbox runs one always-on instance
definition.portsport_url
definition.routesport_url
definition.databaseyour own key (BYOK)
instance_snapshot_idyour own key (BYOK)
service_account_idyour own key (BYOK)
definition.docker.image_registry_secretyour own key (BYOK)
definition.volumesyour own key (BYOK)
definition.gityour own key (BYOK)
definition.archiveyour own key (BYOK)
definition.meshyour own key (BYOK)
definition.network_policyyour own key (BYOK)

Koyeb SandboxesKoyeb API OpenAPI spec (CreateService)

Hopx provider_options.hopx

A sandbox gets its vCPU and memory from its template, never from the request: SandboxPlease boots code-interpreter (2 vCPU / 4 GiB) unless you pass your own template. region is us-east or eu-west.

provider_options.hopx
{
  "region": "eu-west",
  "internet_access": false
}
Set by SandboxPleaseUse instead
template_idtemplate
template_nametemplate
timeout_secondstimeout
env_varsenv

Hopx API: create a sandboxHopx OpenAPI spec

Celesto provider_options.celesto

Celesto publishes no REST reference: field names follow its official SDKs. network_policy defaults to open outbound internet. Commands are limited to 10,000 characters, so run long scripts from a file.

provider_options.celesto
{
  "template": "coding-agent",
  "network_policy": {
    "mode": "off"
  }
}
Set by SandboxPleaseUse instead
size_idsize
vcpussize
ram_mbsize
disk_size_mbsize
template_idtemplate

Celesto: computersCelesto: sizes

Superserve provider_options.superserve

Curated templates run at 2 vCPU / 4 GiB whatever the request asks: SandboxPlease boots superserve/base unless you pass your own template. timeout_seconds pauses the sandbox, it does not delete it.

provider_options.superserve
{
  "idle_timeout_seconds": 600,
  "preview_access": "private"
}
Set by SandboxPleaseUse instead
namethe sandbox id
from_templatetemplate
from_snapshotfromSnapshot
timeout_secondstimeout
env_varsenv
vcpusize
memory_mibsize
secretsyour own key (BYOK)

Superserve: create a sandboxSuperserve OpenAPI spec

Render provider_options.render

Sandboxes start in your workspace's default sandbox group (Oregon). A template is an image you imported into that group (its name or sbb- id). idleTimeoutSeconds (default 900, 0 turns it off) suspends an idle sandbox, which resumes on its next command. A network allow-list takes domains only and blocks every protocol but HTTPS.

provider_options.render
{
  "template": "python-latest",
  "idleTimeoutSeconds": 1800
}
Set by SandboxPleaseUse instead
ownerIdyour Render key (<api key>:<workspace id>)
plansize
timeoutSecondstimeout
snapshotIdfrom_snapshot
snapshotNamefrom_snapshot
buildIdtemplate
buildNametemplate
sandboxGroupIdyour own key (BYOK)
sharedFilesystemsyour own key (BYOK)

Render: creating sandboxesRender: limits and pricing

Prime Intellect provider_options.prime-intellect

Runs only on your own Prime Intellect key. Network lockdowns go through the network parameter (network_allowlist takes domains and IPv4 ranges); idle_timeout_minutes must not exceed the sandbox's timeout.

provider_options.prime-intellect
{
  "arch": "arm64",
  "idle_timeout_minutes": 15,
  "secrets": {
    "OPENAI_API_KEY": "sk-..."
  }
}
Set by SandboxPleaseUse instead
namethe generated name in provider_metadata
docker_imagetemplate
cpu_coressize
memory_gbsize
timeout_minutestimeout
environment_varsenv
labelsnothing: SandboxPlease tags the sandbox with its environment
vmnothing: a VM is the only runtime
gpu_countyour own key (BYOK)
gpu_typeyour own key (BYOK)
disk_size_gbyour own key (BYOK)
guaranteedyour own key (BYOK)
team_idyour own key (BYOK)
checkpoint_idyour own key (BYOK)
volumesyour own key (BYOK)
network_rulesyour own key (BYOK)

Prime Intellect: sandbox REST APIOpenAPI specPrime Intellect: create and manage

Runtime provider_options.runtime

SandboxPlease sends secrets: [] so a sandbox gets none of your account's secrets unless you name them, and deletes it after the timeout (deleteAfterSeconds). A sandbox has at least 2 vCPU and pauses after 300 s idle; any call resumes it. Starting one needs a card on your Runtime account.

provider_options.runtime
{
  "idlePauseSeconds": 0,
  "labels": {
    "team": "ml"
  },
  "maxCost": "5.00"
}
Set by SandboxPleaseUse instead
vcpusize
memoryGBsize
imagetemplate
fromtemplate, or a snapshot id as template
snapshottemplate, or a snapshot id as template
deleteAfterSecondstimeout
envenv
diskGByour own key (BYOK)
volumesyour own key (BYOK)
secretsyour own key (BYOK)

Runtime API: create a sandboxRuntime OpenAPI spec

Morph Cloud provider_options.morph

A new sandbox boots template (a Morph image, morphvm-minimal by default) with a 16 GB disk; a snapshot resumes with its memory and processes, at the size it was taken at. Morph bills whole MCUs: one per vCPU, per 4 GB of RAM or per 16 GB of disk, whichever is more.

provider_options.morph
{
  "metadata": {
    "team": "ml"
  }
}
Set by SandboxPleaseUse instead
vcpussize
memorysize
disk_sizesize
snapshot_idtemplate for your own snapshot
ttl_secondstimeout
ttl_actiontimeout

Morph Cloud REST APIOpenAPI spec (Boot Image)

Exec options

exec_options does the same for commands, where a provider has extra command flags: Vercel Sandbox (sudo), InstaBox (noHistory), Tensorlake (user). Any other provider answers unsupported.

Drop down to the vendor SDK

Every sandbox carries provider_sandbox_id and provider_metadata: the non-secret fields of the provider's create response, such as its native id, URLs, region and image. Pass the native id to the vendor's SDK when you need a feature SandboxPlease does not route yet.

provider_metadata · E2B
{
  "sandboxID": "i9xk3l2q8m1n0p7r6s5t",
  "templateID": "rki5dems9wqfm4r03t7g",
  "domain": "e2b.app",
  "envdVersion": "0.6.4"
}