Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)6.3k · #14369

google-agents-cli-deploy

Was er macht

Dieser Skill führt durch die Bereitstellung eines KI-Agenten in der Google Cloud mit dem agents-Kommandozeilentool. Er ist für Entwickler gedacht, die ihren Agenten produktiv laufen lassen wollen, mit den richtigen Dienstkonten und Rollback-Schritten.

Wann du ihn nutzt

  • ✓Wenn du deinen Agenten in der Google Cloud bereitstellen willst.
  • ✓Wenn du eine CI- und CD-Pipeline für einen Agenten einrichten musst.
  • ✓Wenn eine Bereitstellung fehlgeschlagen ist und du Hilfe bei der Fehlersuche brauchst.

Link zum Skill

https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-deploy/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-deploy/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Stell meinen ADK-Agenten auf Cloud Run bereit, richte die Secrets ein und sag mir, wie ich zurückrolle, falls etwas schiefgeht.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill führt durch die Bereitstellungsschritte mit dem agents-Kommandozeilentool, das die Infrastruktur-Einrichtung übernimmt. Außerdem gibt er Hinweise zu Dienstkonten, Rollback und den weiteren Zielen, die die Beschreibung nennt.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Deployment Guide

Requires: agents-cli (uv tool install google-agents-cli) — install uv first if needed.

Prefer using the agents-cli commands throughout this guide — they wrap Terraform, Docker, and deployment into a tested pipeline. If your project isn't scaffolded yet, see /google-agents-cli-scaffold to add deployment support first.

Reference Files

For deeper details, consult these reference files in references/:

  • cloud-run.md — Scaling defaults, Dockerfile, session types, networking
  • agent-runtime.md — container-based deploy, unified FastAPI app, the /api passthrough, Terraform resource, deployment metadata, CI/CD differences
  • gke.md — GKE Autopilot cluster, Kubernetes manifests, Workload Identity, session types, networking
  • terraform-patterns.md — Custom infrastructure, IAM, state management, importing resources
  • batch-inference.md — BigQuery Remote Function trigger; for Pub/Sub / Eventarc on ADK see /google-agents-cli-adk-code
  • cicd-pipeline.md — Full CI/CD pipeline setup, infra cicd flags, runner comparison, WIF auth, pipeline stages
  • testing-deployed-agents.md — Testing instructions per deployment target, curl examples, load tests
  • cmek.md — Customer-managed encryption keys on Agent Runtime in Gemini platform: key grants, deploy --key for dev, Terraform edits for staging/prod

Observability: See the /google-agents-cli-observability skill for Cloud Trace, prompt-response logging, BigQuery Analytics, and third-party integrations.


Deployment Target Decision Matrix

Choose the right deployment target based on your requirements:

Criteria Agent Runtime Cloud Run GKE
Scaling Managed auto-scaling (configurable min/max, concurrency) Fully configurable (min/max instances, concurrency, CPU allocation) Full Kubernetes scaling (HPA, VPA, node auto-provisioning)
Networking VPC-SC and PSC-I supported (private VPC connectivity via network attachments) Full VPC support, direct VPC egress, IAP, ingress rules Full Kubernetes networking
Session state Sessions in Gemini platform (ADK wires VertexAiSessionService automatically) In-memory (dev), Cloud SQL, or a managed sessions backend In-memory (dev), Cloud SQL, or a managed sessions backend
Batch/event processing Trigger endpoints reachable via the Agent Runtime /api passthrough Native trigger endpoints (Pub/Sub, Eventarc); ADK: see /google-agents-cli-adk-code Custom (Kubernetes Jobs, Pub/Sub)
Cost model vCPU-hours + memory-hours (not billed when idle) Per-instance-second + min instance costs Node pool costs (always-on or auto-provisioned)
Setup complexity Lower (managed, purpose-built for agents) Medium (Dockerfile, Terraform, networking) Higher (Kubernetes expertise required)
Best for Managed infrastructure, minimal ops Custom infra, full networking control Full Kubernetes control

Ask the user which deployment target fits their needs. Each is a valid production choice with different trade-offs.

All three targets are container-based, so any language works.

Product name mapping: users may say "Agent Engine", "Vertex AI Agent Engine", or "Agent Runtime"; all mean Agent Runtime. Use --deployment-target agent_runtime.

Ambient / scheduled / event-driven agents (ADK projects): ADK's trigger_sources registers /apps/{app}/trigger/* endpoints on the same FastAPI app for all targets. On Cloud Run / GKE these are public HTTP routes you point a Pub/Sub push subscription or Eventarc trigger at; on Agent Runtime the same routes are reachable through its /api passthrough (e.g. .../reasoningEngines/v1/{resource}/api/apps/{app}/trigger/pubsub). Cloud Run remains the simplest target for unauthenticated trigger sources. See /google-agents-cli-adk-code (references/adk-python.md, section "12. Event-Driven / Ambient Agents") for the trigger_sources pattern.

OAuth / user consent agents: Use Agent Runtime, registered with Gemini, for agents that need OAuth 2.0 user consent (e.g., accessing Google Drive, Calendar, or other user-scoped APIs). Cloud Run does not currently support managed OAuth flows. For a worked ADK example, look up OAuth user consent in the topic index in /google-agents-cli-adk-code → `referenc

Häufige Fragen

Welche Bereitstellungsziele sind abgedeckt?

Die Beschreibung umfasst Agent Runtime, Cloud Run und GKE.

Muss ich vorher etwas installieren?

Ja, er braucht das agents-Kommandozeilentool, und schlägt bei Bedarf vor, zuerst uv zu installieren.

Deckt er CI und CD ab?

Ja, er deckt die Einrichtung einer CI- und CD-Pipeline ab.

Details

Originalbeschreibung des Autors

This skill should be used when the user wants to "deploy an agent", "deploy my ADK agent", "set up CI/CD", "configure secrets", "troubleshoot a deployment", or needs guidance on Agent Runtime, Cloud Run, or GKE deployment targets, or binding an agent to an Agent Gateway. Covers deployment workflows, service accounts, rollback, and production infrastructure. Applies to any framework agents-cli deploys (ADK, LangChain, ...). Part of the agents-cli skills suite. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), evaluation (use google-agents-cli-eval), or project scaffo

repo: google/agents-cli

Beliebtheit

GitHub-Sterne
6.3k
Platz im Ranking
#14369
Lizenz
Apache-2.0
Aktualisiert
27.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills