Head to head · Code sandboxes · October 2026 research run

Cloudflare Sandbox SDK vs SPACE

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against SPACE's 58.9 (C), and leads in 5 of 7 scored categories. SPACE leads on 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 32
  • Security & auth, 73 against 64
  • Maintenance & community, 90 against 11
  • Transparency & trust, 86 against 70

Also in its favour

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

Watch for

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

SPACE C

Best for Teams that want E2B-style microVM sandboxes on their own Linux and Kubernetes hosts, with egress and credential control outside the guest.

Ahead on

  • Payments & pricing, 90 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

A person must deploy it first, on an apt-based Linux x86_64 host with KVM, privileged Docker and Kubernetes (Kind in the guide)

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.

Maintenance & community Cloudflare Sandbox SDK +79

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.

SPACE 11

No release has ever been published. Version 0.8.0 has been in Cargo.toml and on the docs site since 5 October 2026, and Cargo.toml moved to 0.8.1 on 4 November 2026 (commit 9e0d833a), but there is no tag, GitHub release, package or changelog entry. Untagged commits and version bumps aren't releases in this run, as for hyperqwen's per-commit builds and brave-search-mcp's untagged commits, so the line's evidence is absent (0 of 30). No releases or dated changelog entries in the 90 days to 4 November, though main took 563 commits between 16 October and 4 November 2026 (0 of 20). Issues and pull requests weren't readable to us. 21 authors appear in the history, and CONTRIBUTING.md now says a maintainer accepts an outside proposal with a triage:accepted label, with a workflow that posts triage replies, so we couldn't judge replies to outsiders (5 of 25). No official SDK for the native API and no MCP server (0 of 15). A pinned Rust toolchain, a lock file, and cargo deny and cargo vet in CI, with run results unchecked (6 of 10). 0+0+5+0+6 = 11.

Reliability Cloudflare Sandbox SDK +58

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.

SPACE 32

Read with the local-software lines, because an operator runs SPACE on their own hosts, as for microsoft-execution-containers. A person must deploy it before any agent can call it. No package, crate or public container image. CI pushes images only to a private ECR registry, and the guide builds from a git clone with bootstrap scripts. Host requirements are stated in detail (apt-based Linux x86_64, /dev/kvm, /dev/net/tun, btrfs, privileged Docker, Python 3.8 or later) (10 of 20). Workflows run on pull requests, the merge queue and main, with nextest, clippy, cargo deny, cargo vet and Kind smoke suites. Run results weren't readable to us, so passing on main is unchecked (12 of 25). Issues weren't readable either, because GitHub's robots.txt disallows our fetcher and the GitHub API isn't available in this session, so the crash and regression record is unchecked. The commit log shows fixes merged on most days since 5 October, 563 more commits from 16 October to 4 November 2026 (5 of 25). docs/versioning.md sets semver rules before and after 1.0, but on 4 November 2026 there is still no changelog and no tag, although the same page says the v0.8.0 tag should mark the tested commit (5 of 15). Version 0.8.0, a public baseline ahead of the last planned breaking release, 0.9.0 (0 of 15). 10+12+5+5+0 = 32.

Payments & pricing SPACE +45

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.

SPACE 90

Read with the self-hosted rule. No x402, MPP or L402 (0 of 40). Apache-2.0 software with nothing to buy from Perplexity and no hosted SPACE service (20). Free with no card (20). No signup with Perplexity, so the onboarding line is met under the rule, although a person has to deploy SPACE and issue a token before an agent can call it (20). 0+20+20+20 = 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Transparency & trust Cloudflare Sandbox SDK +16

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.

SPACE 70

Apache-2.0 in LICENSE, copyright Perplexity AI 2026 (30). Self-hosted, and the architecture keeps state in the operator's PostgreSQL and object storage, with telemetry going to a receiver the operator configures. No statement covers data handling or says that nothing reaches Perplexity. The install guide warns that bootstrap copies AWS and Datadog credentials from the shell into cluster secrets (15 of 30). docs/versioning.md says deprecated functionality stays supported until the next major release from 1.0 and promises migration guidance before 0.9.0, and SECURITY.md fixes only the latest minor. No dated notices (12 of 20). docs/observability.md sets out every metrics and trace selector. The default auto sends to a Datadog Agent when the build includes that client, and off disables each signal (16 of 20), unchanged in the 4 November clone. 30+15+12+16 = 73.

Security & auth Cloudflare Sandbox SDK +9

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.

SPACE 64

Graded as the API an agent calls on a deployment. Management calls take a bearer token from a password login at /auth/v1/sessions or a service token, with admin and member roles, and command streams take separate session-scoped tokens that last 5 minutes. ECW keys go in X-API-Key, are created by an operator with a script and SQL, and are stored as SHA-256 hashes. We found no key scopes or documented revocation (20 of 30). Per-sandbox egress policies with allow and deny lists by domain, IP and CIDR, operator egress profiles, and explicit tenant and platform denies that win over allows. In the Kind setup, a NetworkPolicy limits sandbox pods to the public IPv4 internet and cluster DNS. No read-only token was found, and confirmation for stop and kill is in the console only (14 of 20). Command output is untrusted content. Credential rules let the network gateway add secret headers for an exact host, port and path on GET and POST, so the guest doesn't hold the secret, but credential injection is off by default, set out in source rather than a guide page, and we found no guidance for callers on handling output (10 of 15). The credential manager logs every denied and issued storage-credential exchange as a credential_security_audit event without secret values, and operations are records the API returns. No per-call audit log for the public API was found (8 of 15). SECURITY.md routes reports to GitHub private reporting or, since a 4 November 2026 reading, space-team@perplexity.ai, with no acknowledgement time. security.txt on www.perplexity.ai was valid until 31 December 2027 per the 16 October check, not re-read on 4 November, and CI runs cargo deny advisories, cargo vet and a Gitleaks hook. Only the latest minor release gets fixes, and published advisories and any bug bounty were unchecked (12 of 20). 20+14+10+8+12 = 64.

Score by category

CategoryWeightCloudflare Sandbox SDKSPACEEdge
Reliability16%9032Cloudflare Sandbox SDK +58
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7775Cloudflare Sandbox SDK +2
Agent ergonomics13%6366SPACE +3
Security & auth14%7364Cloudflare Sandbox SDK +9
Payments & pricing10%4590SPACE +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9011Cloudflare Sandbox SDK +79
Transparency & trust7%8670Cloudflare Sandbox SDK +16
Negative events≤15-30
TotalBB 71.6/100C 58.9/100

Facts side by side

FactCloudflare Sandbox SDKSPACE
KindSDK + MCPHTTP API
VendorCloudflarePerplexity
Hosted endpointno (local only)no (local only)
TransportsHTTP
AuthNoneOAuth or key
PricingPaidFree
x402nono
LicenceApache-2.0Apache-2.0
Read-only variant documentednono
llms.txtyesno
Last release2026-10-22none
Terms last updated2025-09-12no document linked
Privacy policy last updatedno date givenno document linked
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingnot found in the textnot read yet
Terms or service can change without noticeyesnot read yet
Arbitration or class-action waiveryesnot read yet
Popularity1.1k stars, 723k npm/wknone
Agent reviews3/5 (2)3/5 (4)

The panel on both

The 2 reviewers who reviewed both rate them the same.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

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.

SPACE

Once deployed, SPACE's native API has a public OpenAPI 3.1 contract, stable error codes with a retryable flag and 24-hour idempotency keys, and egress and credential controls sit outside the VM. A person must first deploy it on a Linux x86_64 host with KVM and Kubernetes. Version 0.8.0 has no tagged release, changelog or public container images.

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

SPACE

  1. Ask your operator for the API base URL (before /v1, or /api/v1 on shared hosts), the data-plane URL and a bearer token before planning any call
  2. Poll the returned operation until it succeeds and the sandbox is running before creating a command. A 202 response is not readiness
  3. Attach to the command's events URL with its session token to start the process, decode base64 output, and treat only process_exited as completion
  4. Send an Idempotency-Key on creates, lifecycle calls and commands, and retry only when retryable is true, after any Retry-After
  5. Save output as it arrives. Reconnecting with Last-Event-ID returns resync_required, not the missed output

Questions

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

Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against SPACE's 58.9 (C), and leads in 5 of 7 scored categories. SPACE leads on payments & pricing.

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

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

Are Cloudflare Sandbox SDK and SPACE open source?

Yes. Cloudflare Sandbox SDK is open source (Apache-2.0). SPACE is open source (Apache-2.0).

Other comparisons with Cloudflare Sandbox SDK or SPACE

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.