This walks you through the full OAuth setup for Google Workspace CLI, from creating a GCP project to installing 90+ agent skills for Gmail, Drive, Calendar, Sheets, and the rest. The guide is thorough on the annoying bits: configuring the Chat API app (required even for user context), handling the too-long OAuth URL that breaks in terminals, and dealing with Testing vs Production app status. Use this for first-time gws setup or when auth is broken. The workflow assumes you're starting from scratch and checks what's already done so you can skip ahead. Once complete, you get an authenticated CLI and all the gws skills loaded into Claude Code.

skills.sh installs
1.1K
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add jezweb/claude-skills --skill gws-setup --agent claude-code

Installs into .claude/skills of the current project.

Files

Google Workspace CLI — First-Time Setup

Set up the gws CLI (@googleworkspace/cli) with OAuth credentials and 90+ agent skills for Claude Code. Produces a fully authenticated CLI with skills for Gmail, Drive, Calendar, Sheets, Docs, Chat, Tasks, and more.

Prerequisites

  • Node.js 18+
  • A Google account (personal or Workspace)
  • Access to Google Cloud Console (console.cloud.google.com)

Workflow

Step 1: Pre-flight Checks

Check what's already done and skip completed steps:

# Check if gws is installed
which gws && gws --version

# Check if client_secret.json exists
ls ~/.config/gws/client_secret.json

# Check if already authenticated
gws auth status

If gws auth status shows "status": "success" with scopes, skip to Step 6 (Install Skills).

Step 2: Install the CLI

npm install -g @googleworkspace/cli
gws --version

Step 3: Create a GCP Project and OAuth Credentials

The user needs to create OAuth Desktop App credentials in Google Cloud Console. Walk them through each step.

3a. Create or select a GCP project:

Direct the user to: https://console.cloud.google.com/projectcreate

Sponsors

Details

Repository
github.com/jezweb/claude-skills
Categories
Backend & APIs, Security, AI & Agent Building, Debugging, Cloud & Infrastructure, CLI & Terminal, Office & Documents
First seen
May 16, 2026

More from jezweb/claude-skills

All 166
1binance avatarsub-accountbinance/binance-skills-hubBinance Sub-account request using the Binance API. Authentication requires API key and secret key.1.1Kskills.sh installs
2azurecosmosdb avatarcosmosdb-best-practicesazurecosmosdb/cosmosdb-agent-kitAzure Cosmos DB performance optimization and best practices guidelines for NoSQL, partitioning, queries, and SDK usage. Use when writing, reviewing, or refactor1.1Kskills.sh installs
3vtex avatarpayment-pci-securityvtex/skillsApply when handling credit card data, implementing secureProxyUrl flows, or working with payment security and proxy code. Covers PCI DSS compliance, Secure Prox1.1Kskills.sh installs
4tencentcloudbase avatarai-model-wechattencentcloudbase/skillsUse this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, 企业微信小程序, wx.cloud apps). Features generateText and streamText with callbacks (onText, onE1.1Kskills.sh installs
5xquik-dev avatarx-twitter-scraperxquik-dev/x-twitter-scraperUse Xquik for X/Twitter REST, MCP, SDKs, search, filtered exports, monitoring & approved publishing. Not affiliated with X Corp. Trigger for X API alternatives,1.1Kskills.sh installs
6binance avatarsimple-earnbinance/binance-skills-hubBinance Simple-earn request using the Binance API. Authentication requires API key and secret key.1.1Kskills.sh installs