Skip to main content
Aegis Mail Companion — Autonomous AI Mail Companion & Tiered L1/L2 Support Bot

PyPI Version Wheel Download Analytics PWA Ready Python Platform FastAPI React Local LLMs

aegis Mail Companion (aegis-mail-companion) — Autonomous AI Email & Tiered L1/L2 Support Bot

Part of the aegis-ai-suite Ecosystem — Multi-Agent · Multi-Provider (Outlook, Gmail, Zoho, IMAP) · Human-Governed · Jira-Correlated · Installable PWA


Aegis Mail Companion is an autonomous, self-hosted AI Email Companion and Tiered L1/L2 Customer & Engineering Support Bot. Connect Microsoft Outlook / Office 365, Google Gmail, Zoho Mail, or any Standard IMAP/SMTP server, configure Cloud or 100% Local LLMs (Ollama, vLLM, OpenAI, Anthropic, Gemini, Groq), and orchestrate 7 specialized Email AI Agents and 6 Email Skills in a single self-contained Python package.


⚡ 30-Second Quick Install & Immediate Browser Launch (macOS · Windows · Linux)

Installing aegis-mail-companion installs all required backend dependencies, the pre-built React + PWA web interface, the 7 Email Agents, and the 6 Email Skills in a single command. Run aegis-mail and it immediately launches in your browser:

# 1. Install the universal Python package from PyPI
pip install aegis-mail-companion

# 2. Configure your PostgreSQL + pgvector database URL (auto-creates database, extensions & all tables on startup)
export EXPORT_AEGIS_EMAIL_COMPANION_DB="postgresql://postgres:password@localhost:5432/aegis_mail_companion"

# 3. Launch the server & immediately open Mail Companion in your browser (http://localhost:8020)
aegis-mail
# (or `python3 -m aegis_mail_companion`)

Automatic Database & Vector RAG Provisioning: When EXPORT_AEGIS_EMAIL_COMPANION_DB (or --db-url) is set, the first service startup automatically creates the target database (if missing), enables vector (pgvector) + pg_trgm + pgcrypto extensions, applies all database tables/functions/indexes (kb_files, kb_parents, kb_chunks, projects, connectors, email_accounts, etc.), and saves the connection URL to ~/.aegis-mail-companion/settings.json.

Default Sign-In Credentials (Local Workspace)

  • URL: http://localhost:8020 (opens automatically in your default browser; click Install App in the top bar to install as a standalone Desktop/Mobile PWA)
  • Email: admin@example.com
  • Password: admin1234

CLI Options (aegis-mail / aegis-mail-companion)

aegis-mail                                 # Start Mail Companion (:8020) & open browser immediately
aegis-mail --port 8080                     # Run on a custom port (e.g. http://localhost:8080)
aegis-mail --host 0.0.0.0 --port 8020      # Expose on LAN for team access
aegis-mail --no-browser                    # Run server headlessly without opening a browser tab
aegis-mail --update                        # Self-update to the latest release from PyPI via pip

✨ Key Features & Architecture

1. 📬 Multi-Provider Email Connectivity (With Built-in Step-by-Step Visual Setup Guides)

Every provider card includes an interactive ? Help button that opens a right-side step-by-step setup drawer with annotated screenshots and 1-click server presets:

  • Microsoft Outlook / Office 365: OAuth 2.0 Web Redirect, Device Code flow, and Sovereign Cloud support (graph.microsoft.com, US Gov, 21Vianet) via Microsoft Graph API.
  • Google Gmail: Google Workspace & personal Gmail via 16-digit App Password (imap.gmail.com:993 / smtp.gmail.com:587) or Google Cloud OAuth 2.0.
  • Zoho Mail: Zoho OAuth 2.0 or Application-Specific Password across all regional data centers (imap.zoho.com, imappro.zoho.com, .eu, .in, .com.au, .jp).
  • Standard Mail (IMAP/SMTP): 1-click presets and visual guides for cPanel / Corporate Mail, Apple iCloud Mail, Yahoo Mail, Fastmail, Namecheap PrivateEmail, Rackspace, and GoDaddy / Titan Mail.
  • AES-256 / Fernet Encrypted Token Vault: All OAuth refresh tokens and IMAP/SMTP App Passwords are encrypted at rest.

2. 🤖 20 Specialized Email AI Agents (AI Agents Screen) & Incremental Context Rolling Buffer (ICRB)

Every agent operates with the Global Tool Execution Condition (fetch_project_context via Project Connector & search_document_center via Document Center / Knowledge Base Connector) and ICRB Multi-Turn Thread Memory (aegis_email_threads & aegis_email_messages):

Stage / Group Agent ID Agent Name Role & Capabilities
★ email_ticket_analysis_agent Ticket Analysis Agent Extracts issue keys (SCRUM-21), fetches live Jira/Project context, performs root-cause analysis, and drafts or auto-sends replies.
⚡ email_tiered_pipeline_agent Tiered L1/L2 Support Pipeline Agent End-to-end 5-stage orchestrator (Stage 1 → Stage 2 → Stage 3/4 → Stage 5) with ICRB thread state commit.
1 email_thread_parser_agent Thread Parser & Digest Agent (ICRB) Resolves Message-ID/In-Reply-To/References headers, strips quotes/signatures into delta_body, and maintains rolling_summary & key_entities across turns 1..N.
2 email_sentiment_triage_agent Sentiment & Triage Router Agent Detects customer frustration, urgency, SLA risk, and churn risk; routes to Domain Specialists, L1, L2, or HUMAN_ESCALATION.
3 email_l1_support_agent L1 Support Agent (General Support) Resolves standard inquiries, billing, and FAQs via search_document_center & fetch_project_context.
4 email_l2_support_agent L2 Support Agent (Deep Technical) Parses stack traces, HTTP errors, and logs; cross-references issue trackers to construct technical troubleshooting replies.
5 email_response_qa_agent Response Drafting & QA Agent Enforces empathy, corporate tone, policy guardrails, and completeness before 1-Click Send.
Eng 1 email_bug_diagnostic_triager_agent Bug Diagnostic & Code Triager Agent Classifies P0–P3 defects, extracts stack traces, checks known issues (search_document_center) and repo tickets (fetch_project_context).
Eng 2 email_git_cicd_deployment_digest_agent Git & CI/CD Deployment Digest Agent Correlates failing pipelines with commit diffs (fetch_project_context) and rollback SOPs (search_document_center).
Eng 3 email_api_webhook_specialist_agent API & Webhook Technical Specialist Diagnoses REST/Webhook payloads against OpenAPI specs (search_document_center) and schema migrations (fetch_project_context).
E-Com 1 email_order_tracking_wismo_agent Order Tracking & Logistics (WISMO) Resolves shipping inquiries and carrier SLAs via search_document_center and fulfillment state via fetch_project_context.
E-Com 2 email_returns_rma_concierge_agent Returns, Replacements & RMA Concierge Enforces return windows/eligibility (search_document_center) and warranty tracking (fetch_project_context).
E-Com 3 email_mall_merchant_tenant_agent Mall Merchant & Tenant Relations Agent Manages tenant bylaws/facilities (search_document_center) and POS/catalog sync tickets (fetch_project_context).
Ops 1 email_accounts_payable_billing_agent Accounts Payable, Invoicing & Billing Validates vendor invoices, Net 30/60 terms, and tax rules (search_document_center) against POs (fetch_project_context).
Ops 2 email_vip_churn_escalation_agent VIP Enterprise Churn Sentinel & Escalation De-escalates enterprise SLA/churn risks using MSA terms (search_document_center) and open deliverables (fetch_project_context).
Daily email_morning_standup_agent · email_eod_progress_digest_agent · email_renewal_bill_sentinel_agent · email_vip_blocker_ping_agent · email_habit_learning_companion_agent 5 Productivity & Sentinel Agents Automated daily standup agendas, EOD activity digests, bill/renewal sentinels, VIP PR blocker pings, and learning companions.

3. 🧠 6 Specialized Email Skills (Skills Library Screen)

  1. Email Thread Digest & Delta Extraction (email_thread_digest)
  2. Customer Sentiment, Urgency & L1/L2 Triage Routing (email_sentiment_triage)
  3. L1 General Customer Support & FAQ Resolution (email_l1_faq_resolution)
  4. L2 Technical Support, Log & Stack-Trace Diagnostics (email_l2_technical_diagnostics)
  5. Jira & Project Ticket Correlation for Incoming Emails (email_jira_ticket_correlation)
  6. Support Response QA, Tone Alignment & Policy Guardrails (email_response_qa_guardrails)

4. 🖥️ Installable Progressive Web App (PWA)

  • Includes a Web App Manifest (manifest.webmanifest) and offline-capable Service Worker (sw.js).
  • Click Install App in the top navigation bar on Chrome, Edge, Brave, or Safari (Add to Dock / Add to Home Screen) to run Mail Companion in its own standalone desktop or mobile window with quick-launch shortcuts to Email Config, AI Models, AI Agents, and Skills Library.

Metadata

Release files for aegis-mail-companion 1.0.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for aegis-mail-companion 1.0.22
File Interpreter ABI Platform Actions
aegis_mail_companion-1.0.22-py3-none-any.whl Python 3 none any Details for aegis_mail_companion-1.0.22-py3-none-any.whl

Release files / aegis_mail_companion-1.0.22-py3-none-any.whl

Download URL aegis_mail_companion-1.0.22-py3-none-any.whl
Size 34.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
de4704332fda6364c740bfcfce3d1af6755f4f8b18f4c499565fb0435e721d79
BLAKE2b-256 checksum
How to use checksums
92a25260696dc1f8c5ab794e95b7ed81dce7fb7a1ce05cfc770f556d8b7cbb01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for aegis-mail-companion 1.0.22

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.22 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page