Connect Google Workspace
Prerequisites (both methods)
Create Google Cloud OAuth Credentials
This step is done in your own browser — nothing to do on the MyClaw instance yet.
- Open Google Cloud Console → APIs & Services → Credentials.
- Click + CREATE CREDENTIALS → OAuth client ID → Application type: Desktop app.
- Click Create → Download JSON. Save the client_secret_xxx.json file — you'll need it next.
You must also configure the OAuth consent screen and add yourself as a Test user under APIs & Services → OAuth consent screen. Without this, authorization will fail.
Enable Gmail API and Google Calendar API
Click each link below and hit Enable. Only takes a few seconds each.
Only need calendar? Just enable the Calendar API (and use --services calendar in later steps).
No commands needed. Do everything from your chat window (Telegram / WebChat).
Ask OpenClaw to install gog
Send the credentials file
Provide your email, get auth link
Paste the callback URL
That's it — three messages and you're connected.
What you can do now
| Feature | Just say |
|---|---|
| 📧 Check email | "Check my recent emails" / "Any emails from xxx?" |
| 📧 Send email | "Send an email to a@b.com about..." |
| 📅 View calendar | "What's on my schedule this week?" |
| 📅 Create events | "Schedule a meeting for Friday at 2 PM" |
| 📧 Draft emails | "Draft a reply to that email" |
Troubleshooting
Q: "Access blocked" or "App not verified" during authorization
A: You didn't add yourself as a Test user on the OAuth consent screen. Go back to Step 1, open OAuth consent screen → Test users, and add your Gmail address.
Q: 403 accessNotConfigured error
A: The API isn't enabled. Go back to Step 2 and make sure both Gmail API and Calendar API show "Enabled".
Q: Callback URL expired
A: Just redo the authorization step — it's quick. Tell OpenClaw "re-authorize" and it'll give you a fresh link.
Q: no TTY available for keyring error in WebSSH
A: Prefix the command with GOG_KEYRING_PASSWORD="anypassword", e.g.:
GOG_KEYRING_PASSWORD="mypass123" gog auth add your@gmail.com ...