agentmail

GitHub

提供AgentMail CLI工具的使用指南,帮助AI代理创建和管理专属邮箱、收发邮件及处理OTP流程。支持通过CLI或MCP方式操作,涵盖配置、常用命令及安全注意事项。

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

触发场景

需要为AI代理创建专用邮箱地址 执行基于邮件的自动注册或OTP验证 自动化发送或接收电子邮件任务

安装

npx skills add NousResearch/hermes-agent --skill agentmail -g -y
更多选项

非标准路径

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

不安装直接使用

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

版本历史

  • b7ac3ba 当前 2026-09-09 13:06

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

  • 8430c1b 2026-08-20 06:04

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

  • e0dfcf2 2026-07-25 11:35

同 Skill 集合

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/grok/SKILL.md
optional-skills/autonomous-ai-agents/honcho/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/ascii-art/SKILL.md
optional-skills/creative/audiocraft-audio-generation/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/concept-diagrams/SKILL.md
optional-skills/creative/creative-ideation/SKILL.md
optional-skills/creative/draw-your-font/SKILL.md
optional-skills/creative/excalidraw/SKILL.md
optional-skills/creative/heartmula/SKILL.md
optional-skills/creative/impeccable/SKILL.md
optional-skills/creative/kanban-video-orchestrator/SKILL.md
optional-skills/creative/meme-generation/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/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
optional-skills/devops/setup-wizard-generator/SKILL.md
optional-skills/devops/watchers/SKILL.md
optional-skills/dogfood/adversarial-ux-test/SKILL.md
optional-skills/finance/3-statement-model/SKILL.md
optional-skills/finance/comps-analysis/SKILL.md
optional-skills/finance/dcf-model/SKILL.md
optional-skills/finance/excel-author/SKILL.md
optional-skills/finance/lbo-model/SKILL.md
optional-skills/finance/polymarket/SKILL.md
optional-skills/finance/stocks/SKILL.md
optional-skills/gaming/minecraft-modpack-server/SKILL.md
optional-skills/health/fitness-nutrition/SKILL.md

元信息

文件数
0
版本
b7ac3ba
Hash
9d7f5cb6
收录时间
2026-07-25 11:35

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 19:35
浙ICP备14020137号-1 $访客地图$