Skip to content

About

A privacy-first on-device agent framework indexing personal financial emails, wealth notes, tax slips, and browsing history with strict air-gapped zero-cloud egress and AES-256 local encryption

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🔒 PrivateBrain: Local Air-Gapped Finance Memory Agent & Zero-Cloud Egress Vault

A privacy-first on-device agent framework indexing personal financial emails, wealth notes, tax slips, and browsing history with strict air-gapped zero-cloud egress and AES-256 local encryption.

License: Apache 2.0 Python 3.10+ Tests Passing FastAPI Author


🚀 Key Value Propositions

  1. 100% On-Device & Air-Gapped Execution: Operates completely offline with zero data transmission to third-party cloud providers.
  2. Autonomous Multi-Agent Privacy Stack:
    • IndexerAgent: Ingests and structures personal financial documents, wealth notes, tax slips, and browser history.
    • MemoryAgent: Retrieves relevant historical context with zero-knowledge semantic cosine similarity scoring.
    • PrivacyAgent: Intercepts outbound network calls with an air-gap egress firewall and masks PII (SSNs, IBANs, Credit Cards).
  3. AES-256 Encrypted Local Memory Vault: Cryptographically safeguards indexed embeddings and provenance hashes on local disk.
  4. Ephemeral In-Memory Scratchpad: Automatically purges decrypted intermediate representations immediately upon query completion.
  5. Interactive Privacy Vault Studio: Glassmorphic bilingual (English/Arabic RTL) dashboard with live vault explorer, air-gap firewall status, and real-time semantic memory search.

🏛️ PrivateBrain Architecture

                    ┌─────────────────────────┐
                    │     Personal Query      │
                    └────────────┬────────────┘
                                 │
                    ┌────────────▼────────────┐
                    │      PrivacyAgent       │
                    │  • Air-Gap Egress Wall  │
                    │  • PII Masker (SSN/IBAN)│
                    └────────────┬────────────┘
                                 │
                    ┌────────────▼────────────┐
                    │       MemoryAgent       │
                    │  • Semantic Retrieval   │
                    │  • Ephemeral Decryption │
                    └────────────┬────────────┘
                                 │
                    ┌────────────▼────────────┐
                    │   Local Vault (AES-256) │
                    │  • Emails & Tax Docs    │
                    │  • Wealth Notes         │
                    └─────────────────────────┘

🛠️ Quick Start

# 1. Clone repository
git clone https://github.com/asadullah48/privatebrain.git
cd privatebrain

# 2. Install dependencies
pip install -e .

# 3. Run automated test suite
python -m pytest tests -v

# 4. Start local gateway & frontend privacy studio
uvicorn privatebrain.server:app --host 127.0.0.1 --port 8012 --reload

🤖 Agentic AI Alignment

  • Autonomy — IndexerAgent → MemoryAgent → PrivacyAgent index, retrieve, and mask personal data on their own, with no cloud round-trip required for any step.
  • Resilience — PrivacyAgent's egress firewall intercepts outbound network calls itself rather than relying on a policy document — air-gapping is enforced in code, and the ephemeral scratchpad purges decrypted data immediately after each query so a crash can't leak state.
  • Adaptivity — MemoryAgent's cosine-similarity retrieval works over whatever's been indexed (emails, notes, tax slips, browsing history), so adding a new personal-data source extends IndexerAgent without touching retrieval or the privacy firewall.

Roadmap

  • Expose IndexerAgent/MemoryAgent as MCP tools scoped to run only inside an air-gapped sandbox, so a larger personal-assistant agent can query this vault without ever getting direct data access itself.
  • Extend the AES-256 vault to sync (still encrypted, still local) across a user's own devices without introducing a cloud dependency.

🤖 Author

Built by Asadullah Shafique.

🔗 Explore my portfolio showcasing Agentic AI projects and real-world applications: asadullahshafique-devunity.vercel.app

🌐 Connected Ecosystem & Portfolio

About

A privacy-first on-device agent framework indexing personal financial emails, wealth notes, tax slips, and browsing history with strict air-gapped zero-cloud egress and AES-256 local encryption

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages