Governance for Google Agents CLI
Google announced the Agents CLI on April 22, 2026. It is a Python CLI (uvx google-agents-cli) that scaffolds, evaluates, deploys and publishes Agent Development Kit (ADK) agents. The code is on GitHub.
It deploys to three targets:
- Agent Runtime: Google’s managed runtime. No container and no Dockerfile. Your source is packaged as a tarball and deployed to Vertex AI reasoning engines.
- Cloud Run: your container, your infrastructure.
- GKE Autopilot: your container on Google’s managed Kubernetes.
agents-cli publish also registers agents in Gemini Enterprise.
This page covers what Google ships for policy and audit, and where ACP plugs in for each target.
Short answer. ADK talks to Gemini through Google’s SDK by default, but it also supports LiteLLM:
LiteLlm(model="openai/gpt-4o"),anthropic/claude-sonnet-4,ollama_chat/llama3. That is where ACP connects. On Cloud Run and GKE you pointLiteLlmat ACP with anapi_base. On Agent Runtime, Google’s own Agent Gateway and Model Armor enforce Google’s policies, and there is no documented way to plug in your own webhook. ADK also reads MCP servers, so ACP can serve custom tools over MCP.
What Google ships
Agent Gateway
“Agent Gateway acts as the air traffic control for your agent ecosystem… enforcing consistent security policies and Model Armor protections to safeguard against prompt injection and data leakage.” Source: Introducing Gemini Enterprise Agent Platform
“It acts as the runtime enforcement point, intercepting calls to tools or other agents to enforce access control policies and support Model Armor inspection of tool calls and responses.” Source: Agents overview
This is a real inline check. What Google does not document is a way for you to plug in your own webhook. Today the Gateway enforces Google’s policies (IAM and Model Armor).
Agent Identity
“Agent Identity… ensures every agent receives a unique cryptographic ID. This creates a clear, auditable trail for every action an agent takes, mapped back to defined authorization policies.”
Agent Registry
“It captures critical metadata, including versions, frameworks (like ADK), and capabilities such as MCP tool names and annotations.”
Audit logging
Agent Runtime writes to Cloud Logging, resource type aiplatform.googleapis.com/ReasoningEngine. You decide what gets logged. A built-in Logging/user/tool_calling_count metric exists, but Google documents no ready-made per-call audit schema that records who made the call.
ADK’s own callbacks
ADK lets you attach callbacks to any Agent:
from google.adk.agents import Agent
agent = Agent(
model="gemini-2.5-pro",
tools=[...],
before_model_callback=check_model_inputs,
after_model_callback=scan_model_outputs,
before_tool_callback=approve_tool_call, # ← policy gate
after_tool_callback=scan_tool_output,
before_agent_callback=...,
after_agent_callback=...,
)
You can also set FunctionTool(..., require_confirmation=True) to ask a human first, or pass a function such as require_confirmation=needs_approval to decide in code.
These run inside your process. They are good for controls in one app. They do not give you one audit log or one policy across several agents, which is what ACP adds.
Four ways to connect ACP
Path 1: Cloud Run or GKE, through the LiteLLM proxy
Scaffolded Cloud Run and GKE projects include your own Dockerfile, so you control outbound traffic. Give ADK’s LiteLlm wrapper a custom api_base:
from google.adk.agents import Agent
from google.adk.models.lite_llm import LiteLlm
agent = Agent(
name="triage_agent",
model=LiteLlm(
model="openai/gpt-4o",
api_base="https://api.agenticcontrolplane.com/v1",
api_key=os.environ["ACP_API_KEY"],
),
tools=[...],
)
Every model call now goes through ACP. That gives you a cost record per call, rate limits, PII scanning on tool outputs, and an audit log. It scored 45/48 on our own AgentGovBench under the proxy pattern. We graded that ourselves, and the bare Agent SDK baseline is 13/48.
We recommend this path for Cloud Run and GKE. The tradeoff: Google’s default Gemini models would go through LiteLLM instead of Vertex AI, so you pay per token instead of through Google’s Gemini billing. For OpenAI, Anthropic and Ollama models, which ADK already routes through LiteLLM, nothing changes.
Path 2: ADK before_tool_callback calling ACP
If you want to keep Gemini on Vertex AI and still check tool calls with ACP, use the callback and the acp-governance Python SDK:
from acp_governance import pre_tool_use
def acp_gate(tool, args, tool_context):
allowed, reason = pre_tool_use(tool.name, args)
if not allowed:
raise PermissionError(f"[ACP] {reason}")
agent = Agent(
model="gemini-2.5-pro",
tools=[...],
before_tool_callback=acp_gate,
)
This checks each tool call against your ACP policy before it runs and records the decision. It does not see model inputs or outputs, so there is no content scan.
An ask decision comes back as a denied call here. Approve it on the console, then re-run. There is no inline approval prompt. If the gateway can’t be reached, the SDK lets the call through and logs the lapse. Don’t hand-roll the HTTP call instead. A version that only checks for deny would let an ask run.
Path 3: MCP tools
ADK reads MCP servers as tools:
import os
from google.adk.tools.mcp_tool import McpToolset, StreamableHTTPConnectionParams
tools = [
McpToolset(
connection_params=StreamableHTTPConnectionParams(
url="https://api.agenticcontrolplane.com/mcp",
headers={"Authorization": f"Bearer {os.environ['ACP_API_KEY']}"},
),
),
]
ACP can serve as the MCP backend, the same pattern Cursor uses. It works on all three deploy targets.
Path 4: Agent Runtime (managed)
Agent Runtime runs your Python source on Google’s side. Per Google’s docs, “Agent Engine has public internet access by default.” So Path 1 and Path 2 both work there with no extra setup.
One exception: inside a VPC Service Controls perimeter, outbound traffic is blocked by default. You then route it through your own proxy and Cloud NAT, and allow api.agenticcontrolplane.com (proxy, SDK and MCP calls). The same applies to Cloud Run and GKE under VPC-SC. It is a network question, not an ACP one.
What we’re watching
- A webhook you control at Agent Gateway. If Google adds a pre-tool-use webhook like Claude Code’s
PreToolUse, we will support it. Today the Gateway only enforces Google’s policies. - A2A publishing to Gemini Enterprise.
agents-cli publish gemini-enterprise --type a2aregisters agents for discovery. Control at the publish step is IAM-based today.
Install
# Set up ACP
curl -sf https://agenticcontrolplane.com/install.sh | bash
# Set up google-agents-cli
uvx google-agents-cli
On Windows, in PowerShell:
irm https://agenticcontrolplane.com/install.ps1 | iex
The ACP installer covers your local coding agents while you iterate on ADK code. It does not govern the deployed agent. For that, use one of the paths above.
Read next
- Architecture is governance: the four patterns (decorator, hook, proxy, MCP). All four apply here.
- OpenAI Agents SDK guide: the same LiteLLM
api_basepattern on a similar SDK. - AgentGovBench scenarios: what the 45/48 score tests.
Running ADK in production across Agent Runtime, Cloud Run and Gemini Enterprise? Say hi.