# Install the latest stable release
pip install gmail-inbox-summary
# Verify installation
gmail-summary --help# Install latest development version from GitHub
pip install git+https://github.com/dhellmann/gmail-inbox-summary.git
# Verify installation
gmail-summary --helpFor contributing or advanced usage:
# Clone the repository
git clone https://github.com/dhellmann/gmail-inbox-summary.git
cd gmail-inbox-summary
# Install with Hatch for development
hatch env create
hatch shell
# Verify installation
gmail-summary --help- Python 3.12 or higher
- pip package manager
-
Enable Gmail IMAP:
- Open Gmail in your browser
- Go to Settings (gear icon) → "See all settings"
- Navigate to "Forwarding and POP/IMAP" tab
- Under "IMAP access", select "Enable IMAP"
- Save changes
-
Create App-Specific Password (Recommended):
- Go to your Google Account settings
- Navigate to Security → 2-Step Verification
- If not enabled, set up 2-Step Verification first
- Under "Signing in to Google", click "App passwords"
- Select "Mail" as the app and generate password
- Copy the generated password (you'll need it for configuration)
-
Install Claude Code CLI:
- Visit Claude Code Installation
- Follow installation instructions for your platform
- Verify:
claude --version
-
Authenticate:
claude auth
-
Test Connection:
gmail-summary --test-claude
-
Generate Configuration:
gmail-summary config generate --email your.email@gmail.com
-
Store Gmail Credentials Securely:
gmail-summary creds store --email your.email@gmail.com
Enter your app-specific password when prompted.
-
Customize Configuration (Optional):
# Edit with your preferred editor nano ~/.config/gmail-inbox-summary/config.yaml # or code ~/.config/gmail-inbox-summary/config.yaml
-
Customize Categories and Performance (Optional):
- Modify email patterns to match your inbox
- Adjust summary prompts for your needs
- Set appropriate output file location
- Configure parallel processing:
concurrency: 5(default) toconcurrency: 10(faster)
Test your installation:
# Test configuration
gmail-summary --dry-run --verbose
# Test Claude connection
gmail-summary --test-claude
# Generate actual summary (if all tests pass)
gmail-summary
# Test with parallel processing for faster results
gmail-summary --concurrency 8 --max-threads 25Python Version:
python --version # Should be 3.12+Hatch Installation:
pip install hatchPermission Issues:
# Use --user flag to install without root privileges:
pip install --user gmail-inbox-summary
# Or use a virtual environment (recommended):
python -m venv gmail-summary-env
source gmail-summary-env/bin/activate # On Windows: gmail-summary-env\Scripts\activate
pip install gmail-inbox-summaryGmail API Issues:
- Ensure Gmail API is enabled in Google Cloud Console
- Check
credentials.jsonis in the correct location - Delete
token.jsonand re-authenticate if having auth issues
Claude CLI Issues:
# Check if Claude CLI is in PATH
which claude
# Re-authenticate if needed
claude auth --refreshIf installation fails:
- Check the Troubleshooting section in README.md
- Open an issue with:
- Your operating system
- Python version (
python --version) - Error message (full output)
- Steps you've tried
For contributing to the project, please see our comprehensive Contributing Guide which covers:
- Development environment setup with Hatch
- Running tests and quality checks
- Code style guidelines
- Submitting pull requests
Quick development setup:
git clone https://github.com/YOUR-USERNAME/gmail-inbox-summary.git
cd gmail-inbox-summary
hatch env create && hatch shell
hatch run pre-commit installAfter successful installation:
- Configure Gmail API (see Prerequisites section)
- Set up Claude Code CLI (see Prerequisites section)
- Customize configuration (
config.yaml) - Run first summary (
gmail-summary --dry-run) - Generate HTML report (
gmail-summary)
See README.md for detailed usage instructions and configuration options.