gcp-login

Authenticate to Google Cloud Platform using Application Default Credentials.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/brianclaridge/.claude --skill gcp-login
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-login
Source: https://github.com/brianclaridge/.claude/tree/main/skills/gcp-login
Command: npx skills add https://github.com/brianclaridge/.claude --skill gcp-login

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires loguru, and includes scripts (resource) components.

What problem does it solves?

This Skill simplifies and automates the often complex process of authenticating to Google Cloud Platform (GCP), especially in headless or containerized development environments. It ensures you're quickly and securely connected, freeing you from manual gcloud commands.

Core Features & Use Cases

  • Automated gcloud Check: Verifies that the gcloud CLI is installed and available, providing clear guidance if it's missing.
  • Project Configuration: Automatically sets your default GCP project from the GOOGLE_CLOUD_PROJECT environment variable or prompts you for manual configuration.
  • Device Code Flow: Facilitates authentication in environments without a graphical browser by providing a URL and a device code for you to complete the login securely in any browser.
  • Authentication Verification: Confirms successful login by displaying your active GCP account email and the currently configured project.
  • Optional Bucket Policy: Offers to automatically add necessary IAM policy bindings for Google Cloud Storage bucket access, streamlining setup for data-intensive tasks.

Quick Start

Use the gcp-login skill to authenticate to Google Cloud.

Frequently Asked Questions about gcp-login

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate to Google Cloud Platform from the command line?

GCP authentication via gcloud uses Application Default Credentials and a device code flow. This Skill automates the full workflow: it verifies gcloud is installed, sets your project from the GOOGLE_CLOUD_PROJECT environment variable, runs gcloud auth login with --update-adc, displays the authorization URL, and confirms successful login by showing your account email and configured project.

Can I use gcloud authentication in headless or containerized environments?

Yes. This Skill supports headless environments by using device code flow instead of requiring a graphical browser. It provides an authorization URL and device code that you complete in any browser, making it suitable for containers, remote servers, and CI/CD pipelines.

What happens if I'm already authenticated to GCP?

The Skill checks for existing authentication and respects your current session by default. Use the --force flag to re-authenticate and update Application Default Credentials even if you're already logged in.

How do I set my default GCP project during login?

The Skill automatically sets your default project from the GOOGLE_CLOUD_PROJECT environment variable if available. If that variable is not set, you can configure your project manually during the authentication flow.

Does this Skill configure Google Cloud Storage bucket access?

The Skill offers to automatically add IAM policy bindings for Google Cloud Storage bucket access after successful authentication, streamlining permission setup for data-intensive tasks without manual policy configuration.

What prerequisites do I need to use GCP authentication with gcloud?

The gcloud CLI must be installed and available on your system. The Skill verifies this at startup and provides clear guidance if gcloud is missing, ensuring you have the required tool before attempting authentication.