Install
Install with PiG
pig install npm:pi-aimailInstall with Pi
pi install npm:pi-aimailPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./dist/index.js"
]
}README
Written by the package's publisher, shown as published in version 0.1.57 (README.md). PiG does not review it.
pi-aimail
AIMail extension for pi (earendil-works/pi-coding-agent): a real mailbox for a pi agent — inbound mail is injected into the running session, and 15 plain tools cover send, contacts, thread notes, search and A2A boards.
Install
pi install npm:pi-aimail
Prerequisites: pi (>= 0.84, npm install -g @earendil-works/pi-coding-agent) and
an AIMail binding for the agent (pointer ~/.pi/.agentmail plus the registered
address, produced by aimail install --home ~/.pi).
What it does
- Tools — the 15 tools defined once in
@aimail/mail-core'sMAIL_TOOLS, registered withpi.registerTool. Identity comes from the pointer plus the boundagentmail.json; unbound agents fail loud. - Inbound — pi has no host HTTP route, so the extension owns a local listener
(
127.0.0.1:9101, optioninboundPort): HMAC-verified, run through the shared preprocess chain, injected into the running session viapi.sendUserMessage(steer). The listener closes onsession_shutdown. - Inbound op entry —
--op assemble|update|teardown|prompt-testfor the aimail CLI, single-line JSON envelope in and out. - Identity header —
X-AIMail-Agent: pi/<detected version>+<model>, read from the installed package.
Other adapters
- dsh-aimail — dsh plugin.
- openclaw-aimail — OpenClaw plugin.
Related
- aimail monorepo — CLI, Python SDK, this SDK.
- aimail-gateway — the mail service behind the tools.