Skip to content

Creator & ArchitectMarch 2026

Google Workspace CLI (gws)

I created the Google Workspace CLI at Google in Rust, with generated API methods, agent skills, and security controls.

GitHub stars
32,000+
on Hacker News
#1
npm downloads since March
about 4.2 million
downloads in the last month
around 222,000

Source: googleworkspace/cli on GitHub and @googleworkspace/cli on npm.

What I owned

I created and architected it at Google in March 2026 and am its top contributor. I built it in Rust, almost entirely with AI coding agents, and designed its security controls: prompt-injection defense, path traversal prevention, multi-account credential isolation, and TOCTOU mitigation.

Purpose

Developers and AI agents needed one consistent way to work across Google Workspace APIs. gws generates 700+ API methods at runtime from Google’s Discovery Documents, so new API features show up without hand-written wrappers. It returns structured JSON, ships structured agent skills as SKILL.md files, and can run as an MCP server.

Launch

There was no formal launch. It hit #1 on Hacker News within days of going public and reached tens of thousands of users in its first few days.

Who it was for

Developers automating Workspace from the terminal or CI, teams building AI agents that need Workspace access, and people running personal agents like OpenClaw that act on their own Gmail, Calendar, and Drive. Because the commands are generated and the JSON is structured, a personal agent can use gws without custom integration work.

Impact

32,000+ GitHub stars and about 4.2 million npm downloads since March, with around 222,000 in the last month. It still powers Meta Muse’s integration with Google Workspace APIs, and I estimate it has reached millions of end users through the tools and agents built on it. I also wrote You Need to Rewrite Your CLI for AI Agents and The MCP Abstraction Tax about the design lessons.

Field mask from the design essay

gws drive files list --params '{"fields": "files(id,name,mimeType)"}'