Skip to content

About

An AI-powered personal email intelligence and operations platform for Gmail, featuring intelligent inbox triage, OSS activity tracking, conversational AI, and cross-platform desktop and mobile apps.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

KAIRO — Know what matters.

PERSONAL EMAIL INTELLIGENCE
Turn inbox noise into a clear picture of what needs your attention.

In development MIT License Last commit Gmail Gemini React TypeScript

Why KAIRO · Capabilities · Architecture · Security · Contributing · License

Why KAIRO

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.

Capabilities

Priority intelligence

  • Classifies messages by urgency and relevance
  • Separates critical, important, informational, and low-value mail
  • Highlights messages that need a response or action
  • Keeps suspicious messages distinct from ordinary noise

OSS intelligence

  • Groups GitHub notifications by repository and pull request
  • Surfaces review requests and maintainer replies
  • Tracks requested changes, approvals, and merges
  • Highlights CI failures and actionable discussion updates

Chat with your inbox

  • Search mail using natural language
  • Summarize threads and extract next actions
  • Find unanswered messages and relevant context
  • Draft replies for review

Personal operations

  • Keep academic, career, personal, and financial mail visible
  • Generate a focused daily briefing
  • Apply structured Gmail labels
  • Review proposed operations before execution

Priority model

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.

Architecture

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"]
Loading
  • 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.

Product surfaces

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.

Security

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.

Technology

React, TypeScript, Node.js, Express, Firebase, Google Cloud, Android and Tauri

Layer Technology
Interface React 19 + TypeScript
Build Vite
Backend Node.js + Express
Email Gmail API + OAuth
Reasoning Google Gemini via @google/genai
Identity Firebase Authentication + server-side ID-token verification
Desktop Tauri 2
Mobile Capacitor 8

Local development

Requirements

  • 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

Setup

git clone https://github.com/aspire488/kairo-email-intelligence.git
cd kairo-email-intelligence
npm install
cp .env.example .env

Set the required environment values in your local .env file. Never commit that file.

npm run dev

The Vite development server is configured for port 3000. To run the Express server:

npm start

Build and type-check:

npm run build
npm run lint

Configuration 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.

Status

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

Contributing

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.

License

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.

Your inbox has information. KAIRO finds what matters.

Built by aspire488 · KAIRO — Know what matters.

About

An AI-powered personal email intelligence and operations platform for Gmail, featuring intelligent inbox triage, OSS activity tracking, conversational AI, and cross-platform desktop and mobile apps.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages