Skip to main content
Move a Vercel Sandbox or Modal Sandbox workload to Styne with the E2B SDK (Python e2b or JavaScript e2b, version 2.63 and later) and Styne’s snapshot calls. Each call of your harness has a one-line counterpart below; the ports of three real harnesses (a Vercel snapshot benchmark, a per-visitor preview service and a Modal sandbox pool) ran start to finish this way. You need a Styne API key; create one on the dashboard (API keys).
1

Point the E2B SDK at Styne

Set the three variables in the process that runs your code. Switch from E2B lists what they change.
2

Map your calls

From Vercel Sandbox (@vercel/sandbox):From Modal (modal.Sandbox):
3

Check

Run this once. It takes a Vercel-style flow, bootstrap, snapshot, start from the snapshot, delete, end to end.
4

Adapt what differs

5

Cut over

Keep the three variables behind a switch in your config, send a small share of work to Styne, compare exit codes and timings, and move the rest. Errors lists every code the API can answer; limits every limit.