---
title: "MailAgents — Local Email Classifier"
description: "I built a local tool that reads my Gmail, categorizes emails by sender with a local/cloud LLM, and auto-applies nested labels."
canonical: "https://shivanshutiwari.in/projects/mail-agents"
lastUpdated: "2026-09-02"
---

# MailAgents — Local Email Classifier

I built a local tool that reads my Gmail, categorizes emails by sender with a local/cloud LLM, and auto-applies nested labels.

**Stack:** Python, Sarvam AI, Ollama, Gmail API, OAuth2  
**Date:** 2026  

## The Honest Part

I don't have git history or tests yet, and my README claims Claude AI when the code actually uses Sarvam/Ollama — I need to fix that before showing this.

## Highlights

- Categorizes emails by sender using local (Ollama) or cloud (Sarvam) LLM
- Auto-applies nested Gmail labels based on classification

---
*Source: https://shivanshutiwari.in/projects/mail-agents*
