Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

apigee-agent-gateway-governance

Skill by google

Builds an Apigee proxy that a Google Cloud Agent Gateway calls as an ext-proc callout on an agent's LLM traffic. It meters token usage per model, extracts caller identity, and can apply Model Armor screening or a semantic cache. It is for teams governing agent model egress through Apigee.

  • Score 93
  • 26k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install apigee-agent-gateway-governance

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/apigee-agent-gateway-governance ~/.claude/skills/apigee-agent-gateway-governance

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install apigee-agent-gateway-governance in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The apigee-agent-gateway-governance skill builds an Apigee API proxy that a Google Cloud Agent Gateway calls as an ext-proc (Service Extension) callout. The proxy is inspect-only and has no backend. It inspects the LLM request and response the gateway hands it and returns a verdict. It can meter token usage per model, extract caller identity, and apply Model Armor prompt screening or a semantic cache.

The skill has a prod mode, driven by one input file, and a dev mode that applies documented defaults and shows a plan for approval before changes. It runs the Apigee-side steps through a deploy script and checks the template with a compile script. It is for teams wiring Apigee in as an AI gateway behind an Agent Gateway, or diagnosing a callout proxy that returns no verdict. It does not route traffic to backends, govern tool or MCP calls, or create the Agent Gateway itself.

Written from the project's SKILL.md and checked against it.

What it can do

  • Token meteringMeters token usage per model on an agent's LLM traffic.
  • Caller identityExtracts caller identity from LLM requests passing through the proxy.
  • Model Armor screeningApplies Model Armor prompt screening to the LLM traffic.
  • Semantic cacheCan apply a semantic cache to LLM requests instead of screening.
  • Proxy templateBuilds the ext-proc proxy from an AFT YAML template in assets.
  • Deploy scriptRuns the Apigee-side steps and checks the deployment comes up EXTENSIBLE.
  • Compile checkValidates the proxy template with scripts/compile_check.py.
  • Gateway connectivitySets up the gateway's route into the VPC, applying nothing without --yes.

What you need

  • gcloud SDK version 588.0.0 or later
  • Python 3 with PyYAML for the compile check
  • google-cloud-aiplatform[agent_engines,adk] version 2.1 or later, below 3
  • google-adk version 2.9 or later, below 3, if building a test agent with ADK

Try asking

  • Set up an Apigee proxy to meter token usage per model for my agent.
  • Add Model Armor prompt screening to my Agent Gateway callout proxy.
  • My Apigee callout proxy returns no verdict. Help me find out why.

Good to know

  • Inspect-only: the proxy has no backend target and does not forward traffic onward.
  • Does not govern agent calls to tools or MCP servers, choose models, or create the Agent Gateway.
  • The semantic cache keys on the prompt embedding alone, so hits can cross callers.
  • Does not cover Apigee hybrid.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/apigee-agent-gateway-governance/SKILL.md, skills/cloud/apigee-agent-gateway-governance/scripts/assess_integration.sh, skills/cloud/apigee-agent-gateway-governance/scripts/compile_check.py, skills/cloud/apigee-agent-gateway-governance/scripts/deploy_proxy.sh, skills/cloud/apigee-agent-gateway-governance/scripts/ensure_apigee_environment.sh, skills/cloud/apigee-agent-gateway-governance/scripts/ensure_gateway_connectivity.sh, skills/cloud/apigee-agent-gateway-governance/scripts/ensure_vector_search.sh, skills/cloud/apigee-agent-gateway-governance/scripts/read_debug_session.sh, skills/cloud/apigee-agent-gateway-governance/scripts/teardown_vector_search.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md26 KB
  • assets/apigee-agent-gateway-governance.example.yaml21 KB
  • assets/apigee-proxy-template.yaml9 KB
  • assets/authz-extension.example.yaml2 KB
  • assets/authz-policy.example.yaml2 KB
Show all 26 files
  • assets/feature-identity.yaml6 KB
  • assets/feature-model-armor.yaml3 KB
  • assets/feature-normalize.yaml4 KB
  • assets/feature-semantic-cache.yaml8 KB
  • assets/feature-token-enforce.yaml16 KB
  • assets/feature-token-metering.yaml15 KB
  • references/attribution.md2 KB
  • references/gotchas.md44 KB
  • references/modes.md46 KB
  • references/networking-psc.md10 KB
  • references/recipes.md9 KB
  • references/setup.md7 KB
  • references/verify.md14 KB
  • scripts/assess_integration.sh35 KB
  • scripts/compile_check.py10 KB
  • scripts/deploy_proxy.sh24 KB
  • scripts/ensure_apigee_environment.sh18 KB
  • scripts/ensure_gateway_connectivity.sh21 KB
  • scripts/ensure_vector_search.sh19 KB
  • scripts/read_debug_session.sh15 KB
  • scripts/teardown_vector_search.sh9 KB

Alternatives to apigee-agent-gateway-governance

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

apigee-agent-gateway-governance: common questions

Can this skill route requests from Apigee to a backend?

No. The source says that case needs a proxy with a target instead, including hosting an MCP server behind Apigee.

Does it govern my agent's calls to tools or MCP servers?

No. The source says not to use the skill for governing calls to tools or MCP servers.

What should I check before building?

Confirm the agent runs on Agent Runtime and set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to False in env_vars, or every invocation returns 401.

How do I install apigee-agent-gateway-governance?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is apigee-agent-gateway-governance free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is apigee-agent-gateway-governance safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to apigee-agent-gateway-governance?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

apigee-agent-gateway-governance Install

Add to stack

Loading.