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
Create a persistent sandbox
Resume a persistent sandbox
Other improvements
Get started
: Create a new sandbox from an existing one
Sandbox.fork(): Idempotent retrieve-or-create for long-lived sandboxes
Sandbox.getOrCreate(): Permanently delete a sandbox
Sandbox.delete()Richer : Returns snapshot metadata plus active-CPU and network-transfer totals
sandbox.stop()Lifecycle hooks: and hooks for , , and
onCreateonResumecreategetgetOrCreate: Assign custom properties to sandboxes for multi-tenant trackingTags
pnpm install @vercel/sandbox@latest # SDKpnpm install -g sandbox@latest # CLI
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
Updates to Hobby and Pro Terms of Service
Vercel is updating Terms of Service for Hobby and Pro customers effective October 19, 2026, clarifying credit policies, managed accounts, auto-renewal practices, and adding statutory cancellation and refund rights for UK and EU consumers, including protections for service changes with negative impact.
Mercury 3 now available on AI Gateway
Inception's Mercury 3 model is now available on Vercel's AI Gateway with 50% launch pricing and generation speeds exceeding 1,000 tokens per second. The model enables parallel text refinement with a 1M-token context window, ideal for real-time applications like browser agents and customer support.
MiniMax M3.1 Flash now available on AI Gateway for free
MiniMax M3.1 Flash, an open-weight multimodal model with 1M-token context window for coding and agentic work, is now available on Vercel's AI Gateway at no cost through October 20. The model excels at complex agent tasks, coding applications, and cybersecurity work, and can be used through multiple APIs and coding agents.