agentmail

GitHub

提供Agent专用邮箱服务,支持发送接收邮件、完成OTP验证及处理入站邮件流。通过CLI管理收件箱、消息和附件,支持Webhook/WebSocket实时推送,专为自动化流程设计。

optional-skills/email/agentmail/SKILL.md NousResearch/hermes-agent

Trigger Scenarios

需要为Agent创建专属邮箱地址 执行电子邮件OTP验证流程 处理入站邮件回复或标签

Install

npx skills add NousResearch/hermes-agent --skill agentmail -g -y
More Options

Non-standard path

npx skills add https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/email/agentmail -g -y

Use without installing

npx skills use NousResearch/hermes-agent@agentmail

指定 Agent (Claude Code)

npx skills add NousResearch/hermes-agent --skill agentmail -a claude-code -g -y

安装 repo 全部 skill

npx skills add NousResearch/hermes-agent --all -g -y

预览 repo 内 skill

npx skills add NousResearch/hermes-agent --list

SKILL.md

Frontmatter
{
    "name": "agentmail",
    "author": "Haakam Aujla (Haakam21), AgentMail",
    "license": "MIT",
    "version": "1.0.0",
    "metadata": {
        "hermes": {
            "tags": [
                "Email",
                "CLI",
                "AgentMail",
                "Communication"
            ],
            "homepage": "https:\/\/agentmail.to"
        }
    },
    "platforms": [
        "linux",
        "macos",
        "windows"
    ],
    "description": "Use when an agent needs AgentMail CLI email inboxes.",
    "prerequisites": {
        "commands": [
            "agentmail"
        ]
    },
    "required_environment_variables": [
        {
            "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.",
            "name": "AGENTMAIL_API_KEY",
            "prompt": "AgentMail API key (starts with am_)",
            "optional": true,
            "required_for": "authenticating the agentmail CLI; not needed before self-signup"
        }
    ]
}

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

Version History

  • b7ac3ba Current 2026-09-09 13:06

    将技能从MCP优先重写为CLI优先,新增自注册和OTP验证指引,强调API密钥安全及可选配置。

  • 8430c1b 2026-08-20 06:04

    执行技能标准化审查,补全缺失的前置元数据(作者、许可证等),并修正描述文案以符合规范。

  • e0dfcf2 2026-07-25 11:35

Same Skill Collection

optional-skills/autonomous-ai-agents/agent-merge-conflict-arbiter/SKILL.md
optional-skills/autonomous-ai-agents/antigravity-cli/SKILL.md
optional-skills/autonomous-ai-agents/blackbox/SKILL.md
optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.md
optional-skills/autonomous-ai-agents/grok/SKILL.md
optional-skills/autonomous-ai-agents/honcho/SKILL.md
optional-skills/autonomous-ai-agents/opencode/SKILL.md
optional-skills/autonomous-ai-agents/openhands/SKILL.md
optional-skills/blockchain/evm/SKILL.md
optional-skills/blockchain/hyperliquid/SKILL.md
optional-skills/blockchain/solana/SKILL.md
optional-skills/communication/one-three-one-rule/SKILL.md
optional-skills/creative/ai-presenter-video/SKILL.md
optional-skills/creative/anatomy/SKILL.md
optional-skills/creative/archify/SKILL.md
optional-skills/creative/ascii-art/SKILL.md
optional-skills/creative/audiocraft-audio-generation/SKILL.md
optional-skills/creative/auteur/SKILL.md
optional-skills/creative/baoyu-article-illustrator/SKILL.md
optional-skills/creative/baoyu-comic/SKILL.md
optional-skills/creative/blender-mcp/SKILL.md
optional-skills/creative/brag-slim/SKILL.md
optional-skills/creative/brag/SKILL.md
optional-skills/creative/concept-diagrams/SKILL.md
optional-skills/creative/creative-ideation/SKILL.md
optional-skills/creative/design-md/SKILL.md
optional-skills/creative/draw-your-font/SKILL.md
optional-skills/creative/dream-loop/SKILL.md
optional-skills/creative/excalidraw/SKILL.md
optional-skills/creative/heartmula/SKILL.md
optional-skills/creative/impeccable/SKILL.md
optional-skills/creative/ip-as-logo/SKILL.md
optional-skills/creative/kanban-video-orchestrator/SKILL.md
optional-skills/creative/meme-generation/SKILL.md
optional-skills/creative/mono-color/SKILL.md
optional-skills/creative/pixel-art/SKILL.md
optional-skills/creative/pretext/SKILL.md
optional-skills/creative/simple-english/SKILL.md
optional-skills/creative/sketch/SKILL.md
optional-skills/creative/social-media-content-calendar/SKILL.md
optional-skills/creative/system-atlas/SKILL.md
optional-skills/creative/tldraw-offline/SKILL.md
optional-skills/creative/unreal-mcp/SKILL.md
optional-skills/data-science/jupyter-notebook/SKILL.md
optional-skills/devops/actual-setup/SKILL.md
optional-skills/devops/cli/SKILL.md
optional-skills/devops/docker-management/SKILL.md
optional-skills/devops/hermes-s6-container-supervision/SKILL.md
optional-skills/devops/inference-sh-cli/SKILL.md
optional-skills/devops/pinggy-tunnel/SKILL.md

Metadata

Files
0
Version
e115f6d
Hash
9d7f5cb6
Indexed
2026-07-25 11:35

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-05 16:50
浙ICP备14020137号-1