Google Workspace CLI

Active
GitHub Rust Apache-2.0

Description

A unified CLI for Google Workspace covering Drive, Gmail, Calendar, Sheets, Docs and more, with built-in AI agent skills for automation.

Key Features

  • Dynamic command discovery — Reads Google Discovery Service at runtime to auto-build all API commands; new Google endpoints auto-supported
  • 40+ agent skills — Built-in AI agent skills with structured JSON output for LLMs to manage Workspace directly
  • Multiple auth methods — Supports interactive OAuth, Service Account, pre-obtained tokens, CI/headless credential export
  • Unified CLI entry — Single CLI tool manages Drive, Gmail, Calendar, Sheets, Docs, Chat and all Workspace services
  • Schema introspection — View request/response schemas for any API method via gws schema command
  • Auto-pagination — Stream paginated results as NDJSON with --page-all parameter

Use Cases

💡 Automated office workflows — Batch-manage Drive files, send Gmail, update Sheets via CLI scripts
💡 AI Agent Workspace integration — Let LLM agents operate Google Workspace services through gws CLI commands
💡 CI/CD pipeline integration — Automate Workspace operations in GitHub Actions and CI environments using Service Accounts
💡 Data export & analysis — Extract data from Sheets/Docs to JSON/NDJSON for further analysis
💡 Team collaboration automation — Auto-create Calendar events, send Chat messages, manage Drive sharing permissions

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (30.7k stars)
  • Permissive open-source license (Apache-2.0)
  • Responsive to issues, low backlog

Categories

Quick Start

npm install -g @googleworkspace/cli

# First-time auth setup
gws auth setup
gws auth login

# List Drive files
gws drive files list --params '{"pageSize": 5}'

# Create a spreadsheet
gws sheets spreadsheets create --json '{"properties": {"title": "Q1 Budget"}}'

# Send a Chat message
gws chat spaces messages create \
  --params '{"parent": "spaces/xyz"}' \
  --json '{"text": "Deploy complete."}'

Related Projects

Gibberlink

4.9k · TypeScript
Stale B

A protocol where two conversational AI agents switch from English to a sound-level protocol after confirming they are both AI agents, improving inter-agent communication efficiency.

typescriptagentapi +2
  • · AI-to-AI agents switch from English to ggwave sound-level protocol automatically
  • · Won 1st place at 11labs x a16z international hackathon, covered by Forbes and TechCrunch
  • · Built on ggwave data-over-sound library with ElevenLabs conversational AI integration

Apify MCP Server

5.8k · TypeScript
Active A

MCP server that enables AI agents to extract data from social media, search engines, maps, and e-commerce sites using thousands of Apify scrapers.

typescriptmcptools +3
  • · Access to thousands of ready-made scrapers, crawlers, and automation tools from Apify Store
  • · OAuth support for one-URL connection from Claude.ai, VS Code, Cursor, and other MCP clients
  • · Hosted server at mcp.apify.com with Streamable HTTP transport (SSE deprecated April 2026)