3,702 prompts from top AI collections
← Back to Market
[LIVE] [mueckinger/scrub-proxy] 3 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,194 characters
Status: [LIVE] Endpoints found: https://openrouter.ai/api/v1/chat/completions https://openrouter.ai/api/v1 https://openrouter.ai/api/v1/chat Source: https://github.com/mueckinger/scrub-proxy # Scrub Proxy A transparent Go reverse proxy for OpenAI-compatible LLM APIs (default upstream: [OpenRouter](https://openrouter.ai)) that scrubs sensitive data out of requests and restores it in responses: secrets are redacted one-way using a [gitleaks](https://github.com/gitleaks/gitleaks)-compatible rule set (gitleaks TOML, stdlib regexp engine), PII is anonymized via [Presidio-Analyzer](https://github.com/data-privacy-stack/presidio) and restored from placeholders before returning to the client. Scrub Proxy is built for **multilingual LLM traffic**: it handles calls in different languages (e.g. German and English) within the same conversation, detects the language of every message, and analyzes it with a **multilingual Presidio instance** that has the matching NLP engines (`de`, `en`, …) loaded. ## How it works 1. **Scrub requests**: The proxy extracts all user textual inputs from the request body (`messages[].content`, `input`, `prompt`), detects the language of each text with [Lingua](https://github.com/pemistahl/lingua-go) (restricted to the codes in `ANALYZER_LANGUAGES`), sends each to Presidio `POST /analyze` with the detected language, and replaces every detected PII span with a **bounded placeholder** like `<Name_1>`. Before that, a secret scan (gitleaks-compatible rules) redacts anything that looks like an API key, token, or credential — those are never restorable. 2. **Forward**: The scrubbed request is forwarded to the upstream LLM API. The client's `Authorization` header is passed through unchanged. 3. **Restore responses**: The proxy scans upstream responses for placeholders and replaces them with the original plaintext before returning to the client. This works for both non-streaming JSON and streaming (SSE / streamableHttp) responses. The `placeholder → plaintext` mapping lives only in memory for the lifetime of a single request and is never persisted or logged. The upstream LLM never sees the PII — only
Download .txt