This is a browser extension that allows users to lock individual ChatGPT conversations with per-chat passwords β even when sharing the same account. Each chat can be locked with a unique password, and access is only granted upon entering the correct password.
- Lock any ChatGPT conversation with a custom password π
- Automatically prompts for password when opening a locked chat
- Cloud-based sync using MongoDB Atlas and Vercel Serverless API
- Works across devices and sessions for the same ChatGPT account
- Simple, clean UI built directly into the ChatGPT interface
- The extension runs on chat.openai.com or chatgpt.com
- When a user clicks "π Lock Chat", the extension stores the password in a remote MongoDB database using a Vercel API
- When the user visits that chat again, the extension prompts for a password before revealing the content
- Browser Extension (Manifest V3, JS, CSS)
- Vercel Serverless Functions (Next.js API routes)
- MongoDB Atlas (for password storage)
- Optional: Password hashing (coming soon)
- Clone this repo and unzip
- Go to
chrome://extensionsin your browser - Enable Developer Mode
- Click "Load unpacked" and select the extension folder
- Create a MongoDB Atlas cluster
- Create a database:
chatlocksand a collection:locks - Set up a Vercel project with a
MONGODB_URIenvironment variable - Push the
api/lockroute to Vercel
chatgpt-password-locker/
βββ manifest.json # Chrome extension config (Manifest V3)
βββ content.js # Main script injected into ChatGPT
βββ style.css # Styles for the lock screen UI
βββ README.md # This file
βββ api/ # (Optional) Vercel serverless backend
βββ lock/
βββ route.ts # GET & POST endpoints for MongoDB chat locks
- π Password hashing (bcrypt or argon2)
- π§ "Unlock All" master password
- π Multi-user cloud sync using email/login
- β¨ Slicker modals, animations, and UI polish
Built by Aliasgar Sogiawala
Open to collaboration and improvements π
MIT β Use it, modify it, and build something great with it!