Skip to main content
Glama

runtime_sandboxes_create

Idempotent

Create a Linux sandbox (Ubuntu with python3, node, bun, git, gcc and sudo). The free usage is spent first, then prepaid credit, with nothing to choose. Defaults: 2 vCPU / 4096 MiB / 4096 MiB disk, no time limit: it runs while it works and pauses after 60 idle seconds. Waits up to 60 seconds and returns its state; run commands once it is running. Without credit: 4 running sandboxes at once (a paused one holds no slot), each up to 2 vCPU / 4 GiB, 8 vCPU / 16 GiB in all, at most 10 sandboxes kept and 50 made a day; once the account holds credit, its sandboxes have paid limits and still spend the free usage first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpuNoshared
envNoEnvironment variables for every command, terminal and SSH session in it (up to 32). Values are never shown again.
nameNoYour handle for it.
vcpuNoAt most 16 (2 without credit).
waitNo
imageNoStart from this ready image: id, name, name:tag or name@version. Waits for its ready check.
labelsNoUp to 32 key: value tags to filter by.
regionNo
diskMiBNoAt least 3072; at most 409600, 400 GiB (10240 without credit).
fundingNoAccepted and ignored: free usage first, then credit.
networkNoRules from the first start: {internet, allow?, deny?, connect?}, as runtime_sandboxes_network_set.
volumesNoUp to 4 volumes: [{volumeId, path, mode?: rw or snapshot}].
autoWakeNoA request to a paused sandbox wakes it.
pausableNoIgnored since 5 October 2026: every sandbox can pause.
snapshotNoStart as a copy of a ready snapshot, on the snapshot's host; not with image. A memory snapshot's copy is its size; a disk snapshot's is the size asked, its disk at least the saved one.
memoryMiBNoAt most 65536, 64 GiB (4096 without credit).
onTimeoutNopause
tailscaleNoPaid: join your tailnet once running: {authKeySecret (a job secret's name), hostname?, tags?}.
onLeaseEndNoonTimeout's older name.
persistentNoPaid: never pause it for idleness or a time limit.
getOrCreateNoWith name: return the sandbox holding that name (woken if paused) instead of name_taken.
maxCostMicrosNoDeprecated, still accepted: use maxTotalCostMicros.
cpuFloorMillisNoGuaranteed CPU, thousandths of a vCPU.
idempotencyKeyNoOptional: left out, one is made and returned as idempotencyKey. Send it back only to retry this exact call after a temporary error.
timeoutSecondsNoA time limit, 60 to 86400 s (24 h); 0, the default, is none: it runs while it works.
idlePauseSecondsNoPause after this many idle seconds (no request, no command or terminal still running, no open preview, port, SSH or tunnel connection, no network traffic and no CPU use by its processes). Default 60; 0 never; otherwise 10 to 86400.
maxTotalCostMicrosNoThe most it may cost over its whole life.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / funding / description
      Previous value: -"Accepted and ignored: included usage first, then credit."New value: +"Accepted and ignored: free usage first, then credit."
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.