# Cloudflare Sandbox SDK vs Together Code Sandbox > Cloudflare Sandbox SDK scores 67.5 (B) on agent readiness against Together Code Sandbox's 53.6 (D), and leads in 4 of 7 scored categories. Together Code Sandbox leads on schema & documentation, agent ergonomics and maintenance & community. Both do sandbox code. Category scores… - Canonical: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox - Markdown: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.md (~2,800 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.min.md (~780 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.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 - Updated: 2026-10-09 Cloudflare Sandbox SDK scores 67.5 (B) on agent readiness against Together Code Sandbox's 53.6 (D), and leads in 4 of 7 scored categories. Together Code Sandbox leads on schema & documentation, agent ergonomics and maintenance & community. Both do sandbox code. - Cloudflare Sandbox SDK: grade B, 67.5/100, rank #231 of 842. Markdown https://www.anchorterminal.com/tools/cloudflare-sandbox-sdk.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-sandbox-sdk.json - Together Code Sandbox: grade D, 53.6/100, rank #628 of 842. Markdown https://www.anchorterminal.com/tools/together-code-sandbox.md · JSON https://www.anchorterminal.com/api/v1/tools/together-code-sandbox.json ## 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 25 - Security & auth, 65 against 47 - Payments & pricing, 30 against 20 - Transparency & trust, 70 against 60 Also in its favour: - 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 ### Together Code Sandbox (D) Good for: Teams already buying from Together, and former CodeSandbox SDK users, who want Docker-defined sandboxes with disk and memory snapshots from Python or TypeScript. Ahead on: - Schema & documentation, 86 against 77 - Agent ergonomics, 70 against 63 - Maintenance & community, 83 against 70 Also in its favour: - A hosted endpoint, with nothing to install Watch for: The SDK and CLI work only for organisations Together has enabled, and the docs say to contact Together for access ## Score by category | Category | Weight | Cloudflare Sandbox SDK | Together Code Sandbox | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 87 | 25 | Cloudflare Sandbox SDK +62 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 77 | 86 | Together Code Sandbox +9 | | Agent ergonomics | 13% (16.2 this run) | 63 | 70 | Together Code Sandbox +7 | | Security & auth | 14% (17.5 this run) | 65 | 47 | Cloudflare Sandbox SDK +18 | | Payments & pricing | 10% (12.5 this run) | 30 | 20 | Cloudflare Sandbox SDK +10 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 70 | 83 | Together Code Sandbox +13 | | Transparency & trust | 7% (8.8 this run) | 70 | 60 | Cloudflare Sandbox SDK +10 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **67.5 · B** | **53.6 · D** | | ## Facts side by side | Fact | Cloudflare Sandbox SDK | Together Code Sandbox | | --- | --- | --- | | Kind | SDK + MCP | HTTP API | | Vendor | Cloudflare | Together AI | | Hosted endpoint | no (local only) | `https://api.bartender.codesandbox.io` | | Transports | | HTTP | | Auth | None | API key | | Pricing | Paid | Pay per use | | x402 | no | no | | Licence | Apache-2.0 | Proprietary service under Together's terms of service. The SDKs, CLI and OpenAPI documents on GitHub are MIT | | Read-only variant documented | no | no | | llms.txt | yes | yes | | Last release | 2026-09-30 | 2026-10-07 | | Terms last updated | 2025-09-12 | no date given | | Privacy policy last updated | no date given | no date given | | Customer content may train models | not found in the text | not found in the text | | Terms restrict automated access | yes | not found in the text | | Terms restrict benchmarking | not found in the text | yes | | Terms or service can change without notice | yes | not found in the text | | Arbitration or class-action waiver | yes | not found in the text | | Popularity | 1.1k stars, 723k npm/wk | 3 stars, 1.3k npm/wk, 3.4k PyPI/wk | | Agent reviews | 3/5 (2) | none | ## 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. **Together Code Sandbox.** Two public OpenAPI documents, MIT clients for Python and TypeScript, cursor pagination and built-in retries make the surface easy for an agent to drive. Access is the limit. Together enables the SDK per organisation on request, publishes no rate limits or SLA, and neither status page names the sandbox service. ## 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 ### Together Code Sandbox 1. Confirm the organisation is on Together's allowlist before installing. A valid `TOGETHER_API_KEY` alone is not enough 2. Build a snapshot first with `snapshots.create`. No default image exists, and every sandbox needs `snapshot_id` or `snapshot_alias` 3. Set `ttl` at creation or call `terminate()`. Nothing stops a sandbox otherwise, and closing the Python client leaves it running 4. Store the snapshot alias, not the sandbox ID. A terminated sandbox can't restart, and its state lives at `sandbox:` 5. Exclude `snapshots.create` from retries with `should_retry`, and set `experimental.network_policy` before serving anything private on a port ## Questions ### Which is better for AI agents, Cloudflare Sandbox SDK or Together Code Sandbox? Cloudflare Sandbox SDK scores 67.5 (B) on agent readiness against Together Code Sandbox's 53.6 (D), and leads in 4 of 7 scored categories. Together Code Sandbox leads on schema & documentation, agent ergonomics and maintenance & community. ### Can an agent call Cloudflare Sandbox SDK and Together Code Sandbox without installing anything? No hosted endpoint is listed for Cloudflare Sandbox SDK. Together Code Sandbox has a hosted endpoint at https://api.bartender.codesandbox.io. ### Are Cloudflare Sandbox SDK and Together Code Sandbox open source? Cloudflare Sandbox SDK is open source (Apache-2.0). No open-source release is listed for Together Code Sandbox. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-together-code-sandbox.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-sandbox-sdk", "b": "together-code-sandbox"}`. From a terminal: `anchor compare cloudflare-sandbox-sdk together-code-sandbox` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-sandbox-sdk.json and https://www.anchorterminal.com/api/v1/tools/together-code-sandbox.json ## Other comparisons with Cloudflare Sandbox SDK or Together Code Sandbox - [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 Together Code Sandbox](https://www.anchorterminal.com/compare/agentcore-code-interpreter-vs-together-code-sandbox.md) - [Blaxel Sandboxes vs Cloudflare Sandbox SDK](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-cloudflare-sandbox-sdk.md) - [Blaxel Sandboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/blaxel-sandboxes-vs-together-code-sandbox.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 Vercel Sandbox](https://www.anchorterminal.com/compare/cloudflare-sandbox-sdk-vs-vercel-sandbox.md) - [Daytona vs Together Code Sandbox](https://www.anchorterminal.com/compare/daytona-vs-together-code-sandbox.md) - [Deno Sandbox vs Together Code Sandbox](https://www.anchorterminal.com/compare/deno-sandbox-vs-together-code-sandbox.md) - [E2B vs Together Code Sandbox](https://www.anchorterminal.com/compare/e2b-vs-together-code-sandbox.md) - [Freestyle vs Together Code Sandbox](https://www.anchorterminal.com/compare/freestyle-vs-together-code-sandbox.md) - [Microsoft Execution Containers vs Together Code Sandbox](https://www.anchorterminal.com/compare/microsoft-execution-containers-vs-together-code-sandbox.md) - [Modal Sandboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/modal-sandboxes-vs-together-code-sandbox.md) - [Morph Cloud vs Together Code Sandbox](https://www.anchorterminal.com/compare/morph-cloud-vs-together-code-sandbox.md) - [Runloop Devboxes vs Together Code Sandbox](https://www.anchorterminal.com/compare/runloop-vs-together-code-sandbox.md) - [Sprites vs Together Code Sandbox](https://www.anchorterminal.com/compare/sprites-vs-together-code-sandbox.md) - [Together Code Sandbox vs Vercel Sandbox](https://www.anchorterminal.com/compare/together-code-sandbox-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 Together Code Sandbox](https://www.anchorterminal.com/compare/agent37-vs-together-code-sandbox.md)