Google Workspace Setup logo

Google Workspace Setup

Community
adityahimaone
google-workspace-setup

Properly set up Google Workspace OAuth2 authentication for Hermes agent, handling Python environment and module dependencies.

Overview

Publisheradityahimaone
Repositoryhermes-agent-rtk-caveman
Skill namegoogle-workspace-setup
Stars
84
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by adityahimaone on GitHub. Read the source before you install it.

Installation

Install the Google Workspace Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/adityahimaone/hermes-agent-rtk-caveman/tree/main/skills/productivity/google-workspace-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/adityahimaone/hermes-agent-rtk-caveman.git /tmp/hermes-agent-rtk-caveman
mkdir -p .claude/skills
cp -r /tmp/hermes-agent-rtk-caveman/skills/productivity/google-workspace-setup .claude/skills/google-workspace-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Google Workspace Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Google Workspace Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Google Workspace Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Google Workspace Setup Skill

This skill provides a reliable method to set up Google Workspace OAuth2 authentication for the Hermes agent, addressing common issues with Python module imports and environment configuration.

Problem

The standard Google Workspace setup script (setup.py) fails with ModuleNotFoundError: No module named 'hermes_constants' when run directly because:

  1. The script depends on Hermes internal modules
  2. It needs to be run from the Hermes agent directory with proper Python path
  3. Virtual environment activation is required for dependencies

Solution

Always activate the Hermes virtual environment and run the setup script from the hermes-agent directory.

Prerequisites

  • Google OAuth2 client secret JSON file (from Google Cloud Console)
  • Hermes agent installed and accessible

Steps

Step 1: Prepare OAuth Credentials

  1. Go to https://console.cloud.google.com/apis/credentials
  2. Create/select a project
  3. Enable required APIs: Gmail, Calendar, Drive, Sheets, Docs, People API
  4. Create OAuth 2.0 Client ID (Desktop app type)
  5. Download the JSON file

Step 2: Copy Credentials to Hermes Directory

bash
# Copy your downloaded client secret to Hermes Google Workspace skill directory
cp /path/to/downloaded/client_secret_*.json ~/.hermes/skills/productivity/google-workspace/google_client_secret.json

Step 3: Run Setup with Proper Environment

bash
# Change to Hermes agent directory and activate virtual environment
cd ~/.hermes/hermes-agent
source venv/bin/activate

# Run the setup script with your client secret
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --client-secret ~/.hermes/skills/productivity/google-workspace/google_client_secret.json

# You should see: "OK: Client secret saved to /Users/yourname/.hermes/google_client_secret.json"

Step 4: Get Authorization URL

bash
# Still in the same terminal session (venv activated, in hermes-agent directory)
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --auth-url

# Copy the entire URL output and open it in your browser

Step 5: Complete Authorization

  1. Open the URL from Step 4 in your browser
  2. Sign in with your Google account
  3. Grant the requested permissions
  4. After redirection (may show an error page - this is normal), copy the ENTIRE URL from the browser's address bar

Step 6: Exchange Authorization Code

bash
# Still in the same terminal session
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --auth-code "PASTE_THE_ENTIRE_URL_FROM_STEP_5_HERE"

# You should see: "OK: Token saved to /Users/yourname/.hermes/google_token.json"

Step 7: Verify Authentication

bash
# Still in the same terminal session
python ~/.hermes/skills/productivity/google-workspace/scripts/setup.py --check

# Should output: "AUTHENTICATED"

Verification

After successful setup, you can test Google Workspace access:

bash
# Test Gmail access
python ~/.hermes/skills/productivity/google-workspace/scripts/google_api.py gmail search "is:unread" --max 5

# Test Calendar access
python ~/.hermes/skills/productivity/google-workspace/scripts/google_api.py calendar list

Notes

  • Must maintain same terminal session: Steps 3-7 need to be run in the same terminal session where the venv is activated and you're in the hermes-agent directory
  • Token storage: The OAuth token is saved automatically to ~/.hermes/google_token.json and refreshes automatically
  • Re-authentication: To revoke and restart, use --revoke flag then repeat from Step 3
  • Troubleshooting:
    • If you get ModuleNotFoundError again, you likely left the hermes-agent directory or deactivated the venv
    • If you get permission errors, ensure you enabled all required APIs in Google Cloud Console
    • For Advanced Protection accounts, your Workspace admin needs to allowlist the OAuth client ID

Integration with Market Alpha Scout

Once Google Workspace is authenticated, the market_alpha_scout skill can successfully:

  1. Authenticate to stockbro.id via Google Workspace
  2. Scrape Daily Hot Stocks and Broker Summary data
  3. Combine with Google-based sentiment analysis for stock picks

Error Handling

Common errors and solutions:

  • ModuleNotFoundError: No module named 'hermes_constants' → Not in hermes-agent directory or venv not activated
  • FileNotFoundError for client secret → Check file path and permissions
  • invalid_grant → Token expired, redo authorization flow
  • 403: Insufficient Permission → Missing API scopes, redo OAuth flow with all required APIs enabled

Frequently asked questions

What does the Google Workspace Setup AI skill do?

Properly set up Google Workspace OAuth2 authentication for Hermes agent, handling Python environment and module dependencies.

Why use Google Workspace Setup on TypingMind?

Because you install it once and use it with any model. Google Workspace Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Google Workspace Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/adityahimaone/hermes-agent-rtk-caveman/tree/main/skills/productivity/google-workspace-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Google Workspace Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Google Workspace Setup?

As many as you like. As long as a model supports skills, you can use Google Workspace Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Google Workspace Setup AI skill free?

It is published on GitHub by adityahimaone. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇