Install
openclaw skills install @mermail/mermail-cliInstall and use the official Mermail CLI for deterministic shell automation across workspaces, mailboxes, email, folders, labels, agents, and task triage. Use when a user asks for terminal commands, scripts, JSON output, CI automation, CLI authentication, or a safe destructive CLI workflow.
openclaw skills install @mermail/mermail-cliUse the CLI when the task benefits from shell composition or stable JSON output. Prefer direct MCP tools when they are already available and no shell workflow is needed.
npm install -g mermail-cli, or run with npx mermail-cli.MERMAIL_API_KEY in their environment. Never request or echo the full key.mermail doctor, then mermail auth check only when the user accepts that it consumes one read credit.mermail --help and <resource> --help instead of guessing flags.Commands use mermail <resource> <action> [flags]:
mermail workspaces list
mermail mailboxes list --format json
mermail emails list --mailbox-id MAILBOX_ID
mermail mcp check
Use typed flags for common fields. For complete or nested request bodies, use --data, --data-file PATH, or --data-file - with stdin. Prefer files or stdin over large inline JSON.
Each command exposes only fields from its OpenAPI operation. Run command-level --help after upgrades instead of assuming that unrelated flags exist. Filter JSON deterministically with JMESPath:
mermail mailboxes list --transform '[].email'
Use --format explore only for a human-operated interactive terminal. Agents and scripts must use json (default), yaml, table, or raw as appropriate.
--yes in automation. Add --yes only after the user approves the exact resource IDs.Idempotency-Key protects credit accounting, not every business-side effect.pretty or table output in scripts.null as a valid empty selection, not an API failure.--api-key when shell history or process listings are a concern; prefer MERMAIL_API_KEY.2: invalid command or payload.3: missing, invalid, expired, or revoked key.4: destructive command needs confirmation.402: credits exhausted; do not retry.429: respect the rate-limit window.For staging tests only, set MERMAIL_BASE_URL=https://console-staging.mermail.app. Never silently redirect production work to staging or the reverse.