Skip to content
dcramerPublic

About

like gmail, except with llms

Resources

Security policy

Stars

47 stars

Watchers

0 watching

Forks

Latest commit

 

History

726 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mild

Mild helps you manage a Gmail inbox from a machine you own.

  • Labels. Say what you want from your inbox, a language model suggests labels from that, and you keep the ones that fit. Each label takes its mail out of your way: archive it, mark it spam, block the sender.
  • Leave in inbox. Mail no label fits, and anything you said you never want to miss, stays where it is.
  • Rules say what mail is, or what to do with it, without asking the model. Where you keep giving one sender's mail a different action than its label's, Mild proposes the rule.

It suggests before it acts. Every decision appears in a dashboard for you to correct, and until you turn Mild on it changes Gmail only for mail you answer there yourself. It never deletes mail. It sends only what you write and press Send on, with Inbox on and your leave, and never anything by itself. A change to a message can be undone; an unsubscribe cannot.

Status: early. In use on one real inbox, not yet turned on. Open work is in TODO.md.

For review

Set up

Needs Node 26 and pnpm.

pnpm install
pnpm mild init

init walks through three steps, and can be run again to change any of them:

  1. An encryption key for the Google and model credentials Mild stores. It is saved as MILD_KEY in .env in the directory you ran init from, not in Mild's home, so a copy of the home does not carry its own key. Start Mild from that directory.
  2. Where Mild runs: this machine, or a server you reach from another one. Google signs people in only at localhost or an HTTPS address, so on a server init turns on tailscale serve.
  3. A Google OAuth client of your own, so Mild reads your mail with nobody in between. init links each Google Cloud page in turn with the values to enter, and you paste the client's JSON back.

Everything else Mild keeps, its settings and its database included, is in ~/.config/mild; docs/cli.md lists it. There is no database server to run.

pnpm mild run

Open the address it prints and sign in with Google; that connects your Gmail account. The dashboard then walks you through the rest: connect a model (a ChatGPT subscription or an API key), say what you want, choose your labels, and have Mild go through recent mail for you to answer if you like. Mild reads nothing from Gmail until you have a label of your own, and from then on handles mail as it arrives.

It also runs in a container (docs/docker.md) and on Vercel (docs/vercel.md).

More

About

like gmail, except with llms

Resources

Security policy

Stars

47 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages