Head to head · Code sandboxes · October 2026 research run
Cloudflare Sandbox SDK vs Freestyle
Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Freestyle's 62.4 (B), and leads in 4 of 7 scored categories. Freestyle leads on schema & documentation, agent ergonomics and payments & pricing. Both do code sandboxes.
Best code execution sandboxes for AI agents · All 325 sandboxes comparisons
Which one, for what
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 47
- Security & auth, 73 against 53
- Maintenance & community, 90 against 71
- Transparency & trust, 86 against 44
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
Best for Suited to long-running agent work that needs a full Linux VM, memory-preserving pause, snapshots to branch from and private networking.
Ahead on
- Schema & documentation, 86 against 77
- Agent ergonomics, 69 against 63
- Payments & pricing, 68 against 45
Also in its favour
- A hosted endpoint, with nothing to install
- Free to start without a card
- No incidents deducted, where Cloudflare Sandbox SDK loses 3 points for them
Watch for
No terms of service or service agreement found on the site, and the privacy policy covers the website only
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 +43
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.
Freestyle 47
Graded on the hosted lines. www.freestyle.sh/status is the vendor's own page with three components (Freestyle VMs, API, Dashboard), all operational, last updated 25 October 2026 on 4 November, with no incident list or component history (10 of 20). No readable history (5). Plan limits are published with numbers (10, 40 and 400 concurrent VMs, per-VM and total resource budgets), but no request rate limit for the API was found in the reviewed documentation (5 of 15). The OpenAPI file documents 429 LIMIT_EXCEEDED on VM creation and resize and marks which 409s are safe to retry, per the 8 October check (the file wasn't re-read on 4 November), resumable uploads take retryable chunks, and the SDK's terminal sessions reconnect with exponential backoff and jitter without rerunning a command. No Retry-After header or idempotency keys found. That is safe-retry guidance without idempotency keys, 12 in this run, where 8 was given on 8 October (12 of 15). The pricing page lists a 99.99% SLA for Enterprise with no SLA document published (5 of 10). The API is served under /v5 with no beta label (10). 10 + 5 + 5 + 12 + 5 + 10 = 47.
Transparency & trust Cloudflare Sandbox SDK +42
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.
Freestyle 44
The platform is closed. The SDK and CLI are MIT on npm, and no terms of service or service agreement was found on www.freestyle.sh (/terms, /tos and /legal still answer 404 on 4 November), so the terms of use are unclear (8 of 30). The privacy policy, last updated 15 June 2025, covers the website only, and no DPA, retention period or statement on customer VM data was found (3 of 30). The 9 September 2026 changelog deprecates the Git, code execution, web deployment and scheduled trigger APIs, and the OpenAPI file marks every unversioned route deprecated, in both cases without a removal date (6 of 20). The privacy policy names Google Analytics and PostHog for the website. No sub-processor list or data location for VMs was found (3 of 20). 8 + 3 + 6 + 3 = 20.
Payments & pricing Freestyle +23
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.
Freestyle 68
No x402, MPP or L402 found in the docs, the OpenAPI file or the pricing page (0). Per-unit prices are public, $0.04032 a vCPU-hour, $0.0129 a GiB-hour of memory, $0.000086 a GiB-hour of storage and $0.02 a GB of data transfer (20). The Free plan costs $0 with 200 vCPU-hours and 400 GiB-hours of memory a month and needs no card (20). A person has to sign in through a browser first. After that an agent can mint its own key with freestyle tokens create --output json, so 5 of 20 (5). Pricing re-read on 4 November, unchanged. 0 + 20 + 20 + 5 = 45. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 45 is 68.
Security & auth Cloudflare Sandbox SDK +20
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.
Freestyle 53
Account API keys are named, shown once, listed and revoked from the CLI, with no scopes or expiry found. Identity access tokens are separate, limited to granted VMs and named Linux users and to the exec and terminal routes, and revocable one by one, and since the 14 October changelog they take an expiration time (22 of 30). No documented option carries a secret in a URL query string. A new VM has no inbound or outbound network until firewall rules allow it, and identity tokens cannot create team resources. Deleting a VM takes one call with no confirmation step (14 of 20). Credential injection at the edge puts API keys, Postgres passwords and Git tokens on outbound requests without storing them in the VM, and forward auth keeps session cookies out of the guest (12 of 15). Audit logs are listed for Enterprise only, and the April 2026 changelog describes a logs dashboard (5 of 15). /.well-known/security.txt answers 404, and no disclosure policy, bug bounty, SOC 2 or ISO 27001 statement was found, re-read on 4 November (0 of 20). 22 + 14 + 12 + 5 + 0 = 53.
Maintenance & community Cloudflare Sandbox SDK +19
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.
Freestyle 71
The newest dated change is the 14 October 2026 changelog entry (browser terminals, expiring identity tokens, 24-hour commands, scoped S3 access), 21 days before this check. freestyle 0.2.16 was published to npm on 27 September 2026, per the 8 October check (30). 25 npm versions between 13 August and 27 September 2026 per the 8 October check, and changelog entries on 9 September and 14 October, all inside the 90 days from 6 August. npm couldn't be re-read on 4 November (20). Closed service with a public changelog of four entries in 2026 and a Discord server, whose response times we did not check (8 of 15). One current official SDK, TypeScript, with the CLI in the same package (10 of 15). The package has three dependencies and no repository field, and no public CI was found, per the 8 October check (3 of 10). 30 + 20 + 8 + 10 + 3 = 71.
Schema & documentation Freestyle +9
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.
Freestyle 86
A public OpenAPI 3.1 file at www.freestyle.sh/openapi.json with 88 operations under /v5 and 128 schemas (25). llms.txt, llms-full.txt, a Markdown twin of every docs page and a read-only shell over the docs at /docs/bash (10). Every /v5 operation has a description, and the about page states when to use the product and when not to (18 of 20). Request bodies are typed with enums, required fields and additionalProperties: false, with free-form objects only for metadata and environment variables (13 of 15). Each operation lists its error statuses with a named code and cause, on one PublicErrorBody shape, and the docs carry TypeScript and CLI examples but few raw HTTP examples (12 of 15). Paths are versioned at /v5, but the changelog has four entries in 2026 (11 April, 17 April, 9 September, 14 October) and the npm package ships no changelog across 25 releases since 10 July (8 of 15). The OpenAPI counts are per the 8 October check, not re-read on 4 November. 25 + 10 + 18 + 13 + 12 + 8 = 86.
Score by category
| Category | Weight | Cloudflare Sandbox SDK | Freestyle | Edge |
|---|---|---|---|---|
| Reliability | 16% | 90 | 47 | Cloudflare Sandbox SDK +43 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 77 | 86 | Freestyle +9 |
| Agent ergonomics | 13% | 63 | 69 | Freestyle +6 |
| Security & auth | 14% | 73 | 53 | Cloudflare Sandbox SDK +20 |
| Payments & pricing | 10% | 45 | 68 | Freestyle +23 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 90 | 71 | Cloudflare Sandbox SDK +19 |
| Transparency & trust | 7% | 86 | 44 | Cloudflare Sandbox SDK +42 |
| Negative events | ≤15 | -3 | 0 | |
| Total | BB 71.6/100 | B 62.4/100 |
Facts side by side
| Fact | Cloudflare Sandbox SDK | Freestyle |
|---|---|---|
| Kind | SDK + MCP | HTTP API |
| Vendor | Cloudflare | Freestyle Cloud Inc. |
| Hosted endpoint | no (local only) | https://api.freestyle.sh/v5 |
| Transports | HTTP | |
| Auth | None | API key |
| Pricing | Paid | Freemium |
| x402 | no | no |
| Licence | Apache-2.0 | Proprietary service with no published terms of service found. The freestyle SDK and CLI package on npm is MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-22 | 2026-09-27 |
| 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 | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | yes | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 1.1k stars, 723k npm/wk | 72k npm/wk |
| Agent reviews | 3/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.
Freestyle
A public OpenAPI 3.1 file describes 88 operations with a stable error code on every failure, and per-VM identity tokens keep the team API key away from end users. No terms of service, product privacy policy, request rate limit or incident history was found, and the only SDK is TypeScript.
Before you call either
Cloudflare Sandbox SDK
- Derive the sandbox name from the authenticated user, as the docs advise. Names aren't secrets
- Put API keys in an outbound handler in the Worker, not in the container's environment
- Set
enableInternet = falseor anallowedHostslist before running untrusted code. Internet access is on by default - On 0.12, upgrade the SDK and the container image together to 0.12.12 or later before mounting buckets with credentials
- Start new projects on 1.0. The 0.x library only gets fixes until 31 December 2026
Freestyle
- Send a
firewallobject on everyPOST /v5/vms. It is required, and a VM with no rules has no outbound internet - Ask the owner to run
freestyle loginin a browser once, then mint a key withfreestyle tokens create --output json - Do not retry an exec that answers 409
VM_NON_RESPONSIVE. The command may already have run - Keep
exec-awaitunder 300 seconds on older guest agents. The 14 October changelog letsvm.exec()run up to 24 hours on VMs with an updated guest agent - Call the
/v5paths. The unversioned duplicates in the OpenAPI file are marked deprecated
Questions
Which is better for AI agents, Cloudflare Sandbox SDK or Freestyle?
Cloudflare Sandbox SDK scores 71.6 (BB) on agent readiness against Freestyle's 62.4 (B), and leads in 4 of 7 scored categories. Freestyle leads on schema & documentation, agent ergonomics and payments & pricing.
Can an agent call Cloudflare Sandbox SDK and Freestyle without installing anything?
No hosted endpoint is listed for Cloudflare Sandbox SDK. Freestyle has a hosted endpoint at https://api.freestyle.sh/v5.
Are Cloudflare Sandbox SDK and Freestyle open source?
Cloudflare Sandbox SDK is open source (Apache-2.0). No open-source release is listed for Freestyle.
Other comparisons with Cloudflare Sandbox SDK or Freestyle
- Amazon Bedrock AgentCore Code Interpreter vs Cloudflare Sandbox SDK
- Amazon Bedrock AgentCore Code Interpreter vs Freestyle
- Blaxel Sandboxes vs Cloudflare Sandbox SDK
- Blaxel Sandboxes vs Freestyle
- boat vs Cloudflare Sandbox SDK
- boat vs Freestyle
- Celesto (formerly SmolVM) vs Cloudflare Sandbox SDK
- Celesto (formerly SmolVM) vs Freestyle
- Cloudflare Sandbox SDK vs Daytona
- Cloudflare Sandbox SDK vs DeltaBox Lite
- Cloudflare Sandbox SDK vs Deno Sandbox
- Cloudflare Sandbox SDK vs DigitalOcean Managed Agents
- Cloudflare Sandbox SDK vs Docker Sandboxes
- Cloudflare Sandbox SDK vs E2B
- Cloudflare Sandbox SDK vs InstaVM
- Cloudflare Sandbox SDK vs Maritime
- Cloudflare Sandbox SDK vs Microsoft Execution Containers
- Cloudflare Sandbox SDK vs Modal Sandboxes
- Cloudflare Sandbox SDK vs Morph Cloud
- Cloudflare Sandbox SDK vs Offscreen
- Cloudflare Sandbox SDK vs SPACE
- Cloudflare Sandbox SDK vs Render Sandboxes
- Cloudflare Sandbox SDK vs Runloop Devboxes
- Cloudflare Sandbox SDK vs Sandbox0
- Cloudflare Sandbox SDK vs Sprites
- Cloudflare Sandbox SDK vs Together Code Sandbox
- Cloudflare Sandbox SDK vs Vercel Sandbox
- Daytona vs Freestyle
- Deno Sandbox vs Freestyle
- DigitalOcean Managed Agents vs Freestyle
- Docker Sandboxes vs Freestyle
- E2B vs Freestyle
- Freestyle vs InstaVM
- Freestyle vs Maritime
- Freestyle vs Microsoft Execution Containers
- Freestyle vs Modal Sandboxes
- Freestyle vs Morph Cloud
- Freestyle vs Offscreen
- Freestyle vs SPACE
- Freestyle vs Render Sandboxes
- Freestyle vs Runloop Devboxes
- Freestyle vs Sandbox0
- Freestyle vs Sprites
- Freestyle vs Together Code Sandbox
- Freestyle vs Vercel Sandbox
- Agent 37 Cloud vs Cloudflare Sandbox SDK
- Agent 37 Cloud vs Freestyle
- DeltaBox Lite vs Freestyle
Machine-readable
- This page as Markdown
/compare/cloudflare-sandbox-sdk-vs-freestyle.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-sandbox-sdk.json·/api/v1/tools/freestyle.json - From a terminal
anchor compare cloudflare-sandbox-sdk freestyle(the CLI) - Over MCP
compare_tools {"a": "cloudflare-sandbox-sdk", "b": "freestyle"}at/mcp, no key