<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n" -->

---
title: Vercel Sandbox supports forking | daily.dev
description: Vercel Sandbox now supports forking via the `Sandbox.fork()` SDK method and a CLI command. A fork starts from the source sandbox's latest saved snapshot,...
canonical: https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Vercel Sandbox supports forking | daily.dev
og:description: Vercel Sandbox now supports forking via the `Sandbox.fork()` SDK method and a CLI command. A fork starts from the source sandbox's latest saved snapshot,...
og:url: https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n
og:image: https://api.daily.dev/og/posts/Vv1osMJ3n.png
og:image:alt: Vercel Sandbox supports forking
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel Sandbox supports forking

**[Vercel](https://daily.dev/sources/vercel)** · 1 min read · 3 upvotes · 0 comments

## Summary

Vercel Sandbox now supports forking via the `Sandbox.fork()` SDK method and a CLI command. A fork starts from the source sandbox's latest saved snapshot, inheriting its configuration and environment variables. If no snapshot exists, it falls back to a fresh create using the source's runtime and config. Parameters passed to the fork call override inherited values. Common use cases include branching agents from a shared base, giving each tenant its own template copy, or running parallel variations. Upgrade to the latest `@vercel/sandbox` SDK or CLI to use the feature.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://vercel.com/changelog/vercel-sandbox-supports-forking>

## Questions this post answers

### How do I fork a Vercel Sandbox to create a copy with the same configuration?

Use Sandbox.fork() with a sourceSandbox parameter, which creates a new sandbox seeded from the source's latest saved snapshot and inherits its config and environment variables. Any parameter you pass, such as name or resources.vcpus, overrides the inherited value. It works from the SDK (@vercel/sandbox) or the CLI with 'sandbox fork <name> --name <newname>'.

_daily.dev surfaces updates like this for teams building agent infrastructure on Vercel Sandbox._

### Does forking a running Vercel Sandbox capture its live in-memory state?

No, forking a running sandbox uses its latest saved snapshot rather than the live in-memory state. If the source sandbox has no snapshot at all, the fork falls back to a fresh create using the source's runtime and configuration instead of copying any state.

_Track platform-level nuances like snapshot versus live state on daily.dev before they cause surprises in production._

## Similar posts on daily.dev

- [Filesystem snapshots supported on Vercel Sandboxes](https://daily.dev/posts/filesystem-snapshots-supported-on-vercel-sandboxes-uv3zx9otg) · Vercel · 1 upvotes · 0 comments
- [Vercel Sandbox tutorial: run untrusted code safely](https://daily.dev/posts/vercel-sandbox-tutorial-run-untrusted-code-safely-ycdiv657b) · Flavio Copes · 1 upvotes · 1 comments
- [Sandbox persistence is now GA](https://daily.dev/posts/sandbox-persistence-is-now-ga-koejftibh) · Vercel · 5 upvotes · 0 comments
- [Sandbox SDK](https://daily.dev/posts/sandbox-sdk-ysnzx6n9v) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#vercel](https://daily.dev/tags/vercel)

[View this post on daily.dev](https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Vercel Sandbox supports forking","url":"https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n"},"datePublished":"2026-07-28T15:43:24.947Z","dateModified":"2026-09-14T06:03:27.574Z","description":"Vercel Sandbox now supports forking via the `Sandbox.fork()` SDK method and a CLI command. A fork starts from the source sandbox's latest saved snapshot,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/447fd064363fda25f495d6a7bb469a12?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/447fd064363fda25f495d6a7bb469a12?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Vercel","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Vercel","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/04cca7235cf84db092f24b7ba427b3e1","url":"https://daily.dev/sources/vercel"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,vercel","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Vercel","item":"https://daily.dev/sources/vercel"},{"@type":"ListItem","position":3,"name":"Vercel Sandbox supports forking"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/vercel-sandbox-supports-forking-vv1osmj3n#faq","mainEntity":[{"@type":"Question","name":"How do I fork a Vercel Sandbox to create a copy with the same configuration?","acceptedAnswer":{"@type":"Answer","text":"Use Sandbox.fork() with a sourceSandbox parameter, which creates a new sandbox seeded from the source's latest saved snapshot and inherits its config and environment variables. Any parameter you pass, such as name or resources.vcpus, overrides the inherited value. It works from the SDK (@vercel/sandbox) or the CLI with 'sandbox fork <name> --name <newname>'. daily.dev surfaces updates like this for teams building agent infrastructure on Vercel Sandbox."}},{"@type":"Question","name":"Does forking a running Vercel Sandbox capture its live in-memory state?","acceptedAnswer":{"@type":"Answer","text":"No, forking a running sandbox uses its latest saved snapshot rather than the live in-memory state. If the source sandbox has no snapshot at all, the fork falls back to a fresh create using the source's runtime and configuration instead of copying any state. Track platform-level nuances like snapshot versus live state on daily.dev before they cause surprises in production."}}]}
```

