agent-email is a Bun CLI for AI agents that need access to a disposable email inbox powered by Mail.tm.
This project is open source under the MIT License.
Community docs:
npm install -g @zaddy6/agentemail
# or
bun install -g @zaddy6/agentemailInstall the Codex skill:
npx skills add https://github.com/zaddy6/agent-email-skill --skill agent-email-cliCreate an inbox with one command (no flags):
agent-email createRead latest emails:
agent-email read <email>All commands return JSON by default.
agent-email createagent-email read <email|alias> [--limit <n>] [--full] [--wait <seconds>] [--interval <seconds>]agent-email show <email|alias> <messageId>agent-email delete <email|alias> <messageId>agent-email accounts listagent-email accounts add <email> --password <pwd> [--set-default]agent-email accounts remove <email|alias>agent-email use <email|alias>agent-email config pathagent-email about
Aliases for account selection:
defaultactiveme
Use human-readable output if needed:
agent-email --human accounts listCredentials are stored in:
~/.config/agent-email/config.json
Override path with:
AGENT_EMAIL_CONFIG=/custom/path/config.json
The tool enforces 0600 permissions for the config file on Unix.
bun install
bun run checkRun live Mail.tm smoke test (opt-in):
AGENT_EMAIL_LIVE_TESTS=1 bun run test:liveThis project uses Mail.tm API. If you use the API, follow Mail.tm terms and attribution requirements.