
Agentmail
This gives Claude the ability to send and receive emails programmatically through dedicated inboxes. You'd use it when building AI agents that need to handle customer support emails, send outreach campaigns, or manage multi-threaded conversations. The draft system is smart for human-in-the-loop workflows where you want Claude to compose emails but need approval before sending. Pods provide proper multi-tenant isolation if you're building a SaaS product where each customer needs their own set of inboxes. The API is clean with good SDK support for both TypeScript and Python, and they've thought through the details like idempotency keys and requiring both text and HTML versions for deliverability.
- skills.sh installs
- 3K
- GitHub stars
- 26
- last updated
- Aug 21, 2026
Install
$ npx -y skills add agentmail-to/agentmail-skills --skill agentmail --agent claude-codeInstalls into .claude/skills of the current project.
Files
AgentMail SDK
AgentMail is an API-first email platform for AI agents. Use the published SDK interfaces and generated API types as the source of truth. Keep credentials in AGENTMAIL_API_KEY.
npm install agentmail
pip install agentmail
Quick start
Create an inbox, send, and read a reply. Full per-language usage lives in the references.
import { AgentMailClient } from "agentmail";
const client = new AgentMailClient({ apiKey: process.env.AGENTMAIL_API_KEY });
const inbox = await client.inboxes.create({ username: "support", clientId: "support-v1" });
await client.inboxes.messages.send(inbox.inboxId, {
to: ["customer@example.com"],
subject: "Hello",
text: "Plain-text body",
});
// .list() returns metadata only — fetch the full message to read the body.
const messages = await client.inboxes.messages.list(inbox.inboxId, { limit: 20 });
const message = await client.inboxes.messages.get(inbox.inboxId, "msg_123");
const body = message.extractedText ?? message.text ?? message.extractedHtml ?? message.html;
from agentmail import AgentMail
from agentmail.inboxes.types import CreateInboxRequest
Sponsors
Details
- Repository
- github.com/agentmail-to/agentmail-skills
- Categories
- Backend & APIs, DevOps & CI/CD, AI & Agent Building, Python, CLI & Terminal