[← Providers](https://www.sandboxrouter.ai/providers)

# Cloudflare Sandbox

provider: "cloudflare"

10 ms billing on active CPU and allocated instance memory; full-CPU estimate excludes allocated disk ($0.000252/GB-h), Worker and Durable Objects charges; needs Workers Paid ($5/mo) and bridges/cloudflare.

## List price per hour

| 1 vCPU · 2 GB | $0.126 |
|---|---|
| 2 vCPU · 4 GB | $0.216 |
| 4 vCPU · 8 GB | $0.396 |
| 8 vCPU · 16 GB | max 4 vCPU |
| 16 vCPU · 32 GB | max 4 vCPU |
| 32 vCPU · 128 GB | max 4 vCPU |

Source

[developers.cloudflare.com](https://developers.cloudflare.com/containers/platform/pricing/), 2026-11-05 (an estimate, not a bill)

Billing

CPU only while busy; shown with every core busy

Plan

$5/mo: Workers Paid; includes usage allowances, not credit

## Adapter

Supports

Exec + streaming · Files

Max size

4 vCPU · 12 GB

Routing

Chosen when it's the cheapest fit, or as a fallback

Docs

[developers.cloudflare.com](https://developers.cloudflare.com/sandbox/)

## Measured on real accounts

Real-account check

13 / 13 steps

2026-11-13

Median create

417 ms

2 vCPU / 4 GB · 100 requests · 2026-11-17

Ready

100%

Excluding recorded limit refusals

Awaiting results for delivered resources, provider usage charges.

### Help verify Cloudflare Sandbox

Have a Cloudflare Sandbox account? These commands start real sandboxes and write result files. Provider charges may apply. Results never include your keys. Run them in a clone of the repo and open a pull request with the files: CI checks every file for keys and impossible numbers, and a maintainer reviews each one before it shows here.

terminal

```
npx @sandboxrouter/sdk cost run --provider cloudflare --minutes 10 --by YOUR_GITHUB_USERNAME
```

## Real-account check, step by step

13 of 13 steps passed on a real account, 2026-11-13 (v0.7.0).

- createpassed
- exec: stdout, stderr, exit codepassed
- exec: env and cwdpassed
- exec: UTF-8 outputpassed
- exec: streamingpassed
- files: binary round-trippassed
- files: 1 MB round-trippassed
- files: missing file is an errorpassed
- files: visible to commandspassed
- exec: command timeoutpassed
- exec: timed-out command was stoppedpassed
- pause and resumen/a
- killpassed
- killed sandbox is gonepassed

setup

```
npm i @sandboxrouter/sdk
export CLOUDFLARE_SANDBOX_URL=...
export CLOUDFLARE_SANDBOX_TOKEN=...
```

use Cloudflare Sandbox

```
import { Router } from "@sandboxrouter/sdk";

const router = new Router();
const sbx = await router.create({}, { provider: "cloudflare" });
await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();
```

sandboxRouter isn't affiliated with Cloudflare Sandbox. Prices come from its public pricing page and results from our own runs. Something wrong or out of date? [Report a correction](https://github.com/gigialc/sandboxrouter/issues/new?title=Correction%3A%20Cloudflare%20Sandbox&labels=correction&body=What%27s%20wrong%20on%20https%3A%2F%2Fwww.sandboxrouter.ai%2Fproviders%2Fcloudflare%2C%20and%20a%20link%20to%20the%20source%3A%0A%0A).
