Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
agentmail-to avatar

Agentmail

  • 3 installs
  • 35 repo stars
  • Updated August 3, 2026
  • agentmail-to/agentmail-cli

agentmail (CLI) is a Claude Code skill that drives the agentmail command-line tool to send and receive email programmatically.

About

A Claude Code skill that drives the agentmail command-line tool to send and receive email programmatically. It documents CLI commands for creating inboxes, sending and replying to messages, listing threads, and managing drafts and pods. A developer uses it to script email actions from the shell without writing SDK code.

  • Wraps the agentmail CLI to send and receive email from the terminal
  • Commands for inboxes, messages, threads, drafts, and pods
  • Requires only the AGENTMAIL_API_KEY environment variable

Agentmail by the numbers

  • 3 all-time installs (skills.sh)
  • Ranked #435 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

agentmail capabilities & compatibility

Requires AGENTMAIL_API_KEY; AgentMail account needed.

Capabilities
email automation · cli tooling
Works with
gmail
Use cases
email
Pricing
Bring your own API key
From the docs

What agentmail says it does

Use the `agentmail` CLI to send and receive emails programmatically. Requires `AGENTMAIL_API_KEY` environment variable.
SKILL.md
Pods group inboxes together.
SKILL.md
npx skills add https://github.com/agentmail-to/agentmail-cli --skill agentmail

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3
repo stars35
Last updatedAugust 3, 2026
Repositoryagentmail-to/agentmail-cli

What it does

Send, read, and reply to email from the terminal using the agentmail CLI.

Who is it for?

Scripting email send/receive from the command line via the agentmail CLI.

Skip if: Building programmatic email agents in application code (use the SDK skill instead).

When should I use this skill?

Sending or receiving email programmatically from the terminal with the agentmail CLI.

What you get

Email sent, read, and replied to from the terminal through the agentmail CLI.

  • Terminal email commands
  • Inbox and message management from the shell

By the numbers

  • Covers 5 command groups: inboxes, messages, threads, drafts, and pods

Files

SKILL.mdMarkdownGitHub ↗

AgentMail CLI

Use the agentmail CLI to send and receive emails programmatically. Requires AGENTMAIL_API_KEY environment variable.

Install

npm install -g agentmail-cli

Core Commands

Inboxes

# Create an inbox
agentmail inboxes create --display-name "My Agent" --username myagent --domain example.com

# List inboxes
agentmail inboxes list

# Get an inbox
agentmail inboxes retrieve --inbox-id <inbox_id>

# Delete an inbox
agentmail inboxes delete --inbox-id <inbox_id>

Send Email

# Send a message from an inbox
agentmail inboxes:messages send --inbox-id <inbox_id> \
  --to "recipient@example.com" \
  --subject "Hello" \
  --text "Message body"

# Send with HTML
agentmail inboxes:messages send --inbox-id <inbox_id> \
  --to "recipient@example.com" \
  --subject "Hello" \
  --html "<h1>Hello</h1>"

# Reply to a message
agentmail inboxes:messages reply --inbox-id <inbox_id> --message-id <message_id> \
  --text "Reply body"

# Forward a message
agentmail inboxes:messages forward --inbox-id <inbox_id> --message-id <message_id> \
  --to "someone@example.com"

Read Email

# List messages in an inbox
agentmail inboxes:messages list --inbox-id <inbox_id>

# Get a specific message
agentmail inboxes:messages retrieve --inbox-id <inbox_id> --message-id <message_id>

# List threads
agentmail inboxes:threads list --inbox-id <inbox_id>

# Get a thread
agentmail inboxes:threads retrieve --inbox-id <inbox_id> --thread-id <thread_id>

Drafts

# Create a draft
agentmail inboxes:drafts create --inbox-id <inbox_id> \
  --to "recipient@example.com" \
  --subject "Draft" \
  --text "Draft body"

# Send a draft
agentmail inboxes:drafts send --inbox-id <inbox_id> --draft-id <draft_id>

Pods

Pods group inboxes together.

# Create a pod
agentmail pods create --name "My Pod"

# Create an inbox in a pod
agentmail pods:inboxes create --pod-id <pod_id> --display-name "Pod Inbox"

# List threads in a pod
agentmail pods:threads list --pod-id <pod_id>

Webhooks

# Create a webhook for new messages
agentmail webhooks create --url "https://example.com/webhook" --event-type message.received

# List webhooks
agentmail webhooks list

Domains

# Add a custom domain
agentmail domains create --domain example.com --feedback-enabled false

# Verify domain DNS
agentmail domains verify --domain-id <domain_id>

# Get DNS records to configure
agentmail domains get-zone-file --domain-id <domain_id>

Global Flags

All commands support: --api-key, --base-url, --environment, --format, --debug.

Output Formats

Use --format to control output: json (default), pretty, yaml, jsonl, raw, explore.

Related skills

FAQ

How is the CLI installed?

Via npm install -g agentmail-cli, per the skill's install step.

What credential does it need?

The AGENTMAIL_API_KEY environment variable.

CLI & Terminalintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.