agentmail

agentmail is a skill for Claude Code, Codex from math-inc/OpenGauss. It costs 41 tokens per session (1,080 once invoked), scanned A, original, MIT.

An agent-owned email inbox that lets a coding agent use its own email address to send, receive, and manage messages.

In plain words
What is it for?
Use it to create an inbox for an agent, send or read email, manage threads, and communicate with people or other agents.
Why use it?
It keeps the agent’s email identity separate from your personal inbox. This allows it to handle email-based sign-ups, authentication, and conversations on its own.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/math-inc/opengauss/agentmail
Any agent
npx skills add math-inc/OpenGauss --skill agentmail
Clone the repo
git clone --depth 1 https://github.com/math-inc/OpenGauss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentmail

README.md
[![agentmods](https://agentmods.dev/badge/skills/math-inc/opengauss/agentmail.svg)](https://agentmods.dev/skills/math-inc/opengauss/agentmail)
Your own site
<a href="https://agentmods.dev/skills/math-inc/opengauss/agentmail"><img src="https://agentmods.dev/badge/skills/math-inc/opengauss/agentmail.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,080 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.01080
Opus 5 $0.00020 $0.00540
Sonnet 5 $0.00008 $0.00216
Haiku 4.5 $0.00004 $0.00108

Measured 3d ago against content hash 4f5176f0c9cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentmail scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

8 near-identical copies found in the catalogue:

optional-skills/email/agentmail/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentMail — Agent-Owned Email Inboxes

Requirements

  • AgentMail API key (required) — sign up at https://console.agentmail.to (free tier: 3 inboxes, 3,000 emails/month; paid plans from $20/mo)
  • Node.js 18+ (for the MCP server)

When to Use

Use this skill when you need to:

  • Give the agent its own dedicated email address
  • Send emails autonomously on behalf of the agent
  • Receive and read incoming emails
  • Manage email threads and conversations
  • Sign up for services or authenticate via email
  • Communicate with other agents or humans via email

This is NOT for reading the user's personal email (use himalaya or Gmail for that). AgentMail gives the agent its own identity and inbox.

Setup

1. Get an API Key

2. Configure MCP Server

Add to ~/.gauss/config.yaml (paste your actual key — MCP env vars are not expanded from .env):

mcp_servers:
  agentmail:
    command: "npx"
    args: ["-y", "agentmail-mcp"]
    env:
      AGENTMAIL_API_KEY: "am_your_key_here"

3. Restart Gauss

gauss

All 11 AgentMail tools are now available automatically.

Available Tools (via MCP)

Tool Description
list_inboxes List all agent inboxes
get_inbox Get details of a specific inbox
create_inbox Create a new inbox (gets a real email address)
delete_inbox Delete an inbox
list_threads List email threads in an inbox
get_thread Get a specific email thread
send_message Send a new email
reply_to_message Reply to an existing email
forward_message Forward an email
update_message Update message labels/status
get_attachment Download an email attachment

Procedure

Create an inbox and send an email

  1. Create a dedicated inbox:
    • Use create_inbox with a username (e.g. gauss-agent)
    • The agent gets address: [email protected]
  2. Send an email:
    • Use send_message with inbox_id, to, subject, text
  3. Check for replies:
    • Use list_threads to see incoming conversations
    • Use get_thread to read a specific thread

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 126 lines · 41 tokens per session scan A 4f5176f0c9cc

Subscribe to this mod's changes

agentmail is a skill published in the GitHub repository math-inc/OpenGauss (1,261 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 1,080 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.