#gmail and google calendar api integration

1 messages · Page 1 of 1 (latest)

stray falconBOT
#

Best way right now is: don’t “add Gmail/Calendar API keys” to OpenClaw directly — instead, give OpenClaw a tool it can call that already knows how to do OAuth. The recommended path is the bundled gog skill (gogcli), which supports Gmail + Google Calendar (and Drive/Contacts/etc).

0) Quick checks (so I don’t guess)

  1. What does openclaw --version print?
  2. Where is your Gateway running (macOS / Linux / VPS)?
    (And please don’t paste any secrets/tokens here.)

1) Use the gog skill for Gmail + Calendar (recommended)

Docs/skill: https://docs.openclaw.ai/tools/skills (skills overview)

On the Gateway host (and as the same OS user that runs the gateway service):

  1. Install gogcli
  • macOS (Homebrew): brew install steipete/tap/gogcli
    (Linux works too, but tell me your distro and I’ll point you at the right install method.)
  1. Put your Google OAuth client secret JSON on the gateway host (download from GCP Console → Credentials → OAuth client → download JSON)
#
  1. Point gog at it + authorize scopes:
gog auth credentials /path/to/client_secret.json
gog auth add you@gmail.com --services gmail,calendar
gog auth list
  1. Sanity test:
gog gmail search 'newer_than:7d' --max 5
gog calendar events primary --from 2026-03-01T00:00:00Z --to 2026-03-03T00:00:00Z

After that, start a new OpenClaw session (/new) so the skills snapshot refreshes, and you can ask OpenClaw things like “search my inbox for …” or “create a calendar event …” and it should choose the gog skill.

(Reference for the bundled skill itself is here: https://github.com/openclaw/openclaw/blob/main/skills/gog/SKILL.md)