google-workspace

Solid

Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration via gws CLI (googleworkspace/cli). Uses OAuth2 with automatic token refresh via bridge script. Requires gws binary.

AI & Automation 173,893 stars 29465 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Google Workspace Gmail, Calendar, Drive, Contacts, Sheets, and Docs — powered by `gws` (Google's official Rust CLI). The skill provides a backward-compatible Python wrapper that handles OAuth token refresh and delegates to `gws`. ## Architecture ``` google_api.py → gws_bridge.py → gws CLI (argparse compat) (token refresh) (Google APIs) ``` - `setup.py` handles OAuth2 (headless-compatible, works on CLI/Telegram/Discord) - `gws_bridge.py` refreshes the Hermes token and injects it into `gws` via `GOOGLE_WORKSPACE_CLI_TOKEN` - `google_api.py` provides the same CLI interface as v1 but delegates to `gws` ## References - `references/gmail-search-syntax.md` — Gmail search operators (is:unread, from:, newer_than:, etc.) ## Scripts - `scripts/setup.py` — OAuth2 setup (run once to authorize) - `scripts/gws_bridge.py` — Token refresh bridge to gws CLI - `scripts/google_api.py` — Backward-compatible API wrapper (delegates to gws) ## Prerequisites Install `gws`: ```bash cargo install google-workspace-cli # or via npm (recommended, downloads prebuilt binary): npm install -g @googleworkspace/cli # or via Homebrew: brew install googleworkspace-cli ``` Verify: `gws --version` ## First-Time Setup The setup is fully non-interactive — you drive it step by step so it works on CLI, Telegram, Discord, or any platform. Define a shorthand first: ```bash HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}" GWORKSPACE_SKILL_DIR="$HERMES_HOME/skills/productivity/google-workspace" PYTHON_...

Details

Author
NousResearch
Repository
NousResearch/hermes-agent
Created
10 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category