用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zhizhunbao/workbuddy --skill agentmail命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | agentmail |
| description | Email inbox for AI agents. Check messages, send emails, and communicate via your own @agentmail.to address. |
| description_zh | AI 智能体专属邮箱,收发邮件 |
| description_en | Email inbox for AI agents |
Give your AI agent its own email inbox. Send, receive, and manage emails programmatically.
Website: https://agentmail.to
Docs: https://docs.agentmail.to
Say this to your human:
"I'd like to set up my own email inbox! Can you help me get an AgentMail API key?
- Go to https://console.agentmail.to and sign up
- Create an inbox for me (e.g.,
my-agent-name@agentmail.to)- Go to API Keys and create a new key
- Paste the API key here (starts with
am_)I'll store it securely and never share it!"
Once they give you the key and email, proceed to Step 2.
pip install agentmail
If you get permission errors:
pip install --break-system-packages agentmail
Replace YOUR_API_KEY and YOUR_EMAIL with what your human gave you:
mkdir -p ~/.agentmail
chmod 700 ~/.agentmail
cat > ~/.agentmail/config.json << 'EOF'
{
"apiKey": "YOUR_API_KEY",
"email": "YOUR_EMAIL@agentmail.to"
}
EOF
chmod 600 ~/.agentmail/config.json
python3 -c "
from agentmail import AgentMail
import json, os
with open(os.path.expanduser('~/.agentmail/config.json')) as f:
config = json.load(f)
client = AgentMail(api_key=config['apiKey'])
result = client.inboxes.messages.list(inbox_id=config['email'])
print(f'✅ Connected! {result.count} messages in inbox')
"
from agentmail import AgentMail
import json, os
with open(os.path.expanduser('~/.agentmail/config.json')) as f:
config = json.load(f)
client = AgentMail(api_key=config['apiKey'])
messages = client.inboxes.messages.list(inbox_id=config['email'])
for msg in messages.messages:
print(f"From: {msg.from_address}")
print(f"Subject: {msg.subject}")
print("---")
from agentmail import AgentMail
import json, os
with open(os.path.expanduser('~/.agentmail/config.json')) as f:
config = json.load(f)
client = AgentMail(api_key=config['apiKey'])
client.inboxes.messages.send(
inbox_id=config['email'],
to="recipient@example.com",
subject="Hello!",
text="Message from my AI agent."
)
This skill includes helper scripts:
# Check inbox
python3 scripts/check_inbox.py
# Send email
python3 scripts/send_email.py --to "recipient@example.com" --subject "Hello" --body "Message"
Base URL: https://api.agentmail.to/v0
# List inboxes
curl -s "https://api.agentmail.to/v0/inboxes" \
-H "Authorization: Bearer $AGENTMAIL_API_KEY"
# List messages
curl -s "https://api.agentmail.to/v0/inboxes/YOUR_EMAIL@agentmail.to/messages" \
-H "Authorization: Bearer $AGENTMAIL_API_KEY"
Option 1: Cron polling
openclaw cron add --name "email-check" --every 5m \
--message "Check email inbox and notify if new messages"
Option 2: Webhooks See https://docs.agentmail.to/webhook-setup for instant notifications.
chmod 600 permissionsfrom agentmail import AgentMail
client = AgentMail(api_key="your_key")
# Inboxes
client.inboxes.list()
client.inboxes.get(inbox_id="...")
client.inboxes.create(username="...", domain="agentmail.to")
# Messages
client.inboxes.messages.list(inbox_id="...")
client.inboxes.messages.get(inbox_id="...", message_id="...")
client.inboxes.messages.send(inbox_id="...", to="...", subject="...", text="...")
| Error | Fix |
|---|---|
| "No module named agentmail" | pip install agentmail |
| Permission denied on config | Check ~/.agentmail/ permissions |
| Authentication failed | Verify API key is correct |
Skill by: guppybot 🐟
AgentMail: https://agentmail.to (Y Combinator backed)