Python CLI tool for generating and managing iCloud+ HideMyEmail addresses with multi-account support
With an iCloud+ subscription you get this nice "HideMyMail" feature that let's you create random email addresses that forward to your personal inbox. Let's use our subscription at its best and easily generate them instead of buying address lists.
There are some other similar open source projects around, but I hated the fact that the login was via a "copy and paste" cookies logic. Here you get everything done properly with full SRP authentication and 2FA support.
pip install icloud-hmeOr install from source:
git clone https://github.com/glizzykingdreko/icloud-hidemymail-generator
cd icloud-hidemymail-generator
pip install -e .# 1. Authenticate with your iCloud account
icloud-hme auth
# 2. Generate 5 new email aliases
icloud-hme generate -n 5
# 3. Export all emails to CSV
icloud-hme export --format csv# Interactive login with 2FA support
icloud-hme auth
# Or provide email directly
icloud-hme auth -e your@icloud.com# Interactive generation (prompts for count)
icloud-hme generate
# Generate 5 permanent emails
icloud-hme generate -n 5
# Generate with custom label
icloud-hme generate -n 10 --label shopping
# Generate temporary emails (not reserved)
icloud-hme generate -n 3 --temp
# Generate and save to file
icloud-hme generate -n 5 --output emails.csv --format csv
# Use specific account
icloud-hme generate -n 5 --account other@icloud.com# List all HideMyEmail addresses
icloud-hme list
# List for specific account
icloud-hme list --account your@icloud.com# Export to CSV (prompts for output path)
icloud-hme export
# Export to JSON
icloud-hme export --format json
# Export only active emails
icloud-hme export --filter active
# Custom output path
icloud-hme export --output ~/Desktop/my_emails --format csv# List authenticated accounts
icloud-hme accounts
# Remove an account
icloud-hme logoutApple enforces the following rate limits on HideMyEmail:
| Limit | Value |
|---|---|
| Per 30 minutes | ~5 emails × family members |
| Total per account | ~700 emails |
The CLI automatically detects rate limits and displays warnings when they're hit.
All data is stored locally in ~/.icloud-hme/:
~/.icloud-hme/
├── account1_at_icloud_com/
│ ├── session.json # Authentication tokens
│ └── emails.json # Generated emails log
└── account2_at_icloud_com/
└── ...
Session tokens and all of your data is stored locally.
You can also use the library programmatically:
from icloud_hme import ICloudSession, HideMyEmailGenerator
# Authenticate
session = ICloudSession()
session.login("your@icloud.com", "password")
# Generate emails
generator = HideMyEmailGenerator(session)
emails = generator.generate_multiple(
count=5,
reserve=True,
label_prefix="api_test"
)
for email in emails:
print(email)Contributions are welcome! Feel free to:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you found this project helpful or interesting, consider starring the repo and following me for more tools, or buy me a coffee to keep me going ☕