Head to head · Code sandboxes · October 2026 research run

Cloudflare Sandbox SDK vs Tensorlake Sandboxes

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Tensorlake Sandboxes's 65.8 (B), and leads in 4 of 7 scored categories. Tensorlake Sandboxes leads on agent ergonomics and payments & pricing. Both do code sandboxes.

Best code execution sandboxes for AI agents · All 351 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 55
  • Security & auth, 73 against 55
  • Maintenance & community, 90 against 82
  • Transparency & trust, 86 against 63

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

Tensorlake Sandboxes B

Best for Long-lived, stateful agent machines that suspend and resume with memory, fork for parallel runs, and keep work in hosted Git or versioned volumes: coding agents, RL rollouts, evals and CI.

Ahead on

  • Agent ergonomics, 75 against 63
  • Payments & pricing, 60 against 45

Also in its favour

  • Free to start without a card
  • No incidents deducted, where Cloudflare Sandbox SDK loses 3 points for them

Watch for

No request rate limits for the control-plane API found in the docs or OpenAPI file

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 +35

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.

Tensorlake Sandboxes 55

A status page at status.tensorlake.ai is linked from the home page, but its robots.txt answered 403, so we couldn't read component history (10 of 20, as the page exists but its history is unchecked). No readable incident record (5). No request rate limits for the API found; plan concurrency caps (1, 100, 1,000) and 64 PTY sessions a sandbox are published (5 of 15). The SDKs retry 429, 502, 503 and 504 on reads with Retry-After and randomised backoff, replay only requests that never reached the server, and the docs give a safe-retry route for creates through unique sandbox names (409 on a repeat) (15). The terms of 24 October 2026 commit to 99.9% monthly control-plane availability with service credits (10). Sandboxes are GA (10). 10 + 5 + 5 + 15 + 10 + 10 = 55.

Transparency & trust Cloudflare Sandbox SDK +23

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.

Tensorlake Sandboxes 63

The SDK and CLI are Apache-2.0 in tensorlakeai/tensorlake, but the platform that runs sandboxes isn't published (20). The privacy policy (23 September 2026), the DPA and the docs' security page agree that customer content is kept until the customer deletes it and is removed at once on deletion, data isn't used for training, archived sandbox records last 48 hours and application logs 7 days. The free tier's "7 day retention" on the pricing page isn't explained further (20). The terms promise 30 days' notice of changes that materially reduce a customer's rights, and SDK fields are deprecated with warnings, but there's no API deprecation policy (8). AWS S3 storage, US and EU regions, Stripe, Google Analytics and Plausible are named; the full subprocessor list is on a trust centre our reader couldn't render (12). 20 + 20 + 8 + 12 = 60.

Security & auth Cloudflare Sandbox SDK +18

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.

Tensorlake Sandboxes 55

Project-scoped API keys, revocable from the dashboard, with the permissions of a project member, no scopes, no expiry and rotation by create-then-delete (20). Each CPU sandbox is a microVM with its own kernel, and egress can be switched off or limited with allow and deny lists on a running sandbox, but internet access is on by default (12). The docs advise switching off internet for untrusted or LLM-generated code; we found no guidance on keeping credentials out of a sandbox (8). Process logs are searchable in the console and organisations have admin and member roles, but audit logs are available only on request to support (5). SOC 2 Type 2 and HIPAA per the pricing page and docs, with the report on request through the trust centre, and security@tensorlake.ai for questions. No security.txt (404), bug bounty or public advisories found (10). 20 + 12 + 8 + 5 + 10 = 55.

Payments & pricing Tensorlake Sandboxes +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.

Tensorlake Sandboxes 60

No x402, MPP or L402 (0). Per-unit prices published without login, per core-hour, GB-hour and GB-month, with a calculator (30). Free tier at $0 with "no credit card required" per the pricing FAQ and billing docs (30). Signup is in a browser at cloud.tensorlake.ai and keys are made in the dashboard; no programmatic signup or Stripe Projects route found (0). 0 + 30 + 30 + 0 = 60.

Agent ergonomics Tensorlake Sandboxes +12

Cloudflare Sandbox SDK 63

Command output, file reads and process logs come back whole or streamed, with no size controls beyond what your code adds (15). Directory listing options and streaming exec, but little filtering (10). Typed errors with codes such as STALE_PREVIEW_URL (15). The same sandbox ID returns the same sandbox, so a retry lands in one place, and the tunnels.get() recovery failure (#874) was fixed in 0.12.12 (15). TypeScript only, and the first deploy needs Docker locally and a Worker you write (8). 15 + 10 + 15 + 15 + 8 = 63.

Tensorlake Sandboxes 75

Process output can be streamed or followed per stream, and files are listed and read individually, but there's no field selection on sandbox objects (15). List sandboxes by status, cursor pagination with limit on archived sandboxes and directory listings, and tags in the CLI (15). Structured failure reasons (ConfigurationError, no_capacity, cancelled) carried in the SDKs' RemoteAPIError with the sandbox id, though proxy and file errors use plain text bodies in places (15). Delete is idempotent and a unique name makes create safe to retry, but there's no idempotency key (15 of 20). Python and TypeScript SDKs plus a Rust-based CLI, and a create works with an empty body using 1 vCPU, 1 GB and 10 GB defaults (15). We scored the API and SDKs; no MCP server was found. 15 + 15 + 15 + 15 + 15 = 75.

Maintenance & community Cloudflare Sandbox SDK +8

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.

Tensorlake Sandboxes 82

cli-v0.5.165 tagged on 13 November 2026, with Python tensorlake and npm @tensorlakeai/tensorlake at 0.5.165 (30). 48 release tags from 25 August to 13 November 2026 and 124 commits on main since 25 August (20). 42 open issues against 1,047 stars; the five newest open ones (4 September to 27 October) have no replies, while 10 issues were closed since 1 September. No public changelog, but a Slack community (12). Current official Python and TypeScript SDKs (15). GitHub Actions run tests on pushes and pull requests to main, for the Python, TypeScript and HTTP transport code, though their pass state couldn't be read (5). 30 + 20 + 12 + 15 + 5 = 82.

Score by category

CategoryWeightCloudflare Sandbox SDKTensorlake SandboxesEdge
Reliability16%9055Cloudflare Sandbox SDK +35
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7779Tensorlake Sandboxes +2
Agent ergonomics13%6375Tensorlake Sandboxes +12
Security & auth14%7355Cloudflare Sandbox SDK +18
Payments & pricing10%4560Tensorlake Sandboxes +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9082Cloudflare Sandbox SDK +8
Transparency & trust7%8663Cloudflare Sandbox SDK +23
Negative events≤15-30
TotalBB 71.6/100B 65.8/100

Facts side by side

FactCloudflare Sandbox SDKTensorlake Sandboxes
KindSDK + MCPHTTP API
VendorCloudflareTensorlake
Hosted endpointno (local only)no (local only)
TransportsHTTP
AuthNoneAPI key
PricingPaidFreemium
x402nono
LicenceApache-2.0Apache-2.0
Tools exposednone0
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-222026-11-13
Terms last updated2025-09-122026-10-24
Privacy policy last updatedno date given2026-09-23
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 textnot found in the text
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waiveryesnot found in the text
Popularity1.1k stars, 723k npm/wk1k stars, 26k 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.

Tensorlake Sandboxes

Agents get microVM sandboxes that suspend with memory intact, fork while running and mount hosted Git, with a public OpenAPI file, llms.txt, per-hour prices and a free tier with no card. Request rate limits, a public changelog and a readable status history were not found, and internet access is on by default.

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

Tensorlake Sandboxes

  1. Give a sandbox a name when a retry must not create a second one; a repeat name returns 409, and get_or_create resolves it
  2. Create untrusted-code sandboxes with allow_internet_access: false, or list destinations in allow_out, since egress is on by default
  3. Only named sandboxes suspend and resume; an ephemeral one is gone when terminated, and its record stays under /archived-sandboxes for 48 hours
  4. On Usage Credits a zero balance stops running sandboxes, so check the balance before long jobs
  5. Set wait: false with max_pending_secs to get a 202 and poll, rather than blocking while capacity is short

Questions

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

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Tensorlake Sandboxes's 65.8 (B), and leads in 4 of 7 scored categories. Tensorlake Sandboxes leads on agent ergonomics and payments & pricing.

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

No hosted endpoint is listed for Cloudflare Sandbox SDK. No hosted endpoint is listed for Tensorlake Sandboxes.

Are Cloudflare Sandbox SDK and Tensorlake Sandboxes open source?

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

Other comparisons with Cloudflare Sandbox SDK or Tensorlake Sandboxes

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.