← 返回 Skills 市场
alanwen168

Gmail Local

作者 Alan Wen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:465 These endpoints are fixed in the helper and are not configurable by environment variable.
  • Credentials stay local and must be provided through:
    • GMAIL_ADDRESS
    • GMAIL_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, show to, cc, bcc, subject, and a body preview, then get explicit user approval.
  • The helper refuses to send unless --confirm-send is 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
安全使用建议
Install only if you are comfortable giving this local helper IMAP/SMTP access to your Gmail account. Store the app password in a 0600 file, revoke it when unused, review email content carefully, and require explicit approval before any send.
功能分析
Type: OpenClaw Skill Name: gmail-local Version: 1.0.0 The gmail-local skill provides standard IMAP/SMTP functionality for Gmail using local credentials. The Python script (scripts/gmail_local.py) implements good security practices by enforcing strict file permissions (0600) on the credential file and hardcoding official Google endpoints. It includes a mandatory confirmation flag for sending emails to prevent accidental or unauthorized automated mailing.
能力评估
Purpose & Capability
The artifacts match the stated purpose of local Gmail IMAP/SMTP access, including searching, reading, and sending mail; those capabilities are sensitive but disclosed and purpose-aligned.
Instruction Scope
Send operations are documented as requiring explicit approval and the helper enforces a --confirm-send flag, but the user and agent must still ensure the flag is only used after real user approval.
Install Mechanism
There is no install script or external package installation; the included Python helper uses standard library modules and fixed Gmail endpoints.
Credentials
The required Gmail address and app-password file are proportionate for IMAP/SMTP access, and the code checks ownership and restrictive permissions before reading the password.
Persistence & Privilege
No background process or self-persistence is shown, but the local app-password file is a persistent credential that should be protected and revoked when no longer needed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gmail-local
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gmail-local 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: local Gmail IMAP/SMTP skill without Maton or third-party proxy.
元数据
Slug gmail-local
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论