Govern your agents

Gemini Enterprise Agent Platform provides a full suite of capabilities for the complete agentic development lifecycle, to help agent developers and enterprises Build, Scale, Govern, and Optimize their agentic applications.

Governance provides the framework for discovering, securing, and auditing AI agents and their underlying infrastructure at scale—both in Google Cloud and on Kubernetes clusters outside of Google Cloud using Agent Gateway for cross-cloud (Limited Preview). As organizations deploy complex agentic workflows, the Govern suite of capabilities serves as the centralized command center for administrators and security teams to maintain oversight.

Agent Platform governance ecosystem.
Agent Platform governance ecosystem (click to enlarge).

Core governance components

The following Agent Platform components work together to provide a unified agent governance architecture:

  • Agent Identity (Who made the request?): Assigns a unique, secure ID (a SPIFFE ID) to each agent. This identity acts as the agent's digital signature for authentication, access control, and auditing.

    Agent identities are secured by default with Context-Aware Access which enforces end-to-end cryptographic authentication by using mTLS and DPoP.

  • Agent Registry (What destinations are approved?): Acts as the central directory for all approved agents, tools, Model Context Protocol (MCP) servers, and endpoints (such as essential Google Cloud APIs) in your organization. Agent Gateway uses this directory to check permissions before allowing connections.

  • Policies (What actions are permitted?): Lets you implement rich sets of agentic security and governance policies that control which agents can reach specific resources and what content is allowed to pass through:

    • IAM Unified Access Policies: Access rules that link an agent's identity to approved tools and endpoints in Agent Registry. By default, all connections are blocked unless an explicit IAM policy grants access.
    • Model Armor: Content security filters attached to gateways. Model Armor scans user prompts and tool responses in real time to block prompt injection attacks, sensitive data leaks, and harmful content.
    • Semantic governance policies: Rules written in plain language that control how agents use tools. They enforce business rules at runtime to prevent agents from taking unintended actions, such as running unsafe combinations of tools.
    • Token management policies: Policies that monitor and attribute large language model (LLM) token usage, and enforce shared token budgets across your agents and applications to prevent runaway token consumption and unexpected cost spikes.
    • Custom authorization engines: Custom authorization extensions that let you delegate authorization decisions to third-party systems by using Service Extensions.

    Internally, all of these policy types are enforced by using authorization policies or extension bindings managed through Service Extensions.

  • Agent Gateway (Where are policies enforced?): Serves as the main entry and exit point for network traffic between clients-to-agents and agents-to-anywhere, and applies security and governance policies to all traffic passing through the gateway. To learn more, see How Agent Gateway enforces policies. You can also extend governance to Kubernetes clusters outside of Google Cloud by using Agent Gateway for cross-cloud (Limited Preview).

  • Agent observability: Agent Gateway generates observability telemetry for all agent interactions at the network layer and exports it to Agent Observability to provide you with a comprehensive understanding of agent actions.

Apigee and Agent Gateway in your architecture

Use Agent Gateway as the default governance control point for agents built on Agent Platform. When you need enterprise API management, REST-to-MCP translation, or cross-provider model routing, add Apigee. Designing these layers together creates a complete AI gateway solution across agents, APIs, and models while helping you avoid redundant proxies, extra network hops, and fragmented security controls.

Each gateway solves distinct problems at different architectural boundaries:

  • Agent Gateway: Use Agent Gateway for governed agent outbound access to LLMs, Model Context Protocol (MCP) servers, tools, and other agents. You can also use Agent Gateway for governed client access on supported deployment models. With Agent Gateway, you verify SPIFFE-based agent identities, control access to resources in Agent Registry, and enforce IAM and semantic governance policies. You also screen prompts with Model Armor and restrict outbound network paths using VPC network controls, Secure Web Proxy for Google Kubernetes Engine (GKE) and Cloud Run deployments, and VPC Service Controls.

  • Apigee: Use Apigee to manage APIs and AI traffic across internal, partner, multicloud, and on-premises ecosystems. You can expose existing REST APIs as MCP tools without rewriting backend code, and dynamically route and cache LLM traffic across providers. Apigee also enforces token and request quotas, mediates legacy backend credentials, and supports developer portals and monetization.

The following table compares Apigee and Agent Gateway across core architectural dimensions:

Dimension Apigee Agent Gateway
Primary traffic boundary Enterprise, partner, and multicloud API proxy management; REST-to-MCP exposure; and cross-provider model routing Agent Gateway for governed agent outbound access across all supported runtimes, and Agent Gateway for governed client access on supported runtimes
Protocols REST, gRPC, SOAP, GraphQL, MCP (JSON-RPC and REST-to-MCP proxies), and Server-Sent Events (SSE) MCP, Agent-to-Agent (A2A), REST, gRPC, and SSE
Identity and access control API keys, OAuth 2.0, JSON Web Tokens, mTLS, and backend credential mediation for external or legacy systems Workload-bound Agent Identity, Identity-Aware Proxy, and IAM Unified Access Policies
Content and policy inspection Quotas, SpikeArrest, payload transformation, threat protection, per-tool MCP product filtering, and Model Armor sanitization Model Armor screening, natural-language semantic governance policies, VPC and VPC Service Controls outbound controls, Secure Web Proxy for GKE and Cloud Run deployments, and custom authorization extensions
Model routing and token governance Cross-provider OpenAI-compatible routing and failover, Vector Search-backed semantic caching, PromptTokenLimit, and LLMTokenQuota Allow and deny access policies for registered model endpoints. Token management policies are in early preview; request early preview access.
Catalog and discovery Apigee developer portal and Apigee API hub, which can sync MCP metadata to Agent Registry Agent Registry for centrally approved agents, MCP servers, tools, skills, and endpoints

When to use Agent Gateway, Apigee, or both

Choose the topology that meets your security and protocol requirements:

  • Start with Agent Gateway alone when your primary goal is to govern agents on Agent Platform, GKE, Cloud Run, or cross-cloud Kubernetes clusters. Agent Gateway provides workload-bound agent identities, IAM and semantic governance policies, Model Armor screening, and VPC Service Controls outbound network controls.

  • Add or integrate Apigee when you need any of the following capabilities:

    • Turn existing REST APIs into MCP tools: Expose enterprise APIs as remote MCP servers without rewriting backend services. You can enforce per-tool API product quotas and SpikeArrest policies, and sync tool metadata from Apigee API hub into Agent Registry.
    • Dynamic model routing and semantic caching: Route OpenAI-compatible prompts across Gemini and third-party model providers with automatic fallback. You can also reduce LLM cost and latency with Vector Search-backed semantic caching, or enforce token limits.
    • Public API frontends and legacy authentication mediation: Productize, secure, or monetize external and partner-facing endpoints, including multi-agent API facades. Apigee also helps manage developer portals, transform payloads, and mediate OAuth 2.0 and API-key credentials for non-Google Cloud backends.

Sample architectural patterns

The following patterns show how to combine Agent Gateway and Apigee without adding unnecessary proxy hops:

  • Public or partner API frontend with governed agent outbound access: Use Apigee at the public or partner boundary to manage developer onboarding, quotas, monetization, and multi-agent API routing. For simpler frontends, use Application Load Balancer and Google Cloud Armor. Place Agent Gateway for governed agent outbound access on the agent's outbound path to enforce Agent Identity and govern calls to LLMs, MCP servers, tools, and downstream agents.

  • Outbound agent calls to Apigee APIs and MCP tools: Expose existing enterprise REST APIs as MCP tools in Apigee, and sync them into Agent Registry through Apigee API hub. Route outbound agent calls through Agent Gateway for governed agent outbound access to those endpoints. For cross-project Shared VPC setups, route private outbound traffic through a Private Service Connect network attachment. See Set up VPC connectivity.

  • Apigee policy enforcement without a second proxy hop: Connect the Apigee extension processor as an authorization extension on Agent Gateway to evaluate traffic without forwarding requests through a second proxy. This integration applies to AGENT_TO_ANYWHERE outbound gateways in the same region as your Apigee instance; client-to-agent gateways support only one CONTENT_AUTHZ policy and no other service extensions. You can apply semantic caching, token limits, SpikeArrest, quotas, credential verification, or payload extraction inside a no-target extensible proxy in a dedicated extension-processor environment. Apigee evaluates intercepted traffic over Private Service Connect and returns a verdict directly to Agent Gateway.

  • Cross-provider model routing behind Agent Gateway: Route outbound agent model calls through Agent Gateway into an inline Apigee API proxy configured with model routing policies when you need cross-provider dynamic model routing. Agent Gateway enforces agent identity and allow policies, while Apigee handles OpenAI-compatible payload translation, semantic caching, and automatic provider failover across Gemini and third-party models. Enforce Model Armor at one layer only, either on Agent Gateway or in Apigee, to avoid scanning prompts twice.

Recommended order of configuration

To ensure a smooth deployment process, we recommend that you follow this sequence when setting up a governed Agent Platform environment:

  1. Provision Agent Identities: Provision workload identities (SPIFFE IDs) for your agents. For instructions, see Agent identities.

  2. Register destinations in Agent Registry: Register target tools, MCP servers, endpoints, and agents in Agent Registry. If you expose REST APIs as MCP tools in Apigee, you can sync MCP metadata from Apigee API hub into Agent Registry, or register an inline Apigee API proxy endpoint. For instructions, see Agent Registry.

  3. Configure IAM policies: Define IAM access policies that grant agent identities (SPIFFE IDs) access to essential platform APIs and your registered destinations. For instructions, see Configure IAM access policies.

  4. Configure Model Armor templates: Set up content security templates to inspect prompt payloads and tool responses for prompt injections, jailbreaks, and sensitive data leaks. For instructions, see Configure Model Armor.

  5. Configure Semantic governance policies: Define natural language constraints that regulate tool usage and prevent unsafe tool combinations at runtime. For instructions, see Configure Semantic governance policies.

  6. Deploy Agent Gateway: Deploy Agent Gateway to begin intercepting traffic. If you plan to connect the Apigee extension processor, deploy an AGENT_TO_ANYWHERE gateway in the same region as your Apigee instance. For instructions, see Set up Agent Gateway.

  7. Optional: Connect the Apigee extension processor: If you want Apigee policies on outbound agent traffic without an inline proxy hop, configure your extension-processor environment and no-target proxy in Apigee. Then connect Agent Gateway over Private Service Connect and private DNS, and attach the AuthzExtension and AuthzPolicy resources as described in Connect the Apigee extension processor to an Agent Gateway.

  8. Verify traffic and monitor enforcement: Confirm end-to-end traffic flow, including starting an Apigee debug session if using the extension processor. If you enabled any of the access control mechanisms in audit mode, query Cloud Logging to generate a consolidated "would have been blocked" report before transitioning your policies to active enforcement. For instructions, see Audit dry-run policy violations across controls.

What's next

The following pages provide detailed information about the core governance capabilities of Agent Platform.

Agent Registry, safety, and sharing

Overview

Agent Registry is a centralized catalog that lets you store, discover, and govern servers, tools, and AI agents in Google Cloud.

Overview

Agent identity allows agents to securely authenticate to cloud resources, endpoints, and other agents, acting as themselves or on behalf of the end user.

Guide

Learn how to share an agent.

Guide

Ensure your agents are safe and reliable using Google Agent Platform.

Guide

View real-time relationships and traffic flows across all agents and MCP servers known to Agent Registry.

Policies

Guide

Semantic governance policies add an additional security layer to ensure agent actions match user intent and organizational constraints.

Overview

Get an overview of policies in Google Agent Platform.

Agent Gateway

Guide

Learn how to route Agent Runtime traffic through Agent Gateway for secure and governed connectivity.

Codelab

Learn how to govern agentic workloads with Agent Gateway on Gemini Enterprise Agent Platform.

Codelab

Learn about Agent Gateway egress governance for AI agents accessing Google Cloud Model Context Protocol (MCP) servers.

Codelab

Learn about Agent Gateway egress governance for AI agents accessing external MCP servers.

Codelab

Learn about Agent Gateway egress governance for AI agents accessing destinations in a VPC network.

Codelab

Learn about Agent Gateway governance for cross-project Agent Runtime agents.

Codelab

Learn about setting up private Agent Gateway egress governance for Gemini Enterprise.

Overview

Get an overview of Agent Gateway.

Guide

Learn how to delegate authorization for Agent Gateway to IAP, Model Armor, or your own custom authorization service.

Guide

Learn how to monitor Agent Gateway.

Guide

Learn how to set up an Agent Gateway.

Troubleshooting

Learn how to troubleshoot Agent Gateway connectivity.

Guide

Learn how to route Gemini Enterprise traffic through Agent Gateway.

Agent Gateway for cross-cloud

Overview

Extend Agent Platform governance, identity, and safety policies to Kubernetes clusters outside of Google Cloud.

Guide

Learn how to deploy Agent Gateway for cross-cloud on standard Kubernetes clusters.

Security

Codelab

Learn how to secure your agentic applications in the Securing Cross-Cloud Agentic AI Applications codelab.

Resource

Learn how to build secure multi-agent architectures on Google Cloud's Gemini Enterprise Agent Platform.

Guide

Learn how to view security findings.

Guide

Learn how to configure Model Armor on a gateway.

Guide

Learn how to monitor content security.

Guide

Learn how to view Model Armor spans.