google-agents-cli-deploy
Fungsinya
Skill ini memandu penerapan agent AI ke Google Cloud dengan alat baris perintah agents. Skill ini ditujukan untuk pengembang yang ingin agent-nya berjalan di produksi dengan service account dan langkah rollback yang tepat.
Kapan dipakai
- βSaat Anda ingin menerapkan agent Anda ke Google Cloud.
- βKetika Anda perlu menyiapkan pipeline CI dan CD untuk sebuah agent.
- βSaat sebuah penerapan gagal dan Anda membutuhkan bantuan memecahkan masalahnya.
Link skill
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-deploy/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTerapkan agent ADK saya ke Cloud Run, siapkan secret-nya, dan beri tahu saya cara rollback jika terjadi masalah.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini memandu langkah penerapan dengan alat baris perintah agents, yang membungkus penyiapan infrastruktur. Skill ini juga memberikan panduan untuk service account, rollback, dan target penerapan lain yang tercantum dalam deskripsi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Target penerapan apa saja yang dicakup?
Deskripsinya mencakup Agent Runtime, Cloud Run, dan GKE.
Apakah saya perlu memasang sesuatu terlebih dahulu?
Ya, skill ini memerlukan alat baris perintah agents, dan menyarankan memasang uv terlebih dahulu jika diperlukan.
Apakah ia mencakup CI dan CD?
Ya, ia mencakup penyiapan pipeline CI dan CD.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 6.3k
- Peringkat
- #14369
- Lisensi
- Apache-2.0
- Diperbarui
- 27/10/2026
Komentar
- β¦
Skill lain dari repositori ini
google-agents-cli-adk-code
6.3kMembantu agent Anda menulis kode untuk agent AI dengan Google ADK, termasuk alat, callback, state, dan pola orkestrasi.
google-agents-cli-eval
6.3kMembantu agent Anda mengevaluasi agent AI dengan dataset uji dan penilaian, lalu mencari tahu mengapa jawaban gagal.
google-agents-cli-observability
6.3kMembantu agent Anda menyiapkan pelacakan, pencatatan log, dan pemantauan untuk agent AI yang sudah diterapkan di Google Cloud, agar Anda bisa melihat apa yang dilakukannya.
google-agents-cli-publish
6.3kMembantu agent Anda mendaftarkan agent AI yang sudah diterapkan ke Gemini, serta mengelola agent dan server MCP yang terdaftar di Agent Registry.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.