[KongchangAI]
· 1 min read· 902 words

Vercel Drives Adds Named Snapshots: Mountable, Forkable Persistent Storage

Vercel Drives Adds Named Snapshots: Mountable, Forkable Persistent Storage

Vercel Drives adds named snapshots, decoupling snapshots from sandbox lifecycles with sharing and forking support.

Vercel introduces named snapshots to its Drives storage feature, solving the issue where snapshots from drive.snapshot() were tied to sandbox lifecycles. Named snapshots are read-only copies of drive contents at creation time, independently persisted, mountable across multiple sandboxes, or forkable into new writable drives. Users can create, list, and fork snapshots via Vercel CLI 68.3.0+ or updated TypeScript/Python SDKs and manage them in the dashboard. Billed as drive storage and manually deleted, they differ from Sandbox snapshots: the former saves only drive contents, the latter the entire sandbox filesystem. Suitable for baseline recovery, parallel testing, and cache sharing, available on Hobby, Pro, and Enterprise plans.

Vercel has added named snapshots to its Drives storage feature. Unlike the temporary snapshots that previously existed only for the lifetime of the sandbox mounting them, named snapshots are read-only copies of a drive's contents at the moment of creation, and subsequent writes to the drive do not affect them. You can mount the same snapshot into multiple sandboxes at once, or fork it into a new writable drive to continue working from that point in time.

Vercel Drives named snapshots

Why Named Snapshots Matter

In AI coding and automation tasks, sandbox environments often need to mount external storage to read and write data. Previously, snapshots created by drive.snapshot() were tied to the sandbox lifecycle—once the sandbox was destroyed, the snapshot disappeared with it. This meant there was no way to share the same historical state across multiple sandboxes, and workflows like "baseline recovery" were difficult to achieve.

Named snapshots solve this pain point. They decouple snapshots from sandboxes, turning them into independently persisted objects. Each named snapshot is billed as drive storage based on the actual size used until you explicitly delete it. You can view and delete the named snapshots of a drive through the Vercel dashboard.

Sandbox is an isolated, temporary compute environment that Vercel uses to run AI-generated code or automation tasks. Sandboxes typically have very short lifecycles: created before a task starts, destroyed after it ends. Because of this, any storage or state bound to a sandbox (including legacy snapshots) disappears along with it. The design motivation behind named snapshots is to "liberate" this state from short-lived sandboxes and attach it to an independently persisted drive object, so multiple sandboxes can share the same historical data. Understanding the premise of sandbox "temporariness" is key to understanding why named snapshots are a necessary new abstraction.

How to Create, List, and Fork Snapshots

Using Vercel CLI 68.3.0 or later, you can run the following commands:


**Fork** here borrows the concept from version control systems: it does not copy or modify the original snapshot, but rather creates a new, writable drive starting from the snapshot's contents. The original snapshot remains read-only and unchanged, while the new drive can continue to be written to. This is similar to checking out a new branch from a Git commit—the baseline is fixed, and further evolution happens on the branch. The value of fork lies in supporting workflows that "continue iterating from a known good state," and you can repeatedly fork multiple independent drives from the same snapshot without interfering with each other.
# Create a snapshot named baseline
vercel drives snapshot workspace-cache baseline

# List snapshots of workspace-cache
vercel drives snapshots list workspace-cache

# Fork baseline into a new writable drive
vercel drives snapshots fork baseline workspace-cache-restored --drive workspace-cache

For TypeScript and Python developers, you need to update the corresponding SDK packages: for TypeScript, @vercel/drives and @vercel/sandbox; for Python, vercel-drives and vercel-sandbox. Here is a TypeScript example:

import { Drive } from '@vercel/drives';
import { Sandbox } from '@vercel/sandbox';

const drive = await Drive.get({ name: 'workspace-cache' });
const snapshot = await drive.snapshot({ name: 'baseline' });

const sandbox = await Sandbox.create({
  region: snapshot.region,
  mounts: { '/data': snapshot },
});

const restored = await snapshot.fork({ name: 'workspace-cache-restored' });

Note that drive.snapshot() itself retains its old behavior—the snapshot is only valid for the lifetime of the sandbox mounting it. Named snapshots are a new option, not a replacement.

Differences from Sandbox Snapshots

Named snapshots and Sandbox snapshots are two different mechanisms. Sandbox snapshots save the entire sandbox filesystem, making them suitable for scenarios that require complete environment reproduction. Drive snapshots, on the other hand, target only drive contents and are lighter weight, making them suitable for caches, workspace data, and other scenarios that need cross-sandbox sharing or versioning. The Vercel documentation specifically explains when to use drive snapshots versus Sandbox snapshots.

Named snapshots are currently available on Hobby, Pro, and Enterprise plans. For more details, see the Drives documentation.

Sandbox snapshot captures the state of the entire sandbox filesystem, including the OS layer, installed dependencies, environment variables, and mount point contents. As a result, it is larger and slower to create, but can fully reproduce a runtime environment. Drive snapshot captures only the data portion of a mounted drive, excluding the sandbox's own system state, so it is lighter weight and faster to create. The choice is simple: use Sandbox snapshots when you need to restore the system environment along with the data; use drive snapshots when you only need to share or version the data itself. The two can be combined—for example, using a drive snapshot to provide a data baseline and a Sandbox snapshot to ensure a consistent runtime environment.

Use Cases and Limitations

Named snapshots are best suited for workflows that need a "baseline": for example, creating a drive snapshot in CI that contains dependency caches and initial data, then launching multiple sandboxes in parallel mounting the same snapshot for testing, and after testing is complete, forking a snapshot to continue iterating. Because snapshots are read-only, multiple sandboxes mounting them simultaneously will not interfere with each other.

Note that each named snapshot is billed as drive storage, so retaining a large number of snapshots long-term will increase costs. In addition, snapshots are not automatically cleaned up and must be deleted manually. For scenarios requiring full filesystem snapshots, Sandbox snapshots should still be used.

#Vercel Drives#named snapshots#sandbox#persistent storage#AI coding#fork
Share:

Related articles