About Google Workspace CLI
The Google Workspace CLI, invoked as gws, is a single command line tool for working with Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin and other Workspace APIs. It produces structured JSON, which makes it handy for scripting and for AI agents, and it ships with more than 40 agent skills. The README states it is not an officially supported Google product.
Its distinctive design is that it has no fixed list of commands. At runtime it reads Google's Discovery Service and builds the command surface dynamically, so when Google adds an API endpoint or method the tool picks it up automatically. Setup needs Node.js 18 or newer for an npm install, or a prebuilt binary from GitHub Releases, plus a Google Cloud project for OAuth credentials, which the gws auth setup command can help create.
The project is Apache-2.0 licensed and written in Rust. It is under active development, and the maintainers warn to expect breaking changes before version 1.0. It suits administrators and developers who want to automate Workspace tasks from a terminal or hand the same capabilities to coding agents.
Key features
- Commands for Drive, Gmail, Calendar, Sheets and Docs
- Command surface built from Google Discovery Service
- Structured JSON output
- 40+ bundled AI agent skills
- OAuth setup helper command
- Prebuilt binaries or npm install
Good fit for
- Scripting Google Workspace administration
- Giving AI agents access to Workspace APIs
- Bulk operations on Drive and Sheets data
Google Workspace CLI: questions and answers
- What is Google Workspace CLI used for?
- Google Workspace CLI is a Rust command line tool that exposes all of Google Workspace, from Drive and Gmail to Calendar and Sheets, with JSON output and ready-made AI agent skills. It is a good fit for scripting Google Workspace administration, giving AI agents access to Workspace APIs, and bulk operations on Drive and Sheets data.
- Is Google Workspace CLI open source?
- Yes. Google Workspace CLI is open source under the Apache-2.0 licence. Its source code is on GitHub at googleworkspace/cli and is written mainly in Rust.
- Is Google Workspace CLI free?
- Yes. Google Workspace CLI is open source, so the software itself is free to use.
- What is Google Workspace CLI an alternative to?
- Google Workspace CLI is an open-source alternative to Tavily, Flourish, JW Player and Datawrapper. Other open-source alternatives to Tavily include OpenSERP, Wigolo and SearXNG.
- Is Google Workspace CLI actively maintained?
- Yes. The most recent commit to Google Workspace CLI was on 3 November 2026, and the latest release is v0.22.5, published on 31 March 2026. The project has 32k stars on GitHub, with 860 added in the last 30 days.
Open-source alternatives to Google Workspace CLI
See all
OpenSERP
Search
Self-hosted SERP API for AI, SEO & automation. Browser-rendered Google, Bing, Yandex, Baid
MITvs SerpApi★ 1.6k
Wigolo
Search
The go-to web for your AI coding agent — local-first search, fetch, crawl & research over
OSSvs Tavily★ 5.5k
SearXNG
Search
SearXNG is a free internet metasearch engine which aggregates results from various search
AGPL-3.0vs DuckDuckGo★ 39k
RAWGraphs
BI & Dashboards
A web interface to create custom vector-based visualizations on top of RAWGraphs core
Apache-2.0vs Flourish★ 9.1k
RustMailer
Email Clients & Servers
A self-hosted Email Middleware for IMAP, SMTP, Gmail API, Graph API — built for developers
OSSvs Nylas★ 521
Joget
Low-code & Internal Tools
Joget is an open source no-code/low-code application platform that combines the best of ra
OSSvs Microsoft Power Apps★ 620
SaaS alternatives to Google Workspace CLI
See all
Tavily
Search
Web search and content extraction API for AI agents
SaaS
Flourish
BI & Dashboards
Data visualization and storytelling tool for interactive charts and maps
SaaS
JW Player
Media & Streaming
Video player and hosting platform for publishers and streaming businesses
SaaS
Datawrapper
BI & Dashboards
Charting tool for creating embeddable charts, tables and maps without code
SaaS
Brave Search API
Search
Independent web index exposed through a paid search API
SaaS
Serper
Search
Google Search results API for developers and AI agents
SaaS

Nylas
Neptune Software