openclaw/extensions/agentmail
Haakam Aujla f399bdfab1 allowFrom
2026-01-27 22:33:00 -08:00
..
src allowFrom 2026-01-27 22:33:00 -08:00
CHANGELOG.md allowFrom 2026-01-27 22:33:00 -08:00
clawdbot.plugin.json Initilal commit 2026-01-27 22:33:00 -08:00
index.ts Rename 2026-01-27 22:33:00 -08:00
package.json Rename 2026-01-27 22:33:00 -08:00
README.md allowFrom 2026-01-27 22:33:00 -08:00
tsconfig.json Initilal commit 2026-01-27 22:33:00 -08:00

@moltbot/agentmail

Email channel plugin for Moltbot via AgentMail.

Installation

From npm:

moltbot plugins install @moltbot/agentmail

From local checkout:

moltbot plugins install ./extensions/agentmail

Configuration

Set credentials via environment variables:

export AGENTMAIL_TOKEN="am_..."
export AGENTMAIL_EMAIL_ADDRESS="you@agentmail.to"

Or via config:

{
  channels: {
    agentmail: {
      enabled: true,
      token: "am_...",
      emailAddress: "you@agentmail.to",
    },
  },
}

Webhook Setup

Register a webhook in the AgentMail dashboard:

  • URL: https://your-gateway-host:port/webhooks/agentmail
  • Event: message.received

Features

  • Webhook-based inbound email handling
  • Full thread context for conversation history
  • Sender allowFrom filtering
  • Attachment metadata with on-demand download URLs
  • Interactive onboarding with inbox creation

Documentation

See AgentMail channel docs for full details.