agentmail-cli
Operate AgentMail from a shell with the official CLI. Use when the user wants commands for listing or creating inboxes, reading or searching mail, sending or replying, managing drafts, or scripting JSON/YAML output; do not use for SDK code, MCP setup, or framework adapters.
By agentmail-to · 1,418 installs
npx skills add agentmail-to/agentmail-skills --skill agentmail-cli
Source repository · Upstream listing
AgentMail CLI
Install the CLI and provide the API key through the environment.
Subcommands for a resource nested under another use a colon, e.g. inboxes:messages , inboxes:threads , pods:inboxes , pods:threads .
Inboxes
Confirm the exact inbox before running the destructive delete command.
Messages and threads
Use a message ID for replies. Fetch the full message before relying on body content.
Drafts
Pods
Pods group inboxes together.
Webhooks
Domains
Global flags
Flag Purpose
api key Override AGENTMAIL API KEY for this call
base url Point at a non default API host
environment Select a named environment
format Output format (see below)
format error Control structured error output
transform GJSON projection of a successful response
transform error GJSON projection of an error response
debug Verbose request/response logging
Output formats
format accepts: auto (default), pretty , json , jsonl , yaml , raw , explore .
Run agentmail help and the relevant resource's help before using an administrative command not covered here.