Agentmail agentmail

Use when an agent needs AgentMail CLI email inboxes.

Works in Claude, ChatGPT, Codex and more
Our test
—
not tested yet
GitHub stars
269k
nousresearch/hermes-agent
Added by
0
members
Updated
Dec 6
commit 8fa3133
Content
6 files
no scripts · 9 KB
License
MIT
free to use

What our test found

Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.

View on GitHub ↗
name: agentmail
description: Use when an agent needs AgentMail CLI email inboxes.
version: 1.0.0
author: Haakam Aujla (Haakam21), AgentMail
license: MIT
platforms: [linux, macos, windows]
metadata:
  hermes:
    tags: [Email, CLI, AgentMail, Communication]
    homepage: https://agentmail.to
prerequisites:
  commands: [agentmail]
required_environment_variables:
  - name: AGENTMAIL_API_KEY
    prompt: AgentMail API key (starts with am_)
    help: "Create one at https://console.agentmail.to — or run the CLI self-signup flow in references/signup.md to obtain a key without one."
    required_for: "authenticating the agentmail CLI; not needed before self-signup"
    optional: true

AgentMail Skill

AgentMail gives an agent its own email inbox for sending mail, receiving replies, completing email OTP flows, and running inbound email loops. Use it for agent-owned inboxes, not a user's existing IMAP/SMTP mailbox.

Use the agentmail CLI first. Use MCP only when the harness expects MCP tools; use REST only when the CLI is missing a required operation.

When to Use

  • The agent needs an email address it owns.
  • The task involves email OTP flows, replies, threads, labels, or attachments.
  • The agent needs webhook or WebSocket delivery for inbound mail.

Prerequisites

  • Run commands through the terminal tool.
  • Install the CLI:
npm install -g agentmail-cli@latest
  • Export an API key:
export AGENTMAIL_API_KEY="am_..."

No API key yet? Use .

How to Run

Use --format json whenever another command or script needs IDs.

agentmail inboxes list --format json

Quick Reference

  • AgentMail agent reference: hosted copy.
  • AgentMail: product landing page.
  • Console: API keys and account management.
  • Docs: full product documentation.
  • : self-signup and OTP verification.
  • : inboxes, messages, threads, labels, attachments.
  • : events to a public HTTPS server.
  • : events to a local agent process.
  • : MCP integration.

Procedure

  1. Install agentmail-cli@latest and verify agentmail inboxes list --format json.
  2. If no API key is available, complete .
  3. Use for inbox, send, read, reply, forward, label, thread, and attachment flows.
  4. Add or only when polling is not enough.

Pitfalls

  • Prefer AGENTMAIL_API_KEY over --api-key.
  • Never expose AGENTMAIL_API_KEY in prompts, logs, URLs, or committed files.
  • Use stable client_id values for retried create operations.
  • Prefer extracted_text or extracted_html for LLM input when present.
  • React to message.received, not messages the agent sent.

Verification

agentmail inboxes list --format json