Set up and use sbox-sdk, the unified TypeScript SDK for agent sandboxes (E2B, Vercel, Cloudflare, and a built-in in-memory provider). Covers installing the SDK plus an adapter, creating a sandbox client, running shell commands, reading/writing files, executing code, exposing ports, and giving an AI agent framework (Vercel AI SDK, OpenAI Agents, Mastra, Anthropic, LangChain) sandbox tools via the ai() plugin. Use when adding a code sandbox to a project, running untrusted or model-generated code in isolation, or letting an LLM agent run commands/files/code safely.
2026-07-01