An open-source AI executive assistant for email.
MailPilot AI is not an email generator. It is a self-hostable assistant that understands your inbox: it learns your communication patterns, tracks commitments across threads, surfaces what needs your attention, drafts context-aware replies, and keeps you accountable to the people waiting on you — all while keeping your data under your control (local, cloud, or hybrid AI).
Status: M0 (Foundations) complete. Monorepo, auth, API skeleton, model router, dev stack, and CI are in place; mailbox sync lands in M1. See the roadmap.
git clone https://github.com/omrzk/mailpilot-ai && cd mailpilot-ai
./infra/scripts/bootstrap.sh # .env + secrets, docker infra, deps, migrations
pnpm --filter @mailpilot/web dev # web → :3000
uv run uvicorn mailpilot_api.main:app --reload --port 8000 # api → :8000
uv run celery -A mailpilot_worker.main worker -l info # worker| # | Document | Purpose |
|---|---|---|
| 1 | Product Requirements | Vision, personas, features, priorities, success metrics |
| 2 | Technical Design | System architecture, service boundaries, data flow |
| 3 | Folder Structure | Monorepo layout |
| 4 | Database Schema | PostgreSQL + pgvector DDL |
| 5 | API Specification | REST + SSE endpoints, payloads |
| 6 | AI Architecture | Model router, LangGraph agents, RAG, privacy modes |
| 7 | Sequence Diagrams | Key flows end-to-end |
| 8 | Component Diagrams | System + frontend component maps |
| 9 | Development Roadmap | Milestones M0–M6 |
| 10 | Security Model | AuthN/Z, encryption, token handling, retention |
| 11 | Threat Model | STRIDE analysis, prompt-injection defenses |
| 12 | Testing Strategy | Test pyramid, AI evals, CI gates |
| 13 | Deployment Architecture | Docker Compose, Kubernetes, CI/CD |
- Frontend: Next.js (App Router), React, TypeScript, TailwindCSS, shadcn/ui, TanStack Query
- Backend: FastAPI, PostgreSQL 16 + pgvector, Redis, Celery
- AI: Anthropic Claude (default), OpenAI-compatible APIs, OpenRouter, Ollama; LangGraph orchestration; LlamaIndex RAG
- Auth: Better Auth with Google & Microsoft OAuth
- Email: Gmail API, Microsoft Graph, IMAP/SMTP
- Deploy: Docker Compose (single-host), Kubernetes manifests, GitHub Actions
Apache-2.0 (proposed).