#2424th of 24 in Sandboxes

sandbox-sdk

TypeScript SDK for running untrusted code in per-user Cloudflare Container sandboxes

Releases and problems feed (RSS)

Stars
1.2k
License
custom license
Last commit
Nov 2026
Last release
Oct 2026
Language
TypeScript

Missed the latest GitHub check; these facts may be older.

Cloudflare is hiring: 498 open roles

Overview

Provides file streaming, S3-compatible bucket mounts and R2 directory backups for sandboxes built as Cloudflare Durable Objects that start a Container. Your Worker decides which user gets which sandbox, which hosts it can reach, and keeps storage credentials outside it by signing requests itself. Version 1.0 dropped the 0.x Sandbox class, so commands now run through the Container API directly.

Who it is for: Developers on Cloudflare Workers running untrusted or agent code per user

Strengths

  • S3Mount signs requests in the Worker, so storage credentials never enter the sandbox
  • DirectoryBackup saves to R2 and restores into any Container, including newer images
  • Per-sandbox control of outbound network access (enableInternet: false in the example)
  • Many deployable examples: terminals, previews, coding agents, checkpoints

Weaknesses

  • Runs only on Cloudflare Workers, Durable Objects and Containers; no self-hosted runtime
  • 1.0 is a breaking change from 0.x; the Sandbox class and its command API were removed
  • Image must include the sandbox-shim helper, and the Worker needs nodejs_compat
  • GitHub reports the license as NOASSERTION although the README states Apache 2.0

What it needs

  • Needs Cloudflare Workers, Cloudflare Durable Objects, Cloudflare Containers, R2 or S3-compatible storage (optional)

Also in Sandboxes

See all 24
Also in Sandboxes
RankProjectScore
1LightpandaHeadless browser written in Zig for agents and scraping, with CDP and MCP42.2k stars+5,571 (+15%) in 30 daysAGPL-3.094 out of 100
2OpenShellPolicy-enforced sandbox runtime for autonomous AI agents Live demo ↗ (opens in a new tab)21.8k stars+5,080 (+30%) in 30 daysApache-2.091 out of 100
3NemoClawReference stack for running OpenClaw, Hermes and Deep Agents in OpenShell sandboxes23.1k stars+351 (+1.5%) in 30 daysApache-2.089 out of 100
#4opensandboxSandbox API for running AI agent code, commands and browsers in isolation17.6k stars+1,678 (+11%) in 30 daysApache-2.089 out of 100
#5ObscuraHeadless browser engine in Rust with V8 and a Chrome DevTools Protocol server36.5k stars+7,340 (+25%) in 30 daysApache-2.088 out of 100