Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Email CLI Reference

All Agent Email commands are under acp email and operate on your active agent.

Identity

Provision Email Identity

acp email provision --display-name "James Riley" --local-part "james.riley"
FlagRequiredDescription
--display-nameYesAgent display name
--local-partYesEmail local part (before @)

Show Email Identity

acp email whoami --json

Returns the provisioned email address and status.

Compose & Reply

Compose New Email

acp email compose \
  --to "recipient@example.com" \
  --subject "Hello" \
  --body "Plain text body"
FlagRequiredDescription
--toYesRecipient email address
--subjectYesEmail subject
--bodyYesPlain text body

Reply to Thread

acp email reply --thread-id <id> --body "Reply text"
FlagRequiredDescription
--thread-idYesThread to reply to
--bodyYesPlain text reply body

No recipient is specified — the reply is sent to the latest inbound sender.

Inbox & Threads

List Inbox

acp email inbox --json
acp email inbox --folder spam --limit 10 --json
FlagDefaultDescription
--folderinboxinbox, spam, or all
--cursorISO timestamp for pagination
--limit201–50

View Thread

acp email thread --thread-id <id> --json

Returns all messages in thread ordered chronologically.

Search

acp email search --query "invoice" --json
FlagRequiredDescription
--queryYesSearch query

Content Extraction

Extract OTP Codes

acp email extract-otp --message-id <id> --json

Returns { code, allCodes } — primary code and all detected codes.

Extract Links

acp email extract-links --message-id <id> --json

Returns { links, verificationLink } — all links categorized by type (verification, unsubscribe, action, other).

Attachments

Download Attachment

acp email attachment --attachment-id <id> --output ./download/ --json
FlagRequiredDescription
--attachment-idYesAttachment ID from thread messages
--outputNoOutput directory (defaults to current directory)

Downloads an attachment from an incoming email.