rehydra
FreeA zero-trust SDK for anonymizing PII locally before sending prompts to LLMs and seamlessly rehydrating the response.
About rehydra
Rehydra is an open-source zero-trust SDK designed to prevent accidental PII leakage in LLM prompts before they reach the model. It detects structured PII (emails, phones, IBANs, credit cards) via regex and soft PII (names, organizations, locations) using an on-device NER model running in ONNX format. Each detected value is replaced with a stable placeholder that persists across the session, allowing the LLM to maintain relational coherence without seeing real data. When needed, responses are rehydrated by restoring original values from an encrypted map. Rehydra integrates as a local proxy for AI coding tools like Claude Code and Cursor, as a browser extension for ChatGPT and Gemini, and as an OpenCode plugin, ensuring PII never leaves the user's machine.
Key Features
Pros & Cons
- Zero-trust design: PII detection and replacement happen entirely on-device, no data leaves the machine
- On-device NER model eliminates cloud calls for soft PII detection
- Stable placeholders maintain conversational context and entity relationships
- Open-source SDK with flexible integration options (proxy, browser extension, plugin)
- Supports multiple LLM providers via compatible proxy interface
- Proxy setup requires an Anthropic API key and does not support Claude Max/Pro OAuth subscriptions
- Browser extension currently limited to ChatGPT and Gemini
- Requires some technical configuration for integration with development tools
- Not yet available for all LLM platforms or proprietary SDKs