Inbound Email Agent
A single-owner email front door for your AI agent. Forward an itinerary, invoice, or quick instruction to your own agent address: the bridge verifies your sender identity and webhook secret, rejects strangers at the gate with HTTP 403, runs your local coding CLI, and logs every decision.
Open-source edition: Adapted from the inbound email front door inside my Digital Brain system (alongside Telegram Agent, AI Voice Desk, and MCP Connector Hub). Personal addresses and private routing are removed so anyone can self-host it cleanly.
Test the verified sender gate and audit log
Try a verified owner task, a forwarded flight email, or an unverified phishing attempt to see how the gate blocks strangers before any model or tool runs.
Email tasks to your agent without opening an attack surface
Built with plain Node.js and zero npm dependencies so you can inspect every line of the security gate before pointing an inbox webhook at it.
Strict sender allowlist
Every inbound webhook checks x-webhook-secret and ALLOWED_SENDERS. Unverified senders return HTTP 403 immediately with zero LLM tokens spent.
Ephemeral CLI execution
Verified instructions run through your installed coding CLI (Claude Code, Codex, or Gemini) in execute-only mode so emailed text never silently pollutes long-term memory.
Structured reply & audit trail
Every accepted or blocked email is appended to data/audit.jsonl with timestamp, sender, subject, and outcome for clean post-hoc review.
Run the open-source edition on your machine
Standalone MIT-licensed email-to-agent webhook bridge adapted from my Digital Brain stack. Zero npm dependencies and ready for ForwardEmail, Postmark, or Mailgun.
git clone https://github.com/mohd-km/inbound-email-agent.git