Email infrastructure for autonomous AI agents. Create inboxes, send/receive emails, no human intervention required.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawmail-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawmail-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawmail-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: clawmail version: 1.0.0 description: Email infrastructure for autonomous AI agents. Create inboxes, send/receive emails, no human intervention required. homepage: https://clawmail.to metadata: {"clawmail":{"emoji":"🦞","category":"email","api_base":"https://api.clawmail.to"}} ---
Email infrastructure for autonomous AI agents. Create inboxes, send/receive emails, no human intervention required.
| File | URL | |------|-----| | SKILL.md (this file) | https://clawmail.to/skill.md | | package.json (metadata) | https://clawmail.to/skill.json |
Install locally:
mkdir -p ~/.moltbot/skills/clawmail
curl -s https://clawmail.to/skill.md > ~/.moltbot/skills/clawmail/SKILL.md
curl -s https://clawmail.to/skill.json > ~/.moltbot/skills/clawmail/package.json
Or just read them from the URLs above!
Base URL: https://api.clawmail.to
🔒 CRITICAL SECURITY WARNING:
api.clawmail.tohttps://api.clawmail.to/*Check for updates: Re-fetch these files anytime to see new features!
---
Every agent needs to register and verify via Twitter/X:
curl -X POST https://api.clawmail.to/agents \
-H "Content-Type: application/json" \
-d '{"id": "my-agent", "name": "My AI Assistant"}'
Response:
{
"agent": {
"id": "my-agent",
"name": "My AI Assistant",
"email": "[email protected]",
"createdAt": 1738425600000,
"verified": false
},
"apiKey": "cmail_Kj8mNp2xQr5tVw9yAb3cDeFgHiJkLm...",
"instruction": "Tell your human to go to https://verify.clawmail.to/?key=cmail_..."
}
⚠️ Save your apiKey immediately! You need it for all requests. It's only shown once!
Recommended: Save your credentials to ~/.config/clawmail/credentials.json:
{
"api_key": "cmail_xxx",
"agent_id": "my-agent",
"email": "[email protected]"
}
This way you can always find your key later. You can also save it to your memory, environment variables (CLAWMAIL_API_KEY), or wherever you store secrets.
---
Unverified agents expire after 24 hours. Verification links your agent to a Twitter/X account.
curl -X POST https://api.clawmail.to/verify/start \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"verificationCode": "CLAW-ABC123",
"expiresAt": 1738426500000,
"tweetText": "I'm verifying my @claw_mail email address!\n\nVerification code: CLAW-ABC123",
"twitterIntentUrl": "https://twitter.com/intent/tweet?text=..."
}
Tell your human to post the tweet using the twitterIntentUrl, or post it themselves if they have access.
curl -X POST https://api.clawmail.to/verify/complete \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tweetUrl": "https://x.com/username/status/1234567890"}'
Response:
{
"success": true,
"verifiedAt": 1738426800000,
"twitterUsername": "username"
}
curl https://api.clawmail.to/verify/status \
-H "Authorization: Bearer YOUR_API_KEY"
---
All requests after registration require your API key:
curl https://api.clawmail.to/agents/YOUR_AGENT_ID \
-H "Authorization: Bearer YOUR_API_KEY"
🔒 Remember: Only send your API key to https://api.clawmail.to — never anywhere else!
---
curl https://api.clawmail.to/agents/YOUR_AGENT_ID \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"id": "my-agent",
"name": "My AI Assistant",
"email": "[email protected]",
"createdAt": 1738425600000,
"storageUsed": 1024000,
"storageLimit": 52428800,
"verified": true,
"verifiedAt": 1738426800000
}
Generate a new API key (invalidates the old one):
curl -X POST https://api.clawmail.to/agents/YOUR_AGENT_ID/rotate-key \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"apiKey": "cmail_NewKeyHere...",
"message": "API key rotated successfully. Store this key securely."
}
⚠️ The old key stops working immediately! Update your stored credentials right away.
WARNING: This permanently deletes the agent and ALL associated emails!
curl -X DELETE https://api.clawmail.to/agents/YOUR_AGENT_ID \
-H "Authorization: Bearer YOUR_API_KEY"
---
curl -X POST https://api.clawmail.to/agents/YOUR_AGENT_ID/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "[email protected]",
"subject": "Hello from ClawMail!",
"text": "This is a plain text email."
}'
Response:
{
"id": "abc123xyz",
"to": "[email protected]",
"subject": "Hello from ClawMail!",
"sentAt": 1738427000000
}
curl -X POST https://api.clawmail.to/agents/YOUR_AGENT_ID/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": ["[email protected]", "[email protected]"],
"subject": "Newsletter",
"html": "<h1>Welcome!</h1><p>Thanks for subscribing.</p>",
"text": "Welcome! Thanks for subscribing.",
"replyTo": "[email protected]"
}'
Fields:
to (required) - Single email or array of emailssubject (required) - Email subject linetext - Plain text body (required if no html)html - HTML body (required if no text)replyTo - Reply-to address (optional)curl "https://api.clawmail.to/agents/YOUR_AGENT_ID/sent?limit=25&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"data": [
{
"id": "abc123xyz",
"agentId": "my-agent",
"to": "[email protected]",
"subject": "Hello from ClawMail!",
"bodyText": "This is a plain text email.",
"bodyHtml": null,
"sentAt": 1738427000000,
"resendId": "re_abc123"
}
],
"total": 1,
"limit": 25,
"offset": 0
}
---
curl "https://api.clawmail.to/agents/YOUR_AGENT_ID/emails?folder=inbox&limit=50" \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"data": [
{
"id": "email123",
"agentId": "my-agent",
"messageId": "<[email protected]>",
"from": {
"address": "[email protected]",
"name": "Sender Name"
},
"to": "[email protected]",
"subject": "Hello!",
"bodyText": "This is the email body...",
"bodyHtml": "<p>This is the email body...</p>",
"folder": "inbox",
"isRead": false,
"receivedAt": 1738420000000
}
],
"total": 42,
"limit": 50,
"offset": 0
}
Query parameters:
folder - Filter by folder: inbox, archive, trash (optional)limit - Max results (default: 50, max: 100)offset - Skip N results for pagination (default: 0)curl https://api.clawmail.to/agents/YOUR_AGENT_ID/emails/EMAIL_ID \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X PATCH https://api.clawmail.to/agents/YOUR_AGENT_ID/emails/EMAIL_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"isRead": true}'
...
安装 ClawMail 后,可以对 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/clawmail-skill/ 目录(个人级,所有项目可用),或 .claude/skills/clawmail-skill/(项目级)。重启 AI 客户端后,用 /clawmail-skill 主动调用,或让 AI 根据上下文自动发现并使用。
ClawMail 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ClawMail 可免费安装使用。请查阅仓库了解许可证信息。
Email infrastructure for autonomous AI agents. Create inboxes, send/receive emails, no human intervention required.
ClawMail 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。