# Google Workspace CLI

> Command-line tool and agent skills for managing Google Workspace services

Google Workspace CLI is an open-source Rust-based command-line tool dynamically built from the Google Discovery Service to manage Google Drive, Gmail, Calendar, Sheets, Docs, and Admin. It is specifically structured for both terminal users and AI agents, enabling automated Workspace actions and integration with agent frameworks via MCP and skills directories.

Website: https://github.com/googleworkspace/cli

## What it is for

- Automate Google Sheets, Docs, and Drive workflows from the terminal or bash scripts
- Equip AI agents with native capabilities to search Gmail, schedule Calendar events, or edit documents
- Manage and query Google Workspace services using standard OAuth2 or service account credentials

## Features

- Dynamic command registration generated directly from the Google Discovery API
- Built-in support for AI agent integration, skills.sh packages, and MCP daemons
- Covers core Workspace apps including Gmail, Drive, Calendar, Sheets, Docs, Chat, and Admin
- OS keychain integration for authentication on macOS and Windows alongside token-based auth
- Cross-platform distribution via npm packages, GitHub releases, and precompiled Rust binaries

## Pricing

Open source. Free and open source (Apache 2.0)

## Details

- Type: Web app
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Command line, macOS, Linux, Windows
- For: Developers, system administrators, and engineers building autonomous AI agents.
- Alternative to: gdrive, GAM
- Tags: google workspace, cli, ai agents, rust, automation, mcp

## Why it was saved

- [@rauchg, 5 March 2026](https://x.com/rauchg/status/2029356560494018956): Lets agents and terminal users automate Workspace tasks; installable with npm and via the skills.sh skills directory.

## Related

- [agent-browser](https://xiry.app/resources/agent-browser): Browser automation CLI and engine purpose-built for AI agents (GitHub repo, Open source)
- [API Anything](https://xiry.app/resources/api-anything): Turn websites into plain HTTP APIs for AI agents to call directly. (GitHub repo, Open source)
- [MCP + Zapier: AI-Powered Automation Workflow](https://xiry.app/resources/mcp-zapier-ai-powered-automation-workflow): Pattern for using Model Context Protocol to trigger Zapier multi-app automations (Tip, Free)
- [Obscura](https://xiry.app/resources/obscura): Lightweight Rust headless browser for AI agents and web scraping (GitHub repo, Open source)
- [You Need to Rewrite Your CLI for AI Agents](https://xiry.app/resources/you-need-to-rewrite-your-cli-for-ai-agents): Architectural guide for designing command-line tools tailored for AI agent execution (Article or course, Free)
- [Firecrawl](https://xiry.app/resources/firecrawl-1984): Turn websites and documents into clean, LLM-ready markdown or structured data. (Website, Freemium)

Updated 10 October 2026. Page: https://xiry.app/resources/google-workspace-cli

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
