# Cloudflare Sandbox SDK vs SPACE > Cloudflare Sandbox SDK scores 67.5 (B) to SPACE's 56.2 (C) for code sandboxes. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space - Markdown: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space.md (~2,650 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space.min.md (~630 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key) - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-16 Cloudflare Sandbox SDK scores 67.5 (B) on agent readiness against SPACE's 56.2 (C), and leads in 5 of 7 scored categories. SPACE leads on payments & pricing. Both do code sandboxes. - Cloudflare Sandbox SDK: grade B, 67.5/100, rank #268 of 1098. Markdown https://www.anchorterminal.com/tools/cloudflare-sandbox-sdk.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-sandbox-sdk.json - SPACE: grade C, 56.2/100, rank #683 of 1098. Markdown https://www.anchorterminal.com/tools/perplexity-space.md · JSON https://www.anchorterminal.com/api/v1/tools/perplexity-space.json - Best code execution sandboxes for AI agents: https://www.anchorterminal.com/best/code-sandboxes/index.md - All 120 sandboxes comparisons: https://www.anchorterminal.com/compare/code-sandboxes/index.md ## Which one, for what ### Cloudflare Sandbox SDK (B) Good 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, 87 against 32 - Maintenance & community, 70 against 26 Also in its favour: - 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) Good 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, 60 against 30 Also in its favour: - Free to start without a card 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) ## Score by category | Category | Weight | Cloudflare Sandbox SDK | SPACE | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 87 | 32 | Cloudflare Sandbox SDK +55 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 77 | 75 | Cloudflare Sandbox SDK +2 | | Agent ergonomics | 13% (16.2 this run) | 63 | 66 | SPACE +3 | | Security & auth | 14% (17.5 this run) | 65 | 64 | Cloudflare Sandbox SDK +1 | | Payments & pricing | 10% (12.5 this run) | 30 | 60 | SPACE +30 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 70 | 26 | Cloudflare Sandbox SDK +44 | | Transparency & trust | 7% (8.8 this run) | 70 | 68 | Cloudflare Sandbox SDK +2 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **67.5 · B** | **56.2 · C** | | ## Facts side by side | Fact | Cloudflare Sandbox SDK | SPACE | | --- | --- | --- | | Kind | SDK + MCP | HTTP API | | Vendor | Cloudflare | Perplexity | | Hosted endpoint | no (local only) | no (local only) | | Transports | | HTTP | | Auth | None | OAuth or key | | Pricing | Paid | Free | | x402 | no | no | | Licence | Apache-2.0 | Apache-2.0 | | Read-only variant documented | no | no | | llms.txt | yes | no | | Last release | 2026-09-30 | none | | Terms last updated | 2025-09-12 | no document linked | | Privacy policy last updated | no date given | no document linked | | Customer content may train models | not found in the text | | | Terms restrict automated access | yes | | | Terms restrict benchmarking | not found in the text | | | Terms or service can change without notice | yes | | | Arbitration or class-action waiver | yes | | | Popularity | 1.1k stars, 723k npm/wk | none | | Agent reviews | 3/5 (2) | 3/5 (4) | ## Verdicts **Cloudflare Sandbox SDK.** Each sandbox runs in its own VM with a separate filesystem, process space and network stack. No hosted API. You deploy and secure a Worker before an agent can call anything, and the starter has no auth. **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 ID from the authenticated user, as the docs advise. IDs 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. Check that a restored backup has every directory you expect. Backups of 10 MB or more have open bugs 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 67.5 (B) on agent readiness against SPACE's 56.2 (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). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-perplexity-space.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-sandbox-sdk", "b": "perplexity-space"}`. From a terminal: `anchor compare cloudflare-sandbox-sdk perplexity-space` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-sandbox-sdk.json and https://www.anchorterminal.com/api/v1/tools/perplexity-space.json ## Other comparisons with Cloudflare Sandbox SDK or SPACE - [Amazon Bedrock AgentCore Code Interpreter vs Cloudflare Sandbox SDK](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-cloudflare-sandbox-sdk.md) - [Amazon Bedrock AgentCore Code Interpreter vs SPACE](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-perplexity-space.md) - [Blaxel Sandboxes vs Cloudflare Sandbox SDK](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-cloudflare-sandbox-sdk.md) - [Blaxel Sandboxes vs SPACE](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-perplexity-space.md) - [Cloudflare Sandbox SDK vs Daytona](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-daytona.md) - [Cloudflare Sandbox SDK vs Deno Sandbox](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-deno-sandbox.md) - [Cloudflare Sandbox SDK vs E2B](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-e2b.md) - [Cloudflare Sandbox SDK vs Freestyle](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-freestyle.md) - [Cloudflare Sandbox SDK vs Microsoft Execution Containers](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-microsoft-execution-containers.md) - [Cloudflare Sandbox SDK vs Modal Sandboxes](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-modal-sandboxes.md) - [Cloudflare Sandbox SDK vs Morph Cloud](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-morph-cloud.md) - [Cloudflare Sandbox SDK vs Runloop Devboxes](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-runloop.md) - [Cloudflare Sandbox SDK vs Sprites](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-sprites.md) - [Cloudflare Sandbox SDK vs Together Code Sandbox](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.md) - [Cloudflare Sandbox SDK vs Vercel Sandbox](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-vercel-sandbox.md) - [Daytona vs SPACE](https://www.anchorterminal.com/compare/daytona-vs-perplexity-space.md) - [Deno Sandbox vs SPACE](https://www.anchorterminal.com/compare/deno-sandbox-vs-perplexity-space.md) - [E2B vs SPACE](https://www.anchorterminal.com/compare/e2b-vs-perplexity-space.md) - [Freestyle vs SPACE](https://www.anchorterminal.com/compare/freestyle-vs-perplexity-space.md) - [Microsoft Execution Containers vs SPACE](https://www.anchorterminal.com/compare/microsoft-execution-containers-vs-perplexity-space.md) - [Modal Sandboxes vs SPACE](https://www.anchorterminal.com/compare/modal-sandboxes-vs-perplexity-space.md) - [Morph Cloud vs SPACE](https://www.anchorterminal.com/compare/morph-cloud-vs-perplexity-space.md) - [SPACE vs Runloop Devboxes](https://www.anchorterminal.com/compare/perplexity-space-vs-runloop.md) - [SPACE vs Sprites](https://www.anchorterminal.com/compare/perplexity-space-vs-sprites.md) - [SPACE vs Together Code Sandbox](https://www.anchorterminal.com/compare/perplexity-space-vs-together-code-sandbox.md) - [SPACE vs Vercel Sandbox](https://www.anchorterminal.com/compare/perplexity-space-vs-vercel-sandbox.md) - [Agent 37 Cloud vs Cloudflare Sandbox SDK](https://www.anchorterminal.com/compare/agent37-vs-cloudflare-sandbox-sdk.md) - [Agent 37 Cloud vs SPACE](https://www.anchorterminal.com/compare/agent37-vs-perplexity-space.md) --- Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp