docs/cli

CLI reference

Nine commands. The table is the manual. Every command also accepts --json and exits 0-4 — that contract is documented below, not discovered at runtime.

Commands

CommandWhat it does
spawnCreate a new disposable inbox. Flags: -p provider, -l label
listList messages in an inbox. Flags: -a address (defaults to most recent)
read <id>Read a full message, including any detected verification code. Flags: -a address
waitPoll until a message arrives. Flags: -a address, -f from, -s subject, -c extract code, -t timeout (max 600s), -i interval
inboxesList locally saved inboxes
tossDelete an inbox server-side + wipe local state. Flags: -a address, --all
clearRemove all inboxes from local state only (server accounts stay)
providersList available email providers
mcpRun the MCP server over stdio. This is what agents connect to

Exit codes and providers

Exit codeMeaning
0Success
1Error: network, provider, unexpected failure
2Timeout: wait expired with no matching message
3Not found: no saved inbox, unknown address, missing message
4Usage error: bad flags, unknown command or provider

a stable contract: agents script against these, not against stdout

ProviderNotes
mailtmmail.tm, the default, no API key
guerrillamailGuerrillaMail, classic fallback

new provider = one small file implementing createInbox / listMessages / readMessage / destroyInbox (optional)