---
title: Vercel Drives
description: Keep workspace files, caches, and datasets across Vercel Sandbox runs with persistent storage.
url: "https://vercel.com/docs/drives"
last_updated: 2018-10-20
related:
  - /docs/sandbox/concepts/regions
  - /docs/sandbox/concepts/drives
  - /docs/drives/sdk-reference
  - /docs/drives/quickstart
  - /docs/drives/python-sdk-reference
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Vercel Drives

Drives provide persistent storage that you mount into a sandbox as a working directory. Your agent can generate code, download dependencies, and build up context in that directory, keeping its progress across sessions.

## How drives work

A drive belongs to one Vercel project and one [region](/docs/sandbox/concepts/regions#regions-and-drives). To read or write files, [mount the drive](/docs/sandbox/concepts/drives#mounting-a-drive) as a directory in a sandbox in the same project and region. You can move compute between runs without moving the files.

One sandbox at a time can mount a drive read-write. Use a [read-only snapshot](/docs/sandbox/concepts/drives#snapshots) when several sandboxes need the same data, or [fork the drive](/docs/drives/sdk-reference#forking-a-drive) when each sandbox needs an independent writable copy.

## Common patterns

- **Agent workspaces**: Keep generated code, logs, and working files across sessions.
- **Shared caches**: [Reuse dependencies and build artifacts](/docs/sandbox/concepts/drives#example-a-shared-dependency-cache) across sandboxes.
- **Shared datasets**: [Load a dataset once](/kb/guide/large-scale-data-analysis-vercel-sandbox-mcp#how-to-share-large-datasets-across-sandboxes-with-vercel-drives) and mount read-only snapshots in separate sandboxes.

## Get started

Install `@vercel/drives` for JavaScript or TypeScript, or `vercel-drives` for Python:

**pnpm**

```bash
pnpm i @vercel/drives
```

**yarn**

```bash
yarn add @vercel/drives
```

**npm**

```bash
npm i @vercel/drives
```

**bun**

```bash
bun add @vercel/drives
```

**uv**

```bash
uv add vercel-drives
```

**pip**

```bash
pip install vercel-drives
```

Follow the [Drives quickstart](/docs/drives/quickstart) to create a drive and write your first file with an SDK or the command line.

## Start with a template

Deploy an eve template to build an agent that stores and searches files on a drive:

## Next steps

- [JS SDK reference](/docs/drives/sdk-reference): Manage drives with `@vercel/drives`.
- [Python SDK reference](/docs/drives/python-sdk-reference): Manage drives with `vercel.drives`.
- [CLI reference](/docs/drives/cli-reference): Manage drives with `vercel drives`.
- [Pricing and limits](/docs/drives/pricing): Check regional rates, capacity, and mount limits.

You and your coding agent can search the [Knowledge Base](/kb) for Vercel Drives guides with [`vercel kb search`](/docs/cli/kb#search), without logging in:

```bash filename="terminal"
npx vercel@latest kb search "Vercel Drives"
```

## Related guides

- [Build your startup's product on Vercel Sandbox](https://vercel.com/kb/guide/startups-on-vercel-sandbox): Build code interpreters, app previews, and upload-processing features with Vercel Sandbox, including authentication, persistence, security, and cost controls.

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
