Vercel Drives 推出:為 Agent 提供持久儲存
Introducing Vercel Drives: persistent storage for agents
Vercel Drives 讓 Agent 能在不同執行環境間持續使用同一套檔案,無需重新建構工作區。
- 功能:在 Sandbox SDK 或 CLI 建立 drive,之後可在任意 Sandbox 掛載,檔案保持不變。
Vercel Drives 讓 Agent 能在不同環境間無縫持續工作,省去重複建構工作區,提升開發與部署效率。
Agents often handle complex work that continues across runs. As that work evolves, they may need a new environment with different tools, runtimes, or compute. They should be able to continue working with the same files when they change environments.
We built Vercel Drives to keep an agent’s files independent of its execution environment. It is now generally available for Vercel Sandbox. Agents can mount the same drive in a new environment configured for the next task and continue where they left off.
Persisting state with a drive
Create a drive once, then mount it when you create a sandbox. From the CLI:
Or from the Sandbox SDK:
In this example, everything under /workspace persists on the drive. Everything else belongs to the sandbox. The next sandbox that mounts the drive finds the repository, and anything else the agent wrote there, where the previous run left it.
The drive keeps the agent’s files independent of the sandbox running it. An agent can resume work in a new sandbox or switch runtimes without transferring its workspace. Other sandboxes can mount the same drive.
Sharing state across sandboxes
Agents can prepare files on a drive once and reuse them across sandboxes. If one agent builds a dataset on a drive, other agents can mount read-only copies to analyze the data or generate reports without rebuilding the dataset. They use the shared files as input and save their results separately.
Agents can also fork a drive to explore different approaches independently. Each fork starts with the drive’s contents and provides its own writable workspace. Agents can try different transformations of the dataset in parallel without changing the original or affecting one another. Forks don’t merge back into the original drive.
Forking is generally available.
Get started
Vercel Drives is now generally available for Vercel Sandbox on all plans.
Drives default to 1 TiB, or 1 GiB on Hobby, with up to 16 TiB available. See the documentation for configuration, snapshots, and limits, or the changelog for what changed at GA.
Resources
Read the Vercel Drives guide
Deploy the Vercel Drives eve agent starter template in one click