Google Workspace CLI for AI Agents — Email, Drive & Calendar
Let your AI agent read email, manage Drive files, schedule meetings, and automate your entire Google Workspace
Browse all CLI tools for AI agents
What your agent can do
Google Workspace is where work happens. Gmail processes 1.8 billion accounts. Google Drive stores the files. Calendar coordinates the meetings. Docs and Sheets hold the decisions. Every knowledge worker on the planet touches at least one of these services daily. The problem is that all of this runs through a browser designed for humans clicking one thing at a time.Google Workspace CLI changed that on March 2, 2026 — and 21,000 developers starred it in the first two weeks. One binary that covers every Workspace API: Gmail, Drive, Calendar, Docs, Sheets, Chat, Contacts, Tasks, Meet, Admin, and more. Your AI agent reads your unread email, searches Drive for last quarter's board deck, checks tomorrow's calendar for double-bookings, and sends a follow-up to a client. All from structured commands that return clean JSON.The architecture is what earned those stars. GWS CLI dynamically pulls endpoint definitions from Google's Discovery Service at runtime. When Google ships a new API or updates an existing one, the CLI picks it up automatically — no updates, no version bumps, no waiting. Your agent gets new capabilities the moment Google releases them.Google built a native MCP server directly into the CLI. Run `gws mcp` and any MCP-compatible AI client — Claude Desktop, Gemini CLI, VS Code — connects to your Google Workspace through the standard Model Context Protocol. No custom integration code, no proxy servers. The CLI also ships with 40+ pre-built agent skills and 50+ curated recipes for production workflows like inbox triage, document organization, and meeting scheduling.GWS CLI is pre-1.0 (v0.17.0 as of March 2026) with a rapid release cadence. Expect breaking changes between versions, but also expect fast iteration. The Google Workspace team ships weekly updates, and the community is active — the kind of velocity that turns a promising tool into an essential one.
Frequently asked questions
- Can AI agents automate Google Workspace with CLI?
- Yes. GWS CLI is purpose-built for both humans and AI agents. It includes a built-in MCP server (`gws mcp`) that any MCP-compatible client can connect to directly. The CLI ships with 40+ pre-built agent skills and 50+ recipes covering Gmail triage, Drive search, Calendar management, and cross-service workflows. All commands output structured JSON that agents parse natively. Google also integrated Cloud Model Armor to protect against prompt injection in agent pipelines.
- What Google services does GWS CLI cover?
- All of them. GWS CLI covers Gmail, Google Drive, Google Calendar, Google Docs, Google Sheets, Google Chat, Google Contacts, Google Tasks, Google Meet, Google Forms, Apps Script, and all Workspace Admin APIs. Because the CLI dynamically pulls endpoint definitions from Google's Discovery Service, new APIs become available automatically when Google releases them — no CLI updates required.
- Is GWS CLI an official Google product?
- GWS CLI is published by the googleworkspace organization on GitHub under the Apache 2.0 license. Google released it publicly on March 2, 2026 and actively maintains it with weekly releases. It integrates with Google Cloud infrastructure including Cloud Model Armor for security. While it carries the standard 'not an officially supported Google product' disclaimer common to Google open-source projects, the velocity and backing suggest strong internal support.