Agent Sandbox: Managing Isolated, Stateful Workloads on Kubernetes

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Agent Sandbox: Managing Isolated, Stateful Workloads on Kubernetes

Summary

Agent Sandbox introduces a Sandbox Custom Resource Definition (CRD) and controller for Kubernetes, designed to simplify the management of isolated, stateful, singleton workloads. It provides a declarative API for use cases such as AI agent runtimes, development environments, and persistent single-container sessions. This project aims to offer a lightweight, single-container VM experience built on Kubernetes primitives.

Repository Information

Analyzed by OSRepos on August 8, 2026

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Agent Sandbox is a Kubernetes project that introduces a Sandbox Custom Resource Definition (CRD) and controller, designed to simplify the management of isolated, stateful, singleton workloads. It provides a declarative, standardized API for applications requiring the characteristics of a long-running, stateful, single-container environment, much like a lightweight, single-container VM experience built on Kubernetes primitives. This makes it ideal for use cases such as AI agent runtimes, development environments, and persistent single-container sessions.

The core of Agent Sandbox is the Sandbox CRD, which offers:

  • Stable Identity: Each Sandbox maintains a stable hostname and network identity.
  • Persistent Storage: Sandboxes can be configured with persistent storage that survives restarts.
  • Lifecycle Management: The controller manages the pod's lifecycle, including creation, scheduled deletion, pausing, and resuming.

Beyond the core, Agent Sandbox provides extensions like SandboxTemplate for reusable configurations, SandboxClaim for abstracting Sandbox allocation from a warm pool, and SandboxWarmPool for managing pre-warmed Sandboxes, enhancing scalability and user experience.

Installation

To install Agent Sandbox, including its core components and extensions, you can use the standard installation method. This approach is recommended for most users and GitOps engines like Argo CD, Config Sync, or kustomize.

First, set the VERSION environment variable to a specific release tag from the Agent Sandbox releases page:

export VERSION="vX.Y.Z"

Then, apply the combined manifest:

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

You can also render the manifest directly from source using kubectl kustomize k8s/. For selective installations of core or extensions separately, refer to the official documentation.

Examples

Once the controller is installed, you can create a simple Sandbox by applying a YAML manifest to your cluster. This example demonstrates how to deploy a basic Sandbox running a specified container image:

apiVersion: agents.x-k8s.io/v1beta1
kind: Sandbox
metadata:
  name: my-sandbox
spec:
  podTemplate:
    spec:
      containers:
      - name: my-container
        image: <IMAGE>

Replace <IMAGE> with your desired container image. This will create a new Sandbox named my-sandbox. You can then access this Sandbox using its stable hostname, my-sandbox. For more complex scenarios and examples utilizing the extensions, consult the project's examples/ directories.

Why use it

Kubernetes is highly effective for managing stateless, replicated applications via Deployments and stable, numbered sets of stateful pods using StatefulSets. However, there's a growing demand for an abstraction that specifically addresses use cases requiring isolated, persistent, and single-instance environments. Agent Sandbox fills this gap by providing a tailored solution for:

  • Development Environments: Offering isolated, persistent, and network-accessible cloud environments for developers.
  • AI Agent Runtimes: Creating secure, isolated environments for executing untrusted, LLM-generated code.
  • Notebooks and Research Tools: Providing persistent, single-container sessions for tools like Jupyter Notebooks.
  • Stateful Single-Pod Services: Hosting single-instance applications, such as build agents or small databases, that need a stable identity without the overhead of a full StatefulSet.

Agent Sandbox aims for vendor-neutrality and supports various runtimes, offering key characteristics such as:

  • Strong Isolation: Supporting runtimes like gVisor or Kata Containers for enhanced security and isolation.
  • Deep Hibernation: The ability to save state to persistent storage and potentially archive the Sandbox object.
  • Automatic Resume: Resuming a sandbox automatically upon network connection.
  • Efficient Persistence: Providing elastic and rapidly provisioned storage.
  • Programmable API: Encouraging applications and agents to programmatically consume the Sandbox API.

Links

Related repositories

Similar repositories that may be relevant next.

AgentTeams: Collaborative Multi-Agent OS for Human-in-the-Loop Task Coordination

AgentTeams: Collaborative Multi-Agent OS for Human-in-the-Loop Task Coordination

August 7, 2026

AgentTeams is an innovative open-source Collaborative Multi-Agent Operating System designed for transparent, human-in-the-loop task coordination. It leverages Matrix rooms to facilitate seamless interaction between human users and AI agents. This platform empowers teams to manage complex tasks efficiently, ensuring full visibility and control over agent activities.

agent-teamsopenclawgo
Fix Inventory: Open-Source Cloud Security Posture Management for Multi-Cloud

Fix Inventory: Open-Source Cloud Security Posture Management for Multi-Cloud

May 2, 2026

Fix Inventory is an open-source tool for cloud and security engineers, designed to identify and remediate critical risks across AWS, GCP, Azure, and Kubernetes. It provides a graph-based data model to collect, normalize, and triage security risks in multi-cloud infrastructure, offering a powerful alternative to proprietary cloud security solutions. Written in Python, it supports over 300 cloud services and various security use cases.

awsgcpazure
Vitess: Horizontal Scaling for MySQL with Cloud-Native Database Clustering

Vitess: Horizontal Scaling for MySQL with Cloud-Native Database Clustering

April 22, 2026

Vitess is a robust, cloud-native database clustering system designed for horizontal scaling of MySQL. It allows applications to remain agnostic to data distribution across multiple servers, offering unlimited scaling through generalized sharding. With a proven track record powering YouTube's database infrastructure, Vitess is trusted by major companies like Slack and Square.

vitessmysqldatabase-clustering
Snorlax: Automating Kubernetes Deployment Wake and Sleep Schedules

Snorlax: Automating Kubernetes Deployment Wake and Sleep Schedules

February 24, 2026

Snorlax is a Kubernetes operator that automates the waking and sleeping of deployments on a schedule. This tool provides significant cost savings, enhanced security, and environmental benefits by scaling down environments when not in use. It also includes a wake server that brings deployments back online upon request, displaying a splash page during the process.

kubernetesoperatorsleep

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️