agent-substrate/substrate

Agent Substrate: the core system

What it solves

Running many autonomous agents on Kubernetes is expensive because each agent typically needs its own sandboxed environment, even when idle. Agent Substrate solves this by treating agents as stateful actors that can be suspended when idle and resumed only when needed. This allows a small pool of warm workers to support a much larger number of agents, cutting infrastructure cost while keeping strong isolation.

How it works

Substrate runs on standard Kubernetes and maps many "actors" (stateful workloads such as agents) onto a smaller pool of ready "workers". When an actor is idle, it is snapshotted out of memory, including its working memory and filesystem state. When a request arrives, the actor is restored onto any available worker in under 500ms, and the system can handle over 500 activations per second.

Every actor runs inside a dedicated sandbox — either gVisor or Cloud Hypervisor microVM — so untrusted code never touches the host directly. Networking is default-deny: actors have no inbound path except through a router, and outbound traffic goes through an egress gateway that can inject credentials outside the sandbox. Actors never hold their own API keys or tokens, so a compromised agent has nothing to exfiltrate.

Who it's for

Teams operating large fleets of AI agents on Kubernetes — whether using frameworks like LangChain, ADK, or coding tools like Claude Code — who need to run sandboxed, stateful workloads at high density without increasing infrastructure cost. It is also suitable for running MCP servers and other untrusted stateful services. Substrate is a runtime, not an SDK, so workloads don't need to be AI agents to benefit.

Highlights

  • 10x–30x oversubscription: multiplex many stateful actors onto a small pool of warm worker pods.
  • Fast resume: actors come back in less than 500ms, with more than 500 activations per second.
  • VM-grade sandboxing: every actor runs in gVisor or Cloud Hypervisor with segregated compute, network, and storage.
  • Zero credentials in the sandbox: the egress gateway injects credentials into approved outbound requests outside the sandbox.
  • Default-deny networking: no lateral actor-to-actor access, no control-plane access, and no inbound path except through the router.
  • Framework agnostic: works with ADK, LangChain, Claude Code, Codex, Antigravity, and MCP servers without SDK changes.

Related

  • Project
  • Project
  • Project
  • Project
  • Project