Democratizing access to artificial intelligence by designing, building and maintaining a free Personal AI
- About Kwaai
- Work Tracks
- Supporting Infrastructure
- Quick Start Guides
- Network Roadmap
- Community
- Publications & Research
- Documentation
Kwaai is building the future of decentralized, privacy-preserving artificial intelligence through a free Personal AI ecosystem. Our mission is to democratize AI access while maintaining user sovereignty, data privacy, and open collaboration.
- Decentralization: Peer-to-peer infrastructure without centralized control
- Privacy First: Homomorphic encryption and privacy-preserving computation
- Open Development: Open-source core components and transparent research
- User Sovereignty: Users own and control their data and AI agents
We operate across three main work tracks that encompass development, research, and governance:
- Personal AI Development - Building production-ready personal AI systems
- Fundamental AI Research - Advancing the science of AI through novel approaches
- Policy & Governance - Establishing ethical frameworks and standards
Building the infrastructure, applications, and experiences for a free Personal AI ecosystem.
Led by Balaji Lakshmanan
Led by Reza Rassool
Led by Steve Vitka
The Personal Agency workgroup focuses on user empowerment through the proprietary Lucid platform, which enables users to maintain control over their AI agents and data. This work is primarily conducted outside of public GitHub repositories.
Focus Areas:
- User consent management
- Agent behavior customization
- Personal data governance
- Agency verification mechanisms
Advancing the scientific foundations of AI through novel architectures, privacy-preserving methods, and interdisciplinary research.
Led by Daryle Serrant
Research on state space models for efficient sequence modeling and long-range dependencies. Primary research outputs are published through academic channels and conferences.
Focus Areas:
- Structured state space sequences (S4)
- Efficient attention mechanisms
- Long-context modeling
- Computational efficiency
Led by Diego Galeano
Led by Reza Rassool
Research into novel neural architectures derived from first principles in quantum mechanics and fluid dynamics. Work spans continuous state representations, energy-based learning, non-local interactions, and equivariant geometric architectures. Outputs are published through academic channels; implementation work is available in kwaai-innovative-architectures.
Led by Sulimon Sattari
|
VPK — Virtual Private Knowledge
Private repository — Kwaai members can request access on Slack Research system enabling confidential vector search for privacy-preserving RAG applications using Partial Homomorphic Encryption (PHE). Encrypted embedding vectors are split across N untrusted shards — each shard sees only 1/N of the corpus and 1/N of queries. Exposes an MCP server for direct integration with Claude and LLM agents. Demonstrated on 1,000 encrypted medical documents with 95–99% ranking preservation. Research published at MPI Workshop, Claremont Graduate University (2025). Capabilities:
|
homomorphic-encryption-mpi-workshop - Private RAG
Workshop materials and implementations for privacy-preserving retrieval-augmented generation. Topics:
|
|
privacy-preserving-rag-book - Comprehensive Guide (2026)
Comprehensive guide to privacy-preserving retrieval-augmented generation systems. Coverage:
|
Establishing ethical frameworks, standards, and governance mechanisms for responsible AI development and deployment.
Led by Steve Vitka
Development of policy frameworks and alignment methodologies to ensure AI systems serve human interests and values.
Focus Areas:
- Ethical AI principles
- Regulatory compliance frameworks
- Alignment verification methods
- Stakeholder engagement processes
Note: Policy research may be included in the kwaai-alignment repository or maintained in separate documentation.
Research and development of verifiable mechanisms to ensure AI agents remain loyal to their users' interests.
Focus Areas:
- Loyalty verification protocols
- Behavioral constraints
- Audit mechanisms
- Trust metrics
Participation in IEEE P7012 standard development for machine-readable personal privacy terms.
Objectives:
- User-defined privacy preferences
- Machine-readable consent formats
- Automated compliance verification
- Interoperability standards
Note: Standards development work may not have dedicated GitHub repositories as it follows IEEE processes.
Option 1 — Pre-built binary (no Rust required):
# macOS Apple Silicon
curl -L https://github.com/Kwaai-AI-Lab/KwaaiNet/releases/latest/download/kwaainet-aarch64-apple-darwin.tar.gz \
| tar -xz && sudo mv kwaainet /usr/local/bin/See the releases page for Linux and Windows downloads.
Option 2 — Build from source:
git clone https://github.com/Kwaai-AI-Lab/KwaaiNet.git
cd KwaaiNet
cargo build --release -p kwaai-cli
# Binary at: target/release/kwaainetFirst-time setup:
kwaainet setup # create dirs, write default config
kwaainet config --set public_ip <YOUR_PUBLIC_IP> # required for map visibility
kwaainet config --set public_name "YourName@kwaai" # shown on map.kwaai.ai
kwaainet benchmark # measure throughput, saved to cacheStart your node:
kwaainet start --daemon # reads live network map, auto-selects best local model
kwaainet status # confirm it's running
kwaainet logs --follow # watch live outputModel selection is automatic —
kwaainetreads map.kwaai.ai, lists your locally installed Ollama models, and picks the best match. Your node appears on the map within 30–60 seconds.
Serve the OpenAI-compatible API:
kwaainet serve # starts on port 11435
curl http://localhost:11435/v1/models # verifyNext Steps:
Prerequisites:
- Python 3.9+
- Docker (optional)
- 8GB RAM minimum
Quick Start:
# Clone the repository
git clone https://github.com/Kwaai-AI-Lab/assistant.git
cd assistant
# Set up virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure your AI
cp config.example.yaml config.yaml
# Edit config.yaml with your preferences
# Launch pAI-OS
python main.pyDocker Deployment:
# Build the image
docker build -t pai-os .
# Run the container
docker run -d \
--name my-pai \
-p 8080:8080 \
-v ~/.pai:/data \
pai-osConfiguration Options:
# config.yaml
agent:
name: "MyPAI"
model: "gpt-4"
temperature: 0.7
privacy:
encryption: true
local_only: false
integrations:
- email
- calendar
- slackPrerequisites:
- Python 3.9+
- API keys (OpenAI or local model)
- Web browser (for UI)
Installation:
# Clone the repository
git clone https://github.com/Kwaai-AI-Lab/kwaai-pai.git
cd kwaai-pai
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Add your API keys to .env
# Run the assistant
python app.pyEnvironment Configuration:
# .env
OPENAI_API_KEY=your_key_here
KWAAI_NODE_URL=http://localhost:8000
PRIVACY_MODE=true
LOG_LEVEL=INFOAccess the UI:
Open your browser to http://localhost:5000
API Usage:
from kwaai_pai import PAIClient
# Initialize client
client = PAIClient(api_key="your_key")
# Send a query
response = client.query("Summarize my emails from today")
print(response.answer)
# Stream responses
for chunk in client.stream("Write a report"):
print(chunk, end="")- Native Rust CLI (
kwaainet) with full node lifecycle management - Persistent node identity (Ed25519 keypair,
did:peer:DIDs) - Decentralized Trust Graph (W3C Verifiable Credentials, trust scoring)
- Full Petals/Hivemind DHT compatibility
- OpenAI-compatible API server (
kwaainet serve) - Metal GPU inference — 33+ tok/s on Apple Silicon
- Cross-platform binaries (macOS, Linux, Windows)
SummitAttendeeVC— live credential issuance at Kwaai Personal AI Summits
- 1K+ nodes
- Browser SDK — one-line website integration
- Mobile foundation — iOS/Android native apps
- Enterprise compliance tools (GDPR/HIPAA)
- Optional integration framework (modular storage/identity)
FiduciaryPledgeVC+VerifiedNodeVCcredential issuance
- 10K+ nodes
UptimeVC+ThroughputVCpeer-witnessed credentials- Environmental tracking — carbon accountability
- Enterprise routing (minimum trust score thresholds for HIPAA/GDPR workloads)
- 100K+ nodes
- EigenTrust propagation (Sybil-resistant endorsement-weight decay)
- OS-level integration
-
Slack Workspace: kwaaiailab.slack.com
#general- General discussions#kwaai-net- KwaaiNet development#pai-os- Personal AI OS#research- Research collaborations#support- Technical support
-
Website: www.kwaai.ai
-
Workgroups: www.kwaai.ai/workgroups
We welcome contributions from the community! Here's how to get started:
- Pick a Project: Browse our repositories
- Read Guidelines: Check
CONTRIBUTING.mdin the repository - Find an Issue: Look for
good first issueorhelp wantedlabels - Submit a PR: Follow our pull request template
Contribution Areas:
- 🐛 Bug fixes and testing
- 📝 Documentation improvements
- ✨ Feature development
- 🔬 Research collaborations
- 🎨 UI/UX enhancements
- 🌍 Translations and localization
Kwaai-AI-Lab is committed to providing a welcoming and inclusive environment. All participants are expected to:
- Be respectful and considerate
- Provide constructive feedback
- Focus on what's best for the community
- Show empathy towards others
Report any concerns to [email protected]
Personal AI Systems
- Decentralized agent coordination
- Privacy-preserving inference
- User preference learning
- Multi-agent collaboration
Novel Architectures
- Physics-inspired neural networks
- Quantum-fluid dynamics models
- State space models for sequences
- Geometric deep learning
Privacy & Security
- Homomorphic encryption for AI
- Secure multi-party computation
- Privacy-preserving RAG
- Federated learning
Medical AI
- Periodontal disease prediction
- Clinical decision support
- Privacy-compliant healthcare AI
- Diagnostic assistance
AI Alignment & Ethics
- Value alignment methods
- Interpretability techniques
- Robustness verification
- Ethical framework development
Research publications and preprints from Kwaai contributors are listed on the website: www.kwaai.ai/research
- KwaaiNet: Wiki | API Docs
- pAI-OS: User Guide | Developer Docs | API Reference
- PAI-Assistant: Integration Guide | API Docs
- CommunitySolidServer: Solid Protocol | Wiki
- Architecture Overview: System Architecture
- Security Model: Security Documentation
- API Documentation: Unified API Docs
- Deployment Guide: Production Deployment
- Tutorials: Getting Started Series
- Video Guides: YouTube Channel
- Blog: Kwaai Blog
- Workshops: Workshop Materials
- General Inquiries: [email protected]
- Technical Support: [email protected]
- Research Collaboration: [email protected]
- Security Issues: [email protected]







