agentmail

agentmail is a skill for Claude Code, Codex from NousResearch/hermes-agent. It costs 15 tokens per session (784 once invoked), scanned A, original, MIT.

A command-line email inbox made for an AI agent rather than for a person's existing mailbox. It can send messages, receive replies, handle one-time passcodes, and process inbound email.

In plain words
What is it for?
Create agent-owned inboxes, send and read email, follow threads, handle attachments and labels, complete email OTP checks, and receive incoming mail through webhooks or WebSockets.
Why use it?
It gives an agent an inbox it controls for tasks that require email communication or verification, without using the user's personal IMAP or SMTP account.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Create agent-owned inboxes, send and read email, follow threads, handle attachments and labels, complete email OTP checks, and receive incoming mail through webhooks or WebSockets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nousresearch/hermes-agent/agentmail
About the project

Hermes Agent is an AI assistant that learns from its use by creating and improving skills, retaining knowledge, searching past conversations, and adapting to its users. It is for people who want to run an agent through a terminal or messaging platforms while connecting it to different AI models and scheduled tasks.

NousResearch/hermes-agent · 267,016 stars · on GitHub · hermes-agent.nousresearch.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NousResearch/hermes-agent --skill agentmail
Clone the repo
git clone --depth 1 https://github.com/NousResearch/hermes-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/nousresearch/hermes-agent/agentmail/github.svg)](https://agentmods.dev/skills/nousresearch/hermes-agent/agentmail)
Your own site
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/agentmail"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/agentmail/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentmail

Your own site · 80×15
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/agentmail"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/agentmail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk fail 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00784
Opus 5.5 $0.00006 $0.00314
Sonnet 5.5 $0.00003 $0.00157
Haiku 4.5 $0.00002 $0.00078

Measured 3mo ago against content hash 9d7f5cb6ff42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentmail scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • agentmail — 100% identical, 0 lines differ
optional-skills/email/agentmail/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on 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.

Read the full file on GitHub · 96 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 96 lines · 15 tokens per session scan A 9d7f5cb6ff42

Subscribe to this mod's changes

agentmail is a skill published in the GitHub repository NousResearch/hermes-agent (267,016 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 784 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agentmail compared with skills from other repositories

agentmail next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentmailNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
keybindings-helpasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A57Claude Code
xlsxasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A206Claude Code, Codex
docs-governanceaffaan-m/ECCSkill313k7d agoMITA67Claude Code, Codex
a11y-debuggingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A50Claude Code, Codex
optionsasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A13Claude Code
faqasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A83Claude Code, Codex