# Opencomputer sandbox

> Opencomputer sandbox is an open-source agent skill for developer tools. Run code in persistent OpenComputer VMs via ComputeSDK, with checkpoints and preview URLs. 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/opencomputer-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** opencomputer-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 guides an AI coding agent to use OpenComputer as the sandbox provider for ComputeSDK. It covers two routes: selecting OpenComputer through the hosted ComputeSDK Sandbox Router with the compute CLI or TypeScript provider ordering, or installing the @computesdk/opencomputer adapter for a direct SDK integration.

The direct route walks the agent through installing the packages, pointing to the adapter README for credentials and configuration, creating an instance, running commands, reading and writing files, exposing a port as a URL, and destroying the sandbox when finished. The example uses an API key read from the environment.

Expect Node.js with the ComputeSDK packages and an OpenComputer API key, or a connected key in a ComputeSDK organization for the hosted route. Companion skills cover the full router examples and the general SDK workflow.

## When your agent uses it

> OpenComputer sandbox adapter for ComputeSDK. Run code in persistent VMs with checkpoints and preview URLs. Use for OpenComputer on the ComputeSDK Sandbox Router or @computesdk/opencomputer 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/opencomputer-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/opencomputer-sandbox)

## Features

- **Hosted router selection:** Runs commands on OpenComputer through the ComputeSDK Sandbox Router CLI and TypeScript provider ordering.
- **Direct SDK integration:** Explains installing and wiring the @computesdk/opencomputer adapter into a project.
- **Command execution:** Shows how to run shell commands inside a sandbox and read their output.
- **File read and write:** Covers writing and reading files inside a sandbox filesystem.
- **Preview URLs:** Demonstrates retrieving a public URL for a port exposed by the sandbox.
- **Sandbox lifecycle:** Guides creating a sandbox and destroying it once the workload is done.

## Good for

- Run a short script in an isolated cloud VM
- Test a web app and get a preview URL for a running port
- Persist a working environment across multiple agent sessions
- Execute untrusted or generated code away from the local machine
- Set up a direct ComputeSDK integration with OpenComputer

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What do I need to use Opencomputer sandbox?

A ComputeSDK setup with OpenComputer access: either a connected OpenComputer key for the hosted router, or an OpenComputer API key for the direct @computesdk/opencomputer adapter, configured as described in the adapter README.

### Which packages does the direct route install?

It runs npm install for computesdk and @computesdk/opencomputer.

### Does the skill include scripts or extra files?

No. It is a single SKILL.md that points to the adapter README and other skills for details.

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

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

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

The closest alternatives to Opencomputer sandbox are Createos sandbox, Codesandbox sandbox, Sandbox0 sandbox, Runloop sandbox and Microsandbox sandbox.

## Where this comes from

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

## Alternatives

- [Createos sandbox](https://ai-powered.com/skills/createos-sandbox): Createos sandbox is an open-source agent skill for developer tools.
- [Codesandbox sandbox](https://ai-powered.com/skills/codesandbox-sandbox): Codesandbox sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox0 sandbox](https://ai-powered.com/skills/sandbox0-sandbox): Sandbox0 sandbox is an open-source agent skill for cloud and infrastructure.
- [Runloop sandbox](https://ai-powered.com/skills/runloop-sandbox): Runloop sandbox is an open-source agent skill for developer tools.
- [Microsandbox sandbox](https://ai-powered.com/skills/microsandbox-sandbox): Microsandbox sandbox 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.
- [Isorun sandbox](https://ai-powered.com/skills/isorun-sandbox): Isorun sandbox is an open-source agent skill for developer tools.
- [Agent37 sandbox](https://ai-powered.com/skills/agent37-sandbox): Agent37 sandbox is an open-source agent skill for developer tools.

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