Postyard for Hermes Agent
Status: 0.1.0, not in the Hermes plugin catalogue yet. Install it from this repository, as below.
Gives a Hermes agent a real mailbox on your own domain. The agent reads mail and writes reply drafts. You review and send them from your normal mail app.
Draft-only access is enforced by the server. You give the plugin a Postyard API key with the read_draft preset, limited to the domains you choose (or, with the API, to single mailboxes). Postyard's server refuses to send with that key and answers "not found" for every mailbox outside that limit, whatever the agent is told or decides. The plugin does not rely on a prompt for either.
Set up
-
In Postyard, open Agents & API > API keys and create a key with the Read and draft preset, limited to the domains this agent may use. The API can also limit a key to single mailboxes.
-
Install the plugin and paste the key when Hermes asks for
POSTYARD_API_KEY:hermes plugins install postyard-mail/hermes-plugin hermes plugins enable postyard -
Ask Hermes to check its access.
postyard_statusshows the key's scopes and the domains or mailboxes it is limited to, and says whether the key can send.
Tools
| Tool | What it does |
|---|---|
postyard_status | Scopes and limits of the configured key |
postyard_list_mailboxes | Mailboxes the key can reach |
postyard_list_conversations | List or search conversations |
postyard_get_conversation | One conversation and its messages |
postyard_get_message | One message's body and attachment names |
postyard_create_draft | A new email, saved as a draft |
postyard_create_reply_draft | A reply in the same thread, saved as a draft |
postyard_mark_handled | Mark a message as dealt with |
postyard_send_draft | Hidden until you turn it on (below) |
The plugin has no tool that edits or deletes a draft, so it never changes one you have already worked on. Drafts appear in the mailbox's Drafts folder over IMAP, labeled in the Postyard app with the key that wrote them.
Turn sending on
Sending needs all three:
- An API key with the
read_draft_sendpreset. With aread_draftkey the server answersmissing_scope. - The setting:
hermes plugins config postyard, then Allow sending drafts. Until thenpostyard_send_draftis not shown to the model and refuses to run. - Hermes's approval for that draft. The question shows its To, Cc, Bcc and subject, which the plugin reads first: a draft it can't read is not sent. Denied, timed out or unattended means nothing is sent.
Without the plugin: OAuth
Postyard also has a hosted MCP server, and Hermes can sign in to it with OAuth instead of an API key. A new connection starts as Read and draft, with no mailboxes until you choose them in Postyard under Agents & API > Connections. A new account that has no mailbox yet sees a demo mailbox with sample mail instead. Nothing is sent or received there. In ~/.hermes/config.yaml:
mcp_servers:
postyard:
url: "https://api.postyard.dev/mcp"
auth: oauth
tools:
exclude: [send_draft, reply_to_message, send_message]
The exclude line only hides tools. What stops sending is the connection's permission on the server.
What it does on your machine
- Network: requests to
https://api.postyard.dev(or thebase_urlyou set) with apostyard-hermes/<version>User-Agent. The API key is dropped if a redirect leaves that host. - Data: reads subjects, people, bodies and attachment names of the mailboxes the key allows and passes them to your model. Attachments are not downloaded.
- Credential: read with
agent.secret_scope.get_secret. The plugin reads no other credential and writes no files. - No background process, telemetry, shell commands or Python dependencies.
Mail is written by other people. The tool descriptions tell the model to treat it as data, and a read_draft key limits what a successful prompt injection can do. Through this plugin it can write a bad draft or mark mail handled. Someone who gets the key itself can also delete unsent drafts and move mail to Trash, which can be restored. Neither can send.
Develop
uv run --no-project --python 3.12 --with pytest==9.2.0 pytest tests
hermes plugins validate . --install-deps
The tests use a local mock of the API. Report a security problem as SECURITY.md says.
License
README from the reviewed commit afda7a0; it updates when the author re-pins.

postyard-mail