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.
Install
With your agent
Install OMGSkills skill "agentmail-to/agentmail-plugins:skills/agentmail-cli" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/agentmail-to/agentmail-plugins /tmp/agentmail-plugins && ln -s /tmp/agentmail-plugins/skills/agentmail-cli ~/.claude/skills/agentmail-cli
From README
AgentMail CLI the CLI and provide the API key through the environment. 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 --help to list what a resource supports. 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.
More from this repo
agent-email-patterns
Architecture patterns for AI agents that communicate over email -- why agents need dedicated inboxes rather than human...
agentmail
Used to build with the AgentMail TypeScript or Python SDK for inbox, message, thread, draft, attachment, domain,...
agentmail-mcp
Configure or troubleshoot the hosted AgentMail MCP server for Codex, Claude Code, Cursor, Claude.ai, ChatGPT, or...
