Everything ScrubBeforeAI Does
ScrubBeforeAI is a private, client-side security layer that removes secrets and PII from your prompts before they reach ChatGPT, Claude, or Gemini — and restores them locally afterward. Here is the full toolkit, all running inside your browser.
Redact Console
Paste any prompt, log, or code block and instantly swap credentials, tokens, and PII for safe numbered placeholders like [SCRUB_KEY_1] before sending it to an AI assistant.
Two-Way Reversal
Once the AI responds using the placeholders, paste its output back into the de-redact vault. A local key-value map restores your original secrets in a single click.
File Scrubber
Drag and drop .env, .json, .log, .yaml, and raw text files. Each file is sanitized in the browser and can be downloaded as a clean copy — nothing is uploaded.
Interactive AI Terminal
A sandboxed command console for power users. Run scrub, status, rules, and metrics commands to inspect redaction behavior without leaving your workspace.
Custom Rules Engine
Compile your own regex redaction patterns with a safe-compilation guard. Target internal token formats, employee IDs, or any project-specific secret shape.
Visual Diff View
See exactly what changed. Removed secrets are struck through in red beside the green placeholders that replaced them, so you can verify before you copy.
Broad Detection Coverage
Prioritized regex modules catch cloud credentials, API keys, database URIs, IP addresses, emails, phone numbers, credit card structures, and more.
Encrypted Session Map
Export your reversal map as a 256-bit AES-GCM encrypted file and re-import it later to safely restore AI responses across sessions or devices.
Offline-First PWA
Installs a cache-first service worker so the redactor, file scanner, terminal, and custom rules all keep working with no internet connection.
Ready to sanitize your next prompt?
No signup, no upload, no tracking. Everything stays in your browser.
Open the Workspace