ShellMail - Email Built for AI Agents
/install shellmail
ShellMail
Email for AI agents via shellmail.ai. Create inboxes, receive mail, extract OTPs automatically.
⚠️ Security & Privacy Notice
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:
- The agent will retain persistent access to your ShellMail inbox
- The token remains active until you explicitly revoke it or remove it from config
- Only proceed if you fully trust shellmail.ai and understand these privacy implications
Best practices:
- Use ShellMail for agent-related activities only, not personal email
- Use disposable/separate recovery emails when possible
- Review the
gateway config.patchcommand output before confirming - Revoke access when you no longer need this skill
First-Time Setup
If no token is configured:
- Ask user for desired email name (e.g., "atlas") and a recovery email
- Or use
autofor the name to generate a random address (e.g., "swift-reef-4821")
- Or use
- Run:
{baseDir}/scripts/shellmail.sh create \x3Cname> \x3Crecovery_email> - If the address is already taken:
- 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
- Save the returned token:
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
- Tell user to save the token safely — it won't be shown again
- Suggest user send a test email to their new address to verify it's working
- Once they confirm, run
inboxto show the test email arrived
Token Recovery
Only use recovery if the user explicitly says they lost access to an existing inbox they own:
{baseDir}/scripts/shellmail.sh recover \[email protected]> \x3Crecovery_email>
This sends a new token to the recovery email on file. Do not suggest this for "address taken" errors.
Commands
{baseDir}/scripts/shellmail.sh \x3Ccommand>
Check Inbox
{baseDir}/scripts/shellmail.sh inbox
{baseDir}/scripts/shellmail.sh inbox --unread
Read Email
{baseDir}/scripts/shellmail.sh read \x3Cemail_id>
Get OTP Code
# 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
Search Emails
{baseDir}/scripts/shellmail.sh search --query "verification"
{baseDir}/scripts/shellmail.sh search --otp
{baseDir}/scripts/shellmail.sh search --from stripe.com
Other Commands
{baseDir}/scripts/shellmail.sh mark-read \x3Cid>
{baseDir}/scripts/shellmail.sh archive \x3Cid>
{baseDir}/scripts/shellmail.sh delete \x3Cid>
{baseDir}/scripts/shellmail.sh health
Common Patterns
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
Revoking Access
If the user wants to revoke the skill's access to their ShellMail inbox:
Remove Token from Config
gateway config.patch '{"skills":{"entries":{"shellmail":{"env":{"SHELLMAIL_TOKEN":""}}}}}'
Delete Account Entirely
{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.
API Reference
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} |
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install shellmail - 安装完成后,直接呼叫该 Skill 的名称或使用
/shellmail触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 743 次。
如何安装 ShellMail - Email Built for AI Agents?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install shellmail」即可一键安装,无需额外配置。
ShellMail - Email Built for AI Agents 是免费的吗?
是的,ShellMail - Email Built for AI Agents 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
ShellMail - Email Built for AI Agents 支持哪些平台?
ShellMail - Email Built for AI Agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ShellMail - Email Built for AI Agents?
由 Aaron Batchelder(@aaronbatchelder)开发并维护,当前版本 v1.0.12。