# Cloudflare sandbox

> Cloudflare sandbox is an open-source agent skill for cloud and infrastructure. Run code in Cloudflare Containers from an agent via ComputeSDK sandboxes. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/computesdk/computesdk/tree/main/skills/cloudflare-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** cloudflare-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

This skill points the agent at the Cloudflare provider in ComputeSDK, a way to run code inside Cloudflare Containers reached through Workers and Durable Objects. It covers two access paths: the hosted Sandbox Router, driven by the compute CLI or a providerOrder option on instance creation, and a direct integration that installs the computesdk and @computesdk/cloudflare packages.

The workflow is simple: create a sandbox, run a command inside it, read the output, and destroy the sandbox when finished. The skill includes a short TypeScript example that runs a Node command and prints its stdout. It also notes that the provider must be configured with a sandbox URL and API key before use, with details left to the adapter README.

Expect Node.js and TypeScript tooling, a Cloudflare sandbox deployment or hosted key, and the ComputeSDK packages. The skill defers to companion skills for the full Sandbox Router walkthrough and the general direct SDK workflow.

## When your agent uses it

> Cloudflare sandbox adapter for ComputeSDK. Run code in Cloudflare Containers through Workers and Durable Objects. Use for Cloudflare on the ComputeSDK Sandbox Router or @computesdk/cloudflare in a direct SDK integration.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/computesdk/computesdk/tree/HEAD/skills/cloudflare-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/cloudflare-sandbox)

## Features

- **Hosted Sandbox Router:** Select Cloudflare as the provider through the compute CLI or a TypeScript provider order option.
- **Direct SDK integration:** Install and configure the @computesdk/cloudflare adapter inside your own project.
- **Command execution:** Create a sandbox, run shell commands inside it and read stdout.
- **Sandbox lifecycle:** Create and destroy sandboxes so workloads are cleaned up after each run.
- **Account mode selection:** Require managed or bring-your-own-key accounts when listing sandbox offers.

## Good for

- Run a short Node.js script in an isolated Cloudflare sandbox
- Execute a shell command on Cloudflare without managing containers
- Set up a direct ComputeSDK integration with Cloudflare Containers
- Route sandbox runs through an organization's connected Cloudflare key

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cloudflare-sandbox` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cloudflare-sandbox &&
cp -R "$tmp/skills/cloudflare-sandbox" ~/.claude/skills/cloudflare-sandbox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/cloudflare-sandbox` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/cloudflare-sandbox` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cloudflare-sandbox &&
cp -R "$tmp/skills/cloudflare-sandbox" ~/.agents/skills/cloudflare-sandbox &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/cloudflare-sandbox` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/cloudflare-sandbox` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cloudflare-sandbox &&
cp -R "$tmp/skills/cloudflare-sandbox" ~/.cursor/skills/cloudflare-sandbox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cloudflare-sandbox` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/computesdk/computesdk.git --path skills/cloudflare-sandbox
```

Or copy the folder to `~/.gemini/skills/cloudflare-sandbox` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cloudflare-sandbox`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cloudflare-sandbox &&
cp -R "$tmp/skills/cloudflare-sandbox" ~/.copilot/skills/cloudflare-sandbox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cloudflare-sandbox` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/computesdk/computesdk.git
```

Then copy `computesdk/skills/cloudflare-sandbox` into your agent's skills folder as `cloudflare-sandbox`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need to install to use Cloudflare sandbox?

The direct SDK path requires installing the computesdk and @computesdk/cloudflare npm packages, and the adapter README describes the credentials and provider setup.

### Which environment variables does the example use?

The example reads CLOUDFLARE_SANDBOX_URL and CLOUDFLARE_SANDBOX_API_KEY to configure the provider.

### Can I use this without writing code?

Yes, the hosted Sandbox Router path can be run from the compute CLI with a command such as compute sandboxes run --provider cloudflare.

### How do I install Cloudflare sandbox in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cloudflare-sandbox to use it in all your projects, or to .claude/skills/cloudflare-sandbox in one project.

### Does Cloudflare sandbox run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Cloudflare sandbox?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Cloudflare sandbox?

The closest alternatives to Cloudflare sandbox are Codesandbox sandbox, Cloud run sandbox, Run cloud sandbox, Namespace sandbox and Sandbox router.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Codesandbox sandbox](https://ai-powered.com/skills/codesandbox-sandbox): Codesandbox sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloud run sandbox](https://ai-powered.com/skills/cloud-run-sandbox): Cloud run sandbox is an open-source agent skill for cloud and infrastructure.
- [Run cloud sandbox](https://ai-powered.com/skills/run-cloud-sandbox): Run cloud sandbox is an open-source agent skill for cloud and infrastructure.
- [Namespace sandbox](https://ai-powered.com/skills/namespace-sandbox): Namespace sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox router](https://ai-powered.com/skills/sandbox-router): Sandbox router is an open-source agent skill for cloud and infrastructure.
- [Daytona sandbox](https://ai-powered.com/skills/daytona-sandbox): Daytona sandbox is an open-source agent skill for cloud and infrastructure.
- [Lightning sandbox](https://ai-powered.com/skills/lightning-sandbox): Lightning sandbox is an open-source agent skill for cloud and infrastructure.
- [Groundbox sandbox](https://ai-powered.com/skills/groundbox-sandbox): Groundbox sandbox is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/cloudflare-sandbox
