Skip to content
Dashboard

Run untrusted code with Vercel Sandbox, now generally available

Link to headingBuilt on our compute platform

Link to headingWhy agents need different infrastructure

Link to headingWhat is Vercel Sandbox?

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.stop();

Link to headingHow teams are using Sandbox

Link to headingRoo Code

The agent operates inside a complete environment where services can run together, so it can test changes end-to-end before handing you something to review. Instead of ‘review a patch and hope,’ you get a preview you can engage with as the agent iterates.
Matt Rubens CEO Roo Code
Snapshots turn agents from stateless workers into persistent collaborators. Start a task on Monday, snapshot it, resume Thursday when stakeholders can review. Branch from a working state and try two approaches in parallel.
Matt Rubens CEO Roo Code

Link to headingBlackbox AI

The decision to standardize on Vercel’s sandbox infrastructure was driven by two critical performance metrics: infrastructure stability and cold start performance. Sub-second sandbox initialization times enabled rapid task distribution and reduced end-to-end execution latency, which proved essential for production-grade agent orchestration.
Robert Rizk Co-founder and CEO of Blackbox AI
By using Vercel sandboxes to let users run AI agents at scale, we enable organizations to treat AI agents as reliable, scalable compute primitives within their development and production systems.
Robert Rizk Co-founder and CEO of Blackbox AI

Link to headingCreate your first sandbox with one command in the CLI

npx sandbox create --connect


Ready to deploy?