gmail-gog-setup

Set up Gog CLI for Gmail access and authenticate agent mailboxes.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gmail-gog-setup" with this command: npx skills add gmail-gog-setup

Gmail + Gog Setup

Use this skill when you need to give an agent (e.g., Facet, competitions agent) access to a Gmail inbox via Gog CLI.

When to use

  • Creating a new agent mailbox (e.g., facet.ai.oc@gmail.com)
  • Setting up Gmail reading capability for an existing agent
  • Troubleshooting Gog auth failures
  • Adding new OAuth clients or test users

Prerequisites

1. Google Cloud OAuth client

  • Create a Desktop app OAuth client in Google Cloud Console
  • Enable Gmail API
  • Add target Gmail address as a test user in OAuth consent screen
  • Download the client JSON file

2. Gog installed

# Install Gog from latest release
cd /tmp
curl -L -o gogcli_0.12.0_linux_amd64.tar.gz https://github.com/steipete/gogcli/releases/download/v0.12.0/gogcli_0.12.0_linux_amd64.tar.gz
tar -xzf gogcli_0.12.0_linux_amd64.tar.gz
install -m 0755 gog /usr/local/bin/gog

Steps

1. Store OAuth credentials

gog auth credentials /path/to/client_secret_....json

2. Authenticate the Gmail account

export GOG_KEYRING_PASSWORD='your-keyring-password'
gog auth add agent@gmail.com --services gmail --manual
  • Open the provided auth URL in browser
  • Log in as the target Gmail account
  • Approve requested permissions
  • Copy the redirect URL (localhost) after Google redirects
  • Paste it into the waiting Gog prompt

3. Verify access

gog auth list
gog gmail messages search 'newer_than:7d' --account agent@gmail.com --json

4. Check spam

New senders often land in spam:

gog gmail messages search 'in:spam newer_than:7d' --account agent@gmail.com --json

Common issues

"No auth for gmail"

  • Verify test user is added in Google Cloud OAuth consent screen
  • Re-run auth with --force-consent if needed

"state mismatch"

The auth session restarted. Use the latest auth URL and callback.

"no TTY available for keyring file backend"

Set GOG_KEYRING_PASSWORD environment variable before running gog auth add.

Emails going to spam

  • Move from spam to inbox: gog gmail messages modify <msg_id> --remove SPAM --add INBOX
  • Consider training Gmail by marking as "Not spam"

Notes

  • Store OAuth client JSON in ~/.openclaw/credentials/google/
  • Keep GOG_KEYRING_PASSWORD in a secure environment variable or secret manager
  • For production, consider service account with domain-wide delegation instead of OAuth
  • Always check spam folder for important verification/API emails

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Spicy Ai Video

Turn a 60-second talking head clip into 1080p high-energy edited videos just by typing what you need. Whether it's turning bland footage into visually intens...

Registry SourceRecently Updated
Coding

Video Maker Fast

Get polished MP4 videos ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim...

Registry SourceRecently Updated
Coding

Generation Generator

generate text prompts or clips into AI generated videos with this skill. Works with MP4, MOV, PNG, JPG files up to 500MB. marketers, content creators, social...

Registry SourceRecently Updated
Coding

Editor On Android

Get edited MP4 clips ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim th...

Registry SourceRecently Updated