A powerful SDK for building secure, isolated code execution environments inside Cloudflare Workers to power AI interpreters, CI/CD pipelines, and runtime sandboxes.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install sandbox-sdk
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install sandbox-sdk using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Cloudflare Sandbox SDK enables developers to run untrusted code securely inside lightweight, containerized environments on top of Cloudflare Workers. This capability is crucial for implementing code interpreters for large language models, interactive development environments, and automated CI/CD pipelines. By combining the low latency of edge computing with Docker-backed isolated runtime sandboxes, it solves the challenge of executing dynamic script code safely and efficiently.
Integrating this package into Openclaw Skills allows AI coding agents to dynamically write, run, and test code, creating highly capable autonomous assistants that can interact with file systems and execute terminal commands in a secure sandbox.
getSandbox() method with a unique session identifier./workspace directory.destroy() method.To begin using the Cloudflare Sandbox SDK with your Openclaw Skills workflow, verify your local Docker installation and install the package:
npm install @cloudflare/sandbox
docker info # Must succeed - Docker is required for local development
Configure your wrangler.jsonc file with the required Durable Object and Container configurations:
{
"containers": [{
"class_name": "Sandbox",
"image": "./Dockerfile",
"instance_type": "lite",
"max_instances": 1
}],
"durable_objects": {
"bindings": [{ "class_name": "Sandbox", "name": "Sandbox" }]
},
"migrations": [{ "new_sqlite_classes": ["Sandbox"], "tag": "v1" }]
}
Then, ensure your Worker entrypoint properly re-exports the Sandbox class:
import { getSandbox } from '@cloudflare/sandbox';
export { Sandbox } from '@cloudflare/sandbox'; // Required export
The Cloudflare Sandbox SDK relies on structured Docker environments and persistent workspaces to store code, assets, and project dependencies.
All file operations take place within the /workspace partition of the sandbox.
| Directory / File | Description |
|---|---|
/workspace |
The primary directory where all workspace files, custom scripts, and code interpreter outputs reside. |
./Dockerfile |
The local container definition that extends the base sandbox image (docker.io/cloudflare/sandbox:0.7.0). |
wrangler.jsonc |
The orchestration and binding configuration for local or cloud-based deployments. |
You can customize the underlying image by defining a standard Dockerfile:
FROM docker.io/cloudflare/sandbox:0.7.0
# Pre-install language packages
RUN pip install requests beautifulsoup4
RUN npm install -g typescript
# Expose the default HTTP service port
EXPOSE 8080
Shell and Editor from @cloudflare/sandbox/openai) to simplify prompt-to-sandbox tools.runCode() to retain variables and modules.exposePort() for debugging and previewing local web applications with wildcard DNS bindings in production.Loading
A high-performance AI coding assistant skill designed to build, optimize, and test stateful, coordinated applications using Cloudflare Durable Objects.

An automated workflow skill that enables AI agents to configure Cloudflare Turnstile widgets, deploy verification Workers, and implement frontend bot protection end-to-end.

An open-source, local-first market basket analysis tool designed to extract product association rules and business strategy recommendations from Excel data using the Apriori algorithm.

MetricHub is a multi-tenant SaaS metrics platform featuring query building, ECharts visualization, and dashboard orchestration optimized for Openclaw Skills.

A comprehensive developer guide and AI skill for configuring, sending, and routing transactional emails seamlessly using Cloudflare Email Service.

A powerful agent skill for building and deploying stateful, durable AI agents, WebSocket-enabled applications, and background workflows on Cloudflare Workers.








































