commune-email

commune-email is a skill for Claude Code, Codex from commune-dev/commune-cookbook. It costs 0 tokens per session (1,586 once invoked), scanned A, a copy of commune-email, MIT.

A programmable email inbox that lets an agent send, receive, search, and manage email conversations through the Commune API. Its messages follow standard email rules, so replies group correctly in common mail apps.

In plain words
What is it for?
Use it to create an inbox for an agent, read incoming messages, search conversations, send replies, and manage email threads.
Why use it?
It removes the need to handle email manually or build inbox and conversation-threading logic yourself. You still need a Commune API key and inbox settings.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

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/commune-dev/commune-cookbook/commune-email
Any agent
npx skills add commune-dev/commune-cookbook --skill commune-email
Clone the repo
git clone --depth 1 https://github.com/commune-dev/commune-cookbook

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 commune-email

README.md
[![agentmods](https://agentmods.dev/badge/skills/commune-dev/commune-cookbook/commune-email.svg)](https://agentmods.dev/skills/commune-dev/commune-cookbook/commune-email)
Your own site
<a href="https://agentmods.dev/skills/commune-dev/commune-cookbook/commune-email"><img src="https://agentmods.dev/badge/skills/commune-dev/commune-cookbook/commune-email.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.1 $0.00000 $0.01586
Opus 5 $0.00000 $0.00793
Sonnet 5 $0.00000 $0.00317
Haiku 4.5 $0.00000 $0.00159

Measured 6d ago against content hash de00ffb1dea5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

commune-email 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (commune.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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

This is a copy

100% identical to commune-email — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

openclaw-email-sms/skills/commune-email/SKILL.md · 219 lines

How it starts

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

Skill: Commune Email

What I Can Do

I give you a real email inbox and let you send, receive, search, and manage email threads programmatically via the Commune API. Every inbox I create is RFC 5322 compliant — replies thread correctly in any email client, including Gmail, Apple Mail, and Outlook.

Authentication

Requires COMMUNE_API_KEY environment variable. Get one at commune.email.

Base URL: https://api.commune.email
Auth header: Authorization: Bearer $COMMUNE_API_KEY
Content-Type: application/json

My Inbox Address

COMMUNE_INBOX_ADDRESS — set this environment variable to your full inbox address after creation (e.g. [email protected]). Also set COMMUNE_INBOX_ID to the inbox's ID string.


Core Operations

Create Inbox

POST /v1/inboxes
Body: { "localPart": "assistant" }
Response: { "id": "inbox_xxx", "address": "[email protected]" }

Save the returned id as COMMUNE_INBOX_ID and address as COMMUNE_INBOX_ADDRESS.


List Email Threads

GET /v1/threads?inbox_id=INBOX_ID&limit=20

Response shape:

{
  "data": [
    {
      "thread_id": "thread_xxx",
      "subject": "Re: Contract draft",
      "last_direction": "inbound",
      "message_count": 3,
      "last_message_at": "2026-02-28T10:00:00Z"
    }
  ]
}

Important: last_direction: "inbound" means the last message came from the other person — this thread is waiting for a reply. last_direction: "outbound" means you replied last.


Read a Thread

GET /v1/threads/THREAD_ID/messages

Returns an array of messages with:

  • direction: "inbound" or "outbound"
  • content: the message body text
  • participants: array of { role: "sender"|"recipient", identity: "[email protected]" }
  • metadata.subject: the email subject

Always read the full thread before replying — context matters.


Send Email (New Thread)

POST /v1/messages/send
Body: {
  "to": "[email protected]",
  "subject": "Meeting notes from today",
  "text": "Hi Sarah, here are the notes...",
  "inboxId": "INBOX_ID"
}

Read the full file on GitHub · 219 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 219 lines · 0 tokens per session scan A de00ffb1dea5

Subscribe to this mod's changes

commune-email is a skill published in the GitHub repository commune-dev/commune-cookbook (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,586 tokens. A static security scan graded it A with 0 findings. It is 100% identical to commune-email, differing in 0 lines, and is treated as a copy.