docs · v0.4PYTHON 3.11+ · MIT
Anonymize PII before it leaves your SDK.
Composable middleware for the OpenAI, Anthropic, and Gemini Python SDKs. Detect, anonymize, and deanonymize — including streaming responses — in a handful of lines.
SDK→detect→anonymize→LLM→deanonymize→SDK
// quickstart.pyRedaktAI
# pip install rdakt-aiimport httpxfrom openai import AsyncOpenAIfrom rdakt_ai import RdaktMiddleware client = AsyncOpenAI( http_client=httpx.AsyncClient( transport=RdaktMiddleware(inner=httpx.AsyncHTTPTransport()), ),)[01] Quickstarts