Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

agentmail-toolkitAgent 邮件工具包

Agent Skill

agentmail-toolkit 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,928

周安装

247

GitHub Stars

9

下载量

1,976
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agentmail-toolkit(Agent 邮件工具包)
来源仓库:https://github.com/agentmail-to/agentmail-skills
仓库路径:skills/agentmail-toolkit
安装命令:
npx skills add https://github.com/agentmail-to/agentmail-skills --skill agentmail-toolkit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/agentmail-to/agentmail-skills --skill agentmail-toolkit

简介

agentmail-toolkit 为流行 AI 框架预置邮件处理工具,快速集成邮箱管理能力。

  • 适用于 Vercel AI SDK、LangChain 等主流框架的邮件自动化开发场景。
  • 提供开箱即用的 inbox 管理、消息收发和邮件流控制功能模块。
  • 支持 TypeScript 和 Python 两种语言版本,满足不同技术栈需求。
  • 使用前需安装对应语言版本的包,并配置正确的 API 密钥环境变量。

SKILL.md

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.33%
按下载量换算718

Claude

31.2%
按下载量换算617

Cursor

18.49%
按下载量换算365

Gemini CLI

9.46%
按下载量换算187

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills