How It Works
How do I clean up my Gmail inbox automatically?
Step 1: Install the extension and connect Gmail
Install HealthInbox from the Chrome Web Store, click the toolbar icon, and press Connect Gmail. You sign in through Google's official OAuth page, so HealthInbox never sees your password. The permission requested is gmail.metadata, the narrowest Gmail scope: it shows message headers and labels, never the body, and cannot delete, send, or modify anything in your account.
Step 2: Scan headers only, never the content
The scan fetches your inbox through the official Gmail API in pages of 500, reading only the headers of each email: sender, subject, date, and technical headers like List-Unsubscribe. The body of your emails is never requested. This is enforced by the API call itself, not just a promise. A 15,000-email inbox scans in a few minutes.
Step 3: AI classification, on your device
Every email is classified into newsletter, spam, subscription, or personal using a two-pass system:
- Rules first: most emails are identified instantly from their headers (a List-Unsubscribe header means newsletter, an invoice subject means subscription, and so on).
- Local AI second: the ambiguous rest goes through an open-source language model (about 25 MB, details below) that runs inside your browser, GPU-accelerated when your machine supports WebGPU. The model downloads once and is cached.
Nothing is uploaded anywhere. There is no server analyzing your email. The AI lives in the browser tab.
Step 4: Clean up from the dashboard
The dashboard turns the classification into actions:
- Next steps: one ranked to-do list. Breached accounts to secure first, then free trials about to bill, yearly renewals coming up, price increases, paid accounts you no longer use, newsletters you never open, and accounts silent for years.
- Newsletters view: every recurring sender ranked by volume, with how often it writes and how much of it you open (from Gmail's unread label), and a one-click Unsubscribe button using each sender's official opt-out link.
- Subscriptions view: paid services detected from receipts, with estimated monthly cost, the next charge date measured from past charges, price increases, and subscriptions whose receipts stopped (more on subscription detection).
- Accounts view: services you registered on, flagging breaches and the ones inactive for 6+ months, with a GDPR erasure request and a CSV export.
- Inbox Health Score: one number (0 to 100) summarizing how cluttered your inbox is, recomputed after every scan.
- Ask: questions in plain English or French, such as “which paid accounts have gone quiet?”, answered from your own data (see below).
You can try every view on a sample inbox in the demo, without Gmail.
The model and the numbers
Pass 2 uses nli-deberta-v3-xsmall, Microsoft’s DeBERTa-v3 xsmall fine-tuned for natural language inference (about 22 million parameters), in the ONNX build published for Transformers.js. It classifies zero-shot: each email’s sender and subject are tested against the four category descriptions, so no email was ever used to train it. Microsoft reports 88.1% accuracy on MNLI for this model.
A larger base variant (about 184 million parameters) was tested on a real inbox of 7,900 emails. It did not classify better, its confidences were lower, and it cost 12 times the download and 2 to 3 times the latency, so the small model stayed. The lesson: on email headers, the rules carry the accuracy and the model handles the tail.
| Measure | Result |
|---|---|
| Pass 1 rules on the labeled header test set | 82 / 82 |
| Emails decided by the rules alone (demo inbox) | 97% |
| Rules throughput | about 200,000 emails per second |
| Account inventory for 6,700 emails | about 20 ms |
| Question parser on the labeled question set (EN/FR) | 40 / 40 |
| Model download, cached after the first scan | about 25 MB |
Timings are from pnpm benchmark on a laptop-class CPU. The labeled sets are
the project’s regression tests, written alongside the rules, so they show that
known cases stay right, not how a new inbox will score.
Ask your inbox
The Ask view answers questions like “how much do I spend on subscriptions?” or “comptes oubliés”. In Chrome versions that ship Gemini Nano, the built-in on-device model translates the question into a small JSON query, constrained to a schema and validated in code. Elsewhere a deterministic parser does the same job.
The model only ever sees the question. The query then runs on the data in your browser, so every count and amount in the answer is computed, not generated: a model cannot invent a subscription you do not have. The dashboard shows the query it ran under each answer.
Step 5: Stay clean
Subsequent scans are incremental: only emails newer than your last scan are fetched, so keeping the dashboard fresh takes seconds. Unsubscribed senders are remembered, and the health score tracks your progress over time.
Two minutes to a readable inbox. Free, with no account.
Add HealthInbox to Chrome, freeCommon questions
What happens to my data if I uninstall?
Everything HealthInbox stores lives in your browser's local extension storage. Uninstalling removes it. You can also click Disconnect in Settings at any time, which revokes the Google access token and erases all local data.
Why does the first scan download a model?
The AI classifier is an open-source model fetched once from Hugging Face (~25 MB) and cached by the browser. That download is the only reason the first scan takes slightly longer than the following ones.
Which browsers are supported?
Google Chrome. Classification can use your GPU through WebGPU for extra speed; on machines without GPU support it falls back to CPU automatically.