# kubernetes-sigs/agent-sandbox

agent-sandbox enables easy management of isolated, stateful, singleton workloads, ideal for use cases like AI agent runtimes  and reinforcement learning (RL).

Repository: https://github.com/kubernetes-sigs/agent-sandbox
Canonical: https://ross.abutalabs.com/products/agent-sandbox
Homepage: https://agent-sandbox.sigs.k8s.io
Language: Go
License: Apache-2.0
License Family: permissive
Topics: kubernetes, agent, ai, rl, sandbox
Last push: 2026-08-26T17:13:48+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 27
- inputs: {"age_days": 386, "days_push": 7, "days_rel": 13, "gap_med": 11.0, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3640, forks 466 (observed 2026-08-28T04:08:12.720100+00:00)

## What it is
Agent Sandbox is a Kubernetes SIG project providing a Sandbox Custom Resource Definition (CRD) and controller for managing isolated, stateful, singleton workloads with stable identity and persistent storage. It is purpose-built for AI agent runtimes, code execution of untrusted/LLM-generated code, and reinforcement learning workloads, with Python and Go SDKs and extension CRDs like SandboxTemplate, SandboxClaim, and SandboxWarmPool.

## Use cases
- run untrusted LLM-generated code in isolated sandboxes on Kubernetes
- host coding agents that write and execute code with full dev tooling
- provision pre-warmed sandbox pools for low-latency agent sessions
- run reinforcement learning and SWE-bench-style evaluation workloads
- give AI agents isolated browser or desktop environments for computer-use tasks
- manage stateful singleton pods with stable identity and persistent storage
- pause and resume sandboxes to save compute costs between sessions

## When to choose
- you need a Kubernetes-native, declarative API for isolated agent execution environments
- you want millisecond sandbox provisioning via warm pools for high-throughput agent pipelines
- you need configurable isolation depth with gVisor or Kata Containers runtimes
- you run RL training or evaluation jobs that require many ephemeral stateful environments

## When to avoid
- you are not running on Kubernetes and cannot operate a cluster
- you only need simple local code-execution sandboxing without orchestration
- you need fully replicated stateless workloads, which Deployments already handle well

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, container-orchestration, security, deployment, sdk, workflow-automation
- domain: artificial-intelligence, cloud-computing, security, developer-tools, reinforcement-learning
- platform: go, python, cloud, self-hosted
- tags: kubernetes-operator, crd, sandbox, code-execution, gvisor, kata-containers, warm-pool, untrusted-code, computer-use, swe-bench, ai-agents, containers, kubernetes, docker

## Member repositories
- kubernetes-sigs/agent-sandbox (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:12.720100+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:48.233828+00:00, confidence not recorded.
  - readme: https://github.com/kubernetes-sigs/agent-sandbox (fetched 2026-08-28T04:08:12.720100+00:00, sha e8c5be699fd4)
  - homepage: https://agent-sandbox.sigs.k8s.io (fetched 2026-08-29T09:26:22.588541+00:00, sha 2b80bc507f37)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/getting_started (fetched 2026-08-29T09:26:22.591117+00:00, sha 34f926e6cb82)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/sandbox/custom_sandbox (fetched 2026-08-29T09:26:22.592739+00:00, sha becb4e2a16f7)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs (fetched 2026-08-29T09:26:22.594146+00:00, sha 5fdd99d9f240)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/use-cases/examples (fetched 2026-08-29T09:26:22.595768+00:00, sha ab7234241bad)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/runtime-templates (fetched 2026-08-29T09:26:22.597370+00:00, sha 3daa78b1fb9f)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/sandbox (fetched 2026-08-29T09:26:22.598793+00:00, sha fcc161751ea2)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/volumes (fetched 2026-08-29T09:26:22.600337+00:00, sha 3bb4052817c4)
  - site_page: https://agent-sandbox.sigs.k8s.io/docs/getting_started/python-sdk-quickstart (fetched 2026-08-29T09:26:22.602331+00:00, sha 7595ce5b2123)
- Data as of 2026-08-30T08:39:29.467469+00:00.
