agentmail-cli

module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: Apache-2.0

README

AgentMail CLI

The official CLI for the AgentMail API.

Installation

npm install -g agentmail-cli

Setup

export AGENTMAIL_API_KEY=am_us_xxx

Usage

agentmail [resource] <command> [flags...]
# List inboxes
agentmail inboxes list

# Create an inbox
agentmail inboxes create --display-name "My Inbox"

# Send a message
agentmail inboxes:messages send \
  --inbox-id inb_xxx \
  --to [email protected] \
  --subject "Hello" \
  --text "Hi there"

# List threads
agentmail inboxes:threads list --inbox-id inb_xxx

Use --help on any command for details.

Global flags

Flag Description
--api-key API key (or set AGENTMAIL_API_KEY)
--format Output format: json, yaml, pretty, raw, explore
--debug Enable debug logging
--help Show help
--version Show version

Documentation

docs.agentmail.to

Directories

Path Synopsis
cmd
agentmail command
internal
pkg
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL