PERSONAL EMAIL INTELLIGENCE
Turn inbox noise into a clear picture of what needs your attention.
Why KAIRO · Capabilities · Architecture · Security · Contributing · License
Email is not a task list. Yet important work gets buried between automated notifications, mailing lists, receipts, updates, and noise.
KAIRO is an email operations agent built to surface the signal.
It connects to Gmail, interprets messages in context, groups related activity, and helps you decide what to do next. It is designed for people whose inbox is also their work queue — especially developers working across GitHub, open source, CI systems, and professional communication.
Less inbox maintenance. More awareness. Better follow-through.
|
|
|
|
| Priority | Meaning | Typical examples |
|---|---|---|
| P0 | Critical | Account security, urgent deadlines |
| P1 | Important | Direct requests, time-sensitive work |
| P2 | OSS intelligence | PR reviews, maintainer replies, CI |
| P3 | General information | Updates worth retaining |
| P4 | Low-value noise | Bulk notifications, promotions |
| P5 | Suspicious | Potential phishing or unsafe content |
Priority is a decision aid, not a substitute for the original email. Messages remain accessible in Gmail.
KAIRO combines deterministic rules for predictable signals with Gemini for contextual interpretation.
flowchart TD
A["Gmail"] --> B["Sync & thread grouping"]
B --> C["Deterministic signals"]
B --> D["Gemini reasoning"]
C --> E["Priority + action model"]
D --> E
E --> F["KAIRO workspace"]
F --> G["Briefing · Search · Chat"]
F --> H["Proposed Gmail actions"]
H --> I{"User approval"}
I -->|Approved| J["Execute via Gmail API"]
I -->|Rejected| K["No change"]
- Deterministic first: known senders, notification patterns, deduplication, and thread grouping should not depend on an LLM.
- Reason where needed: Gemini handles ambiguous classification, summarization, action extraction, and drafting.
- Ground every answer: chat responses should be based on retrieved email data, not invented inbox facts.
- Keep the human in control: consequential actions are proposed and confirmed, not silently performed.
| Surface | Direction |
|---|---|
| Web | Primary workspace |
| Desktop | Tauri 2 client scaffolding |
| Android | Capacitor client scaffolding |
| iOS | Capacitor project scaffolding |
Native packaging and real-device verification are separate release gates; platform scaffolding does not mean installers or store-ready builds exist.
Email is untrusted input. KAIRO treats it that way.
- Gmail access uses OAuth scopes for mail modification and label management.
- Email content is data — never trusted instructions for tools or system behavior.
- Sending a message requires explicit confirmation in the product flow.
- Archive operations are distinct from deletion; KAIRO should not permanently delete mail.
- Bulk or consequential changes require approval.
- Authentication tokens and secrets must stay out of source control.
- Operational history should make changes inspectable.
No silent sends. No permanent-delete workflow. No executing instructions found inside an email.
| Layer | Technology |
|---|---|
| Interface | React 19 + TypeScript |
| Build | Vite |
| Backend | Node.js + Express |
| Gmail API + OAuth | |
| Reasoning | Google Gemini via @google/genai |
| Identity | Firebase Authentication + server-side ID-token verification |
| Desktop | Tauri 2 |
| Mobile | Capacitor 8 |
- Node.js 22 or later
- npm or Bun
- A Firebase project configured for Google sign-in
- Gmail API enabled for that Google Cloud project
- Gemini API key for AI-powered features
git clone https://github.com/aspire488/kairo-email-intelligence.git
cd kairo-email-intelligence
npm install
cp .env.example .envSet the required environment values in your local .env file. Never commit that file.
npm run devThe Vite development server is configured for port 3000. To run the Express server:
npm startBuild and type-check:
npm run build
npm run lintConfiguration note: Firebase web configuration is client-side configuration and is not equivalent to a server credential. Restrict its API key to the required APIs and authorized application origins in Google Cloud. Keep Gemini keys, OAuth client secrets, refresh tokens, and server credentials private.
ACTIVE DEVELOPMENT · Not a stable public release.
| Area | Repository evidence |
|---|---|
| Gmail integration | Gmail API client and OAuth flow present |
| Classification | Deterministic classifier + Gemini service |
| Inbox chat | Gemini chat service and chat workspace |
| OSS intelligence | Dedicated OSS intelligence view |
| Desktop / mobile | Tauri and Capacitor project scaffolding |
| Release | Native packaging, device validation, and full security review remain release gates |
Contributions are welcome. Start with the contribution guide, check the open issues, and use the repository's issue and pull request templates.
Keep changes focused, typed, testable, and explicit about what has actually been verified. Never include real inbox data, access tokens, API keys, or credentials in commits, screenshots, fixtures, or issue reports.
KAIRO is released under the MIT License. You may use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the software, subject to the license terms.
Built by aspire488 · KAIRO — Know what matters.