{"repo":"rehydra-ai/rehydra-sdk","free":true,"listed":false,"github":"https://github.com/rehydra-ai/rehydra-sdk","clone":"git clone https://github.com/rehydra-ai/rehydra-sdk.git","description":"Prevent accidental PII leakage in LLM prompts before they hit the model.","language":"TypeScript","stars":84,"topics":["ai-security","gdpr","llm-security","pii","privacy"],"license":"MIT","category":"ai-agents","readme_excerpt":"PII security for AI workflows, coding agents and browser workloads. Detects, replaces, encrypts, and rehydrates back when needed. Documentation · Issues npm i rehydra · npm i @rehydra/cli · npm i @rehydra/opencode The Problem When you send code, messages, or documents through an LLM, real names, emails, and API keys go with them. Existing anonymizers strip PII permanently but that breaks the conversation. The LLM can't reason about \"John\" if it never sees \"John,\" and it can't write a file referencing john@acme.com if that address was permanently removed. You need pseudonyms that the LLM can work with, and that your tools can reverse. How Rehydra Solves It 1. Detect — Regex patterns catch structured PII (emails, phones, IBANs, credit cards). An on-device NER model (ONNX, no cloud calls) catches soft PII (names, organizations, locations). 2. Replace — Each PII value gets a stable placeholder: . The LLM works with these instead of real data. 3. Persist — The same entity always gets the same ID, across every message in the session. The LLM maintains relational coherence without ever seeing real PII. 4. Rehydrate — When a response needs to become real again (a file write, a bash command, a final answer), Rehydra restores the original values from its encrypted map. Quick Start Proxy — protect your AI coding tools Run a local proxy that anonymizes PII before it reaches the LLM and rehydrates responses. Works with Claude Code, Cursor, and any OpenAI/Anthropic-compatible client. Names","default_branch":null,"files":null,"tree":[],"storefront":"/r/rehydra-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rehydra-ai/rehydra-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}