Quick start
From zero to a running sandbox on a local kind cluster in under five minutes.
The fastest path to a working sandbox is the one-shot kind script. It builds the runtime image, brings up a kind cluster, installs the agent-sandbox controller and router, deploys the SandboxTemplate, and runs the demo end-to-end.
Prerequisites
| Tool | Version |
|---|---|
| Docker | 20.10+ |
| Go | 1.26+ |
kubectl | 1.30+ |
kind | 0.20+ |
Run it
From the repo root:
./scripts/run-test-kind.sh
Expected output (tail):
=== single-file smoke flow ===
-- go run main.go [exit=0] -- hello from the sandbox! sum(1..100)=5050, go=go1.26.3/linux/amd64
-- ./app (re-runs the binary built in the previous call) -- hello from the sandbox! ...
=== multi-file module flow ===
-- ./app [exit=0] -- hello, Alice — from the multi-file sandbox sample
hello, Bob — ...
hello, Carol — ...
-- go test ./... [exit=0] -- ok example.com/multifile/greet 0.004s
==> PoC complete
That confirms three things end-to-end: the runtime image builds and runs, the agent-sandbox client can ship files into it via the router, and arbitrary Go programs (including multi-file modules) build and execute inside.
What just happened
The script:
- Creates a kind cluster named
agent-sandbox-poc(reused on subsequent runs). - Installs the upstream agent-sandbox controller via
kubectl apply -fagainst the v0.4.6 release manifests. - Builds the
sandbox-routerimage (Docker pulls the source straight fromgithub.com/kubernetes-sigs/agent-sandboxvia git-context). - Builds this repo’s runtime image and loads both into the kind cluster.
- Applies
manifests/base(the kustomize base — noruntimeClassNamesince kind has no sandbox runtime). - Runs
go run ./cmd/demo --flow=allagainst the cluster.
Next steps
- Install — same thing on GKE, with the addon and Artifact Registry.
- MCP server — register the server with Claude Code or Gemini CLI and drive it from an LLM.
- How it works — the design and the rationale for non-obvious choices.
To tear the kind cluster down entirely:
kind delete cluster --name agent-sandbox-poc