Skip to main content
skill CX Codex

agentmail-cli — Claude Code skill: AgentMail commands from a shell

Gives your agent the official AgentMail CLI: inboxes, messages, drafts, webhooks and domains, with JSON or YAML output.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add agentmail-to/agentmail-skills --skill agentmail-cli -a claude-code
Open on GitHub

What agentmail-cli does

The skill spells out agentmail commands and how to call them. Your agent gets ready examples for inboxes, messages and threads, drafts, pods, webhooks and domains — from agentmail inboxes list to agentmail domains verify --domain-id <domain_id>. A resource nested under another becomes a nested subcommand: inboxes messages, pods threads. The colon form inboxes:messages is rejected in CLI 1.x, so older snippets you find elsewhere will fail.

Setup is two steps: npm install -g agentmail-cli, then export AGENTMAIL_API_KEY="am_...". A single call can override the key with --api-key, and --base-url or --environment help when the API is not on the default host. Output is controlled by --format: auto, pretty, json, jsonl, yaml, raw, explore. Handy when a script parses the result.

The skill stays away from SDK code, MCP setup and framework adapters — it is not meant for those. Deleting an inbox cannot be undone, so check the --inbox-id first. Replies need a message ID, and you should fetch the full message before trusting its body. For any administrative command the skill does not cover, run agentmail --help and the resource's own help.

What it helps with

  • create an inbox for a support agent
  • read and search mail in an inbox
  • send a reply to a specific message
  • stage a draft and send it after review
  • dump thread lists as JSON for a script

Example prompts for the agent

  • list all my agentmail inboxes
  • send a message from the support inbox with subject Hello
  • create a draft reply and show it before sending

How to install agentmail-cli

1Skills CLI (Vercel)

npx skills add agentmail-to/agentmail-skills --skill agentmail-cli -a claude-code

2Manually: put the files in place

~/.claude/skills/agentmail-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/agentmail-cli/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about agentmail-cli

How do I install agentmail-cli in Claude?

Run npx skills add agentmail-to/agentmail-skills --skill agentmail-cli -a claude-code. The skill then lives at ~/.claude/skills/agentmail-cli/SKILL.md.

What does agentmail-cli do?

It hands your agent the official AgentMail CLI commands: list and create inboxes, read and search mail, send and reply, manage drafts, pods, webhooks and domains. Output flags cover JSON, YAML and other formats.

What do I need before using it?

The CLI installed via npm install -g agentmail-cli and an API key in AGENTMAIL_API_KEY. For one call you can pass the key with --api-key instead.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor