Skip to content

PII Redactor for Gemini is a privacy first browser extension that runs a local, in-browser LLM between you and Gemini. It automatically identifies and redacts personally identifiable information, sensitive keywords, and custom data patterns before your prompt ever leaves your device.

Notifications You must be signed in to change notification settings

swamisea/LLM-Anonymization-Extension

Repository files navigation

PII Redactor for Gemini

Try it out! (Just double-press ⇧ Shift after typing your prompt to activate.)

Why this project came to be

I found myself constantly going back to manually redact sensitive inputs from my prompts, and quite frankly, I'm too lazy to keep doing that by hand.

What's cool about this, you ask?

  • LLM Enabled: Intelligent PII detection and redaction using local LLMs.
  • In-Browser: All processing happens locally within your browser—no data leaves your device.
  • Near-Instant Redaction: Optimized for speed to minimize friction.
  • Response Rehydration: Automatically restores redacted information in Gemini's responses for a seamless experience.

Stack

  • Framework: React, TypeScript, WXT
  • UI: Mantine
  • AI: WebLLM (running Llama-3-8B-Instruct in browser)

Demo

Screen.Recording.2026-02-19.at.5.51.03.PM.mov

About

PII Redactor for Gemini is a privacy first browser extension that runs a local, in-browser LLM between you and Gemini. It automatically identifies and redacts personally identifiable information, sensitive keywords, and custom data patterns before your prompt ever leaves your device.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published