
Agentmail Cli
Command-line operation of AgentMail inboxes, mail, drafts, pods, webhooks, and domains with scriptable output.
- CCM score
- 60 of 100
- skills.sh installs
- 1.7K
- GitHub stars
- 26
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers listing, creating, and deleting inboxes, reading and searching mail, sending, replying, forwarding, and managing drafts
- Includes nested subcommands such as
inboxes messages,inboxes threads, andpods inboxes, with--formatoptions for JSON, YAML, and JSONL - Guides users to confirm the exact inbox before running the destructive
inboxes deletecommand and to fetch full messages before relying on body content - Designed for shell scripting and terminal use, excluding SDK code, MCP setup, and framework adapters
Install
$ npx -y skills add agentmail-to/agentmail-skills --skill agentmail-cli -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
AgentMail CLI
Install the CLI and provide the API key through the environment.
npm install -g agentmail-cli
export AGENTMAIL_API_KEY="am_..."
A resource nested under another is a nested subcommand, e.g. inboxes messages, inboxes threads, pods inboxes, pods threads (CLI 1.x; the colon form inboxes:messages is rejected). Run agentmail <resource> --help to list what a resource supports.
Inboxes
agentmail inboxes list
agentmail inboxes get --inbox-id <inbox_id>
agentmail inboxes create --display-name "Support Agent" --username support
agentmail inboxes delete --inbox-id <inbox_id>
Confirm the exact inbox before running the destructive delete command.
Messages and threads
agentmail inboxes messages list --inbox-id <inbox_id>
agentmail inboxes messages get --inbox-id <inbox_id> --message-id <message_id>
agentmail inboxes messages send --inbox-id <inbox_id> \
--to "recipient@example.com" \
--subject "Hello" \
--text "Message body"
# HTML body instead of plain text
agentmail inboxes messages send --inbox-id <inbox_id> \
--to "recipient@example.com" \
--subject "Hello" \
--html "<h1>Hello</h1>"
Details
- Repository
- github.com/agentmail-to/agentmail-skills
- Categories
- Email & Messaging, CLI & Terminal
- First seen
- May 16, 2026
More from agentmail-to/agentmail-skills
All 7Similar to Agentmail Cli
More Email & Messaging
agent-email-cliSkillzaddy6/agent-email-skill2.1K installsCommand-line disposable inboxes for agents that create mailboxes, poll for mail, and read full messages.
agently-mailSkilltencent/agentlymail6.3K installsFull email operations through the agently-cli tool, with two-stage confirmation for all write actions.
agentmail-sdkSkillagentmail-to/agentmail-skills806 installsReference guide for the AgentMail email API, covering TypeScript and Python SDK usage for AI agents.
telegramSkillskillhq/telegram486 installsTelegram CLI that reads, searches, sends, and administers chats, groups, and history from the terminal.
Email McpMCP servercodefuturist166 starsGives AI assistants full IMAP/SMTP email access across multiple accounts: read, search, send, and manage.
EmailMCP servern24q02m39 starsRead, send, reply, and organize email across multiple IMAP/SMTP accounts with attachment access.