Drives for Vercel Sandbox in Private Beta
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
1 min read
Vercel Sandbox now supports drives in private beta. Drives are persistent, attachable storage with a lifecycle independent from any sandbox.
Create a drive once, then mount it at a configurable path when starting a sandbox. When the sandbox stops, the drive remains available to attach to a later sandbox.
Install the beta SDK (@vercel/sandbox@beta) or beta CLI (sandbox@beta), then create and mount a drive:
import { Drive, Sandbox } from "@vercel/sandbox";
const drive = await Drive.getOrCreate({ name: "agent-workspace",});
const sandbox = await Sandbox.create({ mounts: { "/workspace": { drive: drive.name, mode: "read-write", }, },});Sandbox Drives are useful for:
Keeping agent workspaces across disposable sandboxes
Retaining cloned repositories, dependencies, and build outputs
Managing data independently from the sandbox lifecycle
During the private beta, a drive can be mounted read-write by one sandbox at a time. Sandbox drives should not be used for production data while in private beta.
Sign up here to join the waitlist, and learn more in the docs.
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.