SafetyAppears in · BackgroundAdded

Privacy Gateway

Redact PII with regex and local Gemma before it reaches Claude.

Privacy Gateway · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
Read patients.md
Name: __PII_PERSON_1__
Email: __PII_EMAIL_1__
[privacy-gateway] redacted outbound

Runs in the background, with no interface. These are illustrative logs.

❯

Illustration. Actual results depend on the mod, terminal and environment.

Install

Installation is unusual; follow the original author’s instructions

Read the author’s instructions ↗

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads prompts, tool results, and system sections bound for Claude to redact them.

Writes files

Yes

Keeps the placeholder map in $.state; may restore real values before local Edit writes.

Runs commands

Unspecified

Network

Yes

Calls the configured local Gemma OpenAI-compatible endpoint (default 127.0.0.1:1234).

Introduction

claude-privacy-gateway is a Claude Code function-hooks Mod (PoC) that redacts PII/secrets to PII*_ placeholders with regex plus local Gemma 4 (e.g. LM Studio) before content reaches Claude, restoring values only for local tool calls and on-screen display. Detection failure defaults to fail-closed. Needs a local Gemma endpoint; verified by the author on Claude Code 2.1.289. No LICENSE file found—recorded as NOASSERTION. Install via claude --plugin-dir; no marketplace. Scores are document-calibrated, not runtime-tested.

Who it is for

  • People who want to reduce PII/secret leakage into Claude's context

Requirements

  • Claude Code ≥ 2.1.289
  • Needs a local Gemma/LM Studio OpenAI-compatible endpoint.
  • Author marks it as a PoC; APIs may change.