# ihme documentation --- Source: https://lroolle.github.io/ihme-cli/README.md # ihme iCloud Hide My Email from the terminal. Make an address for a signup, find it later, turn it off when you are done with it. ```bash ihme new github.com # Apple offers a few addresses, you pick one ihme list --search github # find it by label, address, or note ihme deactivate github.com # stop the mail ihme export -o backup.csv # keep your own copy ``` You need iCloud+ and an Apple ID with two-factor authentication. Apple has no public API for this. ihme uses the same web API as icloud.com, and Apple can change it or block it. That is the deal. [中文说明](https://lroolle.github.io/ihme-cli/README.zh.md) ## Install macOS on Apple Silicon: ```bash curl -fL https://github.com/lroolle/ihme-cli/releases/latest/download/ihme_macOS_arm64.tar.gz -o ihme.tar.gz tar -xzf ihme.tar.gz ihme sudo install -m 755 ihme /usr/local/bin/ihme ``` Builds for macOS Intel, Linux, and Windows, on arm64 and x86-64, are on the [releases page](https://github.com/lroolle/ihme-cli/releases/latest) with SHA-256 checksums. With Go: `go install github.com/lroolle/ihme-cli/cmd/ihme@latest`. Then sign in: ```bash ihme auth login # Apple ID, password, 2FA code. The session is saved, the password and code are not. ihme list ``` ## Scripts Every address command takes `--json`. `--jq` runs an installed jq on the result. ```bash ihme new github.com --json # candidates only, reserves nothing ihme new github.com --address --json # reserve one of them ihme new github.com --yes --json # reserve the first one ihme list --json --jq '.addresses[].hme' ``` Exit code 2 means sign in again. 1 is everything else. ## Agents ihme is also a tool for agents. Three ways: - `ihme agent "find my github address"` runs the built-in assistant on your own model key: Anthropic, DeepSeek, or any OpenAI-compatible endpoint. - `ihme agent --via codex "find my github address"` uses a coding agent you are already signed in to. Also `claude` and `opencode`. No API key. - `npx skills add lroolle/ihme-cli -g` gives an outside agent the [skill](https://lroolle.github.io/ihme-cli/skill/SKILL.md). `ihme mcp` is a stdio MCP server. Anything that changes your account asks you first. The assistant keeps preferences in plain Markdown files. `ihme memory` shows them. An agent run sends the task and the results to the model you picked. Plain commands never talk to a model. ## Docs - [Commands](https://lroolle.github.io/ihme-cli/docs/usage.md): search, create, edit, tags, export, JSON, errors - [Agents](https://lroolle.github.io/ihme-cli/docs/agents.md): providers, consent, memory, MCP - [Roadmap and release notes](https://lroolle.github.io/ihme-cli/ROADMAP.md) - [Security](https://lroolle.github.io/ihme-cli/SECURITY.md): what is stored, and where - [Contributing](https://lroolle.github.io/ihme-cli/CONTRIBUTING.md) ## Development ```bash make check # vet, test, build make site # build the website into _site/ ``` Built with [Cobra](https://github.com/spf13/cobra) and [Charm](https://charm.sh/). [MIT](https://lroolle.github.io/ihme-cli/LICENSE). Not affiliated with Apple. --- Source: https://lroolle.github.io/ihme-cli/README.zh.md # ihme 在终端里管理 iCloud 隐藏邮件地址。为一次注册生成一个地址,之后按标签找到它,不想再收信了就停掉。 ```bash ihme new github.com # Apple 给几个候选地址,你选一个 ihme list --search github # 按标签、地址或备注查找 ihme deactivate github.com # 停止转发 ihme export -o backup.csv # 导出一份自己的备份 ``` 需要 iCloud+ 订阅和开启了双重认证的 Apple ID。Apple 没有公开这个 API,ihme 调用的是 icloud.com 网页版用的同一套接口,Apple 随时可以改动或封掉它。 [English README](https://lroolle.github.io/ihme-cli/README.md) ## 安装 macOS,Apple 芯片: ```bash curl -fL https://github.com/lroolle/ihme-cli/releases/latest/download/ihme_macOS_arm64.tar.gz -o ihme.tar.gz tar -xzf ihme.tar.gz ihme sudo install -m 755 ihme /usr/local/bin/ihme ``` macOS Intel、Linux、Windows 的 arm64 和 x86-64 版本在 [releases 页面](https://github.com/lroolle/ihme-cli/releases/latest),附 SHA-256 校验值。有 Go 的话:`go install github.com/lroolle/ihme-cli/cmd/ihme@latest`。 然后登录,查看自己的地址: ```bash ihme auth login # Apple ID、密码、双重认证码。会话会保存在本地,密码和验证码不保存。 ihme list ``` ## 脚本 所有地址相关的命令都支持 `--json`。`--jq` 用本机安装的 jq 处理结果。 ```bash ihme new github.com --json # 只生成候选,不预留 ihme new github.com --address --json # 预留其中一个 ihme new github.com --yes --json # 预留第一个 ihme list --json --jq '.addresses[].hme' ``` 退出码 2 表示需要重新登录,1 是其他错误。 ## 给 agent 用 ihme 可以给 agent 用,三种方式: - `ihme agent "find my github address"`:内置助手,用你自己的模型 key,支持 Anthropic、DeepSeek 和任何 OpenAI 兼容接口。 - `ihme agent --via codex "find my github address"`:用你已经登录的编程 agent,也可以是 `claude` 或 `opencode`,不需要 API key。 - `npx skills add lroolle/ihme-cli -g`:把 [skill](https://lroolle.github.io/ihme-cli/skill/SKILL.md) 装给外部 agent。`ihme mcp` 是一个 stdio MCP 服务。 任何会改动账户的操作都会先问你。助手把偏好记在纯 Markdown 文件里,`ihme memory` 可以查看。agent 模式会把任务和结果发给你选的模型,普通命令不经过任何模型。 ## 文档 以下文档为英文。 - [命令说明](https://lroolle.github.io/ihme-cli/docs/usage.md):查找、创建、编辑、标签、导出、JSON、错误 - [Agent 说明](https://lroolle.github.io/ihme-cli/docs/agents.md):模型、确认、记忆、MCP - [路线图与更新记录](https://lroolle.github.io/ihme-cli/ROADMAP.md) - [安全说明](https://lroolle.github.io/ihme-cli/SECURITY.md):本地存了什么,存在哪 - [参与贡献](https://lroolle.github.io/ihme-cli/CONTRIBUTING.md) ## 开发 ```bash make check # vet、测试、构建 make site # 把网站构建到 _site/ ``` 基于 [Cobra](https://github.com/spf13/cobra) 和 [Charm](https://charm.sh/)。[MIT](https://lroolle.github.io/ihme-cli/LICENSE) 协议。与 Apple 无关。 --- Source: https://lroolle.github.io/ihme-cli/docs/usage.md # Command guide Create, find, edit, and export iCloud Hide My Email addresses from the terminal. [Install and sign in](https://lroolle.github.io/ihme-cli/README.md#install) before running these commands. ## Commands ``` AUTH ihme auth login Sign in with Apple ID (SRP + 2FA) ihme auth status [--json] Session state ihme auth logout Clear session LIST & SEARCH ihme list All addresses (table) ihme list --search Search label, address, or note ihme list --active Only active ihme list --tag Filter by tag ihme list --sort label Sort by label or date CREATE ihme new