Run Claude Managed Agents self-hosted sandbox work (tool calls such as bash, file operations, and skills) inside isolated Agent Substrate gVisor/microVM actors.
Warning
We are actively hardening this integration. Expect improvements and some changes.
┌───────────────────────┐ poll & ack ┌──────────────────────┐
│ Claude Managed Agents │ ◄─────────── │ Controller │
└───────────────────────┘ │ (ate-ant controller) │
▲ └───┬────────────────▲─┘
│ │ │
│ resume, POST /work, │ │ enqueue/consume
│ suspend when idle │ ▼
│ │ ┌──────────────┐
│ │ │ Valkey queue │
│ │ └──────────────┘
│ ▼
│ ┌─────────────────────┐
└────────────────── │ Actor (ate-ant run) │
tool results, └─────────────────────┘
heartbeats
See DESIGN.md for the detailed architecture, event queuing, and actor lifecycle.
-
An Agent Substrate cluster installed with the Kubernetes Secrets credential provider and with the controller's
router-clientServiceAccount allowed through the ingress router:ate-setup deploy ate-system \ --credential-provider='{"name":"k8s.io"}' \ --ingress-allowed-spiffe-ids=spiffe://cluster.local/ns/ate-ant/sa/router-client \ --snapshot-transfer-gsa-name=ate-snapshot-transfer \ --preview=PerTemplateSnapshotLocationThe
PerTemplateSnapshotLocationpreview gate lets the ActorTemplate carry its own snapshot bucket (step 5).On GKE, the snapshot transfer service account must exist with access to the snapshot bucket (
tools/setup-gcp create iamin the Substrate repository, orbenchmarks/install.sh, creates it). -
Anthropic credentials:
ANTHROPIC_API_KEY,ANTHROPIC_ENVIRONMENT_ID, andANTHROPIC_ENVIRONMENT_KEY(see Creating a Self-Hosted Environment). To use a custom Anthropic API URL, also setANTHROPIC_BASE_URL(or pass--anthropic-base-url). -
A Google Cloud project (
GOOGLE_CLOUD_PROJECT) and a GCS bucket for snapshots (gs://$GOOGLE_CLOUD_PROJECT/ate-ant/). -
Podman (or Docker) to build the
ate-antimage, and a clone of Agent Substrate at~/substrate(or setSUBSTRATE_REPO) to build the gVisor worker image.
export GOOGLE_CLOUD_PROJECT="your-gcp-project"
make imagesmake images builds the ate-ant image and the Agent Substrate gVisor worker image, pushes them to gcr.io/$GOOGLE_CLOUD_PROJECT, and ends by printing export commands for WORKER_IMAGE and ATEOM_IMAGE. Run them before continuing.
--worker-image is the ate-ant image, used by the controller and the actors. --ateom-image is the Agent Substrate gVisor worker that the WorkerPool runs.
go run ./cmd/ate-ant manifest \
--worker-image "$WORKER_IMAGE" \
--ateom-image "$ATEOM_IMAGE" | kubectl apply -f -The manifests include the Kubernetes Secrets credential provider's policy, which grants the ate-ant atespace access to the ate-ant-creds Secret only. The provider reads its policy at startup:
kubectl -n ate-system rollout restart deployment/k8s-credential-providerAgent Substrate authorizes every API call. Create the atespace and give the controller's router-client ServiceAccount the editor role, which lets it create, resume, and suspend actors:
kubectl-ate create atespace ate-ant
kubectl-ate create access-policy -a ate-ant -f - <<EOF
bindings:
- role: editor
members:
- user:system:serviceaccount:ate-ant:router-client
EOFActorTemplates live in the Substrate control plane, not in Kubernetes:
go run ./cmd/ate-ant manifest template \
--worker-image "$WORKER_IMAGE" \
--snapshots-bucket gs://$GOOGLE_CLOUD_PROJECT/ate-ant/ | kubectl-ate create actor-template --preview -f -kubectl get pods -n ate-ant
kubectl logs -n ate-ant -l app=ate-ant-controller -fexport ANTHROPIC_API_KEY="sk-ant-api..."
export ANTHROPIC_ENVIRONMENT_ID="env_..."
go run ./examples/agent --prompt "Run 'uname -a' in bash and show the output."