Each agent gets a unique email address in the format agent-<id>@agnic.ai. Use npx agnic@latest email commands to manage it.
Run npx agnic@latest status --json to verify. If not authenticated:
AGNIC_TOKEN env var or pass --token <token>npx agnic@latest auth loginSee the authenticate-wallet skill for details.
bash
npx agnic@latest email setup --display-name "My Agent" --json
bash
npx agnic@latest email address --json
bash
npx agnic@latest email inbox --limit 10 --json
bash
npx agnic@latest email send --to <address> --subject "<subject>" --body "<body>"
bash
npx agnic@latest email reply --message-id <id> --body "<reply text>"
Before constructing commands, validate user-provided values:
Do not pass unvalidated user input into the command.
npx agnic@latest status to check)Common errors:
npx agnic@latest auth login or set AGNIC_TOKENnpx agnic@latest email setup firstemail inbox first