oc sandbox create
Create a new sandbox. Alias: oc create
HTTP API →
Idle timeout in seconds
CPU cores (0 = platform default)
Memory in MB (0 = platform default)
Environment variable
KEY=VALUE (repeatable)Metadata
KEY=VALUE (repeatable)Require a bearer token on the sandbox’s preview URLs. The server generates a 256-bit random token and prints it once. See Preview-URL authentication.
Bring your own preview-URL bearer token (≥16 characters). Implies
--preview-auth. Useful when your gateway already has a shared secret.oc sandbox list
List all running sandboxes. Alias: oc ls
HTTP API →
Output columns: ID, TEMPLATE, STATUS, CPU, MEM, AGE
oc sandbox get <id>
Show detailed information for a sandbox. HTTP API →
Output: ID, Template, Status, CPU, Memory, Started, Ends.
oc sandbox kill <id>
Terminate and remove a sandbox. HTTP API →
oc sandbox hibernate <id>
Snapshot VM state and stop the sandbox. Displays snapshot size on success. HTTP API →
oc sandbox wake <id>
Resume a hibernated sandbox. HTTP API →
Idle timeout in seconds after wake
oc sandbox set-timeout <id> <seconds>
Update the idle timeout for a running sandbox. HTTP API →
For commands that resize a sandbox or freeze its size —
scale, autoscale, lock, unlock, lock-status — see Scaling.
oc sandbox allowed-hosts <id>
Show the egress allowlist + per-secret allowed hosts the sandbox’s secrets proxy enforces. Useful for debugging “why is my outbound HTTP call being blocked” without having to cross-reference the secret store config separately.
Sandboxes created without --secret-store return an empty allowlist — the sandbox has no per-store egress restriction.
--json for the structured form:
Layered forks
When a fork layers an additional--secret-store on top of an inherited one, egressAllowlist is the union of both stores’ allowlists (matches what the runtime proxy enforces). The response includes both store names — secretStore is the primary (whose secrets shadow the base on env-name collisions), baseSecretStore is the inherited parent:
baseSecretStore is omitted in the single-store case (no layering).