#2424th of 24 in Sandboxes
sandbox-sdk
TypeScript SDK for running untrusted code in per-user Cloudflare Container sandboxes
- 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| Rank | Project | Score |
|---|---|---|
| 1 | LightpandaHeadless browser written in Zig for agents and scraping, with CDP and MCP | 94 out of 100 |
| 2 | OpenShellPolicy-enforced sandbox runtime for autonomous AI agents | 91 out of 100 |
| 3 | NemoClawReference stack for running OpenClaw, Hermes and Deep Agents in OpenShell sandboxes | 89 out of 100 |
| #4 | opensandboxSandbox API for running AI agent code, commands and browsers in isolation | 89 out of 100 |
| #5 | ObscuraHeadless browser engine in Rust with V8 and a Chrome DevTools Protocol server | 88 out of 100 |