Open source

Agent Substrate

Explainer5 min readAdvancedUpdated 5 Nov 2026
1 · In one line

Agent Substrate is open-source software that runs many AI agents on Kubernetes by saving idle agents as snapshots in storage and resuming them when a request arrives.

1 · What it is

An AI agent spends most of its time waiting: for a user’s next message, a tool’s result or a model’s reply. Agent Substrate runs on Kubernetes, which starts and manages software in pods, the smallest units Kubernetes can create and manage. If every agent gets its own pod, that pod’s memory and processor stay reserved while the agent waits. A sandbox, an isolated environment, makes each agent safer but does nothing about this waste.

The project’s answer is to separate the agent from the pod. (The project calls each managed agent an actor.) Apart from brief transitions, an agent is in one of two states:

  • Suspended: saved as a snapshot of its memory and files in snapshot storage.
  • Running: resumed onto a worker pod with room, one of a pool started in advance. The project says resuming takes under 500 milliseconds. Its stated target is 100 milliseconds for 95% of resumes.

The surprising part is what Kubernetes sees: only the fixed pool of long-running worker pods. Agents never wait for its scheduler, the part that decides which machine runs each new pod.

Main components

  • ateapi (control plane): It decides which worker pod each agent runs on and tracks each agent’s lifecycle.
  • atelet (node helper): It runs on each machine and moves snapshots between worker pods and snapshot storage.
  • atenet (router): It reads the target agent from a request header, a labelled field sent with the request, and resumes that agent. Built on the Envoy proxy, it holds requests briefly when no worker pod has room.
  • PostgreSQL (state store): It holds agent records instead of etcd, the key-value store for Kubernetes’ own data, because those records change too often.

How agents are kept apart

The project treats every agent as untrusted and possibly hostile.

  • Sandbox: Each agent runs under gVisor, which isolates it at the kernel level, or in a lightweight virtual machine. Plain Linux containers are not allowed.
  • Inbound traffic: Requests reach an agent only through the router, from authenticated callers.
  • Outbound traffic: Outgoing requests leave only through an egress gateway, which blocks destinations that are not approved.
  • Secrets: For HTTP and HTTPS requests its policy covers, the agent sends a placeholder, and the egress gateway swaps in the real API key.

Some protections are unfinished. Worker pods run as root, the most privileged user. Per-agent encryption of stored state is only planned.

Who builds and uses it

Google built Agent Substrate with its Google Kubernetes Engine (GKE) team. Contributors also come from NVIDIA, Solo.io and Microsoft. The Cloud Native Computing Foundation (CNCF) accepted it as a Sandbox project and has begun onboarding it. Sandbox is CNCF’s entry level for early-stage projects, not an agent sandbox.

Google documents how to install it on GKE Standard clusters, where it adds no charge beyond normal GKE pricing. Google’s Agent Executor builds on it to add durable execution, so long tasks can resume after outages. kagent, a Kubernetes-native agent framework, runs its stateful agents in Agent Substrate’s sandboxes.

What to check before production

  • Version: Confirm your release. The README says 1.0 is reached, but the newest release, 1.0.0-rc.3, is a release candidate whose notes warn that some upgrades break snapshots.
  • Saved state: Plan for lost state. By default a suspend returns before its snapshot is uploaded, so a machine failure can lose recent work. Memory is kept on a best-effort basis only.
  • Capacity: Size the worker pool for peak traffic. A held request fails if no worker pod has room within 5 seconds, the default wait.
  • Monitoring: Collect its per-agent logs and metrics, because agents keep moving between worker pods.
2 · Why it exists

One pod per agent wastes capacity, new pods start slowly, and agents run untrusted code.

Idle podsAgents work in short bursts, so a pod reserved for one agent sits mostly unused.
Slow startsCreating a new pod for each request means waiting for Kubernetes to decide which machine runs it.
Untrusted codeAgents often run code that can't be trusted, so each one needs its own sandbox.
3 · How it works

Follow one request to a suspended agent.

Top row: one request's path. Bottom row: the shared worker pods and snapshot storage that every agent draws on.
  1. 1 · routeAgent Substrate's router receives the request and reads its target agent from the header.
  2. 2 · assignThe control plane picks a worker pod, started in advance, that has room for the agent.
  3. 3 · restoreThe node helper on that machine loads the agent's snapshot (its saved memory and files) onto the worker pod.
  4. 4 · runThe agent handles the request inside its own sandbox, alongside other agents on the same worker pod.
  5. 5 · suspendWhen the agent is idle, its owner or platform asks Agent Substrate to suspend it, saving a snapshot and freeing its place on the worker pod.

An agent takes up room on a worker pod only from resume to suspend.

4 · Where it's used
WhoWhat they askWhat it works with
Coding-agent product team“Can each user's coding session keep its files between visits?”Suspended agents whose snapshots keep their files
Platform team“How do we run thousands of chat agents without one pod each?”A shared pool of worker pods started in advance
Tools team“Can our MCP servers stay sandboxed and ready without running all day?”Model Context Protocol (MCP) servers deployed as agents
5 · What it solves, and what it doesn't
solves
  • It packs many agents onto few pods; the project's demo runs about 250 agents, each keeping its own memory and files, on 8 pods.
  • Because a snapshot holds memory as well as files by default, a resumed agent usually picks up where it left off.
  • It runs agents from any framework as standard container images, with no Agent Substrate library to adopt.
  • When the egress gateway injects an agent's API keys, a hijacked agent has none to leak, and its snapshots hold none either.
doesn't solve
  • It does not build agents; it only runs them.
  • Your application, not Agent Substrate, signs users in and decides which agents each user may reach.
  • Storing and moving many snapshots creates a new data-management problem.
  • You still operate its control plane and PostgreSQL state store.
6 · Go deeper

Sources used

This explainer is written in original language. The links below support its factual claims.

  1. repoAgent Substrate: the core system (README), Agent Substrate project on GitHub · read 5 Nov 2026
  2. repoAgent Substrate Architecture, Agent Substrate project on GitHub · read 5 Nov 2026
  3. repoAgent Substrate Glossary, Agent Substrate project on GitHub · read 5 Nov 2026
  4. repoSubstrate Security, Agent Substrate project on GitHub · read 5 Nov 2026
  5. repoEgress credential injection, Agent Substrate project on GitHub · read 5 Nov 2026
  6. repoRequest Parking (atenet router), Agent Substrate project on GitHub · read 5 Nov 2026
  7. official[Sandbox] Agent Substrate, Cloud Native Computing Foundation (CNCF) · read 5 Nov 2026
  8. articleWhy sandboxing your agent is not enough, Cloud Native Computing Foundation (CNCF) · read 5 Nov 2026
  9. officialAgent Executor: Google's distributed agent runtime, Google Cloud · read 5 Nov 2026
  10. docsPods, Kubernetes · read 5 Nov 2026
  11. docsKubernetes Components, Kubernetes · read 5 Nov 2026
  12. repoRelease v1.0.0-rc.3, Agent Substrate project on GitHub · read 5 Nov 2026
  13. official[PROJECT ONBOARDING] Agent Substrate, Cloud Native Computing Foundation (CNCF) · read 5 Nov 2026
  14. docsAgent Substrate on GKE, Google Cloud · read 5 Nov 2026
  15. repoAgent Substrate API Guide, Agent Substrate project on GitHub · read 5 Nov 2026
  16. officialCNCF Sandbox Projects, Cloud Native Computing Foundation (CNCF) · read 5 Nov 2026