What can OpenClaw do with Gmail?
Once connected, you talk to your agent the same way you'd ask a human assistant — no commands to memorize.
Read & Summarize
Get a summary of unread emails, find specific threads, or ask "did anyone email me about the invoice?"
Draft Replies
Tell OpenClaw what to say — it writes the email in your tone and either sends it or shows it to you first.
Search Your Inbox
Find emails by sender, topic, date range, or keyword — like a smart search bar you talk to.
Label & Organize
Apply labels, archive threads, or move emails to folders without ever opening Gmail.
Watch for Emails
Ask OpenClaw to notify you when a specific email arrives — like a payment confirmation or a job response.
Send New Emails
Compose and send a new email to any contact. OpenClaw can look up addresses from your previous threads.
What can OpenClaw do with Google Calendar?
OpenClaw can see your schedule, create events, find open slots, and send invites — like having a personal scheduler on call.
Check Your Schedule
Ask what's on your calendar today, this week, or on any specific date.
Create Events
Add meetings, reminders, or blocks to your calendar just by describing them.
Find Free Time
OpenClaw checks your calendar and tells you when you're actually free.
Send Invites
Create an event and invite other people — OpenClaw adds them as guests and sends the invite.
Cancel or Reschedule
Move or delete existing events without opening Google Calendar.
Set Reminders
Add reminders to any event or create standalone reminders for tasks.
How to connect your Google account
OpenClaw uses OAuth 2.0 to connect to Google — the same secure login flow used by apps like Zoom and Slack. You authorize it once; OpenClaw never sees your password.
- A Google account
- OpenClaw installed and running (Getting Started guide)
- About 10 minutes
-
Go to Google Cloud Console
Open console.cloud.google.com and sign in with your Google account. This is Google's developer portal — it's free to use.
-
Create a new project
Click the project dropdown at the top → New Project → name it something like openclaw-integration → click Create.
-
Enable the Gmail and Calendar APIs
In the left menu go to APIs & Services → Library. Search for and enable both:
- Gmail API — for email access
- Google Calendar API — for calendar access
Click each one → Enable. Takes about 30 seconds each.
-
Create OAuth credentials
Go to APIs & Services → Credentials → Create Credentials → OAuth client ID.
- Application type: Desktop app
- Name: anything you like (e.g. OpenClaw Desktop)
- Click Create
Google will show you a Client ID and Client Secret. Copy both — you'll need them in the next step.
-
Configure the OAuth consent screen
Go to APIs & Services → OAuth consent screen. Set:
- User type: External (even if it's just you)
- App name: anything (e.g. My OpenClaw)
- Support email: your email
- Add your email as a Test user
You don't need to publish the app — keeping it in test mode is fine for personal use.
-
Add credentials to openclaw.json
Open your openclaw.json file and add the Google section:
openclaw.json{ "integrations": { "google": { "enabled": true, "client_id": "YOUR_CLIENT_ID.apps.googleusercontent.com", "client_secret": "YOUR_CLIENT_SECRET", "scopes": [ "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/calendar" ] } } }Replace
YOUR_CLIENT_IDandYOUR_CLIENT_SECRETwith the values from Step 4. -
Authorize OpenClaw
Restart OpenClaw. The first time it tries to access Gmail or Calendar, it will open a browser window asking you to sign in with Google and grant permission. Click Allow.
OpenClaw saves a token locally so you only need to do this once. The token is stored on your machine — it never leaves your computer.
Try sending your agent a message: "What emails do I have today?" — if it reads your inbox, the integration is working.
What permissions does OpenClaw request?
Google requires apps to declare exactly what they can access. Here's what each scope means in plain English.
| Scope | Type | What it allows | Why it's needed |
|---|---|---|---|
gmail.readonly |
Read | Read emails and labels | Summarize, search, and find threads |
gmail.modify |
Write | Read emails + apply labels, archive, mark read | Organize inbox, label emails |
gmail.send |
Send | Send emails on your behalf | Draft and send replies or new emails |
calendar.readonly |
Read | View calendar events | Check your schedule, find free time |
calendar |
Write | View + create, edit, delete events | Create meetings, send invites, reschedule |
If you only want OpenClaw to read your email (never send), use gmail.readonly instead of gmail.modify. You can always upgrade the scope later by re-running the auth flow.
Example prompts to try
Once connected, just talk to OpenClaw naturally. Here are some prompts to get you started.
Common problems & fixes
-
This is normal for personal OAuth apps in test mode. Google shows this warning to protect users from unknown apps. Since this is your own app connecting to your own account, it's safe to continue.
- Click Advanced on the warning screen
- Click "Go to [your app name] (unsafe)"
- This only appears the first time you authorize
-
The
gmail.sendscope is separate fromgmail.modify. Add it to your scopes array in openclaw.json, then re-authorize:- Add
"https://mail.google.com/"to thescopesarray - Delete the saved token file (usually
~/.openclaw/google_token.json) - Restart OpenClaw and go through the auth flow again
- Add
-
Google OAuth tokens expire after 7 days if the app is in test mode (or if you revoke access from your Google account). To fix it:
- Delete the token file at
~/.openclaw/google_token.json - Restart OpenClaw — it will prompt you to re-authorize
- To avoid this, publish your OAuth app in Google Cloud Console (you don't need to submit it for review for personal use)
- Delete the token file at
-
OpenClaw uses the timezone set in your openclaw.json config. Make sure it matches your Google Calendar timezone.
- Add
"timezone": "America/New_York"(or your timezone) to the google section of openclaw.json - Use IANA timezone names (e.g.
Europe/London,Asia/Tokyo)
- Add
-
You created credentials but forgot to enable the API. Go back to Google Cloud Console → APIs & Services → Library and enable the Gmail API and/or Google Calendar API for your project. It can take a minute to propagate.