mails CLI
Claude Code runs visible commands that are easy to reproduce in a terminal or project runbook.
Yes, through a mailbox tool or CLI. Use a dedicated project inbox and keep credentials outside the prompt.
Claude Code can read email by calling the mails CLI through shell tools or by connecting to mails-agent-mcp in an MCP-capable environment. The safer pattern is a dedicated mailbox with a scoped key stored locally. Claude Code can then list inbound messages, search, wait for codes, retrieve messages, and inspect threads without access to a personal human inbox.
Use CLI for explicit commands or MCP for tool selection
Claude Code runs visible commands that are easy to reproduce in a terminal or project runbook.
The client exposes named tools and keeps mailbox state in the local server process.
Claude Code runs visible commands that are easy to reproduce in a terminal or project runbook.
The client exposes named tools and keeps mailbox state in the local server process.
Use the CLI package or add the MCP server command to the client.
Acquire a receive-only address and inspect the mailbox scope and expiry.
Use the address in the repository task or external signup flow.
Ask for the current code, message, or thread rather than all mail.
npm install -g mails-agent
mails bootstrap
mails inbox --direction inbound --limit 5Do not add the mailbox key to CLAUDE.md, AGENTS.md, environment examples, commits, or chat messages. Store it in local client state or the environment secret mechanism used by the workspace.
A dedicated inbox reduces exposure but does not make email content trusted. Validate links and require approval before sending or changing external systems.
| Task | Recommended interface | Reason |
|---|---|---|
| Interactive repository setup | CLI or MCP | Agent chooses the next email operation. |
| Committed automated test | HTTP or SDK | Control flow and assertions should be deterministic. |
| One-time signup verification | Temporary CLI inbox | Smallest useful scope and automatic expiry. |
| Recurring project notifications | Persistent project mailbox | Stable address and controlled history. |
A dedicated mailbox limits history and revocation to the project task. Keep the key in the local tool process, define the allowed operations, and review any step that turns received content into an external or irreversible action.
Product behavior is verified against the mails0 source and documentation. External comparisons link to official vendor documentation checked on 2026-08-15.
No. mails0 uses a dedicated mailbox-scoped key through its CLI, SDK, API, or MCP server.
Yes. It can call mails code or the MCP wait_for_code tool for its scoped mailbox.
Eligible permanent or self-hosted mailboxes can send through approved tools. Hosted provisional mailboxes are receive-only.
Start with a receive-only temporary mailbox. Move to a permanent identity or self-hosted deployment only after the workflow reaches a real email value event.