The independent reference for AI agent sandboxesLast reviewed
Agent Sandboxesagentsandboxes.org
Sandbox profile · Cloud provider service

Google Agent Platform Code Execution

Answer in brief

Google-managed sandbox API (formerly part of Vertex AI Agent Engine) that lets agents deployed anywhere run Python in stateful, network-isolated environments. A tightly locked-down Python tool for Google Cloud users; too constrained for coding agents.

By the Agent Sandboxes editors · Updated

Overview

Google’s managed Code Execution sandbox, now under the Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine), runs Python in gVisor-isolated containers with no network access. State persists across calls for up to 14 days, which suits conversational analysis tools.

The library set is fixed — you cannot install your own packages — and parts of the product were still labelled preview when we checked.

Notable

  • Agents do not have to run on Google Cloud to call it.
  • File I/O up to 100 MB per request or response.

Google Agent Platform Code Execution specifications

AttributeDetails
IsolationgVisor-isolated container in a Google-managed tenant project; does not inherit the calling agent’s credentials
DeploymentCloud provider service
Open sourceNo
SDKs and interfacesPython (Agent Platform SDK), REST API
Cold start (vendor claim)Docs: create and execute code “in under a second”; a cold provision can take up to 2 minutes
Max session lengthState retained up to 14 days (configurable TTL); each execution times out after 300 s
PersistenceStateful across calls for the TTL; snapshots not supported for Code Execution sandboxes
GPUNo
NetworkingNo network access from the code execution sandbox; VPC Service Controls supported
Pricing$0.085 per vCPU-hour + $0.009 per GiB-hour, rounded to the second
Free tierNot documented
ComplianceVPC Service Controls, CMEK, data residency at rest and HIPAA per Google’s Agent Platform security table
RegionsNot documented

Facts from Google Agent Platform Code Execution’s public documentation, verified November 8, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You want a no-network, gVisor-isolated Python tool
  • You need state that lasts days, not minutes
  • You are on Google Cloud and need CMEK or VPC Service Controls

Trade-offs

  • Python only, with a fixed library set
  • No network access and no snapshots
  • Launch stage partly preview

Best for: Google Cloud agents that need stateful, no-network Python execution.

Where Google Agent Platform Code Execution ranks

How Google Agent Platform Code Execution compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
Google Agent Platform Code ExecutiongVisorNoNo / No<1 s (warm)14-day stateNo / Not documentedNoPython (Agent Platform SDK), REST API
Kubernetes Agent SandboxgVisor or KataYesYes / Yes<1 s (warm pool)Not documentedYes / YesYesKubernetes CRDs, Python, kubectl
AWS Bedrock AgentCoreMicroVM (Runtime)NoNo / NoNot documentedUp to 8 hNot documented / Not documentedNoPython (AgentCore SDK), AWS SDKs, AWS CLI
Azure Container Apps dynamic sessionsHyper-V VMNoNo / NoSub-second (pooled)220 s / execNo / NoNoREST API, Azure CLI, LangChain, LlamaIndex, Semantic Kernel
OpenAI Code Interpreter & Hosted ShellVM (unspecified)NoNo / NoNot documented20 min idleNo / NoNoOpenAI Responses API, Containers API, OpenAI SDKs

Frequently asked questions

What is Google Agent Platform Code Execution?
Google-managed sandbox API (formerly part of Vertex AI Agent Engine) that lets agents deployed anywhere run Python in stateful, network-isolated environments. A tightly locked-down Python tool for Google Cloud users; too constrained for coding agents.
How does Google Agent Platform Code Execution isolate code?
Google Agent Platform Code Execution documents its isolation as: gVisor-isolated container in a Google-managed tenant project; does not inherit the calling agent’s credentials.
Is Google Agent Platform Code Execution open source?
No, Google Agent Platform Code Execution is not open source.
How much does Google Agent Platform Code Execution cost?
$0.085 per vCPU-hour + $0.009 per GiB-hour, rounded to the second Check the official pricing page for current rates.
What are the best Google Agent Platform Code Execution alternatives?

Sources

  1. docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox/code-execution-overview
  2. docs.cloud.google.com/gemini-enterprise-agent-platform/scale/sandbox
  3. cloud.google.com/vertex-ai/pricing

Cite this page

Agent Sandboxes. (2026). Google Agent Platform Code Execution. agentsandboxes.org. Last reviewed November 8, 2026. https://agentsandboxes.org/sandboxes/google-code-execution/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.