# Docker sandbox

> Docker sandbox is an open-source agent skill for developer tools. Lets an agent run code inside local Docker containers via the ComputeSDK adapter. 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/docker-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** docker-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill documents the @computesdk/docker adapter for ComputeSDK, which provisions disposable sandboxes backed by local Docker containers. It walks the agent through installing the packages, pointing to the adapter README for prerequisites and provider configuration, creating a sandbox instance, running commands inside it, and destroying it afterward.

The included example shows a Python runtime built from a slim Python image with an if-not-present pull policy, executing a short command in the container. The skill is a short guide with a single file and no bundled scripts, so the detailed setup and limitations live in the linked adapter documentation.

Using it requires Node.js with npm, a working Docker installation, and TypeScript or JavaScript code that imports the adapter. For a common direct SDK workflow, the guide refers the agent to a separate computesdk skill.

## When your agent uses it

> Docker sandbox adapter for ComputeSDK. Run code in local containers for development and testing. Use for @computesdk/docker 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/docker-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/docker-sandbox)

## Features

- **Local container sandboxes:** Creates isolated sandbox instances backed by Docker containers on the local machine.
- **Direct SDK integration:** Shows how to install and import the Docker adapter alongside the ComputeSDK client.
- **Command execution:** Runs shell commands inside a sandbox and reads back standard output.
- **Runtime and image selection:** Picks a Python or Node runtime and a base container image with a pull policy.
- **Sandbox cleanup:** Destroys the sandbox once the workload has finished.

## Good for

- Run a Python snippet in an isolated container during development
- Test code against a clean container image before deploying
- Execute a short workload in a throwaway sandbox and discard it
- Prototype a ComputeSDK integration using local Docker

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/docker-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/docker-sandbox &&
cp -R "$tmp/skills/docker-sandbox" ~/.claude/skills/docker-sandbox &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/docker-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/docker-sandbox &&
cp -R "$tmp/skills/docker-sandbox" ~/.agents/skills/docker-sandbox &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/docker-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/docker-sandbox &&
cp -R "$tmp/skills/docker-sandbox" ~/.cursor/skills/docker-sandbox &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/docker-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/docker-sandbox
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does Docker sandbox need to be installed?

The guide says to run npm install for computesdk and @computesdk/docker, and to read the adapter README for prerequisites and credentials.

### Does Docker sandbox run code locally or in the cloud?

The adapter runs code in local containers, as its name and description state.

### What is the workflow the agent follows?

Install the packages, create a sandbox with client.instances.create(), run the workload, and destroy the sandbox when finished.

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

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

### Does Docker 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 Docker 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 Docker sandbox?

The closest alternatives to Docker sandbox are Computesdk, Sandbox CLI sandbox, K8s sandbox, Cocoonstack sandbox and Just bash sandbox.

## Where this comes from

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

## Alternatives

- [Computesdk](https://ai-powered.com/skills/computesdk): Computesdk is an open-source agent skill for developer tools.
- [Sandbox CLI sandbox](https://ai-powered.com/skills/sandbox-cli-sandbox): Sandbox CLI sandbox is an open-source agent skill for developer tools.
- [K8s sandbox](https://ai-powered.com/skills/k8s-sandbox): K8s sandbox is an open-source agent skill for cloud and infrastructure.
- [Cocoonstack sandbox](https://ai-powered.com/skills/cocoonstack-sandbox): Cocoonstack sandbox is an open-source agent skill for cloud and infrastructure.
- [Just bash sandbox](https://ai-powered.com/skills/just-bash-sandbox): Just bash sandbox is an open-source agent skill for developer tools.
- [Runtime sandbox](https://ai-powered.com/skills/runtime-sandbox): Runtime sandbox is an open-source agent skill for cloud and infrastructure.
- [Secure exec sandbox](https://ai-powered.com/skills/secure-exec-sandbox): Secure exec sandbox is an open-source agent skill for developer tools.
- [Kubi sandbox](https://ai-powered.com/skills/kubi-sandbox): Kubi sandbox is an open-source agent skill for cloud and infrastructure.

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