/install gmail-local
Gmail Local
Use direct Gmail IMAP/SMTP with a Google App Password. This skill does not use Maton or any third-party proxy.
Trust Boundary
- Mail goes directly between this host and Google Gmail servers:
- IMAP:
imap.gmail.com:993 - SMTP:
smtp.gmail.com:465These endpoints are fixed in the helper and are not configurable by environment variable.
- IMAP:
- Credentials stay local and must be provided through:
GMAIL_ADDRESSGMAIL_APP_PASSWORD_FILE
- Never print, log, commit, or echo the app password. Do not pass it directly as an environment variable.
- App Passwords require Google 2-Step Verification and may be unavailable for some accounts, Workspace policies, or Advanced Protection accounts.
- IMAP must be enabled in Gmail settings.
Commands
The 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 "[email protected]"'
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 [email protected] \
--subject "Subject" \
--body "Message body" \
--confirm-send
Safety Rules
- Before
send, showto,cc,bcc,subject, and a body preview, then get explicit user approval. - The helper refuses to send unless
--confirm-sendis provided after that approval. - Do not use this skill to mass-mail, spam, scrape contacts, or send sensitive data without confirmation.
- Prefer read-only commands (
list,search,read) unless the user clearly asks to send. - If an authentication error occurs, do not retry repeatedly; ask the user to check IMAP settings and rotate the App Password if needed.
Setup
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 [email protected]
openclaw config set env.vars.GMAIL_APP_PASSWORD_FILE ~/.openclaw/gmail-app-password
openclaw gateway restart
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gmail-local - 安装完成后,直接呼叫该 Skill 的名称或使用
/gmail-local触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gmail Local 是什么?
Local 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 th... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Gmail Local?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gmail-local」即可一键安装,无需额外配置。
Gmail Local 是免费的吗?
是的,Gmail Local 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gmail Local 支持哪些平台?
Gmail Local 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gmail Local?
由 Alan Wen(@alanwen168)开发并维护,当前版本 v1.0.0。