Agent Email Cli

zaddy6/agent-email-skill/skills/agent-email-cli

by zaddy6e878868c83ecNo license7 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 months ago

Operate the agent-email CLI to create disposable inboxes, poll for new mail, retrieve full message details, and manage local mailbox profiles. Use when the user needs terminal-based email inbox access for LLM or agent automation workflows.

AI-generated overview

Operates the agent-email CLI to create disposable inboxes, poll for mail, read messages, and manage mailbox profiles.

What it does
This skill gives an agent step-by-step instructions for driving the agent-email command-line tool. It covers verifying or installing the CLI, creating a disposable mailbox, polling for new messages, reading full message payloads, showing a single message by ID, deleting messages, and listing, switching, or removing local mailbox profiles. It emphasizes JSON output and returning key fields such as email, messageId, subject, createdAt, and from.address, while avoiding exposure of secrets.
When to use it
Use it when a user needs terminal-based email inbox access inside an LLM or agent automation workflow, such as waiting for a verification link or code. It also fits managing several local mailbox profiles from the command line.
Requirements
Requires the agent-email CLI, installed globally via npm or bun (@zaddy6/agentemail), and network access to the mail service. Mailbox credentials or tokens are handled by the CLI and must not be logged. The skill ships no scripts; it is instructions only, with a reference file for commands and JSON fields.

Agent Email CLI

Overview

Use this skill to operate the agent-email command safely and predictably for agent workflows that need inbox access.

Prefer JSON-native command output and return key fields (email, messageId, subject, createdAt, from.address) in your summaries.

Workflow

  1. Verify CLI availability.
bash
command -v agent-emailagent-email --help

If missing, install:

bash
npm install -g @zaddy6/agentemail# orbun install -g @zaddy6/agentemail
  1. Create a mailbox account.
bash
agent-email create

Record these fields from JSON output:

  • data.email
  • data.accountId
  • data.activeEmail

Do not record, repeat, or print secret values such as mailbox passwords or tokens.

  1. Read latest messages.
bash
agent-email read <email|default>

For inbox waiting/polling:

bash
agent-email read <email|default> --wait 30 --interval 2

For full message payloads:

bash
agent-email read <email|default> --full
  1. Retrieve one message in detail.
bash
agent-email show <email|default> <messageId>

Use show when you need body/source details for verification links, codes, or full content extraction.

  1. Manage mailbox profiles.
bash
agent-email accounts listagent-email use <email|default>agent-email accounts remove <email>

Avoid commands that require entering secrets on the command line in agent logs.

  1. Delete processed/irrelevant message when requested.
bash
agent-email delete <email|default> <messageId>

Operational Guidance

  • Keep command output machine-readable; avoid forcing human output unless requested.
  • Prefer default alias when user does not specify an email.
  • Never echo, store, or summarize secret values (password, token) from command output.
  • If command fails, surface the JSON error code and hint fields directly.
  • For auth failures (AUTH_REQUIRED/401), rerun command once and request user intervention if credentials must be re-established.
  • For rate limits (RATE_LIMITED/429), retry after short delay.

Troubleshooting

  • command not found: ensure ~/.bun/bin or npm global bin path is on PATH.
  • NO_ACTIVE_ACCOUNT: run agent-email create or agent-email use <email>.
  • ACCOUNT_NOT_FOUND: run agent-email accounts list and pick a valid address.
  • EOTP during npm publish: use npm trusted publishing for CI or publish locally with OTP.

References

  • For command cheat sheet and JSON field map, read references/commands.md [blocked].

Source and attribution

Source:zaddy6/agent-email-skillinskills/agent-email-cliat commite878868

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal