Skip to content

Beachside SDK

Beachside is a server-side TypeScript SDK for creating sandboxes, running commands, and moving files across providers. boxd, Freestyle, Daytona, E2B and Vercel are separately installed adapters. Other providers can integrate through the public adapter API.

Start with Getting started to install the SDK, run your first command and clean up the sandbox.

See complete applications in Recipes: a pull request reviewer that runs Pi on Freestyle, traced Pi runs, and OpenCode in a Daytona or E2B sandbox.

Copy a prompt to give your coding agent the right imports, examples, and constraints:

The beachside CLI creates, uses and cleans up sandboxes from your shell, with JSON output and exit codes designed for coding agents.

Task Guide
Create a sandbox and run commands Sandboxes and execution
Read and write files, capture output Files and output
Stream process text or use a terminal Processes and streaming
Access a sandbox HTTP service HTTP previews
Choose an image or build one Images and networking
Save snapshots or reuse volumes Snapshots and volumes
Handle a timeout or lost response Errors and recovery
Fix common setup issues Troubleshooting

The Tested provider support matrix shows which operations have been exercised against real providers, along with the tested configuration and limits. Choose setup and limits for your adapter:

Adapter What you get
boxd MicroVMs from OCI images with commands, files, egress allowlists, memory snapshots, fork, pause/resume, disks and previews.
Freestyle Ubuntu microVMs with blocked egress, memory snapshots, pause/resume and public previews.
Daytona Commands, files, processes, snapshots, volumes and suspend/resume.
E2B Commands, files, processes, snapshots and suspend/resume.
Archil Persistent microVMs on durable disks, with pause/resume, fork snapshots and volumes.
Boat Experimental. Full Ubuntu VMs with commands, files, archive/resume, snapshots and renewal.
Runloop Experimental; Runloop sign-ups are invite-only. Devboxes with blocked egress, snapshots and previews.
exe.dev Experimental. Persistent Linux VMs with pause/resume, VM copies as forks and HTTPS previews.
Vercel Sandbox Short-lived Node 24 sandboxes with commands and files.
Modal Experimental. Commands, files and processes in Modal sandboxes.

For API details, use the TypeScript reference. To add a provider, start with Write an adapter.