Skip to content
Docs

Vercel Sandbox

The compute primitive designed to safely run untrusted or user-generated code on Vercel.

Back to Knowledge Base

Using Vercel Sandbox

Build a Claude Managed Agent with Vercel Sandbox

Build a Claude Managed Agent with Vercel Sandbox: each session runs in a fresh microVM with credential brokering and a webhook-driven control plane on Vercel.

How Vercel Sandbox duration and persistence work

Session duration and persistence are two separate controls in Vercel Sandbox. The timeout option keeps a single run alive for up to 24 hours, while snapshots and persistent sandboxes carry state across runs for long-running agents and pipelines.

The Complete Guide to Vercel Drives

Learn how Vercel Drives provide persistent storage for Vercel Sandboxes, and how to create, mount, list, and delete a drive with the Sandbox CLI and SDK.

Run Python code securely with AI SDK and Vercel Sandbox

Add an executeCode tool to your AI SDK agent with the ai-sdk-tool-code-execution package to run Python 3.13 inside an isolated Vercel Sandbox.

Investigate GitHub issues with HarnessAgent and Vercel Sandbox

Use HarnessAgent to run coding agent harness like Claude Code or Codex against untrusted code inside Vercel Sandbox. Reproduce GitHub issues with agent harness and generate report for the maintainer.

Building an agent with OpenAI Agents SDK and Vercel Sandbox

Learn how to build an agent with with OpenAI Agents SDK and Vercel Sandbox

Running OpenClaw in Vercel Sandbox

This guide walks you through setting up OpenClaw inside a Vercel Sandbox and configuring the WhatsApp channel.

Running OpenCode securely with the Vercel Sandbox

Run OpenCode in an isolated Vercel Sandbox MicroVM with controlled egress, using the SDK to restrict network access so the AI agent can only reach approved LLM endpoints.

Safely running AI generated code in your Next.js application

How to execute untrusted, AI‑generated code from a Next.js app using Vercel Sandbox, an isolated, ephemeral environment.