Lifo vs Vercel Sandbox
Vercel Sandbox gives each run its own Firecracker microVM with real Linux, billed by active CPU and memory. Lifo runs the code in the user's browser tab, so a preview or an agent's shell costs nothing per session. They solve different halves of the same problem, and many products need both.
At a glance
Vercel Sandbox "runs untrusted or agent-generated code in isolated Linux microVMs." Each sandbox is a Firecracker microVM with its own kernel, booted from an Ubuntu image, a custom image or a saved snapshot, in one of Vercel's regions. It has been generally available since January 2026, with SDKs for JavaScript (@vercel/sandbox) and Python and a CLI.
A small Linux-like operating system written in TypeScript. It boots in milliseconds inside the user's browser tab or a Node.js process: a filesystem, a bash-like shell, processes, ports and a Node.js runtime, with no VM or emulator underneath. Open source under MIT, with Lifo Cloud for apps that must keep running.
Lifo and Vercel Sandbox side by side
| Feature | Lifo | Vercel Sandbox |
|---|---|---|
| Where code runs | The user's browser tab (in the page or a Web Worker), or your Node.js process. Lifo Cloud, in preview, keeps a box running on Lifo's servers. | A Firecracker microVM on Vercel's infrastructure, in one of 19 regions (default iad1). |
| Isolation | Boxes are kept apart from each other, not from the page or process that runs them. Untrusted code needs a Web Worker on a separate origin. Security docs | Hardware virtualization: a microVM with a dedicated kernel. Vercel: sandboxes "can't access other sandboxes or the host." |
| What runs | A Node.js compatibility layer with npm, Vite, Express, Expo previews, git, a bash-like shell, Python (Pyodide), Postgres (PGlite) and a Supabase-compatible backend. No Linux binaries or native addons. | Full Linux (Ubuntu) with Node.js 24 and Python 3.14 by default, apt-get, custom images from a Dockerfile, and Docker inside the sandbox. Up to 15 ports, each with a public URL. |
| Cold start | About 27 ms in a browser tab, under 1 ms in Node.js (measured with the repo's bench/). | Vercel says sandboxes "start in milliseconds" and publishes no exact figure. Add the network round trip to Vercel. |
| Cost model | $0 in the browser: the user's device does the work. Lifo Cloud bills by usage: a Lite box is $0.005 an hour while awake. | Hobby includes 5 hours of active CPU, 420 GB-hours of memory and 5,000 creations a month. Pro: $0.128 per active CPU hour, $0.0212 per GB-hour of memory, $0.60 per million creations (iad1 rates). |
| Open source | Yes. @lifo-sh/core, @lifo-sh/ui and the CLI are MIT licensed. Lifo Cloud's servers are closed source. | The SDK, CLI and image Dockerfiles are Apache-2.0 on GitHub. The service itself is hosted by Vercel. |
| In your product | An npm package (@lifo-sh/core) plus terminal, file explorer and preview components (@lifo-sh/ui), or an iframe of the playground. | Call the SDK from your server with a Vercel token, then show the sandbox's public port URL in your app. Anyone with the URL can reach that server. |
| Offline | Yes, once loaded, apart from what needs the network (npm installs, git push). | No, it's a cloud service. |
| Session length | As long as the tab is open. A Lifo Cloud box sleeps when idle and wakes on the next request. | A session times out after 5 minutes by default and lasts up to 45 minutes on Hobby or 24 hours on Pro and Enterprise. Persistent sandboxes snapshot their files when they stop and resume later; snapshots expire 30 days after last use. |
| Size | Whatever the user's device gives the tab, on one thread. | Up to 4 vCPUs and 8 GB on Hobby, 8 vCPUs and 16 GB on Pro, 32 vCPUs and 64 GB on Enterprise. |
Vercel Sandbox's column comes from its official docs and pricing pages, checked on 29 November 2026; prices change, so follow the Vercel Sandbox pricing page for current numbers.
Where the code runs, and why it matters
Vercel Sandbox runs code in a data center. Every sandbox is a microVM with its own kernel, so it can run anything Linux runs: system packages, compilers, native npm modules, Docker. It is also a real security boundary between the code and everything else.
Lifo runs code on the device of the person who opened the page. A box is a Unix-like system written in TypeScript that boots in about 27 ms, with no VM and no server behind it. That makes it free per session and instant to start, but it only runs JavaScript and WebAssembly (Node.js, npm, Vite, Expo, Python through Pyodide, Postgres through PGlite), and it isn't a security boundary.
What it costs
Vercel bills sandboxes by active CPU time, provisioned memory, sandbox creations, network and storage. At iad1 rates on Pro, that's $0.128 per active CPU hour and $0.0212 per GB-hour of memory, charged against Pro's $20 monthly credit first. Hobby includes 5 hours of active CPU, 420 GB-hours of memory and 5,000 creations a month, and pauses sandbox creation when you run out.
A Lifo box in the browser costs $0 however many sessions run, because the user's device does the work. When an app must keep running after the tab closes, Lifo Cloud bills a Lite box at $0.005 an hour while it's awake and nothing while it sleeps; Lifo Cloud is in preview.
Security
This is where Vercel Sandbox is the clear choice. A Firecracker microVM is a hardware boundary, and Vercel runs a security research challenge against it and reports SOC 2 Type II for the infrastructure.
A Lifo Sandbox keeps programs apart from each other, not from the page that runs it. For code nobody has reviewed, run Lifo in a WorkerSandbox on a separate origin, or send that work to a microVM. The security docs measure what each Lifo setup stops.
Previews and embedding
With Vercel Sandbox, your server creates a sandbox through the SDK, starts the dev server and shows its public port URL in your app. The URL is reachable by anyone who has it, so authenticate in the app if it matters.
With Lifo, the box runs in your page or a Web Worker, and its servers are shown in an iframe through a service worker on your origin. @lifo-sh/ui adds a terminal, a file explorer and a preview with browser chrome. Nothing is exposed to the internet unless you open a tunnel.
Which one to choose
Choose Vercel Sandbox when
- The code isn't trusted and needs a hardware boundary.
- You need real Linux:
apt-get, compilers, native npm modules or Docker. - Jobs run for minutes or hours with nobody watching, or need more CPU and memory than a laptop tab has.
- You already deploy on Vercel and want sandboxes on the same account and tokens.
Choose Lifo when
- Every user gets a preview or a dev environment, and a server per session would be most of your bill.
- The person watching is the one running the code: their agent's app, their tutorial, their tests.
- You want it to start in milliseconds, with no network round trip.
- You want it in your page, or offline, with an MIT runtime you can ship.
Using both. Run what fits in the tab with Lifo (previews, the agent's shell, quick tests) and send the jobs that need native binaries, isolation or long runtimes to Vercel Sandbox. Most sessions then never start a VM.
Questions
- How much does Vercel Sandbox cost?
- On Pro, at the
iad1rates checked on 29 November 2026: $0.128 per active CPU hour, $0.0212 per GB-hour of memory and $0.60 per million sandbox creations, charged against the plan's $20 monthly credit first. Hobby includes 5 hours of active CPU, 420 GB-hours of memory and 5,000 creations a month. Rates vary by region; see Vercel's pricing page. - How long can a Vercel Sandbox run?
- A session times out after 5 minutes by default, and can last up to 45 minutes on Hobby or 24 hours on Pro and Enterprise. The limit applies per session: a persistent sandbox saves its files when it stops and can resume in a new session.
- Can Lifo replace Vercel Sandbox?
- For previews and agent shells that run JavaScript, often yes, at $0 per session. Not for untrusted code that needs a hardware boundary, Linux binaries, Docker, or long unattended jobs; those belong in a microVM.
- Is Vercel Sandbox open source?
- Its SDK, CLI and image Dockerfiles are on GitHub under Apache-2.0. The sandboxes run on Vercel's infrastructure. Lifo's runtime is MIT licensed and runs wherever JavaScript runs.
Related comparisons
Sources
Facts about Vercel Sandbox come only from its own website, docs and pricing pages. If something here is out of date, open an issue and we'll fix it.
- Vercel Sandbox docs, checked on 29 November 2026
- Vercel Sandbox pricing and limits, checked on 29 November 2026
- Vercel Sandbox: Concepts, checked on 29 November 2026
- Vercel Sandbox: Images, checked on 29 November 2026
- Vercel Sandbox: Security, checked on 29 November 2026
- Vercel Sandbox: Regions, checked on 29 November 2026
- Vercel Sandbox: Persistent sandboxes, checked on 29 November 2026
- Vercel Sandbox: Expose a port, checked on 29 November 2026
- Vercel changelog: Sandboxes generally available, checked on 29 November 2026
- vercel/sandbox on GitHub, checked on 29 November 2026
- Lifo docs: Why Lifo
- Lifo docs: Security and isolation
- Lifo docs: Limitations
- Lifo docs: Performance
- Lifo pricing
See it run in your browser
A shell, Node.js, npm and a dev server, booted in the tab. No account and no server.