Openclaw Email securely connects your inbox so your AI assistant can read long threads, filter urgent client demands, and draft replies on your behalf.
Email is often the gateway of digital work. By unblocking this node, your AI assistant can finally start processing the massive "information flood" for you.
It sounds complex, but you really only need these 3 things:
credentials.json (Dev License)Think of this as a "business license". It proves to Google that the API request originates from a registered application you created on Google Cloud Console. You must actively download this file from Google Cloud.
token.json (User Token)Think of this as the "movie ticket". It grants the AI permission to view your specific inbox. This file does NOT need to be downloaded. It is automatically generated by Openclaw after you click "Allow" in your browser during the first prompt.
Go to Google Cloud Console and create a new project (e.g., "AI-Mail-Assistant").
Navigate to "APIs & Services" - "Library" on the left side menu. Search for Gmail API and click [Enable].


Head to "APIs & Services" - "Credentials", click [Create Credentials], and select OAuth Client ID.


Rename the downloaded file to credentials.json, and move it into your Openclaw working directory:
~/clawd/credentials.jsonBy default, AI models don't speak native mail protocols. We have to teach them. Here, ClawHub is the "skill registry + installer" for Openclaw. It is not the inbox itself and not the model either. Its job is to fetch and install the skill pack Openclaw needs.
Think of it like an app store for agent skills. Instead of installing apps, you install skill packs that teach your AI how to work with outside systems like Gmail.
It runs the latest ClawHub installer and downloads the gog skill. You can treat gog as the short name of the Google capability pack used here.
After installation, you usually stop thinking about ClawHub. It is the setup step. Daily usage still happens in Openclaw with plain-English instructions.
Run the following command in your terminal to install the Google Workspace skill pack:
npx clawhub@latest install gognpx clawhub@latest: runs the latest ClawHub without requiring a separate global install first.install: tells it to install a skill package.gog: the skill name that connects Google capabilities into Openclaw.You do not need to keep writing command-line instructions. Just talk to Openclaw like an assistant. For example:
If words like skill, registry, and slug still feel abstract, send the prompt below to your AI and let it re-explain everything in simpler language:
Explain this in beginner-friendly language:
- What is ClawHub?
- What does the command npx clawhub@latest install gog actually do?
- After installation, how do I use it inside Openclaw?Now, open Openclaw and directly ask your AI:"Read my latest email please."
The system will intercept this action and spit out a URL in your terminal. Copy and paste that link into your browser, log in to your Google Account, and click [Allow]. Once authorized, the system will automatically generate your token.json. From here on out, your AI is fully equipped to clean up your inbox!
Enjoy your morning coffee while your AI reads everything from the night before. Instruct it to filter out promotions and summarize exactly which clients are waiting for a reply and which bills are overdue.
Facing a 20-page legal revision email chain? Drop it to your assistant: "Tell me in 3 sentences what disadvantageous clauses were added compared to the previous version."
Stop agonizing over the perfect wording. Feed the raw email to your AI: "Politely reject this collaboration since we don't have budget until Q3. Save it as a draft."
If you operate more than one mailbox, the practical move is usually not wiring every inbox separately. Instead, choose one mailbox that is already connected to Openclaw and use it as your central inbox.
Think of it as routing packages from several warehouses into one central sorting center. Openclaw only monitors one inbox, but you still get unified visibility across several email identities or channels.
Auto-forwarded messages are often judged more aggressively by the destination mailbox and may end up in Spam instead of the normal inbox.
The most reliable fix is to create a manual Gmail filter. Below, support@example.com is only a harmless example address, not a real private mailbox.
support@example.com.If similar forwarded emails have already landed in Spam, also open the Spam folder and mark them as "Not spam" once. That usually makes future delivery more stable.
You can tell Openclaw: "Summarize every email forwarded into this inbox today, group them by original mailbox, and show me only the items that require action today."
When users first experience the thrill of automation, they predictably ask: "Make it auto-reply to all my invoice emails." This is unbelievably dangerous!
LLMs can hallucinate. If it replies to a major client with a hallucinated massive discount or strange phrasing, it's a disaster. When configuring your global project guardrails (AGENTS.md), you MUST define:
Hooking up your inbox essentially gives your AI "eyes and ears". It stops being trapped in local, dry codebases, and steps directly into the endless stream of data that governs your daily operations.
This is the ultimate bridge towards complete workflow hosting. Once you understand this authorization logic, you can easily attach your Calendar, Notion workspaces, and other massive organizational suites.
Explore More Cases
Give your AI assistant a soul by configuring its personality, context, and operational rules.
Use Bird Skill with your browser session to turn Openclaw X into one workflow for posting, replying, monitoring mentions, reading threads, and AI-driven X operations.
Connect your GPT, Gemini, and Claude plans to Openclaw so Openclaw Codex, Openclaw Gemini, and Openclaw Claude work without extra API token billing.
Learn how to turn repeated work into reusable skills so AI can execute with stable steps, rules, and guardrails.
Learn the two Openclaw Browser starting routes: Playwright MCP and browser-use, and how each one should be set up.
Learn how to install and set up the Openclaw automation system, from environment checks to essential CLI commands.
See how OpenClaw searched inventory, contacted dealerships, and negotiated across browser, email, and messaging channels to save $4,200.
See how Openclaw can write code, open PRs, run code reviews, triage issues, and generate changelogs â handing every repetitive GitHub task to AI autonomously.
See how Openclaw searches job boards across the web, tailors resumes and cover letters, sends bulk personalized applications, and triages inbox replies â automating the most repetitive parts of job hunting.
See how Openclaw searches listings across platforms, compares prices side by side, sends bulk inquiry messages, and negotiates rent with landlords â automating the most tedious parts of apartment hunting.
See how Openclaw securely connects to cloud servers, analyzes error logs, updates config, and recovers failed deploys to keep production healthy around the clock.
See how Openclaw coordinates health data, smart home devices, meal planning, and daily schedules to run your personal systems as one workflow.