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.
- 100% On-Device & Air-Gapped Execution: Operates completely offline with zero data transmission to third-party cloud providers.
- 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).
- AES-256 Encrypted Local Memory Vault: Cryptographically safeguards indexed embeddings and provenance hashes on local disk.
- Ephemeral In-Memory Scratchpad: Automatically purges decrypted intermediate representations immediately upon query completion.
- Interactive Privacy Vault Studio: Glassmorphic bilingual (English/Arabic RTL) dashboard with live vault explorer, air-gap firewall status, and real-time semantic memory search.
┌─────────────────────────┐
│ 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 │
└─────────────────────────┘
# 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- Interactive Privacy Studio: http://127.0.0.1:8012/
- Swagger OpenAPI Docs: http://127.0.0.1:8012/docs
- 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
IndexerAgentwithout touching retrieval or the privacy firewall.
- 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.
Built by Asadullah Shafique.
🔗 Explore my portfolio showcasing Agentic AI projects and real-world applications: asadullahshafique-devunity.vercel.app
- DevUnity Portfolio: https://asadullahshafique-devunity.vercel.app
- ResearchX: https://github.com/asadullah48/researchx
- GraphAI: https://github.com/asadullah48/graphai
- LoopAI: https://github.com/asadullah48/loopai
- HarnessAI: https://github.com/asadullah48/harnessai
- SecureBridge: https://github.com/asadullah48/securebridge
- WorkforceAI Academy: https://github.com/asadullah48/workforceai-academy
- ConciergeAgent: https://github.com/asadullah48/conciergeagent
- ContextX: https://github.com/asadullah48/contextx
- GuardrailAI: https://github.com/asadullah48/guardrailai
- MarketAgentHub: https://github.com/asadullah48/marketagenthub
- WorkforceAI: https://github.com/asadullah48/workforceai
- DomainX: https://github.com/asadullah48/domainx