# K8s sandbox

> K8s sandbox is an open-source agent skill for cloud and infrastructure. Run agent sandbox workloads as pods in your Kubernetes cluster via ComputeSDK. 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/k8s-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** k8s-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 guides an agent through using the @computesdk/k8s adapter, a Kubernetes provider for the ComputeSDK library. It walks through installing the npm packages, pointing the agent at the adapter README for prerequisites, credentials and the provider factory, and then creating a sandbox, running a command inside it and destroying it when done.

The included example builds a provider with a namespace and runtime setting, creates an instance, runs a shell command and prints its output. The skill itself is a short routing document; the detailed configuration and limitations live in the linked adapter README rather than in the skill.

It expects a Node.js/TypeScript project, access to a Kubernetes cluster with credentials configured as the adapter describes, and it points to the general computesdk skill for the common direct SDK workflow.

## When your agent uses it

> Kubernetes sandbox adapter for ComputeSDK. Run sandbox workloads as pods in your cluster. Use for @computesdk/k8s 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/k8s-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/k8s-sandbox)

## Features

- **Direct SDK setup:** Lists the npm packages to install and how to import the Kubernetes provider factory.
- **Sandbox lifecycle:** Covers creating an instance, running a workload and destroying the sandbox afterward.
- **Command execution example:** Provides a short TypeScript snippet that runs a Node command inside a pod and reads stdout.
- **Adapter README pointer:** Directs the agent to the adapter README for credentials, prerequisites and limitations.
- **Related skill reference:** Points to the computesdk skill for the shared direct SDK workflow.

## Good for

- Run a Node.js script in an isolated pod in my cluster
- Set up ComputeSDK with the Kubernetes provider in a TypeScript project
- Create a sandbox, execute a command and clean up the pod afterward
- Wire @computesdk/k8s into an existing SDK integration

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What do I need to install to use K8s sandbox?

Run npm install computesdk @computesdk/k8s, then follow the adapter README for prerequisites and credentials.

### What does the example do?

It creates a Kubernetes-backed instance in the default namespace, runs a Node command that prints a greeting, outputs stdout and then destroys the sandbox.

### Where are the configuration details?

The skill links to the adapter README for prerequisites, credentials, the provider factory, example code and limitations.

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

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

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

The closest alternatives to K8s sandbox are Codesandbox sandbox, Cocoonstack sandbox, Neevcloud sandbox, Kubi sandbox and Runtime 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.
- [Cocoonstack sandbox](https://ai-powered.com/skills/cocoonstack-sandbox): Cocoonstack sandbox is an open-source agent skill for cloud and infrastructure.
- [Neevcloud sandbox](https://ai-powered.com/skills/neevcloud-sandbox-computesdk): Neevcloud sandbox is an open-source agent skill for cloud and infrastructure.
- [Kubi sandbox](https://ai-powered.com/skills/kubi-sandbox): Kubi sandbox is an open-source agent skill for cloud and infrastructure.
- [Runtime sandbox](https://ai-powered.com/skills/runtime-sandbox): Runtime sandbox is an open-source agent skill for cloud and infrastructure.
- [Kosa8 sandbox](https://ai-powered.com/skills/kosa8-sandbox): Kosa8 sandbox is an open-source agent skill for developer tools.
- [Computesdk](https://ai-powered.com/skills/computesdk): Computesdk is an open-source agent skill for developer tools.
- [Namespace sandbox](https://ai-powered.com/skills/namespace-sandbox): Namespace sandbox is an open-source agent skill for cloud and infrastructure.

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