k8s-agent-sandbox

k8s-agent-sandbox is a skill for Claude Code from vinnie357/claude-skills. It costs 89 tokens per session (2,294 once invoked), scanned A, original, MIT.

A guide to installing and operating the open-source agent-sandbox controller on Kubernetes. It uses custom resource definitions—Kubernetes objects that add new resource types—to create, manage, and remove isolated AI-agent sessions.

In plain words
What is it for?
Use it to install the controller and its resource definitions, write SandboxTemplate and SandboxClaim manifests, configure warm pools, and manage isolated agent sessions.
Why use it?
It provides a standard lifecycle for per-session agent pods instead of managing each pod by hand. It also covers warm pools for faster startup, default-deny network rules, and choices between isolation runtimes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the agent-sandboxing plugin — 7 skills, 6 commands shipped together

Good fit Use it to install the controller and its resource definitions, write SandboxTemplate and SandboxClaim manifests, configure warm pools, and manage isolated agent sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinnie357/claude-skills/k8s-agent-sandbox
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vinnie357/claude-skills --skill k8s-agent-sandbox
Clone the repo
git clone --depth 1 https://github.com/vinnie357/claude-skills

Made for: Claude Code.

Or install agent-sandboxing, the plugin that ships this one along with the rest of its 7 skills, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-agent-sandbox

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinnie357/claude-skills/k8s-agent-sandbox/github.svg)](https://agentmods.dev/skills/vinnie357/claude-skills/k8s-agent-sandbox)
Your own site
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/k8s-agent-sandbox"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/k8s-agent-sandbox/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-agent-sandbox

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/k8s-agent-sandbox"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/k8s-agent-sandbox.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 188
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.02294
Opus 5.5 $0.00036 $0.00918
Sonnet 5.5 $0.00018 $0.00459
Haiku 4.5 $0.00009 $0.00229

Measured 3mo ago against content hash 77d224999297, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k8s-agent-sandbox scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Don't claim a sandbox has Anthropic egress without exec'ing into the pod and curl'ing `https://api.anthropic.com/v1/models` (or equivalent).
plugins/tools/agent-sandboxing/skills/k8s-agent-sandbox/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

k8s-agent-sandbox

The upstream open-source project kubernetes-sigs/agent-sandbox ships four CRDs that model "give me a per-session, isolated pod for an AI agent and reap it when the session ends." This skill covers the controller, the CRD model, and the lifecycle. Pair with kata-on-kind / kata-on-gke / kina-microvm for the RuntimeClass install and with claude-code-on-sandbox for the workload-side packaging.

What it is

kubernetes-sigs/agent-sandbox is Apache-2.0 (verified at https://github.com/kubernetes-sigs/agent-sandbox). Latest release v0.4.6 (2026-05-14). API group agents.x-k8s.io (core Sandbox) and extensions.agents.x-k8s.io (templates, claims, warm pools). The upstream README example uses v1alpha1; docs/api.md documents v1beta1. Verify the installed CRD version before authoring manifests:

kubectl api-resources | grep -E 'agents\.x-k8s\.io'

GKE ships a managed variant ("Agent Sandbox") that became GA on 2026-05-20. The managed variant is gVisor-only; the upstream open-source project accepts any runtimeClassName including Kata. This skill targets the upstream because Kata (microVM isolation) is the primary use case here.

Install

Upstream (any conformant cluster: kind, k3s, kops, kubeadm, GKE Standard)

VERSION=v0.4.6
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${VERSION}/manifest.yaml
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${VERSION}/extensions.yaml

Two manifests because the project splits the core Sandbox CRD from the higher-level SandboxTemplate / SandboxClaim / SandboxWarmPool extensions. Apply both.

Verify the controller comes up:

kubectl get pods -n agent-sandbox-system
kubectl get crd | grep agents.x-k8s.io

GKE managed (Autopilot)

gcloud beta container clusters create-auto ${CLUSTER_NAME} \
  --location=${LOCATION} \
  --cluster-version=${CLUSTER_VERSION} \
  --enable-agent-sandbox

Read the full file on GitHub · 189 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 189 lines · 89 tokens per session scan A 77d224999297

Subscribe to this mod's changes

k8s-agent-sandbox is a skill published in the GitHub repository vinnie357/claude-skills (30 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 2,294 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

k8s-agent-sandbox compared with skills from other repositories

k8s-agent-sandbox next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k8s-agent-sandboxvinnie357/claude-skillsSkill301mo agoMITA89Claude Code
deploy-docker-composeomnigent-ai/omnigentSkill12ktodayApache-2.0A84Claude Code, Codex
bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0ktodayApache-2.0A117Cursor
securing-kubernetes-on-cloudxalgorix/xalgorixSkill1.6ktodayApache-2.0A80Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.6ktodayApache-2.0A40Claude Code, Codex
docker-socket-mountPurpleAILAB/DecepticonSkill6.9k15d agoApache-2.0B67Claude Code
managing-astro-local-envastronomer/agentsSkill4662d agoApache-2.0A63Claude Code