Skip to content
Skill

Cloud run sandbox

Lets an agent run shell commands in disposable Google Cloud Run sandboxes

Cloud run sandbox is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
305
Last commit
License
MIT
Listing updated

Similar skills

About Cloud run sandbox

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/cloud-run-sandbox to use it in all your projects:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/cloud-run-sandbox to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/cloud-run-sandbox to use it in every project:

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.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Cloud run sandbox 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.

More from computesdk/computesdk

  1. Reference for driving the compute CLI to run sandboxes, Actions and market tasks

    • Open source
    • 305 GitHub stars
    • Developer tools
  2. Guides contributors through adding a sandbox compute provider to ComputeSDK

    • Open source
    • 305 GitHub stars
    • Developer tools
  3. Lets your agent inspect, dispatch and manage ComputeSDK CI workflow runs for your org

    • Open source
    • 305 GitHub stars
    • Developer tools
  4. Lets an agent read ComputeSDK sandbox provider benchmark results, runs and logs

    • Open source
    • 305 GitHub stars
    • Developer tools
  5. Lets an agent check, verify, remove and re-rate a ComputeSDK org's provider keys

    • Open source
    • 305 GitHub stars
    • Cloud and infrastructure
  6. Lets an agent run code, files and servers in ComputeSDK cloud sandboxes

    • Open source
    • 305 GitHub stars
    • Developer tools