Agent Substrate is an open-source runtime, released under the Apache 2.0 license, that lets a Kubernetes cluster host very large numbers of sandboxed AI agents by treating each agent session as a lightweight “actor” instead of giving it its own pod. Idle actors are snapshotted out of memory and restored onto any free worker when the next request arrives, which the project says takes under 500 milliseconds. NVIDIA, which describes the project as donated to the Cloud Native Computing Foundation (CNCF) Sandbox, says the design aims for about ten times the density of standard containers. This explainer covers the problem it solves, how it works, and what it means for teams that run agents in production.
The problem: agents spend most of their time waiting
A coding agent or support agent alternates between short bursts of work and long waits. It runs a command, then waits seconds or minutes for a model response, a tool result or a human reply. NVIDIA’s engineers point out that a sandbox may execute a 10-millisecond bash command and then sit idle.
Kubernetes was built for services that run continuously, so the obvious design, one pod per agent session, fits badly. Platform teams face a choice between two costs:
- Keep pods alive between turns. The session keeps its files and memory, but the cluster pays for memory held by thousands of idle agents.
- Delete pods between turns. Memory is freed, but every new step pays a cold start of several seconds and loses the agent’s state.
The cold start is slow because creating a pod goes through the API server, admission controllers, etcd, the scheduler, the kubelet, image pulls and network setup. That is acceptable for a web service that starts once a day, not for an agent that wakes up hundreds of times an hour. The same problem appears in reinforcement learning post-training, where a training run can need anywhere from a few hundred to hundreds of thousands of short-lived code, browser or simulator environments.
How Agent Substrate works
Agent Substrate separates the agent from the pod. Its main building blocks, as described in the project’s GitHub repository and NVIDIA’s technical blog, are:
- Actors. Each agent session is an actor: a stateful workload with its own memory and filesystem, described by an ActorTemplate resource.
- Worker pools. A small pool of warm worker pods, defined as WorkerPools, actually runs the actors. Workers are ordinary Kubernetes pods, so quotas, scheduling rules and placement policies still apply.
- A control plane that maps actors onto workers and decides when to move them.
- Snapshots. When an actor goes idle, its memory and filesystem state are saved and the worker is freed for someone else. When the actor is called again it is restored onto any free worker.
- A router. The
atenet-routeris the only way into an actor. When every worker is busy it can park incoming requests and retry, with limits on wait time and queue length, instead of returning an error. - An egress gateway. The
atenet-egresscomponent adds credentials to approved outbound requests, so the agent’s code never holds API keys itself.
Waking an actor skips the full pod creation path: no API server round trip, no scheduler decision, no kubelet start-up. That is where the speed and density gains come from. Many sessions share a few warm workers, the way an operating system shares a CPU among many processes.
Isolation: gVisor or microVMs, not plain containers
Because agents run code written by a model, Substrate does not support ordinary Linux containers as a sandbox. Each actor runs under either gVisor, a user-space kernel that intercepts system calls, or a Cloud Hypervisor microVM, which gives each actor its own lightweight virtual machine. Recent changes add per-container CPU and memory limits inside microVM sandboxes, so one runaway process is stopped without killing the rest of the agent’s environment. Our explainer on AI agent sandboxing compares these isolation layers in detail.
GPUs and inference: where NVIDIA comes in
Most agent sandboxes only need CPUs, but some research and training tasks need a GPU, for example to compile CUDA kernels or run benchmarks. NVIDIA is adding device support through Kubernetes Dynamic Resource Allocation (DRA), with NVIDIA GPUs as the first supported device. The harder part is suspending and resuming an actor that holds GPU state: GPU checkpoints often require the same GPU model and sometimes the same driver version. The proposed design records the device’s properties in the snapshot and restores onto a matching GPU, or falls back to a clean cold start.
NVIDIA is also linking Substrate to Dynamo, its open-source inference framework. Dynamo can tell Substrate when an agent’s model call is expected to start returning tokens and when it should finish. With that signal, Substrate can suspend an actor during a long inference wait and resume it just before the answer arrives. This mirrors how LLM inference servers such as vLLM already juggle many requests on shared GPUs, applied to the agent’s sandbox rather than the model.
A worked example: 10,000 coding agents
Consider a company that gives 10,000 developers a background coding agent. If each agent is active 5% of the time, only about 500 are doing work at any moment. With one pod per agent kept warm, the cluster reserves memory for all 10,000. With pods deleted between turns, developers wait several seconds every time their agent wakes up. With an actor model, the cluster can size its worker pool for the roughly 500 active sessions plus headroom, while the other 9,500 sit as snapshots on disk and wake in well under a second. The exact savings depend on snapshot size, storage speed and how bursty usage is, but this is the arithmetic behind the claimed density gain.
Limits and maturity
The repository says the project has reached version 1.0 and commits to API compatibility within a major version, but NVIDIA’s November post notes that GPU support is being rebuilt on the DRA foundation and that parts of the Dynamo integration are experimental. Hosts running more than about 1,000 sandboxes need larger kernel neighbor-table settings. Snapshots also move risk around: an idle agent’s memory, possibly including sensitive data, now lives on disk and must be protected. And the 10x density figure is the project’s own claim, not an independent benchmark.
What to watch next
- Independent measurements of density and resume latency on real agent workloads.
- Progress on GPU suspend and resume, which is the hardest technical piece.
- Adoption by agent platforms and RL training frameworks beyond NVIDIA’s own stack.
- Whether Kubernetes itself adds actor-style primitives upstream.
Key takeaways
- Agent Substrate runs AI agent sessions as actors multiplexed over a small pool of warm Kubernetes pods.
- Idle actors are snapshotted and restored on demand, avoiding both idle memory costs and multi-second cold starts.
- Every actor runs under gVisor or a microVM; plain containers are not supported.
- NVIDIA is adding GPU support through Kubernetes DRA and linking the runtime to its Dynamo inference framework.
- The claimed 10x density gain has not yet been independently measured.
Frequently asked questions
What is Agent Substrate?
It is an open-source runtime for running large numbers of sandboxed AI agents on Kubernetes. It maps agent sessions onto shared worker pods and snapshots idle sessions so they do not hold memory.
Is Agent Substrate free?
Yes. The code is published on GitHub under the Apache 2.0 license, and NVIDIA says it has been donated to the CNCF Sandbox.
Do I need NVIDIA GPUs to use Agent Substrate?
No. It runs on standard Kubernetes and most agent sandboxes only need CPUs. GPU support, built on Kubernetes Dynamic Resource Allocation, is optional and still being developed.




