ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Google Services (gog CLI)

OAuth token refresh management for Google APIs via gog CLI.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/herry3zz/google-gog
Or

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

Metadata

Author@herry3zz
Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-herry3zz-google-gog": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#google#gmail#drive#oauth#gog#credentials
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.