Automatic persistence now in beta on Vercel Sandbox
Vercel Sandboxes now automatically save and restore filesystem state when stopped and resumed, eliminating the need for manual snapshots. This enables durable, long-running sandboxes that continue from where they left off with persistence enabled by default in the beta SDK.
can now automatically save their filesystem state when stopped and restore it when resumed. This removes the need for manual snapshots, making it easier to run long-running, durable sandboxes that continue where you left off.Vercel Sandboxes
A is the durable identity, now identified , its filesystem state, and configuration options. A is the compute tied to that state, invoked as needed.sandboxsessionby a name
introduces orchestration that separates storage from compute, reducing the need for manual snapshotting, so:Automatic persistence
Persistence is enabled by default in the beta SDK, can be disabled between sessions with . When disabled, the sandbox still exists after being stopped and can be resumed by its name, but each session starts with a clean filesystem.persistent: false
If a sandbox is stopped and you run a command, the SDK will transparently create a new session, so you don't need to check state or manually restart
The beta SDK adds methods for managing sandboxes over their lifetime:
The beta CLI adds configuration management and session inspection:
This feature is in beta and requires upgrading to the beta and packages.SDKCLI
Install the beta packages to try persistent sandboxes today: for the SDK, and for the CLI.pnpm install @vercel/sandbox@beta pnpm install -g sandbox@beta
Persistent sandboxes are available in beta on all plans.
Learn more in the .documentation
How it works
when you stop a sandbox, the session shuts down but the filesystem is automatically snapshotted.
when you resume, a new session boots from that snapshot. This state storage is not charged, so you pay when your setting is active.
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
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.
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.
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.