← Back to Registry
Vercel

Vercel

Beta
Sandbox Mounting

Run sandboxes on Vercel's edge and serverless platform.

Mount the sandbox

Mount a Vercel sandbox into the VM with @rivet-dev/agentos-sandbox.

import { agentOS, setup } from "@rivet-dev/agentos";
import { createSandboxFs, createSandboxBindings } from "@rivet-dev/agentos-sandbox";
import { SandboxAgent } from "sandbox-agent";
import { vercel } from "sandbox-agent/vercel";
 
// Start a Vercel-backed sandbox and mount it into the VM
const sandbox = await SandboxAgent.start({ sandbox: vercel() });
 
const vm = agentOS({
  mounts: [{ path: "/home/agentos/sandbox", plugin: createSandboxFs({ client: sandbox }) }],
  bindings: [createSandboxBindings({ client: sandbox })],
});
 
export const registry = setup({ use: { vm } });