oc sandbox createoc createquery --timeoutintdefault: 300query --cpuintdefault: 0query --memoryintdefault: 0query --envstringKEY=VALUE (repeatable)query --metadatastringKEY=VALUE (repeatable)query --preview-authboolquery --preview-auth-tokenstring--preview-auth. Useful when your gateway already has a shared secret.123oc create --timeout 600 --cpu 2 --memory 1024 --env NODE_ENV=production oc create --preview-auth # server-generated token oc create --preview-auth-token "$GATEWAY_TOKEN" # bring your own
oc sandbox listoc lsID, TEMPLATE, STATUS, CPU, MEM, AGE12oc ls oc ls --json
oc sandbox get <id>oc sandbox hibernate <id>oc sandbox wake <id>query --timeoutintdefault: 300oc sandbox set-timeout <id> <seconds>1oc sandbox set-timeout sb-abc123 600
scale, autoscale, lock, unlock, lock-status — see Scaling.oc sandbox allowed-hosts <id>--secret-store return an empty allowlist — the sandbox has no per-store egress restriction.12345678910oc sandbox allowed-hosts sb-abc123 # Sandbox sb-abc123 (secret store: my-store) # # Egress allowlist: # • api.openai.com # • api.anthropic.com # # Per-secret allowed hosts: # OPENAI_API_KEY: # • api.openai.com
--json for the structured form:1oc sandbox allowed-hosts sb-abc123 --json
12345678{ "sandboxID": "sb-abc123", "secretStore": "my-store", "egressAllowlist": ["api.openai.com", "api.anthropic.com"], "perSecretAllowedHosts": { "OPENAI_API_KEY": ["api.openai.com"] } }
--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:123456789{ "sandboxID": "sb-fork456", "secretStore": "fork-override", "baseSecretStore": "fork-parent", "egressAllowlist": ["api.openai.com", "api.anthropic.com", "api.example.com"], "perSecretAllowedHosts": { "OPENAI_API_KEY": ["api.openai.com"] } }
baseSecretStore is omitted in the single-store case (no layering).