agent-email-guard
Library that caps and checks the email an AI agent sends: budgets, rate limits, loop detection, approval holds and a kill switch.
- AI agent framework
- Free
Pricing
Free and open source (MIT).
Overview
agent-email-guard is a library you wrap around the email-sending code your AI agent uses, with nodemailer, Amazon SES, Resend, Postmark or any SMTP server. You set hourly, daily and monthly budgets per key, a per-minute rate limit, loop detection for repeated messages, a suppression list, and holds that need a person before mail goes to important or new recipients. Each send is allowed, held for approval or refused with a plain reason, and one call pauses all sending. It runs inside your agent's process, so the agent's own code could remove it; use a shared Redis or Postgres store across processes, or enforce the rules at your mail API.
Key features
- Hourly, daily and monthly send budgets
- Per-minute rate ceiling
- Loop and repeated-message detection
- Approval holds for important or new recipients
- Kill switch that stops all sending
- Node, Python, PHP and Go packages
Use cases
Show all 10Show fewer
Alternatives
Last updated 2026-11-10