Take back your inbox. No apps. No subscriptions.
Just a few scripts that do exactly what you tell them.
Pick one thing or do all three. Either way, you'll end up with an inbox that finally works for you.
Scan your inbox and get a ranked list of every sender — then choose who to unsubscribe from, right then and there.
Pick a time each day. Newsletters, Substacks, whatever. They wait in a folder and arrive all at once.
Retailers, promos, specific senders. Routed straight to a folder and out of your inbox.
Do this once. Takes about 20 minutes. Check things off as you go. Your progress saves automatically.
0 of 6 steps complete
Terminal is your Mac's command line, a text window where you can give your computer direct instructions. You'll only need a handful of commands throughout this guide.
To open it: press ⌘ Space, type Terminal, press Enter. Keep it open as you work through these steps.
Homebrew is a package manager that makes installing software on a Mac much easier. Paste this into Terminal and press Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/homebrew/install/HEAD/install.sh)"
It will ask for your Mac password. Type it and press Enter. Nothing will appear as you type, and that's normal. Just type your password and hit Enter.
When it finishes, it may show a few extra commands to run (to add Homebrew to your path). Run those too before moving on.
Python is the programming language that powers your scripts. Install it with:
brew install python
When it's done, verify it worked:
python3 --version
You should see something like Python 3.14.x. If you do, you're good.
This is where your scripts and Gmail credentials will live. Run these commands one at a time:
mkdir ~/gmail-toolkitcd ~/gmail-toolkitNow set up a virtual environment. This keeps your Gmail packages tidy and separate from the rest of your Mac:
python3 -m venv venvThen install the packages your scripts need:
venv/bin/pip install google-auth google-auth-oauthlib google-api-python-client requestsThis is the most involved step. You're giving your scripts permission to access your Gmail. Google requires this for security. It takes about 10 minutes.
Use the Script Builder below to generate your custom script. Move the downloaded file into your gmail-toolkit folder, then run it:
cd ~/gmail-toolkit && venv/bin/python3 your_script_name.pyThe first time you run it, a browser window will pop up asking you to log in to Google and grant access. That's expected. Do it, close the browser, and your script will continue running.
Tell us what you want. We'll write the script for you.
Select all that apply. You can combine them or download separately.
Run it once a week for the first month or so. Each scan only catches senders currently in your inbox, so the more you run it, the more complete your picture becomes. Once you feel like you've seen everything, you can stop or run it occasionally as a check-in.
It scans for emails that contain an unsubscribe link, which is how it identifies marketing and subscription senders. It won't surface emails from your actual contacts, so you don't have to worry about it flagging real conversations.
You're giving access to your own scripts running on your own computer. Nothing goes to a third party. The credentials.json file you download from Google stays on your Mac and never leaves it. Google's OAuth system is the same login method used by apps like Calendly and Zoom.
No. The scripts only move emails between folders and labels. Nothing is deleted unless you delete it yourself.
Yes. Open the script in any text editor, find the list of domains, add new ones, and save. Then run it again. Takes about 30 seconds.
No problem. The delivery script checks every 15 minutes. If your Mac was sleeping when delivery was supposed to happen, it'll automatically deliver your held emails within 15 minutes of the next time you open it.
Tell us more.