Install
openclaw skills install gmail-localLocal Gmail IMAP/SMTP access using a Google App Password. Use when the user wants to search, read, or send Gmail without routing mail through Maton or any third-party proxy. Requires GMAIL_ADDRESS and GMAIL_APP_PASSWORD_FILE. All writes/sends require explicit user approval and --confirm-send.
openclaw skills install gmail-localUse direct Gmail IMAP/SMTP with a Google App Password. This skill does not use Maton or any third-party proxy.
imap.gmail.com:993smtp.gmail.com:465
These endpoints are fixed in the helper and are not configurable by
environment variable.GMAIL_ADDRESSGMAIL_APP_PASSWORD_FILEThe local helper is under this skill folder:
scripts/gmail_local.py
List recent Inbox messages:
python3 scripts/gmail_local.py list --limit 10
Search with an IMAP query:
python3 scripts/gmail_local.py search --query 'UNSEEN'
python3 scripts/gmail_local.py search --query 'FROM "person@example.com"'
Read a message by UID:
python3 scripts/gmail_local.py read --uid 12345
Send mail only after explicit approval:
python3 scripts/gmail_local.py send \
--to person@example.com \
--subject "Subject" \
--body "Message body" \
--confirm-send
send, show to, cc, bcc, subject, and a body preview, then get
explicit user approval.--confirm-send is provided after that
approval.list, search, read) unless the user clearly
asks to send.Create a Google App Password at:
https://myaccount.google.com/apppasswords
Store it in a local 0600 file:
install -m 600 /dev/null ~/.openclaw/gmail-app-password
nano ~/.openclaw/gmail-app-password
Then set local environment for the gateway service. Example:
openclaw config set env.vars.GMAIL_ADDRESS you@gmail.com
openclaw config set env.vars.GMAIL_APP_PASSWORD_FILE ~/.openclaw/gmail-app-password
openclaw gateway restart