Status: MVP Ready | License: Multi-License (GPL/LGPL/AGPL/CC0) | Version: 0.15.1 Platforms: Windows | Linux | macOS Note: This software is for educational/research use. Please review the full Legal Notice before use.
The Immediate Problem: AI is transforming how we work and think, but it's creating two critical failures:
- "Digital Debris" — Endless chat histories where valuable insights get lost in noise. We need conversations that extract permanent knowledge, not create message archives.
- "Computational Inequality" — Only people with powerful hardware (or expensive cloud subscriptions) can use advanced AI. We need democratized access through peer-to-peer compute sharing.
D-PC Messenger solves both:
- Knowledge Commits transform ephemeral conversations into structured, versioned knowledge (like git commits for your personal context)
- P2P Compute Sharing lets you borrow a friend's GPU to run powerful AI models — no cloud, no subscriptions, complete privacy
- Context Collaboration enables your AI assistants to work together by securely sharing relevant knowledge
The Deeper Mission: This isn't just productivity software. We're building infrastructure for human-AI co-evolution — ensuring humans can maintain cognitive parity as artificial general intelligence emerges.
Your personal context (conversations, insights, learned knowledge) should function like "DNA for knowledge" — portable across devices and lifetimes, evolvable through collaborative learning, owned and controlled by you (not extracted by corporations). In 10-20 years, when AI assistants from birth and brain-computer interfaces become mainstream, your accumulated "knowledge DNA" will determine your cognitive capacity in AI-augmented society.
We're racing against a closing window: the infrastructure being built TODAY will determine whether your future AI interactions are sovereign tools under your control, or rented products that extract and monetize your cognition.
The core technology is built, but the mission to build a world-changing company has just begun.
I am a product-focused technical founder looking for a business-focused co-founder to be my partner. If you have a passion for privacy, a deep understanding of go-to-market strategy, and the drive to build a global community, I want to talk to you.
If this vision resonates with you, let's connect: legoogmiha@gmail.com | LinkedIn | X/Twitter
D-PC Messenger (Decentralized Personal Context) is a privacy-first, peer-to-peer platform for human-AI collaboration.
The Core Idea: Imagine you're working with your personal AI assistant (ChatGPT, Claude, or local Ollama). Now imagine securely sharing relevant context with a trusted friend so their AI assistant can help too - without compromising privacy or relying on centralized servers.
How it works:
- You + Your AI - Chat with your personal AI assistant about anything
- Collaborate with Humans - Connect directly with trusted peers via encrypted P2P messaging
- Share Context Securely - Share conversation histories, documents, or knowledge with peers
- Their AI Gets Smarter - Your shared context helps their AI give better, more informed answers
- Complete Privacy - All data stays on your devices, encrypted end-to-end, with granular access control
Real-world example: You're researching a technical topic with your AI assistant. You share your conversation history with a colleague. Their AI can now see your research and provide complementary insights, creating a collective intelligence between humans and their AI assistants.
Philosophy: Digital Self-Sovereignty - Your data, your keys, your control. No backdoors, no data mining, no compromises.
- True Privacy - Messages never touch servers, only peers
- User Sovereignty - You own your data, identity, and encryption keys (read more)
- Encrypted Backups - AES-256-GCM encrypted backups with no backdoors (guide)
- Human-AI Collaboration - Work with your AI assistant, then share contexts with trusted peers so their AIs can contribute too
- Compute Sharing - Share your local AI models or API access with trusted peers, or borrow theirs when you need more power (guide)
- Conversation History - Full conversational continuity with smart context optimization (60-80% token savings)
- Rich Markdown Rendering - AI responses display with GitHub-style formatting, intelligent caching (50-200x faster)
- Knowledge Commits - Git-like versioning for AI-extracted knowledge with bias mitigation (architecture)
- File Transfer - Secure peer-to-peer file sharing with chunked transfers, progress tracking, and SHA256 verification (v0.11.0)
- Voice Messages - Cross-platform voice recording with local Whisper transcription (v0.13.0)
- Telegram Integration - Bot integration for voice transcription and messaging bridge (v0.14.0)
- Linux Support - Native audio recording via Rust, ALSA/PipeWire support (v0.15.0)
- Token Usage Tracking - Real-time estimation with progressive warnings (v0.12.0+)
- Z.AI Provider - GLM model support with concurrency-based rate limiting (v0.14.0+)
- Local-First - Your data stays on your device
- Universal Connectivity - Intelligent 6-tier connection orchestrator ensures connectivity in nearly any network condition (IPv6, IPv4, WebRTC, UDP hole punching, volunteer relays, gossip)
- Hub-Optional Architecture - Works with DHT bootstrap (pre-configured seeds or initial Hub connection), then fully autonomous via direct connections, hole punching, and relay nodes
- Resilient Messaging - Gossip store-and-forward protocol ensures message delivery even during infrastructure outages
- Cryptographic Identity - Self-sovereign node IDs based on public keys
- Context Firewall - Granular control over what data you share
- Open Protocol - Extensible DPTP (D-PC Transfer Protocol)
- Note: DPTP spec updated to v1.1 with full documentation for GOSSIP_MESSAGE, GOSSIP_SYNC, and corrected node ID format (32 hex chars).
- Modular Design - Clear separation of concerns
- Knowledge Architecture - Git-like knowledge commits with cognitive bias mitigation (architecture doc)
- Easy Integration - Use any AI provider (Ollama, OpenAI, Claude)
- Production Ready - Docker deployment, OAuth, rate limiting
┌──────────────────────────────────────────────────────────────────────────┐
│ Human-AI Collaborative Intelligence │
│ P2P Encrypted Communication (Text • Voice • Video • Files) │
└──────────────────────────────────────────────────────────────────────────┘
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Human A │ │ Human B │ │ Human C │
│ ┌───────────┐ │ │ ┌───────────┐ │ │ ┌───────────┐ │
│ │ Local AI │ │ │ │ Remote AI │ │ │ │ Vendor AI │ │
│ │ (Ollama) │──┼────────►│ │ (GPU) │ │ │ │ (OpenAI) │ │
│ └───────────┘ │ Compute │ └───────────┘ │ │ └───────────┘ │
│ • Context │ Sharing │ • Context │ │ • Context │
│ • Messages │ │ • Messages │◄───────►│ • Messages │
│ • Privacy │ │ • Privacy │ Group │ • Privacy │
│ Rules │ │ Rules │ Chat │ Rules │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
│ ┌────────▼──────────┐ │
└─────────────────►│ Federation Hub │◄───────────────┘
│ (Optional) │
│ • Discovery │
│ • WebRTC Signal │
│ • OAuth │
│ • NO Messages │
│ • NO Context │
└───────────────────┘
6-Tier P2P Connection Fallback:
IPv6 → IPv4 → WebRTC → UDP Hole Punch → Relay → Gossip
D-PC Messenger uses intelligent fallback for near-universal P2P connectivity:
Internet-Wide Strategies (No Hub Required):
- IPv6 Direct - Direct TLS over IPv6 (40%+ networks, no NAT, lowest latency)
- IPv4 Direct - Direct TLS over IPv4 (works locally or internet-wide with port-forwarding)
Hub-Assisted Fallback: 3. WebRTC - STUN/TURN NAT traversal via Hub signaling (when direct methods fail)
DHT-Based Fallback (Hub-Independent): 4. UDP Hole Punch - DHT-coordinated, DTLS encrypted (60-70% NAT success) 5. Volunteer Relay - Privacy-preserving relay nodes (100% NAT coverage) 6. Gossip Store-Forward - Eventual delivery for disaster scenarios (in progress)
Key Benefits:
- Hub completely optional for Priorities 1-2, 4-6
- Automatic fallback ensures connectivity in nearly any network condition
- DTLS encryption for all 6 strategies
D-PC Messenger is NOT a messaging service. It is peer-to-peer communication software.
What this means:
- ✅ Messages are transmitted directly between users via encrypted P2P connections
- ✅ The creator does NOT operate message relay infrastructure
- ✅ The creator does NOT store or transmit user messages
- ✅ The creator does NOT control user communications
Hub Architecture:
- Provides WebRTC signaling for NAT traversal (like STUN/TURN servers)
- Messages flow directly P2P between clients (Hub never sees content)
- Direct TLS connections work independently of Hub for local networks
- Hub-free operation mode planned for Phase 3 (DHT-based discovery)
Legal implication: This software provides a communication tool, not a communication service. Users are solely responsible for their use of this software and any infrastructure they choose to deploy.
- Python 3.12+ with Poetry
- Node.js 18+ with npm
- Rust (install via rustup.rs)
- Docker (for Hub database)
Test Direct TLS connections on your local network:
# Terminal 1: Start Client 1
cd dpc-client/core
poetry install
poetry run python run_service.py
# Terminal 2: Start UI for Client 1
cd dpc-client/ui
npm install
npm run tauri dev
# Repeat for Client 2 on another machine (same network)
# Connect using dpc:// URI displayed in the appEnable internet-wide connections:
1. Start the Hub:
cd dpc-hub
docker-compose up -d # Start PostgreSQL
cp .env.example .env # Configure (edit SECRET_KEY)
poetry install
poetry run alembic upgrade head # Run migrations
poetry run uvicorn dpc_hub.main:app --host 0.0.0.02. Start the Client:
cd dpc-client/core
poetry install
poetry run python run_service.py
# In another terminal
cd dpc-client/ui
npm run tauri dev3. Authenticate and Connect:
- Login via OAuth (Google or GitHub) in the UI
- NEW: Client automatically registers cryptographic node identity
- Enter peer's
node_idin the UI - Click "Connect via Hub"
- WebRTC automatically establishes a direct P2P connection
4. Secure Your Data (Recommended):
# Create encrypted backup of your .dpc directory
cd dpc-client/core
poetry run python -m dpc_client_core.cli_backup create
# Your backup is saved to ~/dpc_backup_TIMESTAMP.dpc
# Store it on USB drive or encrypted cloud storageSee docs/QUICK_START.md for detailed instructions. Backup guide: docs/BACKUP_RESTORE.md GitHub OAuth: docs/GITHUB_AUTH_SETUP.md
For production use, deploy the Hub on a public server:
# On your VPS (Ubuntu 22.04+)
git clone https://github.com/mikhashev/dpc-messenger.git
cd dpc-messenger/dpc-hub
# Configure production settings
cp .env.example .env
nano .env # Add production credentials (SECRET_KEY, OAuth, etc.)
# Deploy with Docker Compose
docker-compose -f docker-compose.prod.yml up -d
# Set up Nginx + SSL
# See docs/WEBRTC_SETUP_GUIDE.md for complete instructionsFull guide: docs/WEBRTC_SETUP_GUIDE.md
- OAuth Login - User authenticates via Google or GitHub (setup guide)
- Temporary Node ID - Hub assigns temporary ID
- Cryptographic Registration - Client registers public key & certificate
- Verified Identity - Hub validates and marks node_id as verified
- JWT Token - Client receives JWT for API access
- Logout Support - Tokens can be blacklisted upon logout
- End-to-end encryption (DTLS in WebRTC, TLS in Direct)
- Client-side encrypted backups - AES-256-GCM with PBKDF2 (600k iterations)
- Cryptographic node identities (derived from RSA public keys)
- Context firewall (.dpc_access.json) for granular permissions
- JWT authentication with Hub (token blacklisting supported)
- No message persistence by default
- Node identity validation (certificates, public keys)
- No backdoors - If you lose your passphrase, data is permanently unrecoverable (by design)
- QUICK_START.md - 5-minute setup guide
- dpc-client/README.md - Client setup & development
- dpc-hub/README.md - Hub deployment guide
- USER_SOVEREIGNTY.md - Privacy philosophy & digital self-sovereignty
- BACKUP_RESTORE.md - Encrypted backup & restore guide
- GITHUB_AUTH_SETUP.md - GitHub OAuth authentication setup
- WEBRTC_SETUP_GUIDE.md - Complete WebRTC setup
- README_WEBRTC_INTEGRATION.md - Technical overview
- CONFIGURATION.md - Complete configuration guide
- OFFLINE_MODE.md - Offline mode features & usage
- LOGGING.md - Logging system configuration & troubleshooting
- Environment Variables - All settings support env var overrides
- Config File -
~/.dpc/config.inifor persistent settings
- VISION.md - Business vision, market opportunity, and mission
- PRODUCT_VISION.md - Product vision & technical philosophy
- USER_SOVEREIGNTY.md - Privacy philosophy & digital self-sovereignty
- KNOWLEDGE_ARCHITECTURE.md - Knowledge management architecture with cognitive bias mitigation
- specs/hub_api_v1.md - Hub API specification
- LICENSE.md - Licensing explained
Status: Production Ready | Timeline: Completed
Core Infrastructure:
- Direct TLS P2P connections (local network + IPv6 dual-stack)
- WebRTC with NAT traversal (STUN/TURN)
- 6-Tier Connection Fallback (IPv6, IPv4, WebRTC, UDP Hole Punch, Volunteer Relay, Gossip - all production-ready)
- Note: All 6 connection strategies production-ready as of v0.10.2
- Federation Hub for discovery and OAuth (now optional!)
- Cryptographic node identity system
- Token blacklist and logout
- Offline mode with graceful degradation
Privacy & Security:
- Encrypted local backups (AES-256-GCM, PBKDF2 600k iterations)
- Context firewall with granular access control
- Complete UI editor with 7 tabs (Hub, Node Groups, File Groups, AI Scopes, Device Sharing, Compute, Peers)
- AI Scope filtering for local AI (work/personal mode context isolation)
- Wildcard precedence fix (specific deny overrides wildcard allow)
- No message persistence (transactional communication)
- End-to-end encryption (DTLS/TLS for all 6 connection strategies)
AI Collaboration:
- Local AI integration (Ollama, OpenAI, Anthropic)
- Remote inference - Borrow compute from trusted peers (guide)
- Model discovery (auto-discovery on connection)
- Usage tracking (token counts, effectiveness metrics)
- Streaming responses (planned for Phase 2)
- Collaborative knowledge building - Multi-peer consensus voting with devil's advocate
- Knowledge Commit System - Git-like versioned knowledge (architecture)
- Personal Context Model (PCM) v2.0 with modular file system
- Conversation history optimization (60-80% token savings)
- Multi-perspective bias mitigation
- Cryptographic commit integrity (hash-based IDs, multi-signature support)
- Markdown rendering with intelligent caching
Status: Decentralized Infrastructure COMPLETE ✅ (All 6 connection strategies production-ready) | Target: Small teams (2-20 members + AIs)
Resilient Infrastructure - COMPLETE ✅
- ✅ DHT-based peer discovery (v0.9.5) - Kademlia DHT, 73 tests passing, internet-wide validated
- ✅ 6-Tier Connection Fallback (v0.10.0) - IPv6, IPv4, WebRTC, UDP hole punch, relay, gossip
- ✅ Hub-Optional Architecture - Fully decentralized operation without Hub dependency
- ✅ DTLS Encryption (v0.10.1) - All 6 connection strategies now encrypted end-to-end
- ✅ UDP Hole Punching (v0.10.1) - DTLS 1.2 encrypted, production-ready, 60-70% NAT success
- ✅ Volunteer Relay Nodes (v0.10.0) - 100% NAT coverage, privacy-preserving
- ✅ Gossip Protocol (v0.10.2) - Enhanced encryption and DHT certificate discovery
- ✅ Hybrid encryption (AES-GCM + RSA-OAEP) - No payload size limit
- ✅ DHT certificate discovery - Decentralized PKI for gossip
- ✅ Transport wrapper (GossipConnection) - Virtual connection interface
- ✅ File Transfer System (v0.11.0) - Peer-to-peer file sharing
- ✅ Chunked file transfer (64KB chunks, SHA256 verification)
- ✅ Firewall permissions (per-peer/per-group access control)
- ✅ Progress tracking with accept/reject dialog
- ✅ Per-peer storage isolation (
~/.dpc/conversations/{peer_id}/files/) - ✅ Conversation history integration (metadata-only for token efficiency)
Team Collaboration Features - PLANNED (Q1-Q3 2026):
- Persistent team management with roles
- Group chat UI with presence indicators
- Team knowledge repositories (shared, synchronized knowledge)fect
- Team AI assistants (access to collective team knowledge)
- Collaborative context editing (PR-like approval workflow)
- Team compute pools (auto-discovery and load balancing)
- Knowledge commit templates (Meeting Notes, Decisions, Postmortems)
- Team activity feed and analytics dashboard
- AI-facilitated team sessions (standups, brainstorming)
Stretch Goals:
- WiFi Mesh (802.11s) support (documentation - Direct TLS works over mesh)
- Meshtastic (LoRa) integration (offline text messaging)
- Hub-assisted backup (encrypted storage on Hub)
See ROADMAP.md for detailed Phase 2 specifications.
Status: Design Phase | Target: Global scale, 100% decentralization
Scaling Features:
- Mobile clients (iOS, Android)
- Multi-hub federation (large organizations with 100+ teams)
- Advanced DHT features (libp2p integration, cross-DHT discovery)
- Hub-free operation mode (100% decentralized)
- Dedicated TURN server infrastructure
Advanced Security:
- Social recovery (Shamir Secret Sharing for backup passphrases)
- Hardware wallet integration (Ledger, YubiKey, TPM)
- Blockchain-based identity (optional)
- QR code backup transfer (for mobile)
Rationale: Phase 2 proves small team collaboration model. Phase 3 scales to millions.
We welcome contributions of all kinds!
- Read the Vision - Start with our Vision Doc and Product Vision
- Review Guidelines - See CONTRIBUTING.md for branching workflow and code style
- Sign the CLA - Required for code contributions (CLA.md)
- Find an Issue - Check GitHub Issues
- Submit a PR - Follow the
dev→mainworkflow (see CONTRIBUTING.md)
- Bug fixes and testing
- Documentation improvements
- Internationalization (i18n)
- UI/UX enhancements
- Security audits
- Protocol implementation
- Discussions: GitHub Discussions
- Issues: GitHub Issues
- Email: legoogmiha@gmail.com
D-PC uses a Progressive Copyleft strategy:
| Component | License | Can I... |
|---|---|---|
| Desktop Client | GPL v3 | Use freely, must share modifications |
| Protocol Libraries | LGPL v3 | Use in proprietary apps, share modifications to libs |
| Federation Hub | AGPL v3 | Run as service, must share if modified |
| Protocol Specs | CC0 | Use freely, no restrictions |
TL;DR for most users:
- Use the app freely (no strings attached)
- Use protocol libraries in your app (LGPL is friendly)
- Run your own Hub (source required if modified)
- Can't create proprietary messenger fork (or buy Commercial License)
See LICENSE.md for detailed information.
Please DO NOT open public issues for security vulnerabilities.
Email: legoogmiha@gmail.com
We take security seriously and will respond within 48 hours.
License: Multi-license (GPL/LGPL/AGPL/CC0) - see LICENSE.md
Disclaimer: This software is provided 'AS IS' without warranty of any kind. Users are responsible for compliance with applicable laws in their jurisdiction, including encryption regulations, data protection laws, and telecommunications requirements.
Security: For vulnerability reports, contact legoogmiha@gmail.com (do not open public issues).
Compliance: See docs/LEGAL_COMPLIANCE.md for detailed information on export controls, data protection requirements, and jurisdiction-specific considerations.
No Warranty: The creators accept no liability for use, misuse, or legal consequences. Consult legal counsel before deployment in regulated environments.
D-PC Messenger builds on the shoulders of giants:
- aiortc - WebRTC implementation
- Tauri - Desktop app framework
- FastAPI - Hub server framework
- Ollama - Local AI inference
Special thanks to all contributors and early testers!
D-PC Messenger is developed with the assistance of AI-powered tools to accelerate innovation and maintain code quality. If you find this project valuable and would like to support its continued development and promotion, consider making a donation:
Cryptocurrency Donations:
- Bitcoin:
bc1qfev88vx2yem48hfj04udjgn3938afg5yvdr92x - Ethereum:
0xB019Ae32a98fd206881f691fFe021A2B2520Ce9d - TON:
UQDWa0-nCyNM1jghk1PBRcjBt4Lxvs86wflNGHHQtxfyx-8J
Your support helps cover AI-assisted development costs and enables faster delivery of new features. Every contribution, no matter the size, is deeply appreciated and directly contributes to building privacy-first infrastructure for human-AI collaboration.
- GitHub Issues: Report bugs
- GitHub Discussions: Ask questions
- Email: legoogmiha@gmail.com
- Documentation: docs/
A small step for AI, a giant leap for all humanity.