New sandboxes from Cloudflare and Vercel

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers who need to run AI-generated code safely now have two more production sandbox options, competing with E2B and Modal.

Read this as

Cloudflare and Vercel both released tools that let software developers run code in an isolated 'sandbox' - a sealed-off environment where risky code can't damage anything else. Cloudflare's version comes with its Containers product, now in open beta, plus a Sandbox library for its Workers platform. Vercel's version lets you create a sandbox, write files into it, and run commands. Both companies say a main purpose is safely running code written by AI systems.

Cloudflare and Vercel are competing directly on sandboxed code execution: Cloudflare via its Containers public beta and a new @cloudflare/sandbox library for Workers, Vercel via @vercel/sandbox. Both target teams running untrusted or AI-generated code. The article gives no pricing, limits or benchmarks, so the choice likely hinges on existing platform lock-in rather than cost.

Cloudflare launched Containers in public beta alongside a Sandbox library for Workers: getSandbox(env.Sandbox, 'my-sandbox') returns a handle whose exec() runs shell commands in a secure container-based environment. Vercel's @vercel/sandbox exposes Sandbox.create(), writeFiles() (with streamed buffers) and runCommand() with piped stdout/stderr. Both are aimed at executing LLM-generated code. No pricing, quotas, cold-start times or isolation guarantees are documented in the post.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Cloudflare Vercel Cloudflare Workers Cloudflare Containers @cloudflare/sandbox @vercel/sandbox

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading