Skip to content
Skillpedia
Agents260k · #489

agentmail

What it does

It helps your agent use AgentMail, a service that gives an AI agent its own email address for sending, receiving, and threading messages. It is for people who want an agent to handle its own email, not a personal mailbox.

When to use it

  • ✓When an agent needs its own email address for sending and receiving messages.
  • ✓When a task requires completing an email one-time code verification.
  • ✓When you want inbound email delivered to an agent through webhooks.

Skill link

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/email/agentmail/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/email/agentmail/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Create an inbox for my agent, send a test email to my team, and then check for replies.”

5 new skills a week. 1 minute to read.

How it works

The agent installs the agentmail command line tool, uses your API key, and runs terminal commands to create inboxes, send messages, and read replies. It uses JSON output when other scripts need IDs.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 signup.md.

How to Run

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

agentmail inboxes list --format json

Quick Reference

Procedure

  1. Install agentmail-cli@latest and verify agentmail inboxes list --format json.
  2. If no API key is available, complete signup.md.
  3. Use core.md for inbox, send, read, reply, forward, label, thread, and attachment flows.
  4. Add webhooks.md or websockets.md 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
FAQ

Can it access my personal email?

No. The skill says AgentMail is for agent-owned inboxes, not a user's existing IMAP or SMTP mailbox.

What do I need to install?

The agentmail-cli package from npm, and an AGENTMAIL_API_KEY environment variable.

Is there a signup option?

Yes. The skill includes a self-signup guide with email verification.

Details

Original description by the author

Use when an agent needs AgentMail CLI email inboxes.

repo: NousResearch/hermes-agent

Popularity

GitHub stars
260k
Ranking position
#489
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills