🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 33.6K |
| ⭐ GitHub Stars | 30,166(fork 1762) |
| 🗓️ 最近推送 | 2026-08-01 |
| 🌱 项目创建 | 2026-03-02 |
| 💻 语言 / License | Rust · Apache-2.0 |
| 🐛 开放Issue | 117 |
📝 工具简介
命令行工具,统一操作Drive、Gmail、Calendar等Google服务,支持AI agent技能。
📖 怎么用
安装很简单,选一种方式就行:`npm install -g @googleworkspace/cli` 或 `brew install googleworkspace-cli`。装完先跑 `gws auth setup`,它会一步步引导你配置 Google Cloud 项目,然后 `gws auth login` 完成 OAuth 登录。之后就能直接用了,比如 `gws drive files list --params '{"pageSize": 5}'` 列出文件。这个工具没有固定命令列表,运行时自动读取 Google 的 Discovery Service,所以新接口出来它也能自动支持。
📋 迷你测评
命令行工具,统一操作Drive、Gmail、Calendar等Google服务。亮点是专为AI agent设计的技能接口,方便直接调用。没有具体数据点。
📄 README 要点
这是一个谷歌全家桶的命令行工具,专门给人和AI代理用的。它能操作Drive、Gmail、日历等所有Workspace API,不需要写样板代码,直接输出结构化的JSON数据。最牛的是它没有固定的命令列表,运行时自动读取谷歌的Discovery Service动态生成命令,谷歌新增接口它自动就能用。安装需要Node.js 18以上,或者直接下载编译好的二进制文件。内置了40多种AI代理技能,适合做自动化办公、数据抓取、邮件批量处理这些场景。注意这项目还在快速开发中,不是谷歌官方产品,用的时候可能会遇到接口变动。
查看英文原文
gws One CLI for all of Google Workspace — built for humans and AI agents. Drive, Gmail, Calendar, and every Workspace API. Zero boilerplate. Structured JSON output. 40+ agent skills included. [!NOTE] This is not an officially supported Google product. ⬇️ Download the latest release for your OS gws doesn't ship a static list of commands. It reads Google's own Discovery Service at runtime and builds its entire command surface dynamically. When Google Workspace adds an API endpoint or method, gws picks it up automatically. [!IMPORTANT] This project is under active development. Expect breaking changes as we march toward v1.0. Contents Prerequisites Installation Quick Start Why gws? Authentication AI Agent Skills Advanced Usage Environment Variables Exit Codes Architecture Troubleshooting Development Prerequisites Node.js 18+ — for npm install (or download a pre built binary from GitHub Releases) A Google Cloud project — required for OAuth credentials. You can create one via the Google Cloud Console or with the gcloud CLI or with the gws auth setup command. A Google account with access to Google Workspace Installation The recommended way to install gws is to download the pre built binary for your OS and architecture from the GitHub Releases page. Extract the archive and place the gws binary in your $PATH . For convenience, you can also use npm to automate downloading the appropriate binary from GitHub Releases: [安装/使用命令见下方] Or build from source: [安装/使用命令见下方] A Nix flake is also available at github:googleworkspace/cli [安装/使用命令见下方] On macOS and Linux, you can also install via Homebrew: [安装/使用命令见下方] Quick Start [安装/使用命令见下方] Why gws? For humans — stop writing curl calls against REST docs. gws gives you help on every resource, dry run to preview requests, and auto‑pagination. For AI agents — every response is structured JSON. Pair it with the included agent skills and your LLM can manage Workspace without custom tooling. [安装/使用命令见下方] Authentication The CLI supports multiple a
💬 评论(0)
交流使用体验、避坑建议;违规内容将被删除