Google released Google Workspace CLI (gws) on March 2, 2026—a unified command-line tool that provides programmatic access to all Google Workspace services through a single interface. Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin APIs are now accessible via one tool. The CLI gained rapid developer interest, accumulating 4,900 GitHub stars in three days and trending on Hacker News with 427 points.
Unlike traditional CLIs with static commands, gws dynamically generates its entire command surface at runtime from Google’s Discovery Service. This means when Google adds a new Workspace API endpoint, gws picks it up automatically without requiring a software update. More importantly, gws ships with native Model Context Protocol (MCP) server support and 100+ pre-built agent skills—Google’s bet on AI agents as the future interface for cloud services.
Dynamic Discovery Eliminates Manual Updates
GAM, Apps Script, and traditional CLIs ship static command lists that developers manually maintain. gws takes a different approach: it reads Google’s Discovery Service at runtime and builds its command surface dynamically. When you run gws drive files list, the tool identifies the service (“drive”), fetches the Drive API’s Discovery Document (cached for 24 hours), builds a complete command tree from the API schema, then executes your request.
This two-phase parsing architecture, implemented in Rust using the clap framework, means the CLI stays automatically current with Google’s API ecosystem. Developers no longer wait for tool updates when Google launches new features. The paradigm shift is significant—traditional CLIs like GitHub CLI, AWS CLI, and gcloud require maintainers to manually add support for new API endpoints. gws adapts automatically.
gws drive files list --params '{"pageSize": 10, "orderBy": "modifiedTime desc"}'
gws schema drive.files.list # Introspect API structure dynamically
The trade-off? No comprehensive static documentation. You discover commands by running gws <service> --help or using the gws schema command to inspect request/response structures. However, this is exactly what makes the tool valuable—it’s always in sync with Google’s latest API specifications.
Built for AI Agents, Not Just Humans
gws isn’t just another CLI tool—it’s infrastructure for the AI agent era. The tool ships with native Model Context Protocol (MCP) server support, allowing AI assistants like Claude, ChatGPT, and Gemini to interact with Google Workspace without custom integration code. Running gws mcp -s drive,gmail,calendar exposes Workspace APIs as structured tools over stdio that AI agents can consume directly.
MCP has become the emerging standard for AI agent tools. Anthropic donated the protocol to the Linux Foundation in December 2025, backed by OpenAI, Google DeepMind, Microsoft, AWS, and Cloudflare. The protocol has seen explosive adoption—97 million monthly SDK downloads across Python and TypeScript. Google’s decision to build MCP support directly into gws positions Workspace for 2026’s shift from AI agent demos to production deployments.
Related: Agentic AI Adoption Hits 64%: But 96% Don’t Trust It
The tool includes 100+ pre-built agent skills—pre-configured workflows for common Gmail, Drive, Docs, Calendar, and Sheets tasks. All responses return structured JSON, making the CLI ideal for both human scripting and machine consumption. As one Hacker News commenter noted (42 upvotes): “This is a game changer for code generation tools like Claude CLI. Having native MCP server support means AI agents can interact with Google Workspace without any custom tooling.”
The Setup Problem Nobody Mentions
Despite the technical innovation, gws has a brutal authentication setup process. Developers report spending 45+ minutes configuring OAuth scopes, manually adding 85 scopes, verifying their app, and dealing with the gcloud CLI dependency. This isn’t how modern CLI tools work—GitHub CLI and Claude CLI use simple browser OAuth without manual scope configuration.
The Hacker News discussion is dominated by setup complaints. One comment with 78 upvotes reads: “Have the people that built this actually tried installing it? Spent 45 minutes following the docs, hit OAuth scope errors, and had to manually add scopes. The recommended setting errors out when trying to authenticate in the browser.” Another developer summarized the sentiment perfectly: “Excellent tooling for agents, poor onboarding for humans.”
The tool requires gcloud CLI installation (a 200MB+ dependency) and manual app verification through Google Cloud Console. While the gws auth setup command automates some steps, the overall experience feels unfinished for a developer tool launching in 2026. Google needs to streamline this authentication flow before gws can compete with GAM’s simplicity.
GAM Replacement or Ecosystem Coexistence?
gws enters a mature Workspace automation ecosystem dominated by GAM (Google Apps Manager), a 15-year-old community tool with proven stability and ~2,500 GitHub stars. The question isn’t whether gws is better—it’s whether the two tools will serve different use cases or if one will eventually replace the other.
GAM excels at admin-focused tasks: user provisioning, group management, and settings automation. It’s maintained by Jay Lee, a Google Strategic Cloud Engineer, and has 15 years of battle-tested deployments in enterprise environments. Its parallel command execution and admin-specific features remain unmatched. However, GAM is limited to the Admin SDK and doesn’t comprehensively cover Drive, Gmail, and Calendar APIs.
gws offers broader API coverage (Drive + Gmail + Calendar + Sheets + Docs + Chat in one workflow) and AI agent integration, but comes with pre-v1.0 instability. The GitHub README explicitly warns: “This project is under active development. Expect breaking changes as we march toward v1.0.” Additionally, despite being in the googleworkspace GitHub organization with Google DevRel involvement, the project includes a disclaimer: “This is not an officially supported Google product.”
The likely outcome? Coexistence, not replacement. gws for AI-driven automation and new projects; GAM for enterprise admin at scale where stability matters. As one Hacker News comment (19 upvotes) noted: “This could replace GAM for a lot of workflows, but GAM’s parallel execution and admin-focused commands are battle-tested over 15 years. Hard to switch when stability matters.”
Key Takeaways
- Google Workspace CLI launched March 2, 2026, with dynamic command generation from Google’s Discovery Service—automatically supports new API endpoints without software updates, eliminating the manual maintenance required by traditional CLIs
- Native MCP server support and 100+ agent skills position gws as infrastructure for AI agents to interact with Workspace services, aligning with industry adoption of Model Context Protocol (97M+ monthly SDK downloads)
- Authentication setup is the biggest adoption barrier—45+ minutes, 85 manual OAuth scopes, gcloud CLI dependency. Google needs to streamline this before gws can compete with modern CLI tool expectations
- gws likely coexists with GAM rather than replacing it—use gws for AI automation, multi-service workflows, and new projects; stick with GAM for enterprise admin tasks requiring proven stability
- Pre-v1.0 status and “not officially supported” disclaimer mean production adoption carries risk—early adopters and AI agent builders can use it now, but critical enterprise automation should wait for v1.0 or continue using GAM

