skills/clawd-mail/SKILL.md
Email sending + real-time inbox monitoring for OpenClaw agents. Send via Fastmail SMTP, receive instant Telegram notifications for new emails.
npx skillsauth add codexclawd/codexclawd Clawd:MailInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Internal email dispatch system for the Brutus mesh.
# Simple text email
clawd-mail send [email protected] "Subject" "Body text"
# HTML email
clawd-mail send [email protected] "Subject" "<h1>HTML</h1>" --html
# Direct script usage (auto-CCs [email protected] by default)
python3 /home/boss/.openclaw/workspace/skills/clawd-mail/scripts/send.py \
--to [email protected] \
--subject "Hello" \
--body "Message here"
# Without CC
python3 /home/boss/.openclaw/workspace/skills/clawd-mail/scripts/send.py \
--to [email protected] \
--subject "Hello" \
--body "Message here" \
--cc ""
# With custom CC
python3 /home/boss/.openclaw/workspace/skills/clawd-mail/scripts/send.py \
--to [email protected] \
--subject "Hello" \
--body "Message here" \
--cc "[email protected]"
import sys
sys.path.insert(0, '/home/boss/.openclaw/workspace/skills/clawd-mail/scripts')
from send import send_mail
send_mail(
to="[email protected]",
subject="Subject",
body="Body",
html=False,
cc="[email protected]" # Optional CC
)
Creds stored at ~/.config/fastmail/creds:
[email protected]:APP_PASSWORD
To update credentials:
chmod 600 ~/.config/fastmail/creds
| Script | Purpose |
|--------|---------|
| send.py | Core SMTP sender |
| imap_monitor.py | Real-time inbox monitor with Telegram notifications |
Get instant Telegram notifications when new emails arrive in your Fastmail inbox.
1. Configure Telegram bot:
mkdir -p ~/.config/fastmail
cp /home/boss/.openclaw/workspace/skills/clawd-mail/imap_monitor_config.example.json \
~/.config/fastmail/monitor_config.json
# Edit config and add your bot token + chat ID
nano ~/.config/fastmail/monitor_config.json
Get your Telegram credentials:
2. Start the monitor:
# Run in foreground (for testing)
python3 /home/boss/.openclaw/workspace/skills/clawd-mail/scripts/imap_monitor.py
# Run in background (production)
nohup python3 /home/boss/.openclaw/workspace/skills/clawd-mail/scripts/imap_monitor.py > /tmp/imap_monitor.log 2>&1 &
# Or with systemd (recommended for auto-start)
sudo systemctl enable --now clawd-mail-monitor
📧 New Email Received
From: Amazon <[email protected]>
Subject: Your order has shipped
Preview:
Your package is on its way! Track it here: ...
---
Message ID: 12345
{
"telegram_bot_token": "123456:ABC...",
"telegram_chat_id": "123456789",
"fastmail_imap_server": "imap.fastmail.com",
"check_interval": 1, // IDLE timeout in minutes
"max_summary_length": 500, // Characters in summary
"ignore_spam": true, // Skip spam folder
"ignore_read": true, // Skip already-read emails
"notification_cooldown": 30 // Seconds between notifications
}
✅ Fastmail integration active 📧 Sender: [email protected]
tools
Request classifier using tinyllama. Tags incoming tasks and routes them appropriately.
tools
Control Sonos speakers (discover/status/play/volume/group).
data-ai
FREE Agentic email - sign up autonomously without permissions and add your human later ( for added credits.)
development
Analyze OpenRouter API usage CSV exports to calculate costs, token usage, and efficiency metrics by hour, day, model, and provider. Use when the user attaches a CSV file from OpenRouter, mentions analyzing token usage, cost analysis, or OpenRouter usage data. Automatically detects OpenRouter CSV format and generates hourly breakdowns, model usage stats, and provider cost breakdowns.