> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Skill

> Use AI agents to manage cloud sandboxes with natural language

The OpenComputer skill lets AI agents like Claude Code create and manage cloud sandboxes using the `oc` CLI. Instead of writing commands yourself, just describe what you want.

## Install

```bash theme={null}
npx skills add diggerhq/opencomputer
```

This works with Claude Code, Codex, Cursor, and any agent that supports the [Agent Skills](https://agentskills.io) standard.

## Prerequisites

The `oc` CLI must be installed and configured:

```bash theme={null}
curl -fsSL https://raw.githubusercontent.com/diggerhq/opencomputer/main/scripts/install.sh | bash
oc config set api-key YOUR_API_KEY
```

## Usage

The skill activates automatically when you mention sandboxes or the `oc` CLI. Just ask naturally:

**Create a custom base image:**

> Create a base image for me that includes a placeholder React app I can use as a starter kit. Checkpoint it so I can spawn copies later.

**Fork and experiment:**

> Spawn two sandboxes from my react-starter checkpoint. In the first one, add Tailwind CSS. In the second, add Material UI.

**Run commands:**

> Install PostgreSQL in my sandbox and run the test suite

**Manage state:**

> Checkpoint my sandbox before I try this migration, so I can roll back if it breaks

The agent handles all the `oc` commands under the hood — creating sandboxes, running `exec`, taking checkpoints, applying patches, and cleaning up.
