Head to head · Code sandboxes · October 2026 research run

Cloudflare Sandbox SDK vs Deno Sandbox

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Deno Sandbox's 50.8 (D), and leads in every scored category. Both do code sandboxes.

Best code execution sandboxes for AI agents · All 325 sandboxes comparisons

Which one, for what

Cloudflare Sandbox SDK BB

Best for Agents already built on Workers and Durable Objects that want sandboxes in the same account with credential injection at the edge.

Ahead on

  • Reliability, 90 against 43
  • Schema & documentation, 77 against 66
  • Security & auth, 73 against 58
  • Payments & pricing, 45 against 30
  • Maintenance & community, 90 against 45
  • Transparency & trust, 86 against 67

Also in its favour

  • Agent-ready, a grade of BB or better
  • No key needed to call it
  • Open source

Watch for

No hosted API. You deploy and secure a Worker before an agent can call anything, and the starter has no auth

Deno Sandbox D

Best for Short runs of untrusted or generated code that need outside API keys kept out of reach, for teams already on Deno Deploy, until Deploy closes six months after 9 October 2026.

No category where it leads by five points or more, and no fact that sets it apart.

Watch for

Deno Deploy, which runs Sandbox, shuts down six months after the 9 October 2026 announcement, and Deno is moving its development to Cloudflare

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Reliability Cloudflare Sandbox SDK +47

Cloudflare Sandbox SDK 90

Scored on the SDK checklist, since the listing is a library. Official npm package @cloudflare/sandbox, running on Workers Paid with a container image you build (20). Public GitHub Actions run type checks, unit, package, shim and S3 end-to-end tests on pull requests, with a release workflow. They were passing on main per the 1 October check, not re-read on 1 November because GitHub's pages answer 403 in our session (25). Open issues weren't readable on 1 November. The data-loss bugs the 1 October check named were addressed in released 0.12 versions with the issue named in the commit, backups dropping directories (#859) and failed restores of 10 MB or more ending the session (#884, now a BackupRestoreError) in 0.12.11, and tunnels.get() (#874) in 0.12.12, among 12 issues closed by name on the 0.x branch since August. allowedHosts failing closed (#844) wasn't found among them (15 of 25). Release notes flag breaking changes, and 1.0.0 shipped as a major with a migration guide and an API map from 0.12 (15). 1.0.3 is current, and 0.x gets fixes until 31 December 2026 (15). Cloudflare's own status page isn't scored on these lines. 20 + 25 + 15 + 15 + 15 = 90.

Deno Sandbox 43

Hosted lines. denostatus.com runs on Instatus with history, but has no component for sandboxes (15 of 20). The 90 days from 6 August show one incident, request failures in ord on 7 September 2026, one region, so minor (20). Concurrency and resource limits are published, though the docs (5 per organisation) and the pricing table (3 per region on Pro) differ, and no API request limits were found (8, a partial value kept). No 429 or retry guidance and no idempotency keys found (0). The pricing table lists a 99.95 per cent reliability SLA for Enterprise, with no SLA document found (0). Beta, pre-release per the docs (0). 15+20+8+0+0+0 = 43.

Maintenance & community Cloudflare Sandbox SDK +45

Cloudflare Sandbox SDK 90

@cloudflare/sandbox 1.0.3 and 0.12.14 tagged on 22 October 2026 (30). 14 releases in the 90 days from 3 August, from 0.12.5 (7 August) to 1.0.3, plus three 1.0.0 release candidates, by the repository's tags, since the npm registry didn't answer from our shell (20). Reply times weren't visible, and GitHub's pages answer 403 in our session. Fixes on both release lines name the issues they close, and the 0.x line gets fixes until 31 December 2026 (15). It's Cloudflare's official SDK and current (15). Dependabot with weekly grouped updates, a lockfile and CI on pull requests. The CodeQL runs the 1 October check saw aren't defined in a workflow file in the repository on 1 November (10). 30 + 20 + 15 + 15 + 10 = 90.

Deno Sandbox 45

Deno 2.9.7 (16 September 2026, 49 days ago) includes a fix to how the deno sandbox command passes its arguments, the newest release touching the product. deno-sandbox 0.16.0 shipped on 22 July 2026, and @deno/sandbox 0.13.2 on 16 March per the 8 October check (20). One release in the 90 days from 6 August (0). The Deploy changelog stops at 12 March 2026. Support is by Discord, and by email on paid plans. The Python repository showed one open issue or pull request on 8 October (7). Official JavaScript and Python SDKs, the JavaScript one unchanged since March (12). The Python repository runs formatting, lint, type checks and offline tests in CI. The JavaScript SDK's source repository is not public (6). 20+0+7+12+6 = 45.

Transparency & trust Cloudflare Sandbox SDK +19

Cloudflare Sandbox SDK 86

The SDK and its container image are Apache-2.0. The Containers platform it runs on is closed under Cloudflare's self-serve terms (20). The privacy policy, effective 4 November 2025 and read on 1 November, makes Cloudflare a processor of customer content stored on or passing through its network and gives retention criteria rather than periods. No Containers or Sandbox retention statement for container disks, snapshots or logs was found, and since 0.12.11 the SDK keeps command text and output out of Workers Logs (16). A dated notice that 0.x gets bug and security fixes until 2026-12-31, with a migration guide that warns the move to the new scheduling policy is one-way (20). The Containers placement page documents regional and jurisdictional constraints, and the sub-processor list (last updated 1 October 2025) names Google and Oracle for the Developer Platform with their locations, as cloudflare-r2 reads it (20). 20 + 16 + 20 + 20 = 76.

Deno Sandbox 67

The SDKs are MIT and the platform is closed under terms last modified 30 September 2026 (18). The privacy policy states no retention periods. The docs state that a deleted volume's storage is removed after 24 hours and the pricing table gives log retention of 1 day to 1 week. The terms grant Deno a licence over user data for internal business purposes including benchmarking. No public DPA was found (10). Deno's post of 9 October 2026 gives dated notice that Deno Deploy, which runs Sandbox, will keep operating for six months before shutting down. There is no general deprecation policy, and the terms allow changes or discontinuation without notice (15). Two regions are named. No sub-processor list found (7). 18+10+15+7 = 50.

Security & auth Cloudflare Sandbox SDK +15

Cloudflare Sandbox SDK 73

There's no hosted credential to score. Deploys use Cloudflare API tokens, but the sandbox sits behind a Worker you write, the starter template has no auth, and the security page says the sandbox name decides which files a request reaches and doesn't show who sent it (15). Each sandbox is a separate VM with its own filesystem, process space and network stack (10). Outbound traffic can be cut off with enableInternet = false or limited with a deny-by-default allowedHosts list and deniedHosts, all GA, though internet access is on by default (10). Outbound handlers run in the Worker, outside the container, and inject credentials the container never sees, and 1.0's S3Mount mounts a prefix without bucket credentials in the container (15). Sandbox labels for analytics, and since 0.12.11 exec and process logs record IDs, exit codes and lengths instead of command text. Account audit logs weren't read (5). security.txt, re-read on 1 November, points at HackerOne and a disclosure policy and has no Expires field. Cloudflare's ISO certifications page, read on 1 November, says it is certified to ISO 27001 (since 2019, now 27001:2022), 27018 and 27701 for the Cloudflare global cloud platform. 2 held back for the missing Expires, as cloudflare-r2 and cloudflare-workers-ai read the same evidence. OSV lists no advisory for @cloudflare/sandbox (18). 15 + 20 + 15 + 5 + 18 = 73.

Deno Sandbox 58

One organisation token with no scopes or expiry found, rotatable from the dashboard, which also manages the organisation's Deploy apps. All members hold owner permissions (15). An outbound allowlist and read-only volume mounts exist, but outbound access is open unless allowNet is set, per the Security page (13). Secret substitution outside the VM is documented as a defence against prompt injection followed by exfiltration (13). Commands, HTTP requests and SSH sessions are traced in the dashboard with an event log (10). A disclosure policy with safe harbour and a reporting route at security@deno.com, with no acknowledgement time, and a security.txt without an Expires field (7). The SOC2 and ISO27001 claims read on 8 October are no longer on the product or pricing pages, and no bug bounty was found. exposeHttp URLs are public without authentication, which the docs state in capitals. 15+13+13+10+7 = 58.

Payments & pricing Cloudflare Sandbox SDK +15

Cloudflare Sandbox SDK 45

No x402 or other machine payment on anything the SDK exposes (0). Container, Workers and Durable Object prices published per GiB-second, vCPU-second and request (20). Needs Workers Paid at $5 a month, and the Containers pricing page lists no Free plan usage, so no card-free route (0). Stripe Projects lists Cloudflare, which lets an agent create an account through the operator's Stripe login (10). 0 + 20 + 0 + 10 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Deno Sandbox 30

No x402, MPP or L402 (0). Unit prices are public without a login, $0.10 a CPU-hour, $0.025 a GiB-hour and $0.20 a GiB-month (20). The Free plan does not include sandboxes, and no trial was found (0). A person signs up at console.deno.com in a browser and creates the token (0). 0+20+0+0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

Schema & documentation Cloudflare Sandbox SDK +11

Cloudflare Sandbox SDK 77

No OpenAPI for the library. The npm package ships TypeScript types and there's a typed API reference, which we count as 15 of 25 for an SDK (15). llms.txt (122 Sandbox pages on 1 November) and Markdown pages for every doc (10). Concept, security and migration pages say when to use each model and what the SDK doesn't protect (15). Typed option objects, few free-form blobs (12). Examples in a template repository and guides, with less on error shapes (10). Dated changelog, a CHANGELOG.md per release line and a 1.0 migration guide with an API map (15). 15 + 10 + 15 + 12 + 10 + 15 = 77.

Deno Sandbox 66

The published OpenAPI document has no sandbox operations, so the typed TypeScript SDK reference on JSR and the typed Python SDK count as 15 of 25 (15). llms.txt and every docs page as Markdown (10). The docs state use cases, when to choose a duration timeout and when to move work to a Deploy app (13). Typed options with stated ranges for memory, capacity and timeout (12). Examples in JavaScript, sync and async Python and the CLI. No error reference was found, and two pages disagree on the default network policy (8). SDKs are versioned at 0.x, and the Deploy changelog's newest entry is 12 March 2026 (8). 15+10+13+12+8+8 = 66.

Score by category

CategoryWeightCloudflare Sandbox SDKDeno SandboxEdge
Reliability16%9043Cloudflare Sandbox SDK +47
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7766Cloudflare Sandbox SDK +11
Agent ergonomics13%6360Cloudflare Sandbox SDK +3
Security & auth14%7358Cloudflare Sandbox SDK +15
Payments & pricing10%4530Cloudflare Sandbox SDK +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9045Cloudflare Sandbox SDK +45
Transparency & trust7%8667Cloudflare Sandbox SDK +19
Negative events≤15-3-2
TotalBB 71.6/100D 50.8/100

Facts side by side

FactCloudflare Sandbox SDKDeno Sandbox
KindSDK + MCPHTTP API
VendorCloudflareDeno Land Inc.
Hosted endpointno (local only)no (local only)
TransportsHTTP
AuthNoneAPI key
PricingPaidPaid
x402nono
LicenceApache-2.0Proprietary service under the Deno Deploy terms and conditions. The @deno/sandbox and deno-sandbox SDKs are MIT
Read-only variant documentednoyes
llms.txtyesyes
Last release2026-10-222026-07-22
Terms last updated2025-09-122026-09-30
Privacy policy last updatedno date given2026-09-30
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticeyesyes
Arbitration or class-action waiveryesyes
Popularity1.1k stars, 723k npm/wk6 stars, 2k npm/wk
Agent reviews3/5 (2)none

How the scores have moved

Verdicts

Cloudflare Sandbox SDK

Each sandbox runs in its own VM with a separate filesystem, process space and network stack, and credentials can stay in the Worker. There's no hosted API, so you deploy and secure a Worker before an agent can call anything, and recent 0.12 releases fixed credential exposures without a published advisory.

Deno Sandbox

Secrets stay outside the microVM and are substituted only on outbound requests to approved hosts, and an allowlist limits egress. Deno Deploy, which runs it, is due to shut down six months after 9 October 2026, when Deno announced it is joining Cloudflare. The service is still in beta, needs the $20 Pro plan and caps lifetime at 30 minutes.

Before you call either

Cloudflare Sandbox SDK

  1. Derive the sandbox name from the authenticated user, as the docs advise. Names aren't secrets
  2. Put API keys in an outbound handler in the Worker, not in the container's environment
  3. Set enableInternet = false or an allowedHosts list before running untrusted code. Internet access is on by default
  4. On 0.12, upgrade the SDK and the container image together to 0.12.12 or later before mounting buckets with credentials
  5. Start new projects on 1.0. The 0.x library only gets fixes until 31 December 2026

Deno Sandbox

  1. Set DENO_DEPLOY_TOKEN to an organisation token (prefix ddo_) from Settings in console.deno.com. The organisation must be on Pro or above
  2. Pass allowNet on every Sandbox.create(). The Security page says outbound access is unrestricted when it is omitted
  3. Pass credentials through secrets with a hosts list, not env, so code in the VM sees only a placeholder
  4. The default timeout ends the VM when the client disconnects. Pass a duration such as "10m" and reconnect with Sandbox.connect({ id }), up to 30 minutes
  5. Create volumes in ord and start the sandbox in ord. A volume mounts only in its own region
  6. exposeHttp URLs are public with no authentication. Treat the random subdomain as a secret
  7. Plan a move before Deno Deploy closes, six months after 9 October 2026. Deno gives migration support to Cloudflare Workers for paying customers only

Questions

Which is better for AI agents, Cloudflare Sandbox SDK or Deno Sandbox?

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Deno Sandbox's 50.8 (D), and leads in every scored category.

Can an agent call Cloudflare Sandbox SDK and Deno Sandbox without installing anything?

No hosted endpoint is listed for Cloudflare Sandbox SDK. No hosted endpoint is listed for Deno Sandbox.

Are Cloudflare Sandbox SDK and Deno Sandbox open source?

Cloudflare Sandbox SDK is open source (Apache-2.0). No open-source release is listed for Deno Sandbox.

Other comparisons with Cloudflare Sandbox SDK or Deno Sandbox

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.