# Cloud run sandbox

> Cloud run sandbox is an open-source agent skill for cloud and infrastructure. Lets an agent run shell commands in disposable Google Cloud Run sandboxes. 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/cloud-run-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** cloud-run-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

This skill covers running commands inside Google Cloud Run Sandboxes, either through the hosted ComputeSDK Sandbox Router with the compute CLI, or by calling Cloud Run directly from TypeScript with the ComputeSDK GCP adapter. It points the agent to the right command or SDK calls and to the provider's setup notes for credentials and limitations.

For the CLI route, the agent is shown how to run a one-off command that selects Cloud Run and then destroys the sandbox, and how to check available offers and connected keys. For the direct route, it walks through installing the packages, importing the Cloud Run factory, creating an instance, running a command and tearing the sandbox down. The skill defers the full TypeScript router example and the adapter prerequisites to other skills and the adapter README.

It expects Node.js and the ComputeSDK packages for the SDK path, along with a connected Cloud Run key or sandbox URL and secret set in environment variables. It is a single instruction file with no bundled scripts.

## When your agent uses it

> Run commands in Google Cloud Run Sandboxes. Use for Google Cloud Run on the ComputeSDK Sandbox Router or @computesdk/gcp/cloud-run 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/cloud-run-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/cloud-run-sandbox)

## Features

- **Hosted router commands:** Runs a command in a Cloud Run sandbox through the compute CLI and destroys it afterward.
- **Provider offer checks:** Lists current provider offers and connected keys, with flags to require managed or BYOK mode.
- **Direct SDK workflow:** Steps for installing the GCP adapter and creating, using and destroying a Cloud Run sandbox.
- **TypeScript provider selection:** Shows how to pin Cloud Run as the provider order when creating instances via the router.
- **Adapter setup pointers:** Directs the agent to the adapter README for credentials, factory options and limitations.

## Good for

- Run a quick shell command in an isolated Google Cloud Run sandbox
- Check which sandbox providers and keys are available before running code
- Set up a TypeScript project to execute commands on Cloud Run through ComputeSDK
- Tear down a sandbox after a workload finishes

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What do I need before using the direct SDK route?

Install computesdk and @computesdk/gcp, then follow the adapter README for prerequisites and credentials. The example expects a sandbox URL and secret in environment variables.

### Can the agent use Cloud Run without the direct SDK?

Yes, through the hosted Sandbox Router with the compute CLI, or by passing providerOrder with cloud-run when creating instances in TypeScript, using an organization's connected key.

### Does the skill include scripts?

No. It is a single SKILL.md file with instructions and a code example.

### How do I install Cloud run sandbox in Claude Code?

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

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

The closest alternatives to Cloud run sandbox are Codesandbox sandbox, Cloudflare sandbox, Sandbox router, Run cloud 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.
- [Cloudflare sandbox](https://ai-powered.com/skills/cloudflare-sandbox): Cloudflare sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox router](https://ai-powered.com/skills/sandbox-router): Sandbox router is an open-source agent skill for cloud and infrastructure.
- [Run cloud sandbox](https://ai-powered.com/skills/run-cloud-sandbox): Run cloud 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.
- [AWS ec2 sandbox](https://ai-powered.com/skills/aws-ec2-sandbox): AWS ec2 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.
- [Vercel sandbox](https://ai-powered.com/skills/vercel-sandbox): Vercel sandbox is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/cloud-run-sandbox
