GKE Agent Sandbox (Kubernetes agent-sandbox)
gke-agent-sandbox, paid only, Container isolation.
$0.109/h
No free usage the router counts. At 2 vCPU and 4 GiB the router ranks it at $0.109/h. It is used only with allowPaid on.
Terms
- Price
- $0.109/h (2 vCPU / 4 GiB, Autopilot pod rate)
- Notes
- your cluster with agent-sandbox, a warm pool and the sandbox-router
- Adapter's note
- GKE's $74.40 monthly credit covers one cluster's management fee, not pod compute. You need a cluster with agent-sandbox, a warm pool and the sandbox-router installed.
- Checked
- Nov 21, 2026 against cloud.google.com/kubernetes-engine/pricing
Cloud Run sandboxes start only from inside a Cloud Run container, so each router sandbox is one Cloud Run instance (Preview) running templates/cloud-run-sandbox, which runs commands in a sandbox with sandbox exec. Cloud Run claims gVisor, the weaker of its two generations. Azure says Container Apps Sandboxes bill like the Consumption plan but lists no sandbox meter, so its Consumption rates and free grant are used; Azure deletes a sandbox a day after it stops, paused ones included. gke-agent-sandbox runs in your own cluster: it's priced at GKE Autopilot's pod rate. On a cluster whose nodes you already pay for, set "gke-agent-sandbox": { "pricing": { "vcpuSecondUsd": 0, "gibSecondUsd": 0 } }.
The adapter
Agent Sandbox (kubernetes-sigs/agent-sandbox; GKE's "Agent Sandbox"): sandboxes as Kubernetes resources in your own cluster. A SandboxClaim takes a pod from a SandboxWarmPool; sandboxd in the pod runs commands (gRPC :9090) and moves files (REST :8080), reached through the project's sandbox-router, which you expose outside the cluster (a Gateway or LoadBalancer). It is a cloud provider here, not "your own hardware": on GKE Autopilot each sandbox pod is billed at the pod rate, which is what the pricing below uses. On a cluster whose nodes you already pay for, set its pricing to 0 in config. https://github.com/kubernetes-sigs/agent-sandbox (extensions/api/v1beta1/sandboxclaim_types.go) clients/typescript/agentic-sandbox-client (sandbox-client.ts: claim create, Ready, status.sandbox.name) sandbox-router/README.md X-Sandbox-ID/-Namespace/-Port headers; gRPC-Web transcoded to gRPC packages/sandboxd/USER_GUIDE.md, spec/process/v1/process.proto POST {k8s}/apis/extensions.agents.x-k8s.io/v1beta1/namespaces/{ns}/sandboxclaims GET …/sandboxclaims/{name} status.conditions[Ready], status.sandbox.name PATCH …/sandboxclaims/{name} spec.lifecycle.shutdownTime (merge patch) DELETE …/sandboxclaims/{name} the controller deletes the Sandbox and its pod POST {router}/process.v1.ProcessService/ExecuteWithLimits (application/grpc-web+proto) GET|PUT {router}/v1/files/{path relative to sandboxd's root} ; GET /v1/health https://cloud.google.com/kubernetes-engine/pricing (Autopilot pod vCPU and memory rates) Isolation is whatever the warm pool's template uses (gVisor on GKE Sandbox node pools, plain containers elsewhere), so it claims the weakest: container.
- Keys
AGENT_SANDBOX_K8S_API,AGENT_SANDBOX_ROUTER_URL,AGENT_SANDBOX_WARM_POOL+AGENT_SANDBOX_K8S_TOKENor Google credentials- Connects through
- Kubernetes API (SandboxClaim) + sandbox-router (gRPC-Web, REST)
- Capabilities
- Native file listing, Extend a live box
- Isolation
- Container
- Operating system
- Linux
- Longest sandbox
- no limit declared
- Longest command
- no cap declared
- Timeout
- The provider stops it at the deadline
- Billing
- Wall clock, every second it runs
- Source
- src/providers/gke-agent-sandbox.ts, and the provider’s site
const sbx = await router.create({ providers: ["gke-agent-sandbox"] });{
"providers": {
"gke-agent-sandbox": {
"freeTier": {
"kind": "none"
},
"priority": 10
}
}
}