Himalaya

From moltis-org/moltis · View interactive version

Himalaya is an AI agent skill from the GitHub repository moltis-org/moltis. Himalaya v2 CLI for reading and managing email through IMAP, JMAP, Gmail, Microsoft Graph, Maildir, M2dir, and SMTP send operations.

How to use this skill

Skill file

Himalaya v2 Email CLI

Use this skill only with Himalaya major version 2. Its command and configuration

syntax differs from v1.

References

Install and configure

Install a v2 build and verify it before continuing:

himalaya --version

Official installation options include Homebrew and the current Git repository:

brew install himalaya
cargo install --locked --git https://github.com/pimalaya/himalaya.git

If the package manager installs v1, use a v2 release or the Git installation.

Run the v2 setup wizard with no subcommand:

himalaya

The wizard prints TOML that can be saved or merged into the config. There is no

v2 account configure command. Check the result with:

himalaya --json account list
himalaya --account=work account check

Command conventions

Use v2's global account and backend selectors before the subcommand. Mailbox

selectors belong to the leaf command:

himalaya --json --account=work --backend=imap envelope list --mailbox=INBOX

option; these can also be written as -a, -b, and -m.

m2dir. SMTP sends messages; it does not fetch them.

or changing mailboxes.

Read operations

List mailboxes and envelopes:

himalaya --json --account=work --backend=imap mailbox list
himalaya --json --account=work --backend=imap \
  envelope list --mailbox=INBOX --page=1 --page-size=20

Search with the v2 shared query language:

himalaya --json --account=work --backend=imap \
  envelope search --mailbox=INBOX -- \
  from alice@example.com and subject meeting order by date desc

Read a rendered message or raw RFC 5322/MIME:

himalaya --account=work --backend=imap message read --mailbox=INBOX -- 42
himalaya --account=work --backend=imap message read --mailbox=INBOX --raw -- 42

The shared envelope search query language is not implemented by the v2 Gmail

or Microsoft Graph backends. Use their protocol-specific APIs when native

search is required:

himalaya --json --account=work gmail messages list -q "from:alice is:unread"
himalaya --json --account=work msgraph mail-folder list

Manage messages

Use explicit source and destination mailboxes for copy or move operations:

himalaya --account=work --backend=imap message copy --from=INBOX --to=Archives -- 42
himalaya --account=work --backend=imap message move --from=INBOX --to=Archives -- 42

The shared message command in Himalaya v2.0.0 has no delete operation. Use a

backend-specific command when deletion is required.

Manage flags and attachments:

himalaya --account=work --backend=imap flag add --mailbox=INBOX --flag=seen -- 42
himalaya --account=work --backend=imap flag remove --mailbox=INBOX --flag=seen -- 42
himalaya --account=work --backend=imap attachment list --mailbox=INBOX -- 42
himalaya --account=work --backend=imap attachment download --mailbox=INBOX -- 42

Debugging

Every command provides v2-specific help. Use logging on stderr when needed:

himalaya envelope search --help
himalaya --log=debug --account=work --backend=imap mailbox list
himalaya --log=trace --log-file=/tmp/himalaya.log \
  --account=work --backend=imap mailbox list
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.