Autonomous AI Mail Companion & Tiered L1/L2 Support Bot for Outlook, Gmail, Zoho & IMAP with 5-stage multi-agent triage, Jira root-cause analysis, and installable PWA.
pip install aegis-mail-companion==1.0.29 Copy PIP instructions
Part of the aegis-ai-suite Ecosystem · 20 Specialized Email AI Agents · 19 Email Skills + 2 Global RAG Tools · Standalone or Project + KB Mode · 1-Click Cloud Deploy · Installable PWA
🌐 Official Portal & Live Demo · 📥 Step-by-Step Python Setup · ☁️ 1-Click Cloud Deploy · 📊 ClickPy Live Analytics · 📈 PyPIStats Breakdown · 📉 PePy Totals
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 Claude, Google Gemini, Groq), and orchestrate 20 specialized Email AI Agents, 19 Email Skills, and 2 Global RAG Tools (fetch_project_context & search_document_center) in a single self-contained Python package.
Installing aegis-mail-companion installs all required backend dependencies, the pre-built React 18 + PWA web interface, the 20 Email AI Agents, the 19 Email Skills, and the 1-Click Cloud Deployment Hub in a single command. Run aegis-mail and it immediately launches in your browser:
# 1. Install or upgrade the universal Python package from PyPI pip install --upgrade 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 `aegis-mail-companion` / `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, aegis_email_threads, aegis_email_messages, etc.), and saves the connection URL to ~/.aegis-mail-companion/settings.json.
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 --db-url "postgresql://..." # Set & persist PostgreSQL + pgvector connection URL 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 🖥️ Visual Product Tour (Live Application Screens) 1. Mail Companion Workspace — Multi-Provider Inbox, 2 Operating Modes & 5-Stage AI Triage 2. 20 Specialized Email AI Agents & 19 Email Skills + 2 Global RAG Tools 3. 1-Click Cloud Deployment Hub (Vercel · Render · Railway · Fly.io) 📊 Live Package Download & Usage Analytics Track real-time PyPI download volume, version adoption, operating system breakdown (Linux, macOS / Darwin, Windows), and Python version metrics (3.9 – 3.14) across three official analytics dashboards:
# Check overall downloads (with and without mirrors) via PyPIStats JSON API curl -s "https://pypistats.org/api/packages/aegis-mail-companion/overall" | python3 -m json.tool # Check recent daily / weekly downloads curl -s "https://pypistats.org/api/packages/aegis-mail-companion/recent" | python3 -m json.tool # Check OS breakdown (Linux / macOS Darwin / Windows) & Python version breakdown curl -s "https://pypistats.org/api/packages/aegis-mail-companion/system" | python3 -m json.tool curl -s "https://pypistats.org/api/packages/aegis-mail-companion/python_minor" | python3 -m json.tool # Or run the pypistats CLI directly with uvx / pipx uvx pypistats overall aegis-mail-companion ✨ 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 instructions and 1-click server presets:
Switch modes anytime per mailbox from the Mailbox Details Banner → Settings (⚙) Drawer:
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):
aegis aegis-ai aegis-ai-suite aegis-mail aegis-mail-companion aegiscore ai genai future-of-ai agentic-ai autonomous-agents ai-agents multi-agent-systems llm-orchestration ai-email-assistant email-automation email-bot email-agent mail-companion smart-inbox inbox-zero email-triage auto-reply email-responder customer-support-ai customer-service-bot helpdesk-automation it-helpdesk service-desk l1-support l2-support ticket-triage sla-monitoring sentiment-analysis root-cause-analysis outlook microsoft-graph office-365 gmail gmail-api zoho-mail imap smtp jira-connector issue-tracker rag knowledge-base openai claude gemini ollama local-llm self-hosted-ai pwa crm
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




