SkillHub

google-gog

v1.0.0

OAuth token refresh management for Google APIs via gog CLI.

Sourced from ClawHub, Authored by herry3zz

Installation

Please help me install the skill `google-gog` from SkillHub official store. npx skills add herry3zz/google-gog

Google Services (gog CLI)

Configuration

  • Account: [email protected]
  • Credentials: ~/.openclaw/credentials/client_secret.json
  • Token Storage: OS Keyring (auto-encrypted)

Refresh Token Lifecycle

Tokens auto-refresh transparently on API calls. No action needed.

If token invalid:

gog auth add [email protected] --services gmail,drive,calendar --manual --force-consent

For automation (cron/headless):

export GOG_KEYRING_BACKEND=file
export GOG_KEYRING_PASSWORD=<password>
gog auth list --check  # Check token validity and expiration

Quick Commands

# Gmail: send, search
gog gmail send [email protected] --subject "Hi" --body "Message"
gog gmail search "newer_than:7d"

# Drive: list, upload, download
gog drive ls /
gog drive upload file.txt /
gog drive download /file.txt ./output.txt

# Check token health
gog auth list --check