operations / skill

Google Workspace CLI (gws)

A command-line tool for Google Workspace APIs such as Drive, Gmail, Calendar and Sheets, with structured JSON output and agent skills.

At a glance

Purpose
A command-line tool for Google Workspace APIs such as Drive, Gmail, Calendar and Sheets, with structured JSON output and agent skills.
Runs in
Local agent with shell
Operating systems
macOS, Linux
Needs
Runtime: Not stated; Needs internet: Yes; Needs accounts or API keys beyond your agent: Yes
Files and data
Reads files: Yes; Writes files: Yes; Sends data to other services: Yes
Tool type
Skill
Delivery
From GitHub
Version
Latest on the main branch
Access
Code on GitHub
Compatibility
According to the README: pre-built binaries by operating system and architecture, an npm package, building from source with cargo, a Nix flake, and Homebrew on macOS and Linux. For agents, it describes skills installed with the skills tool, a copy or symlink setup for OpenClaw, and a Gemini CLI extension. The README describes authentication through interactive login, exported credentials, a service account or a pre-obtained access token.
External costs
The repository is Apache-2.0 licensed and the README states no pricing. It lists a Google Cloud project as a prerequisite and mentions an environment variable for the project used for quota and billing. The README describes a Google Cloud Model Armor integration but gives no prices for it. Your coding agent or model provider may charge for usage.
Permissions
The README describes access through your Google account credentials and selected OAuth scopes. The README says the Gemini CLI extension gives agents direct access to gws commands and Workspace skills and automatically inherits terminal credentials. The README shows global npm installs and OpenClaw skill copies or symlinks under ~/.openclaw/skills/. The README says OpenClaw can install the CLI through npm when it is missing. The README describes configuration and credential files under ~/.config/gws, OS-keyring access or a file-backed encryption key, and unmasked credential export for headless use. The README says authentication setup creates a Cloud project and enables APIs, and describes browser automation for account selection and OAuth consent. The README lists commands for messages, uploads, events and document or spreadsheet writes, watchers for Gmail and Workspace events, and replacement of all files in an Apps Script project with local files.
Usage terms
Apache License 2.0, as stated in the repository. See its LICENSE file for the exact terms.

Code on GitHub

googleworkspace/cli

Apache-2.0

Rust31,414 stars1,878 forksLast pushed 6 Oct 2026 UTC

Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

Topics: agent-skills ai-agent automation cli discovery-api gemini-cli-extension google-admin google-api

Public GitHub data fetched · 0 days old

Skill folders in this repository (95)

Folders that contain a SKILL.md file, from GitHub's file list on .

View on GitHub ↗

What it does

gws is a command-line tool for Google Workspace APIs with accompanying agent skills. The README says it reads Google's Discovery Service at runtime to build commands dynamically. The README names Drive, Gmail, Calendar, Sheets, Docs and Chat and describes structured JSON output.

The README lists helper commands prefixed with + for jobs including Gmail messages, spreadsheet rows, Drive uploads, calendar agendas and standup reports. The README describes --dry-run for previewing requests and a Model Armor integration for scanning API responses for prompt injection.

The README describes API skills, workflow helpers and recipes, with installation through the skills tool, an OpenClaw setup or a Gemini CLI extension. The README says this is not an officially supported Google product and warns of breaking changes before v1.0.

Who it is for

People who work with Google Workspace from a terminal, scripts or an AI coding agent.

Example tasks

List recent Drive files with gws drive files list --params '{"pageSize": 10}'
Show the calendar agenda with gws calendar +agenda
Get a standup summary of today's meetings and open tasks with gws workflow +standup-report
Inspect a method's request and response schema with gws schema drive.files.list
Create a spreadsheet with gws sheets spreadsheets create --json '{"properties": {"title": "Q1 Budget"}}'

Getting started

According to the README, the recommended install is the pre-built binary for your OS from GitHub Releases, placed in your PATH. It also lists npm install -g @googleworkspace/cli, building with cargo, a Nix flake and brew install googleworkspace-cli. Then run gws auth setup and gws auth login. For the agent skills, the README gives npx skills add followed by the repository address, and a Gemini CLI extension install after gws auth setup. The README has the exact commands.

Limitations

The README lists a Google account with Workspace access and a Google Cloud project for OAuth credentials as prerequisites. It lists Node.js 18+ for npm installation, and offers pre-built binaries, building with cargo, a Nix flake and Homebrew on macOS and Linux. The README says gws auth setup requires gcloud, with manual OAuth setup as an alternative. For testing-mode OAuth, the README requires adding your account as a test user and warns that the recommended scope preset exceeds the approximately 25-scope limit; it suggests selecting services with gws auth login -s drive,gmail,sheets. The README says this is not an officially supported Google product and warns of breaking changes before v1.0. The repository can change at any time; check its README before you install.

Data practices

The README says commands call Google Workspace APIs and return structured JSON. It says the Discovery document and your account timezone are cached for 24 hours, and that logging to stderr or JSON log files is off by default. The README describes sending prompts or responses through Google Cloud Model Armor templates for sanitization, including scanning API responses for prompt injection. It lists GOOGLE_WORKSPACE_CLI_SANITIZE_MODE as warn by default, with block as an alternative. The README does not describe telemetry. What your coding agent and model provider receive depends on what the agent reads with the tool.

Community experience

Not rated yet

Sign in to share your experience.

Comments 0

No comments yet.

Sign in to comment

Report a listing concern