Inbound Email Agent
Projects
OPEN-SOURCE EDITION · VERIFIED EMAIL-TO-AGENT BRIDGE

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.

INTERACTIVE PROTOTYPE

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.

inbound-email-agent.local
Email Bridge
HOW IT WORKS

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.

1

Strict sender allowlist

Every inbound webhook checks x-webhook-secret and ALLOWED_SENDERS. Unverified senders return HTTP 403 immediately with zero LLM tokens spent.

2

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.

3

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
View Open-Source Code on GitHub