Sensitive data is never sent to AI, but AI still gives useful results.
GuardPass detects and redacts PII from your text before sending it to any AI model, then seamlessly restores the original values in the response.
- 🔍 Detects 12+ PII types: names, emails, phones, SSNs, credit cards, IPs, and more
- 📄 Supports PDF, DOCX, TXT, MD, CSV file uploads
- ⬇️ Download redacted files + full redaction reports
- 📊 Session analytics & audit log
- 🤖 Works with GPT-4o, GPT-4o-mini, GPT-3.5-turbo
- 🔐 Login/signup system
- 🌐 Clean, production-ready web UI
pip install -r requirements.txt# Mac/Linux
export OPENAI_API_KEY=sk-...
# Windows (PowerShell)
$env:OPENAI_API_KEY="sk-..."
# Windows (Command Prompt)
set OPENAI_API_KEY=sk-...uvicorn app:app --reload --port 8000http://localhost:8000
| Username | Password |
|---|---|
demo |
demo123 |
GuardPass/
├── app.py # FastAPI backend — all core logic
├── index.html # Single-file frontend (served by FastAPI)
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
└── README.md # This file
User Input → Detect PII → Replace with [TYPE_N] → Send to AI → Restore → Output
Your original data never leaves your machine unredacted.
- Backend: FastAPI + Python
- AI: OpenAI API (gpt-4o-mini by default)
- File Parsing: PyMuPDF (PDF), python-docx (Word)
- Frontend: Vanilla HTML/CSS/JS (no framework needed)
fastapi
uvicorn[standard]
openai
pydantic
python-multipart
pymupdf
python-docx