Email from the shell with Himalaya
Himalaya lets you manage IMAP/SMTP email from the shell, from reading and searching messages to writing, sending, replying, forwarding and organizing mail.
How to use
Give the agent this original prompt.
---
name: himalaya
description: "Himalaya CLI for IMAP/SMTP mail: list, read, search, compose, reply, forward, copy, move, delete."
homepage: https://github.com/pimalaya/himalaya
metadata:
{
"openclaw":
{
"emoji": "📧",
"requires": { "bins": ["himalaya"] },
"install":
[
{
"id": "brew",
"kind": "brew",
"formula": "himalaya",
"bins": ["himalaya"],
"label": "Install Himalaya (brew)",
},
],
},
}
---
# Himalaya
Use `himalaya` for IMAP/SMTP email from shell.
## References
- `references/configuration.md`: account config, auth, backend setup.
- `references/message-composition.md`: MML compose syntax.
## Setup
```bash
himalaya --version
himalaya account configure
```
Config path: `~/.config/himalaya/config.toml`.
Prefer password managers/keyrings for credentials; do not paste secrets into chat/logs.
## Read/search
```bash
himalaya folder list
himalaya envelope list
himalaya message read <id>
himalaya envelope list from alice@example.com subject invoice
```
## Write
```bash
himalaya message write
himalaya template write
himalaya template send < /tmp/message.txt
himalaya message reply <id>
himalaya message forward <id>
```
Use MML for attachments and rich messages; read `references/message-composition.md` first.
## Organize
```bash
himalaya message copy <id> <folder>
himalaya message move <id> <folder>
himalaya message delete <id>
himalaya flag add <id> --flag seen
himalaya flag remove <id> --flag seen
```
## Safety
- Confirm before sending, deleting, or moving many messages.
- Use `--account` when multiple accounts exist.
- Quote exact message IDs in summaries.
Source: openclaw/openclaw and its contributors. License: MIT.
Copyright (c) 2026 OpenClaw Foundation
Translation and editorial adaptation by ClawCases.
>Resources
>Related Use Cases
1-3-1 Communication Rule Decision Brief
Writes 1-3-1 decision briefs for tasks with multiple viable approaches, producing a one-sentence problem framing, three options with pros and cons, and a single recommendation with definition of done and implementation plan.
AI-Powered Earnings Tracker
Stay on top of earnings season across dozens of tech companies without manually checking multiple sources and remembering report dates for every AI/tech earnings report.
Fix GitHub issues with background agents and open PRs
Fetch open GitHub issues, select fix candidates, and spawn background agents that open PRs, then optionally process PR review comments, reporting PR URLs or reasons in a compact summary.