Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 3 min read Announcement mediumAdept

Introducing Deno Sandbox

Deno Sandbox runs untrusted, often LLM-generated code in lightweight Linux microVMs on Deno Deploy that boot in under a second and are created via JavaScript or Python SDKs. Secrets never enter the VM: code sees a placeholder that an outbound proxy swaps for the real key only on requests to approved hosts, and egress allowlists block unlisted hosts at the VM boundary. Sandboxes can deploy straight to Deno Deploy with sandbox.deploy(), persist state with volumes and snapshots, and run with 2 vCPUs, 768 MB to 4 GB of memory and a 30-minute maximum lifetime. A later update says the product is no longer offered to new customers after Deno joined Cloudflare.

Related posts

  • The Anatomy of an Isolate Cloud

    Deno easyNovice

    Deno Deploy runs untrusted user JavaScript in V8 isolates rather than VMs or containers, trading heavier isolation for much lower overhead and faster deploys. Traffic reaches 30+ edge locations via anycast, where a Rust runner process acts as an isolate hypervisor: it maps the Host/:authority header to a deployment, picks a TLS certificate via SNI, starts deployment processes on demand and terminates idle ones. Security is layered across a restricted custom Deno build, V8 sandboxing, one process per deployment, resource quotas enforced by the runner, separated control- and data-plane networks, seccomp syscall filtering, and Rust's memory safety.

  • How security and tenant isolation allows Deno Subhosting to run untrusted code securely

    Deno easyNovice

    Deno Deploy and Deno Subhosting isolate untrusted tenant code using layered defenses mapped to a five-point threat model: per-deployment V8 isolates, a virtualized filesystem, and separate VPCs for ingress and outbound traffic. Each isolate runs in its own process on a restricted Deno runtime, inside Linux namespaces, with seccomp filters to detect unusual syscalls. For resource fairness, cgroups cap CPU, memory and I/O, and an internal WatchDog service kills isolates that exceed memory limits, block the event loop, or show abusive patterns such as crypto mining. The mechanisms are described at a high level, without configuration or implementation specifics.

  • Docker Sandboxes vs. Containers: Choosing the Right Isolation for AI Agents

    Docker mediumAdept

    Containers are isolated processes sharing the host kernel. Docker Sandboxes are microVMs with their own kernel, filesystem, network and private Docker Engine, designed for autonomous coding agents that accumulate state for hours and act on untrusted instructions. A container escape or a mounted Docker socket can expose the host. In a sandbox, an escape lands in a disposable VM, and network egress and credential injection are enforced by a host-side deny-by-default proxy. The tradeoffs are hypervisor requirements, more memory and disk, and some configuration through Kits and sbxenv.yaml. The recommendation: sandbox the agent and containerize the application it works on.

  • The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do

    Docker mediumAdept

    AI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine. Outbound traffic goes through a TLS-intercepting host proxy that enforces domain policies and injects credentials from the host keychain, so secrets never enter the VM. Two limits remain: domain-level allowlists still permit exfiltration via sites like github.com, and the shared workspace lets an agent plant Git hooks, package.json scripts or CI configs that later run on the host. A real Astro build showed no measurable microVM overhead, though a jemalloc dependency failed on 16K-page Apple Silicon VMs. Agent output should be reviewed like an untrusted pull request, for example by diffing .git/hooks and using --branch worktrees.

  • Why AI Agents Need Isolation

    Docker easyNovice

    AI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.

The quest for software engineering knowledge.

Look:
Layout: