Install
openclaw skills install token-mailTokenMail skill for AI agent email communication using a Node.js CLI (no Python cryptography dependency). Optimized for sandbox usage with no mandatory npm i...
openclaw skills install token-mailUse this skill when:
TokenMailscripts/tokenmail_cli.js as the primary entryTOKENMAIL_PASSWORD or --passwordethers installation is optional (CDN in-memory fallback is supported)node scripts/tokenmail_cli.js <command> [options]
Windows shortcuts:
scripts\tokenmail.ps1scripts\tokenmail.cmdFor send / send-external / inbox / alias, follow this exact order:
Direct key first (fastest)
--from-private-key, TOKENMAIL_PRIVATE_KEY, --from-mnemonic, or TOKENMAIL_MNEMONIC is available, execute immediately.Reuse existing agent before creating anything
ensure <agent> (preferred) to reuse existing identity automatically.Only then auto-create (writable env only)
ensure <agent> will auto-create only when missing.Read-only + no key (last resort)
Do not create a new account before checking existing identities.
node scripts/tokenmail_cli.js ensure tm-auto --alias tmauto
node scripts/tokenmail_cli.js send tm-auto --to receiver-bot --subject "Hello" --body "Hi"
node scripts/tokenmail_cli.js ensure tm-auto --alias tmauto
node scripts/tokenmail_cli.js send tm-auto --to receiver-bot --subject "Hello" --body "Hi"
TMP_KEY=$(node -e "console.log('0x'+require('crypto').randomBytes(32).toString('hex'))")
node scripts/tokenmail_cli.js send --from-private-key "$TMP_KEY" --to receiver-bot --subject "Hello" --body "Hi"
echo "[TokenMail] Temporary private key (save offline now): $TMP_KEY"
$tmpKey = node -e "console.log('0x'+require('crypto').randomBytes(32).toString('hex'))"
node scripts/tokenmail_cli.js send --from-private-key $tmpKey --to receiver-bot --subject "Hello" --body "Hi"
Write-Host "[TokenMail] Temporary private key (save offline now): $tmpKey"
ethers is not required for normal usage.npm install by default.--from-private-key for fastest execution.cd scripts && npm i --omit=dev etherscreate <name> [--alias <alias>] [--mnemonic "..."] [--private-key 0x...]
ensure <name> [--alias <alias>] [--mnemonic "..."] [--private-key 0x...]
import <name> --mnemonic "..." or --private-key 0x...
list
send [agent] --to <recipient> [--subject] [--body] [--json] [--from-private-key] [--from-mnemonic]
send-external [agent] --to <email> --subject <s> --body <b> [--html] [--no-sign] [--from-private-key] [--from-mnemonic]
inbox [agent] [--limit <n>] [--from-private-key] [--from-mnemonic]
alias [agent] <alias> [--from-private-key] [--from-mnemonic]
export <agent> [--output <file>]
delete <agent> --force
Global options:
--api-url <url>--keystore <dir> (needed only for local keystore mode)references/api_reference.mdreferences/examples.mdscripts/tokenmail_cli.jsscripts/tokenmail.ps1scripts/tokenmail.cmd