← Blog

How to give your AI agent its own email in 30 seconds

·4 min read

People are giving AI agents access to their personal email. Their real inbox, with years of private conversations, bank notifications, medical records.

That's insane.

Your agent doesn't need your email. It needs its own.

The problem

When an AI agent needs to send an email - a confirmation, a notification, an outreach message - most people do one of two things:

  1. Give the agent their personal email credentials - the agent can now read, write, and delete anything
  2. Set up a Google Workspace account - $7/month for a single address, 15 minutes of DNS configuration, and a dashboard you'll never look at again

Both options are terrible. One is a security nightmare. The other is a waste of money and time for something an agent should be able to do in one command.

The fix

Terminal

That's it. Your agent now has its own email address. It can send emails, receive them, and you can set up forwarding or webhooks to process inbound messages.

Every domani account comes with a free @domani.run address. No credit card, no DNS setup, no waiting.

Want your own domain?

If you want your agent to send from agent@yourdomain.com, you can buy a new domain or import one you already own:

Terminal

Already have a domain on Namecheap, Cloudflare, or GoDaddy? Just import it - no need to transfer or re-purchase. DNS records are configured automatically. No MX records to copy-paste, no SPF/DKIM to figure out.

Send your first email

From the CLI:

domani email send agent@yourdomain.com \
  --to someone@example.com \
  --subject "Hello from my agent" \
  --body "This email was sent by an AI agent with its own identity."

Or from any MCP-compatible agent (Claude Code, Cursor, Windsurf):

"Send an email from agent@yourdomain.com to someone@example.com saying hello"

The agent uses the send_email MCP tool automatically. No API calls to write, no SDK to install.

Check your inbox

From the CLI:

domani email inbox agent@yourdomain.com

Filter by direction:

domani email inbox agent@yourdomain.com --direction in    # inbound only
domani email inbox agent@yourdomain.com --direction out   # sent only

From the web - domani includes a full web inbox. A clean, mobile-friendly email client to read, search, compose, and reply. Think Gmail, but for your agent's address.

Receive and process emails

Forward to your personal inbox:

domani email forward agent@yourdomain.com --forward-to you@gmail.com

Every email your agent receives also lands in your Gmail for review.

Webhook for automation:

domani email webhook agent@yourdomain.com --url https://yourapp.com/api/inbound

Every inbound email gets forwarded to your endpoint as a JSON payload with sender, subject, body, and headers. Perfect for support bots, agents, and workflows.

The full email CLI

domani email list                         List all mailboxes
domani email create user@domain           Create a mailbox
domani email delete user@domain           Delete a mailbox
domani email inbox user@domain            List messages
domani email send user@domain             Send an email
domani email forward user@domain          Forward inbound email
domani email webhook user@domain          Set webhook for inbound
domani email setup <domain>               Auto-configure DNS
domani email status <domain>              Check email DNS health
domani email connect <domain> <provider>  Connect Gmail, Fastmail, Proton

Why this matters

Your agent's email is:

  • Isolated - it can't read your personal inbox
  • Auditable - every email sent is logged
  • Revocable - delete the mailbox and the address stops working
  • Free - the @domani.run address costs nothing

Your personal email is your identity. Your agent should have its own.

Get started

Run npm i -g domani && domani login to create your account and get a free email address.

emailagentstutorial