NamedSandbox

September 16, 2026 ยท View on GitHub

This object contains information related to a Vercel NamedSandbox.

Example Usage

import { NamedSandbox } from "@vercel/sdk/models/namedsandbox.js";

let value: NamedSandbox = {
  createdAt: 1750344501629,
  currentSessionId: "<id>",
  cwd: "/vercel/sandbox",
  expiresAt: 1750344801629,
  failoverRegions: [
    "sfo1",
    "cle1",
  ],
  image:
    "my-repo@sha256:2c4e8f9a1b3d5e7f091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708",
  keepLastSnapshots: {
    count: 5,
    deleteEvicted: true,
    expiration: 604800000,
  },
  memory: 1024,
  name: "my-sandbox",
  persistent: true,
  region: "iad1",
  runtime: "node22",
  snapshotExpiration: 604800000,
  status: "running",
  statusUpdatedAt: 1750344501629,
  tags: {
    "team": "hive",
    "user": "bob",
  },
  timeout: 300000,
  totalActiveCpuDurationMs: 5000,
  totalDurationMs: 60000,
  totalEgressBytes: 4096,
  totalIngressBytes: 2048,
  updatedAt: 1750344501629,
  vcpus: 2,
};

Fields

FieldTypeRequiredDescriptionExample
createdAtnumber:heavy_check_mark:The time when the named sandbox was created, in milliseconds since the epoch.1750344501629
currentSessionIdstring:heavy_check_mark:Current session ID the sandbox is pointing to.
currentSnapshotIdstring:heavy_minus_sign:Current snapshot ID that the named sandbox is pointing to.
cwdstring:heavy_minus_sign:The working directory of the sandbox./vercel/sandbox
expiresAtnumber:heavy_minus_sign:The time at which the currently running sandbox will time out, in milliseconds since the epoch. Only present while a session is running.1750344801629
failoverRegionsmodels.FailoverRegions[]:heavy_minus_sign:The regions the sandbox fails over to. Empty when it does not fail over.[
"sfo1",
"cle1"
]
imagestring:heavy_minus_sign:Digest-pinned reference of the container image the sandbox was created from, when it was created from an image ("{repository}@{manifestDigest}").my-repo@sha256:2c4e8f9a1b3d5e7f091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708
keepLastSnapshotsmodels.KeepLastSnapshots:heavy_minus_sign:Keep-last snapshot configuration.
memorynumber:heavy_minus_sign:Memory allocated in MB.1024
mountsRecord<string, models.Mounts>:heavy_minus_sign:Key-value pairs of mount path and drive.
namestring:heavy_check_mark:The unique identifier of the sandbox.my-sandbox
networkIdstring:heavy_minus_sign:The Connect network id for the target Secure Compute private network.
networkPolicymodels.NetworkPolicy:heavy_minus_sign:Network policy configuration.
persistentboolean:heavy_check_mark:Whether the sandbox persists its state across restarts via automatic snapshots.true
regionstring:heavy_minus_sign:The region the sandbox is pinned to: the region stored on the sandbox, otherwise the platform default. Where a running session actually landed is reported by session.region.iad1
runtimestring:heavy_minus_sign:Runtime identifier.node22
snapshotExpirationnumber:heavy_minus_sign:Default snapshot expiration time in milliseconds. 0 means no expiration.604800000
statusmodels.NamedSandboxStatus:heavy_check_mark:The status of the current sandbox.running
statusUpdatedAtnumber:heavy_check_mark:The time when the sandbox status was last updated, in milliseconds since the epoch.1750344501629
tagsRecord<string, string>:heavy_minus_sign:Key-value tags attached to the named sandbox.{
"team": "hive",
"user": "bob"
}
timeoutnumber:heavy_minus_sign:Timeout in milliseconds.300000
totalActiveCpuDurationMsnumber:heavy_minus_sign:Cumulative active CPU duration in milliseconds across all sandbox runs.5000
totalDurationMsnumber:heavy_minus_sign:Cumulative wall-clock duration in milliseconds across all sandbox runs.60000
totalEgressBytesnumber:heavy_minus_sign:Cumulative egress bytes across all sandbox runs.4096
totalIngressBytesnumber:heavy_minus_sign:Cumulative ingress bytes across all sandbox runs.2048
updatedAtnumber:heavy_check_mark:The time when the named sandbox was last updated, in milliseconds since the epoch.1750344501629
vcpusnumber:heavy_minus_sign:Number of virtual CPUs allocated.2