Sandbox SDK
Integrations

Overview

Choose the agent integration that matches your runtime and session model.

Sandbox SDK connects the same provider adapters to AI SDK tool-loop agents, established coding-agent harnesses, Eve, and Mastra workspaces.

Choose an integration

IntegrationUse it whenAgent runtimeSession model
AI SDKYou are building your own tools and agent loopToolLoopAgent with your modelOne application-owned sandbox per run
HarnessAgentYou want Codex, Claude Code, Pi, or another harness adapterEstablished coding-agent runtimeManaged, resumable sessions within one Node.js process
EveYour application already uses Eve's agent runtimeEve's default harnessEve-managed sessions and reconnect metadata
MastraYou want Mastra workspace file, command, and process toolsMastra Agent with a shared WorkspaceMastra-owned managed sandbox session

AI SDK's model providers and harness adapters solve different problems. A model provider supplies the model used by ToolLoopAgent; a harness adapter supplies a complete agent runtime used by HarnessAgent.

Run shell commands without an agent

Use sandbox.run() for one command and sandbox.processes.start() for a long-running process. The Commands reference covers working directories, environment variables, timeouts, cancellation, results, and argument arrays.

Start with AI SDK for a custom tool-loop agent, HarnessAgent for an established coding-agent runtime, or Mastra for a shared agent workspace.

On this page