Email API for AI agents. Check inbox, read emails, extract OTP codes, search messages via ShellMail. Trigger on "check email", "inbox", "otp", "verification...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install shellmail或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install shellmail⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/shellmail/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: shellmail version: 1.2.2 description: Email API for AI agents. Check inbox, read emails, extract OTP codes, search messages via ShellMail. Trigger on "check email", "inbox", "otp", "verification code", "shellmail", or any email-related requests. homepage: https://shellmail.ai source: https://github.com/aaronbatchelder/shellmail env: SHELLMAIL_TOKEN: required: true sensitive: true description: Bearer token for ShellMail API authentication (grants access to inbox and OTPs) SHELLMAIL_API_URL: required: false default: https://shellmail.ai description: API base URL (only change for self-hosted instances) metadata: openclaw: requires: env: - SHELLMAIL_TOKEN bins: - curl - python3 primaryEnv: SHELLMAIL_TOKEN ---
Email for AI agents via shellmail.ai. Create inboxes, receive mail, extract OTPs automatically.
This skill requires a sensitive SHELLMAIL_TOKEN that grants full access to your inbox and OTPs.
When you set up this skill for the first time, you'll be instructed to save the token into agent configuration using gateway config.patch. This means:
Best practices:
gateway config.patch command output before confirmingIf no token is configured:
- Or use auto for the name to generate a random address (e.g., "swift-reef-4821")
{baseDir}/scripts/shellmail.sh create - If the user says it was their old address: try creating with the same recovery email — deleted addresses are held for 14 days and can be reclaimed - Otherwise: suggest a different name or use auto - Do NOT suggest recovery unless the user confirms it's their previous inbox
gateway config.patch {"skills":{"entries":{"shellmail":{"env":{"SHELLMAIL_TOKEN":"sm_..."}}}}}
⚠️ Important: Before running this command, explain to the user: - This saves the token into agent configuration for persistent access - The agent will retain access to their inbox/OTPs until the token is removed or revoked - They should only proceed if they trust shellmail.ai and understand the privacy implications - Show them the exact command and ask for confirmation before executing
inbox to show the test email arrivedOnly use recovery if the user explicitly says they lost access to an existing inbox they own:
{baseDir}/scripts/shellmail.sh recover <[email protected]> <recovery_email>
This sends a new token to the recovery email on file. Do not suggest this for "address taken" errors.
{baseDir}/scripts/shellmail.sh <command>
{baseDir}/scripts/shellmail.sh inbox
{baseDir}/scripts/shellmail.sh inbox --unread
{baseDir}/scripts/shellmail.sh read <email_id>
# Get latest OTP
{baseDir}/scripts/shellmail.sh otp
# Wait up to 30 seconds for OTP
{baseDir}/scripts/shellmail.sh otp --wait 30
# Filter by sender
{baseDir}/scripts/shellmail.sh otp --wait 30 --from github.com
{baseDir}/scripts/shellmail.sh search --query "verification"
{baseDir}/scripts/shellmail.sh search --otp
{baseDir}/scripts/shellmail.sh search --from stripe.com
{baseDir}/scripts/shellmail.sh mark-read <id>
{baseDir}/scripts/shellmail.sh archive <id>
{baseDir}/scripts/shellmail.sh delete <id>
{baseDir}/scripts/shellmail.sh health
User says "check my email":
{baseDir}/scripts/shellmail.sh inbox --unread
User says "get the verification code":
{baseDir}/scripts/shellmail.sh otp --wait 30
User says "wait for GitHub OTP":
{baseDir}/scripts/shellmail.sh otp --wait 30 --from github.com
If the user wants to revoke the skill's access to their ShellMail inbox:
gateway config.patch '{"skills":{"entries":{"shellmail":{"env":{"SHELLMAIL_TOKEN":""}}}}}'
{baseDir}/scripts/shellmail.sh delete-account
Note: Deleted addresses enter a 14-day hold window and can only be reclaimed by the original owner using the recovery email.
Base URL: https://shellmail.ai
All endpoints use Authorization: Bearer $SHELLMAIL_TOKEN
| Endpoint | Method | Description | |----------|--------|-------------| | /api/mail | GET | List emails (?unread=true&limit=50) | | /api/mail/:id | GET | Read full email | | /api/mail/:id | PATCH | Update {is_read, is_archived} | | /api/mail/:id | DELETE | Delete email | | /api/mail/otp | GET | Get OTP (?timeout=30000&from=domain) | | /api/mail/search | GET | Search (?q=text&from=domain&has_otp=true) | | /api/addresses | POST | Create {local, recovery_email} |
安装 ShellMail - Email Built for AI Agents 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/shellmail/ 目录(个人级,所有项目可用),或 .claude/skills/shellmail/(项目级)。重启 AI 客户端后,用 /shellmail 主动调用,或让 AI 根据上下文自动发现并使用。
ShellMail - Email Built for AI Agents 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ShellMail - Email Built for AI Agents 可免费安装使用。请查阅仓库了解许可证信息。
Email API for AI agents. Check inbox, read emails, extract OTP codes, search messages via ShellMail. Trigger on "check email", "inbox", "otp", "verification...
ShellMail - Email Built for AI Agents 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。