# Vercel Sandbox snapshots now allow custom retention periods

**Published:** February 17, 2026 | **Authors:** Tom Lienard, Harpreet Arora, Luke Phillips\-Sheard

---

Snapshots created with [Vercel Sandbox](https://vercel.com/docs/vercel-sandbox) now have configurable expiration, instead of the previous 7 days limit, along with higher defaults.

```typescript
import { Sandbox } from '@vercel/sandbox';
import ms from 'ms';
const sandbox = Sandbox.create();
sandbox.snapshot({ expiration: ms('1d') })
```

The expiration can be configured between [1 day to infinity.](/docs/vercel-sandbox/sdk-reference#sandbox.snapshot) If not provided, the default snapshot expiration is 30 days.

You can also configure this in the [CLI](https://vercel.com/docs/vercel-sandbox/cli-reference#sandbox-snapshot).

```bash
# Create a snapshot of a running sandbox
sandbox snapshot sb_1234567890 --stop
 
# Create a snapshot that expires in 14 days
sandbox snapshot sb_1234567890 --stop --expiration 14d
 
# Create a snapshot that never expires
sandbox snapshot sb_1234567890 --stop --expiration 0
```

Read the [documentation](https://vercel.com/docs/vercel-sandbox/concepts/snapshots) to learn more about snapshots.

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)