Discover and explore top open-source AI tools and projects—updated daily.
sgasserPrivacy proxy for LLMs masking PII and secrets
New!
Top 65.7% on SourcePulse
Summary
PasteGuard is an OpenAI-compatible privacy proxy designed to protect sensitive data when interacting with Large Language Models (LLMs). It addresses the critical need for data privacy by masking Personally Identifiable Information (PII) and secrets before they are sent to external LLM providers or by routing requests to local LLMs. This solution is ideal for developers and organizations needing to comply with data protection policies while leveraging powerful AI services.
How It Works
The core of PasteGuard is its role as an intermediary. It intercepts LLM API requests, analyzes them for PII (names, emails, phone numbers, etc.) and secrets (API keys, private keys) using Microsoft Presidio, and then applies one of two protection strategies. In "Mask Mode," detected sensitive data is replaced with placeholders before the request is forwarded to the LLM provider, with restoration occurring upon response. Alternatively, "Route Mode" directs requests containing PII to a locally hosted LLM (e.g., Ollama, vLLM), ensuring sensitive data never leaves the user's network. This proxy architecture allows seamless integration by simply changing the API endpoint URL.
Quick Start & Requirements
git clone https://github.com/sgasser/pasteguard.git), navigate into the directory, copy the example configuration (cp config.example.yaml config.yaml), and run docker compose up -d.config.yaml for specific settings.http://localhost:3000/openai/v1 instead of the original LLM API endpoint.http://localhost:3000/dashboard.Highlighted Details
Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or project roadmap were found in the provided README.
Licensing & Compatibility
Limitations & Caveats
The provided README does not detail specific limitations, known bugs, or alpha/beta status. The project appears to be presented as a stable, production-ready solution.
1 day ago
Inactive
wealthsimple