Menu

Vercel Sandboxes are now generally available - Vercel
📰

Vercel Sandboxes are now generally available - Vercel

Vercel News·Guðmundur Bjarni Ólafsson·6 months ago
#hlxLJQkM
#vercel#sandbox#code#await#sandboxes
Reading 0:00
15s threshold

Vercel Sandboxes are now generally available, providing an ephemeral compute primitive for safely executing untrusted code.

It lets teams run AI agent-generated outputs, unverified user uploads, and third-party code without exposing production systems.

Each sandbox runs inside Firecracker microVMs, isolated from your infrastructure, so code running in a sandbox is blocked from accessing environment variables, database connections, and cloud resources.

Sandboxes are in production use by teams including v0 , Blackbox AI and RooCode.

To bootstrap a simple Node.js application that creates a Vercel sandbox, use the code below:

import { Sandbox } from '@vercel/sandbox' ;

const sandbox = await Sandbox . create ( ) ;

await sandbox . runCommand ( {

cmd : 'node' ,

args : [ "-e" , 'console.log("Hello from Vercel Sandbox!")' ] ,

stdout : process . stdout ,

} ) ;

await sandbox .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.