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

Agentmail Toolkit

  • 603 installs
  • 21 repo stars
  • Updated July 21, 2026
  • agentmail-to/agentmail-skills

agentmail-toolkit is a Claude Code skill that adds AgentMail email send, receive, and inbox management tools to AI agent frameworks in TypeScript and Python for developers building agents without custom SMTP or IMAP code

About

agentmail-toolkit is an integration skill from agentmail-to/agentmail-skills that ships pre-built email tools for popular agent frameworks. Install via npm install agentmail-toolkit or pip install agentmail-toolkit, then set an AgentMail API key environment variable to enable inbox management, sending, receiving, and automation. The skill covers Vercel AI SDK, LangChain, Clawdbot, OpenAI Agents SDK, and LiveKit Agents, letting developers wire real email into agents without writing SMTP or IMAP plumbing. Reach for agentmail-toolkit when an agent workflow needs production email capabilities during framework integration rather than a one-off SMTP script.

  • Pre-built tools for Vercel AI SDK, LangChain, OpenAI Agents SDK, Clawdbot, and LiveKit Agents
  • One-line integration that adds inbox management, sending, receiving, and email automation
  • Works with both TypeScript and Python agent frameworks
  • Zero boilerplate email capability for autonomous agents

Agentmail Toolkit by the numbers

  • 603 all-time installs (skills.sh)
  • Ranked #1,582 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/agentmail-to/agentmail-skills --skill agentmail-toolkit

Add your badge

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

Listed on Skillselion
Installs603
repo stars21
Last updatedJuly 21, 2026
Repositoryagentmail-to/agentmail-skills

How do you add email to AI agents?

Instantly give their AI agents the ability to send, receive, and manage real email without writing custom SMTP or IMAP code.

Who is it for?

Developers building TypeScript or Python AI agents that need production email without implementing SMTP or IMAP clients.

Skip if: Developers sending one manual transactional email from a static backend who do not need agent-framework tool integrations.

When should I use this skill?

An agent project needs AgentMail send, receive, or inbox tools integrated into LangChain, Vercel AI SDK, OpenAI Agents SDK, or LiveKit Agents.

What you get

Framework-integrated AgentMail tools for inbox management, outbound send, inbound receive, and email automation workflows.

  • Framework-integrated email tools
  • Inbox send and receive handlers

By the numbers

  • Supports 5 agent frameworks: Vercel AI SDK, LangChain, Clawdbot, OpenAI Agents SDK, LiveKit Agents
  • Provides separate npm and pip install paths for TypeScript and Python

Files

SKILL.mdMarkdownGitHub ↗

AgentMail Toolkit

Pre-built email tools for popular agent frameworks. Instantly add inbox management, sending, receiving, and email automation to your agents.

Installation

# TypeScript/Node
npm install agentmail-toolkit

# Python
pip install agentmail-toolkit

Configuration

Set your API key as an environment variable:

export AGENTMAIL_API_KEY=your-api-key

Get your API key from console.agentmail.to.

---

TypeScript Frameworks

Vercel AI SDK

import { AgentMailToolkit } from "agentmail-toolkit/ai-sdk";
import { streamText } from "ai";
import { openai } from "@ai-sdk/openai";

const toolkit = new AgentMailToolkit();

const result = await streamText({
  model: openai("gpt-4o"),
  messages,
  system: "You are an email agent that can send and receive emails.",
  tools: toolkit.getTools(),
});

LangChain

import { createAgent, HumanMessage, AIMessage } from "langchain";
import { AgentMailToolkit } from "agentmail-toolkit/langchain";

const agent = createAgent({
  model: "openai:gpt-4o",
  tools: new AgentMailToolkit().getTools(),
  systemPrompt: "You are an email agent that can send and receive emails.",
});

const result = await agent.stream({ messages }, { streamMode: "messages" });

Clawdbot (Pi Agent)

For Clawdbot/Pi Agent integration.

import { AgentMailToolkit } from "agentmail-toolkit/clawdbot";

const toolkit = new AgentMailToolkit();
const tools = toolkit.getTools();

// Each tool has: name, label, description, parameters, execute
for (const tool of tools) {
  agent.registerTool(tool);
}

---

Python Frameworks

OpenAI Agents SDK

from agentmail_toolkit.openai import AgentMailToolkit
from agents import Agent

agent = Agent(
    name="Email Agent",
    instructions="You can send, receive, and manage emails.",
    tools=AgentMailToolkit().get_tools(),
)

LangChain

from langchain.agents import create_agent
from agentmail_toolkit.langchain import AgentMailToolkit

agent = create_agent(
    model="gpt-4o",
    system_prompt="You are an email agent that can send and receive emails.",
    tools=AgentMailToolkit().get_tools(),
)

result = agent.stream({"messages": messages}, stream_mode="messages")

LiveKit Agents

For voice AI agents with email capabilities.

from livekit.agents import Agent
from agentmail_toolkit.livekit import AgentMailToolkit

agent = Agent(
    name="Voice Email Agent",
    tools=AgentMailToolkit().get_tools(),
)

---

Available Tools

The Node and Python toolkits ship different tool sets. The Node toolkit includes drafts; the Python toolkit does not.

ToolDescriptionNodePython
create_inboxCreate a new email inbox
list_inboxesList all inboxes
get_inboxGet inbox details
delete_inboxDelete an inbox
send_messageSend an email
reply_to_messageReply to an email
forward_messageForward an email
update_messageUpdate message labels
list_threadsList email threads
get_threadGet thread details
get_attachmentDownload an attachment
create_draftCreate a draft message
list_draftsList drafts in an inbox
get_draftGet a draft by ID
update_draftUpdate a draft
send_draftSend a previously-created draft
delete_draftDelete a draft without sending

Node toolkit: 17 tools. Python toolkit: 11 tools. If you need draft support from Python, call client.inboxes.drafts.* directly on the AgentMail SDK client.

---

Custom Configuration

Both toolkits take an existing SDK client as their only constructor argument — they do NOT accept apiKey / api_key directly. If you need a custom API key, construct the SDK client with the key first, then pass the client to the toolkit.

TypeScript

import { AgentMailClient } from "agentmail";
import { AgentMailToolkit } from "agentmail-toolkit/ai-sdk";

// With a custom API key
const client = new AgentMailClient({ apiKey: "your-api-key" });
const toolkit = new AgentMailToolkit(client);

// Or omit the argument to auto-read AGENTMAIL_API_KEY from env
const defaultToolkit = new AgentMailToolkit();

Python

from agentmail import AgentMail
from agentmail_toolkit.openai import AgentMailToolkit

# With a custom API key
client = AgentMail(api_key="your-api-key")
toolkit = AgentMailToolkit(client=client)

# Or omit the argument to auto-read AGENTMAIL_API_KEY from env
default_toolkit = AgentMailToolkit()

---

Framework Summary

FrameworkTypeScript ImportPython Import
Vercel AI SDKfrom 'agentmail-toolkit/ai-sdk'-
LangChainfrom 'agentmail-toolkit/langchain'from agentmail_toolkit.langchain import AgentMailToolkit
Clawdbotfrom 'agentmail-toolkit/clawdbot'-
OpenAI Agents SDK-from agentmail_toolkit.openai import AgentMailToolkit
LiveKit Agents-from agentmail_toolkit.livekit import AgentMailToolkit

Related skills

How it compares

Choose agentmail-toolkit over raw SMTP libraries when agents need framework-native email tools with inbox management.

FAQ

Which frameworks does agentmail-toolkit support?

agentmail-toolkit provides pre-built tools for Vercel AI SDK, LangChain, Clawdbot, OpenAI Agents SDK, and LiveKit Agents. Install the TypeScript or Python package and configure an AgentMail API key.

How do you install agentmail-toolkit?

agentmail-toolkit installs with npm install agentmail-toolkit for Node or pip install agentmail-toolkit for Python. Set the AgentMail API key as an environment variable before wiring tools into your agent framework.

AI & Agent Buildingagentsautomation

This week in AI coding

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

unsubscribe anytime.