Install
openclaw skills install @stefanferreira/gmail-gog-setupSet up Gog CLI for Gmail access and authenticate agent mailboxes.
openclaw skills install @stefanferreira/gmail-gog-setupUse this skill when you need to give an agent (e.g., Facet, competitions agent) access to a Gmail inbox via Gog CLI.
# 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
gog auth credentials /path/to/client_secret_....json
export GOG_KEYRING_PASSWORD='your-keyring-password'
gog auth add agent@gmail.com --services gmail --manual
gog auth list
gog gmail messages search 'newer_than:7d' --account agent@gmail.com --json
New senders often land in spam:
gog gmail messages search 'in:spam newer_than:7d' --account agent@gmail.com --json
--force-consent if neededThe auth session restarted. Use the latest auth URL and callback.
Set GOG_KEYRING_PASSWORD environment variable before running gog auth add.
gog gmail messages modify <msg_id> --remove SPAM --add INBOX~/.openclaw/credentials/google/GOG_KEYRING_PASSWORD in a secure environment variable or secret manager