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
View on GitHub

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, and pods inboxes, with --format options for JSON, YAML, and JSONL
  • Guides users to confirm the exact inbox before running the destructive inboxes delete command 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 -y

Installs 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 7

Similar to Agentmail Cli

More Email & Messaging