Team AER

Every inbox.
One quiet window.

Gmail, iCloud, Microsoft 365 and any IMAP account in one self-hosted window that sorts itself, explains every decision and changes nothing without you.

Built on MailFlow by @maathimself. Accounts on the live instance are by invitation; anyone can run their own.

Every account in one list

Gmail, iCloud, Microsoft 365 and Outlook over OAuth2, or any IMAP and SMTP server. Hedwig merges them into one inbox and keeps its own state in its own tables, so your accounts stay exactly as they were.

  • Merged, not mirrored

    One list across every account, threads intact. MailFlow syncs IMAP as it always has.

  • OAuth2 where it is required

    Microsoft 365 and Outlook sign in with OAuth2. Gmail, iCloud and your own server connect over IMAP and SMTP.

  • Nothing added to your mailbox

    Hedwig never creates folders or labels. Its streams, lists and decisions live in its own tables and leave with it.

Only what needs you

Three layers sort every message, cheapest first, and each one writes down its reason. Open the reason on any row to see the decision and change it.

  • Your rules

    Plain settings you write. When a rule matches, it decides and says so.

  • Your classifier

    Trained per user on what you reply to, archive and correct. Every correction becomes a training label.

  • A local model

    Only for the uncertain cases, through your own OpenAI-compatible gateway, with its reason written down.

  • Needs you and Waiting on

    A ranked list of what wants an answer from you, and a list of who owes you one.

People24 · 2 unread
Needs you 2
Maria Costa09:14 Re: Invoice 4471 for the September retainer
Daniel Reyes08:40 The hold on the offsite venue ends today
Waiting on 2
Sam OkaforMon Budget for the offsite Asked on Monday; no reply yet
Tomas BergTue Quote for the studio shelving Promised it by Wednesday

How it works

  1. 1

    Connect your accounts

    MailFlow syncs each one over IMAP, exactly as it did before Hedwig.

  2. 2

    A worker reads after each sync

    It reads every message once and writes only to Hedwig's own tables. Your mailbox is never touched.

  3. 3

    Two models, two jobs

    A small always-on model sorts every message with a stated reason. A larger one answers questions, drafts replies and takes the hard cases.

  4. 4

    Your corrections teach it

    Change a decision and it becomes a rule or a training label, scoped as narrowly or widely as you chose.

A mailbox that remembers

People and organisations merged across accounts, topics that run for months, commitments in both directions, and answers that cite the message they came from.

  • People, merged

    One card per person across every account and address, with the history between you.

  • Commitments

    What you owe and what they owe, extracted with the message that says so.

  • Search or ask

    Hybrid search over keywords and bge-m3 embeddings. A question gets an answer with citations you can open.

  • Insights and the daily brief

    Volume, reply times, cards backed by evidence, and a cited briefing each morning.

An assistant that asks first

The assistant and its scheduled automations can read everything you own. They cannot change mail until you approve the action, and they never send or delete on their own.

  • Tool-calling assistant

    Ask it to find, summarise or draft. Anything that would change mail comes back as a proposal.

  • Scheduled automations

    The same tools on a timer. Ones that only read run on their own; the rest queue for your approval.

  • Every action undoable

    What Hedwig did today sits in one place, and every inbox action has an Undo.

Plugins with permissions you grant

A plugin declares what it needs in a manifest; each user grants or refuses it. Views, commands, agent tools and hooks all go through the same door. Four ship as examples.

A complete mail client underneath

Hedwig is a fork of MailFlow, the self-hosted webmail client by @maathimself. Everything MailFlow does, Hedwig still does.

  • WYSIWYG compose

    Rich text, attachments and signatures; drafts are saved as you write.

  • Threads

    Conversations grouped across accounts, newest open, older ones folded into one row.

  • Layouts and themes

    Panes are a tree of views you arrange yourself. Light and dark themes.

  • Ten languages

    English, German, French, Spanish, Italian, Portuguese, Czech, Polish, Russian and Chinese.

  • Command palette

    ⌘K for every command, with its key shown beside it. E for Done, R for Reply.

  • Installable PWA

    Add it to a phone or desktop; web push tells you about new mail.

  • 2FA and SSO

    A TOTP second factor, or sign in through your OIDC provider.

  • Mail rendered as sent

    HTML in a sandboxed frame, remote images blocked until you say otherwise, quoted history folded.

Run it on your own server

Node.js and Express, React, PostgreSQL and Redis. Docker Compose or a native install, with optional Caddy for automatic HTTPS. Models through any OpenAI-compatible gateway; embeddings with bge-m3.

Licence

Hedwig is AGPL-3.0, inherited from MailFlow by @maathimself, the project Hedwig is built on. Run it, change it, host it. If you host a modified copy for other people, you publish your changes. A commercial licence per installation is available for teams that cannot work under the AGPL.

Terminal
git clone https://github.com/Team-AER/hedwig.git
cd hedwig
cp .env.hedwig.example .env
# fill in the secrets: openssl rand -hex 32
docker compose -f docker-compose.hedwig.yml up -d --build
  • AppNode.js, Express, React
  • DataPostgreSQL with pgvector, Redis
  • ModelsAny OpenAI-compatible gateway; bge-m3 embeddings
  • HTTPSOptional Caddy overlay, or your own reverse proxy

One quiet window for all of it.

Run your own with Docker Compose, or open the live instance if you have an invitation. The code, the docs and the licence are on GitHub.