Skip to content

0xrlawrence/Pribado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ” Pribado

Private API Key Management & Zero-Knowledge Infrastructure

MIT License Ko-fi

Pribado is a self-hostable, zero-knowledge platform for managing API keys, encrypted secrets, and private communications. Built on Oasis Sapphire for hardware-backed confidential computing.

Pribado Dashboard


✨ Features

πŸ”‘ Private API Proxy

  • Store API keys (OpenAI, Anthropic, Google, etc.) encrypted
  • Generate proxy keys (priv_xxx) to use instead of exposing real keys
  • Automatic key rotation with webhook notifications
  • Zero-knowledge: server stores encrypted blobs it cannot decrypt

πŸ—„οΈ Encrypted Vault

  • Password manager with AES-256-GCM encryption
  • Keys derived from your wallet signature (never stored)
  • Backup to Oasis Sapphire blockchain
  • Cross-device sync via encrypted chain storage

πŸ’¬ Anonymous Chat

  • End-to-end encrypted real-time messaging
  • No accounts, no identity tracking
  • Messages exist only in transit (not stored)
  • Ephemeral session keys

πŸ“„ Document Signing

  • Sign PDFs with digital signatures
  • Anchor document hashes to Sapphire blockchain
  • Immutable proof of existence and integrity

πŸ›‘οΈ Security Architecture

  • Double-layer encryption: Wallet-derived keys + server enclave
  • Hardware TEE: Oasis Sapphire confidential smart contracts
  • Zero-knowledge: Server cannot read your data
  • Rate limiting: IP-based spam/abuse protection

πŸš€ Quick Start

Prerequisites

  • Node.js v20+
  • npm v10+

Installation

# Clone the repository
git clone https://github.com/0xrlawrence/Pribado.git
cd Pribado

# Install dependencies
npm install

# Create environment file
cp .env.local.example .env.local

# Generate encryption secret
echo "ENCLAVE_SECRET=$(openssl rand -hex 32)" >> .env.local

# Build and run
npm run build
npm start

Open http://localhost:3000 in your browser.

Docker

docker-compose up -d

πŸ”§ Configuration

Variable Description Required
ENCLAVE_SECRET 64-char hex encryption key βœ… Yes
SAPPHIRE_PRIVATE_KEY Oasis wallet private key ❌ Optional
SAPPHIRE_RPC_URL Oasis RPC endpoint ❌ Optional

See SELF_HOSTING.md for complete deployment guide.


πŸ“¦ CLI Tool

Manage API keys from the command line:

# Install globally
npm install -g pribado-cli

# Or use npx
npx pribado-cli

# Set up wallet
pribado init

# Add an API key
pribado keys add

# View your keys
pribado keys

# Revoke a key
pribado keys revoke

See cli/README.md for full documentation.


πŸ” Security

Pribado implements a zero-knowledge architecture:

User's Wallet Signature
        ↓
PBKDF2 (100,000 iterations)
        ↓
Encryption Key (exists ONLY in browser memory)
        ↓
AES-256-GCM Encryption
        ↓
Encrypted blob sent to server

Result: Server stores encrypted data it CANNOT decrypt.

For detailed security documentation, see SECURITY.md.


πŸ—οΈ Tech Stack

Layer Technology
Frontend Next.js 14, React, TailwindCSS
Encryption AES-256-GCM, PBKDF2, Argon2id
Blockchain Oasis Sapphire (TEE)
Database SQLite (WAL mode)
Transport HTTPS/TLS 1.3
Real-time Socket.IO

πŸ“š Documentation


🀝 Contributing

Contributions are welcome! Please read CONTRIBUTING.md first.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ’° Support

If you find this project useful, consider supporting its development:

Ko-fi

Mainnet access requires a minimal $1/month fee to prevent spam and support infrastructure.


⚠️ Disclaimer

This project is provided as-is for personal and educational use. Not designed for enterprise scaling. If you choose to use this in a production environment, you do so at your own risk.

For enterprise use, you are encouraged to self-host and create your own infrastructure.


πŸ“„ License

MIT License - see the LICENSE file for details.


Built with ❀️ for privacy

About

Zero-knowledge privacy platform for confidential API key management, encrypted vault, and secure chat. Built on Oasis Sapphire TEEs

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors