# Lightning sandbox

> Lightning sandbox is an open-source agent skill for cloud and infrastructure. Run commands and manage files in Lightning AI cloud sandboxes from your agent. 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/lightning-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** lightning-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 teaches an agent how to use Lightning AI sandboxes through the ComputeSDK. It covers two routes: running a quick command through the hosted Sandbox Router with the compute CLI, which selects Lightning, runs the command and destroys the sandbox afterward, and a direct SDK integration using the @computesdk/lightning adapter.

For the hosted route, the skill points the agent to listing current provider offers and connected keys, and to flags that require managed or bring-your-own-key account modes. In TypeScript, it shows how to request Lightning through provider ordering when creating an instance, and refers to a separate sandbox-router skill for the full example.

For direct integration, the workflow is to install the computesdk and adapter packages, read the adapter README for credentials and setup, create a sandbox, run a workload, and destroy the sandbox when finished. The included example runs a shell echo and prints its output. Expect Node.js with TypeScript and a Lightning API key.

## When your agent uses it

> Lightning AI sandbox adapter for ComputeSDK. Run commands and work with files in cloud sandboxes. Use for Lightning on the ComputeSDK Sandbox Router or @computesdk/lightning 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/lightning-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/lightning-sandbox)

## Features

- **Hosted router execution:** Runs a command on Lightning through the ComputeSDK Sandbox Router and cleans up the sandbox afterward.
- **Provider selection:** Shows how to choose Lightning and check available offers and connected keys.
- **Direct SDK setup:** Walks through installing the adapter package and configuring it with an API key.
- **Command execution:** Demonstrates running shell commands inside a cloud sandbox and reading stdout.
- **Sandbox lifecycle:** Covers creating a sandbox, running a workload, and destroying it when finished.

## Good for

- Run a shell command in an isolated cloud sandbox on Lightning
- Check which sandbox providers and keys are available before starting a job
- Set up a TypeScript project that executes code in a Lightning sandbox
- Create a sandbox, run a workload, and tear it down automatically

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

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

A TypeScript setup with the computesdk and @computesdk/lightning packages, plus Lightning credentials as described in the adapter README. The hosted route uses the compute CLI or an organization's connected key.

### Does Lightning sandbox change my code or files?

The skill gives instructions and an example for running commands in a sandbox. It does not run any scripts itself, and the skill folder contains only the SKILL.md file.

### When does the skill apply?

It applies when a task involves Lightning on the ComputeSDK Sandbox Router or a direct integration with the @computesdk/lightning package.

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

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

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

The closest alternatives to Lightning sandbox are Codesandbox sandbox, Sprites sandbox, Sail sandbox, Sandbox0 sandbox and Namespace 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.
- [Sprites sandbox](https://ai-powered.com/skills/sprites-sandbox): Sprites sandbox is an open-source agent skill for cloud and infrastructure.
- [Sail sandbox](https://ai-powered.com/skills/sail-sandbox): Sail 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.
- [Namespace sandbox](https://ai-powered.com/skills/namespace-sandbox): Namespace sandbox is an open-source agent skill for cloud and infrastructure.
- [Daytona sandbox](https://ai-powered.com/skills/daytona-sandbox): Daytona sandbox is an open-source agent skill for cloud and infrastructure.
- [Blaxel sandbox](https://ai-powered.com/skills/blaxel-sandbox): Blaxel sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloud run sandbox](https://ai-powered.com/skills/cloud-run-sandbox): Cloud run sandbox is an open-source agent skill for cloud and infrastructure.

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