megachangelog
Feature

Sandbox persistence is now GA

Vercel Sandboxes now automatically save and restore filesystem state between sessions with persistence enabled by default. New features include durable sandbox names, lifecycle hooks, snapshot management, and tagging for multi-tenant tracking.

now automatically save and restore filesystem state between sessions. Persistence is on by default, meaning no snapshots to manage or state to track manually.Vercel Sandboxes

Each sandbox has a durable, that acts as a unique reference in your project. You can create, retrieve, or resume a sandbox by name. Vercel spins sessions up and down automatically, without interrupting your workflow.customizable name

When you call , persistence is enabled by default:Sandbox.create()

Each automatic snapshot consumes , which is billed separately from compute. For ephemeral workloads, opt out of persistence to minimize storage costs:snapshot storage

To opt out of persistence with the CLI, pass to . Non-persistent sandboxes discard their filesystem when the session ends.--non-persistentsandbox create

Resuming is automatic. Any call on a stopped sandbox, like or , starts a new session from the most recent snapshot.runCommand()writeFiles()

Upgrade to the latest version to create persistent sandboxes by default:

Learn more about persistent sandboxes in the .documentation

Read more

Create a persistent sandbox

Resume a persistent sandbox

Other improvements

Get started

  • : Create a new sandbox from an existing oneSandbox.fork()

  • : Idempotent retrieve-or-create for long-lived sandboxesSandbox.getOrCreate()

  • : Permanently delete a sandboxSandbox.delete()

  • Richer : Returns snapshot metadata plus active-CPU and network-transfer totalssandbox.stop()

  • Lifecycle hooks: and hooks for , , and onCreateonResumecreategetgetOrCreate

  • : Assign custom properties to sandboxes for multi-tenant trackingTags

  • pnpm install @vercel/sandbox@latest # SDK

  • pnpm install -g sandbox@latest # CLI

sandboxpersistenceapistoragedeveloper-experience

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Feature

OpenAI Decisions API now available on AI Gateway

OpenAI's Decisions API is now accessible through Vercel's AI Gateway with an OpenAI-compatible endpoint, enabling decision models to answer typed questions and return probabilities, choices, and scores for routing, triage, and guardrails use cases. Support is available across the OpenAI SDK, AI SDK, HTTP API, and CLI with the latest versions.

ai-gatewayopenaiapidecisionssdks
Feature

Timestamp attributes now supported in Vercel Flags

Vercel Flags now supports timestamp attributes for entities, allowing you to create time-based targeting rules. Use this feature to run limited-time campaigns, show content between specific dates, or target users based on registration date.

flagstargetingfeaturetimestampscampaigns
Feature

Glyph Cluster now available in stealth on AI Gateway

Glyph Cluster, a reasoning model for coding and long-context analysis, is now available as a stealth model on Vercel's AI Gateway for Pro and Enterprise plan teams with purchased AI Gateway credits at no cost during the stealth period. The model supports function calling, streams responses, and can be accessed via AI SDK, OpenAI-compatible APIs, and coding agents.

ai-gatewaymodelscodingstealth
See all Vercel changes →