iCloud HideMyEmail Generator
Python CLI tool for generating and managing iCloud+ HideMyEmail addresses with multi-account support
Table of Contents
Overview
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.
Installation
pip install icloud-hme
Or install from source:
git clone https://github.com/glizzykingdreko/icloud-hidemymail-generator
cd icloud-hidemymail-generator
pip install -e .
Quick Start
# 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
Commands
Authentication
# Interactive login with 2FA support
icloud-hme auth
# Or provide email directly
icloud-hme auth -e your@icloud.com
Generate Emails
# 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 Emails
# List all HideMyEmail addresses
icloud-hme list
# List for specific account
icloud-hme list --account your@icloud.com
Export Emails
# 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
Manage Accounts
# List authenticated accounts
icloud-hme accounts
# Remove an account
icloud-hme logout
Rate Limits
Apple 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.
Data Storage
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.
Python API Usage
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)
Contributing
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
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
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 ☕
Metadata
Release files for icloud-hme 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| icloud_hme-1.0.0.tar.gz | 19.8 kB | With provenance | Details for icloud_hme-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| icloud_hme-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for icloud_hme-1.0.0-py3-none-any.whl |
Total release size: 39.0 kB
Release files / icloud_hme-1.0.0.tar.gz
| Download URL | icloud_hme-1.0.0.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c18c3a7d36e9baf42bf4e6c478385c9db8b066ca74718acde40769e0b74a12d1
|
|
BLAKE2b-256 checksum How to use checksums |
1541581c213b4dd90cacd9f40eb22bf4e4a24de9a6972541885d40e7410a3215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.
Transparency logRelease files / icloud_hme-1.0.0-py3-none-any.whl
| Download URL | icloud_hme-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0003d8cdf068df691cfc8c52679c21e45b1c408a8c3d0a7651115f3b4f785b71
|
|
BLAKE2b-256 checksum How to use checksums |
df14c6772a1865d3c0c66cd4abef77778b470fd8fb15170c4781be9fb057c265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.
Transparency logSecurity for icloud-hme 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for icloud_hme-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.