# Cocoonstack sandbox

> Cocoonstack sandbox is an open-source agent skill for cloud and infrastructure. Run code in self-hosted Cocoon Stack microVMs through 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/cocoonstack-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** cocoonstack-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through using the @computesdk/cocoonstack adapter inside a direct ComputeSDK integration. It covers installing the npm packages, pointing the agent to the adapter README for prerequisites, credentials and the provider factory, and then creating a sandbox, running a command and destroying the sandbox when finished.

The skill is a short set of instructions with an example snippet that configures the provider from a base URL and API key read from environment variables, then runs a simple command inside the sandbox. It does not ship scripts or reference files of its own; the detailed setup and limitations live in the external adapter README.

The workflow assumes a reachable self-hosted sandboxd service and a Node.js/TypeScript project. It points to the separate computesdk skill for the general SDK workflow.

## When your agent uses it

> Cocoon Stack sandbox adapter for ComputeSDK. Run code in self-hosted microVMs managed by sandboxd. Use for @computesdk/cocoonstack 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/cocoonstack-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/cocoonstack-sandbox)

## Features

- **Direct SDK setup:** Steps to install the computesdk and cocoonstack packages in a project.
- **Provider configuration:** Shows how to configure the cocoonstack provider with a base URL and API key.
- **Sandbox lifecycle:** Covers creating a sandbox, running a command and destroying it afterwards.
- **Adapter README pointer:** Directs the agent to the adapter docs for prerequisites and limitations.

## Good for

- Run a Node.js command inside a self-hosted microVM
- Set up ComputeSDK with the Cocoon Stack provider
- Create and tear down an isolated sandbox from TypeScript code

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does the skill need to run?

It expects the computesdk and @computesdk/cocoonstack npm packages, a Cocoon Stack sandboxd endpoint, and an API key, which the adapter README describes.

### Does Cocoonstack sandbox run scripts or change files in my project?

The skill has no scripts. It describes installing packages and writing SDK code that creates and destroys a sandbox.

### What is the license?

The repository is licensed under MIT.

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

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

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

The closest alternatives to Cocoonstack sandbox are Codesandbox sandbox, K8s sandbox, Runtime sandbox, Sandbox CLI sandbox and Neevcloud sandbox.

## 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.
- [K8s sandbox](https://ai-powered.com/skills/k8s-sandbox): K8s sandbox is an open-source agent skill for cloud and infrastructure.
- [Runtime sandbox](https://ai-powered.com/skills/runtime-sandbox): Runtime sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox CLI sandbox](https://ai-powered.com/skills/sandbox-cli-sandbox): Sandbox CLI sandbox is an open-source agent skill for developer tools.
- [Neevcloud sandbox](https://ai-powered.com/skills/neevcloud-sandbox-computesdk): Neevcloud sandbox is an open-source agent skill for cloud and infrastructure.
- [Computesdk](https://ai-powered.com/skills/computesdk): Computesdk is an open-source agent skill for developer tools.
- [Kosa8 sandbox](https://ai-powered.com/skills/kosa8-sandbox): Kosa8 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/cocoonstack-sandbox
