gcloud for Openclaw

A professional automation skill that enables AI agents to manage Google Cloud Platform resources safely using the official gcloud CLI.

felipe0liveira
v1.0.0
Mar 7, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gcloud-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gcloud-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is gcloud?

The gcloud skill provides a robust interface for interacting with the Google Cloud Platform ecosystem directly through the official gcloud CLI. It is designed to bridge the gap between AI-driven automation and cloud infrastructure management. By leveraging this skill within Openclaw Skills, developers can perform complex cloud operations ranging from resource provisioning to IAM auditing without needing to memorize vast amounts of CLI syntax.

What sets this skill apart is its dynamic approach to command execution. Rather than relying on hardcoded templates, it discovers command structures in real-time by consulting official help documentation. This ensures that the agent always uses the most up-to-date syntax and parameters supported by your specific version of the Google Cloud SDK. The skill adheres to a strict security model, inheriting your local authentication context and enforcing human-in-the-loop approvals for every operation.

gcloud Use Cases

  • Automating the provisioning and lifecycle management of Compute Engine instances.
  • Auditing and updating IAM policies or service account permissions across multiple projects.
  • Deploying containerized applications to Google Kubernetes Engine (GKE).
  • Monitoring cloud resource status and listing active billing or networking configurations.
  • Managing Cloud Storage buckets and object permissions programmatically.

How gcloud Works

  1. The skill starts by verifying the active Google Cloud account and project context using gcloud config.
  2. It identifies the necessary command group required to fulfill the user request (e.g., compute, container, iam).
  3. The agent dynamically fetches the correct command syntax by running the gcloud help command for that group.
  4. A precise CLI command is constructed based on the discovered syntax and user-provided parameters.
  5. The full command, along with the active account and project context, is presented to the user.
  6. The skill waits for explicit user approval before proceeding with execution.
  7. Once approved, the command is executed, often utilizing JSON output for precise result summarization.

gcloud Setup

To use this skill, you must have the Google Cloud CLI installed and authenticated on your local machine.

# Install the gcloud CLI if you haven't already
# Visit https://cloud.google.com/sdk/docs/install-sdk for platform-specific instructions

# Log in to your Google Cloud account
gcloud auth login

# Set your active project
gcloud config set project YOUR_PROJECT_ID

# Verify your configuration for Openclaw Skills
gcloud config list --format='text(core.account,core.project)'

gcloud Data Schema & Taxonomy

The skill interacts with GCP data through the following structures:

Component Description Data Type
Context Active GCP account and project ID JSON/String
Command Group The specific GCP service being targeted (e.g., compute) String
Help Metadata Dynamic syntax rules retrieved via --help Text
Execution Output The raw or formatted result of the CLI operation JSON/String
Approval State The user's confirmation status for a pending command Boolean

gcloud Advanced Features

  • Dynamic Command Discovery: Automatically resolves the correct syntax using help flags to prevent outdated command errors.
  • Service Account Impersonation: Supports secure workflows by allowing the agent to impersonate specific service accounts when permitted.
  • Least-Privilege Enforcement: Encourages the use of dedicated service accounts rather than broad administrative identities.
  • Programmatic Output Handling: Uses JSON formatting for complex data, enabling the AI to parse and act on cloud resource metadata accurately.
  • Environment Safety Checks: Always displays the target project and identity before execution to prevent accidental changes in production environments within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*