Read and write email through the Atomic Mail from an AI agent. Handles proof-of-work authentication and JMAP so the agent thinks in JMAP method calls...
Atomic Mail exposes a programmable inbox over JMAP with PoW signup and JWT
rotation. This skill ships a single CLI entrypoint with three commands:
register, jmap_request, and help โ matching the MCP server.
atomicmail help --topic readme).Call atomicmail help early and often โ before guessing
placeholders, using URNs, or cron setup. Start with help --topic overview,
then presets before custom jmap_request calls and cron after register.
If installed behavior disagrees with docs elsewhere, trust help from the running
package.
{baseDir}/scripts/atomicmail register --username "myagent"
{baseDir}/scripts/atomicmail jmap_request --ops-file list_inbox.json
Run atomicmail --help or atomicmail <command> --help for flags.
authUrl: https://auth.atomicmail.aiapiUrl: https://api.atomicmail.ai~/.atomicmail{baseDir}/scripts/atomicmail register \
--username "alice" \
--watch scheduled
--watch is required โ it is your operator's decision, not yours; ask them.
Run register with no --watch to see the accepted values (each is a real
choice about how the operator works, so neither is a safe default to guess). On
the scheduling value, register prints the per-host schedule setup command.
Writes credentials.json, session.jwt, capability.jwt. Prints JSON
including inbox and accountId.
Required next step: the watch value decides who reads the inbox (see
Inbox checks). On scheduled, schedule a daily
agent turn with list_inbox.json on your runtime's own scheduler โ never at
the OS level, and never cron atomicmail jmap_request alone.
Usernames must be 5โ21 characters (local-part of your @atomicmail.ai
address).
If credentials already exist for a different username, register fails by
default to protect the old account. To add another inbox without replacing the
current one, pass a separate --credentials-dir (MCP: credentials_dir on
register / jmap_request). Use --forced only when you intend to replace
credentials in the same directory (after backing it up).
{baseDir}/scripts/atomicmail register \
--api-key "..."
{baseDir}/scripts/atomicmail jmap_request \
--ops '[["Mailbox/get", {"accountId": "$ACCOUNT_ID"}, "m0"]]'
$ACCOUNT_ID, $INBOX, $INBOX_MAILBOX_ID, $SENT_MAILBOX_ID, $UPLOAD_URL, and $DOWNLOAD_URL
resolve from the session/credentials. Other placeholders such as $TO or
$SUBJECT require --vars with a JSON object of strings (same substitution
applies to --ops and --ops-file).
Preset file:
{baseDir}/scripts/atomicmail jmap_request \
--ops-file list_inbox.json
With custom placeholders:
{baseDir}/scripts/atomicmail jmap_request \
--ops-file send_mail.json \
--vars '{"TO":"alice@example.com","SUBJECT":"Hello","BODY":"Hi there"}'
Bundled presets (no local file creation required):
send_mail.json ($TO, $SUBJECT, $BODY)send_mail_attachment.json ($TO, $SUBJECT, $BODY, $ATTACHMENT_BASE64,
$ATTACHMENT_TYPE, $ATTACHMENT_NAME)send_mail_blob_attachment.json ($TO, $SUBJECT, $BODY; pair with
repeatable --attachment PATH for RFC 8620 upload โ
$ATTACHMENT_0_BLOB_ID, โฆ)list_inbox.json (latest 50; uses $INBOX_MAILBOX_ID) โ used for the scheduled inbox checklist_sent.json (latest 50 the agent sent; uses $SENT_MAILBOX_ID) โ send presets
file their copy in Sent with $draft cleared, so it never shows in the inboxreply.json ($MAIL_ID, $BODY)Registration only creates credentials. Nothing reads the inbox until something
wakes an agent to do it โ that is what the required watch value decides, and it
is your operator's call, not yours:
scheduled โ a recurring job wakes an agent once a day to read the inbox
and report what arrived.on-demand โ no such job; mail is read only when a human asks, and
anything arriving in between sits unread with nobody told.scheduled, use your host's own schedulerregister prints the exact setup step for the runtime that called it, with the
credentials directory already filled in, plus the prompt to schedule. Use that
text verbatim โ it is generated for your host.
| Your setup | Approach |
|---|---|
| OpenClaw | openclaw cron add with --announce |
| Hermes | hermes cron create or /cron with --deliver origin; not --no-agent |
| Atomic Bot | Same as OpenClaw or Hermes |
| atomic-agent | atomic-agent task create --cron |
| Claude Code Desktop | A local routine (Routines โ New routine โ Local); not /loop, which expires |
| Cursor, Pi, other session-only runtimes | No durable scheduler โ ask your operator to schedule it on something they own |
Never schedule at the OS level โ no crontab, launchd, systemd or wrapper scripts. They run outside the host's permission model, so your operator cannot see or pause the job where they manage their others, and the host cannot apply its tool restrictions to it. They also break in practice: a scheduler has no terminal, and an agent started from one hangs or exits at once.
Never register in one runtime and schedule in another. Nobody owns the result.
Never cron atomicmail jmap_request alone โ that only writes JSON somewhere;
no agent runs and nobody is told.
It runs one command and reports back, and what it reads is mail written by strangers. No file writing, no editing, no creating further scheduled jobs, no spawning sessions. If your host supports a per-job tool allowlist, set it explicitly instead of accepting the default.
Full details: atomicmail help --topic cron or MCP help topic cron.
{baseDir}/scripts/atomicmail help
{baseDir}/scripts/atomicmail help --topic jmap_cheatsheet
credentials.json holds the API key (mode 0600). Do not commit it.Use send_mail_attachment.json (in-band base64) or send_mail_blob_attachment.json
with repeatable --attachment PATH (RFC 8620 upload โ same flow as MCP
attachments). Rules, limits, and Blob/upload JSON shape:
atomicmail help --topic jmap_cheatsheet.
{baseDir}/scripts/atomicmail jmap_request \
--ops-file send_mail_attachment.json \
--vars '{"TO":"you@example.com","SUBJECT":"Hi","BODY":"See file","ATTACHMENT_BASE64":"SGVsbG8=","ATTACHMENT_TYPE":"text/plain","ATTACHMENT_NAME":"note.txt"}'
--auth-url, --api-url or ATOMIC_MAIL_AUTH_URL,
ATOMIC_MAIL_API_URL--credentials-dir or ATOMIC_MAIL_CREDENTIALS_DIR--scrypt-salt or ATOMIC_MAIL_SCRYPT_SALT~/.hermes/atomicmail on Hermes (not ~/.atomicmail). The bundled skill launcher sets ATOMIC_MAIL_CREDENTIALS_DIR when unset; operator env or atomicmail.credentials_dir config overrides it./suggestions โ do not skip inbox polling setup.{baseDir}/scripts/atomicmail jmap_request alone without an agent turn. The Hermes blueprint uses no_agent: false so each run is a full agent session with list_inbox.json.--credentials-dir on register / jmap_request only when operating multiple inboxes at once โ not needed for the default single-inbox flow.