google-agents-cli-deploy
できること
agentsコマンドラインツールを使って、AIエージェントをGoogle Cloudにデプロイする手順を案内します。適切なサービスアカウントとロールバックの手順で、本番稼働させたい開発者向けです。
使う場面
- ✓エージェントをGoogle Cloudにデプロイしたいとき。
- ✓エージェントのCI/CDパイプラインを設定したいとき。
- ✓デプロイが失敗し、トラブルシューティングが必要なとき。
スキルのリンク
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-deploy/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ADKエージェントをCloud Runにデプロイして、秘密情報を設定してください。何かうまくいかなかった場合のロールバック方法も教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、インフラの設定をまとめるagentsコマンドラインツールを使って、デプロイの手順を案内します。サービスアカウント、ロールバック、説明に挙がっている他のデプロイ先についての指針も示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Deployment Guide
Requires:
agents-cli(uv tool install google-agents-cli) — install uv first if needed.
Prefer using the
agents-clicommands throughout this guide — they wrap Terraform, Docker, and deployment into a tested pipeline. If your project isn't scaffolded yet, see/google-agents-cli-scaffoldto add deployment support first.
Reference Files
For deeper details, consult these reference files in references/:
cloud-run.md— Scaling defaults, Dockerfile, session types, networkingagent-runtime.md— container-based deploy, unified FastAPI app, the/apipassthrough, Terraform resource, deployment metadata, CI/CD differencesgke.md— GKE Autopilot cluster, Kubernetes manifests, Workload Identity, session types, networkingterraform-patterns.md— Custom infrastructure, IAM, state management, importing resourcesbatch-inference.md— BigQuery Remote Function trigger; for Pub/Sub / Eventarc on ADK see/google-agents-cli-adk-codecicd-pipeline.md— Full CI/CD pipeline setup,infra cicdflags, runner comparison, WIF auth, pipeline stagestesting-deployed-agents.md— Testing instructions per deployment target, curl examples, load testscmek.md— Customer-managed encryption keys on Agent Runtime in Gemini platform: key grants,deploy --keyfor dev, Terraform edits for staging/prod
Observability: See the
/google-agents-cli-observabilityskill 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_sourcesregisters/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/apipassthrough (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 thetrigger_sourcespattern.
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
よくある質問
どのデプロイ先が対象ですか?
Agent Runtime、Cloud Run、GKEが対象です。
先に何かをインストールする必要がありますか?
はい。agentsコマンドラインツールが必要で、必要ならuvを先にインストールするよう勧めます。
CI/CDも対象ですか?
はい。CI/CDパイプラインの設定も対象です。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 6.3k
- ランキング
- #14369
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/27
コメント
- …
このリポジトリの他のスキル
google-agents-cli-adk-code
6.3kGoogle ADKを使って、AIエージェントのコードを書くのを支援します。ツール、コールバック、状態、オーケストレーションのパターンを扱います。
google-agents-cli-eval
6.3kデータセットと採点を使ってAIエージェントを評価し、回答が失敗した理由を見つけるのを支援します。
google-agents-cli-observability
6.3kデプロイされたAIエージェントに、トレース、ログ、監視を設定し、エージェントの動作を見えるようにするのを支援します。
google-agents-cli-publish
6.3kデプロイされたAIエージェントをGeminiに登録し、Agent Registryで登録済みのエージェントとMCPサーバーを管理するのを支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。