sgasser/pasteguard

AI gets the context. Not your private data. Local-first privacy proxy for browser chat, AI APIs, and coding agents.

What it solves

PasteGuard prevents personally identifiable information (PII) and secrets from being sent to cloud AI providers. It eliminates the need for manual redaction or switching to lower-performing local models when working with sensitive client data, customer records, or production logs.

How it works

PasteGuard acts as a local-first privacy layer and proxy. It intercepts requests to AI providers (like OpenAI, Anthropic, or Gemini) and masks sensitive data—such as names, emails, and API keys—with placeholders before they reach the provider. It then restores those placeholders in the response before the user sees them. It uses a combination of checksums, format checks, and a semantic backend (GLiNER) for detection.

Who it’s for

It is designed for teams and developers who must adhere to strict privacy rules and cannot send raw sensitive data to cloud AI providers, including those using browser-based chats, custom apps/APIs, or AI coding agents.

Highlights

  • Multi-interface support: Works via a browser extension for chat interfaces, a proxy for APIs/SDKs, and integration with coding agents like Cursor and Copilot.
  • Privacy Modes: Offers "Mask Mode" for placeholder replacement and "Route Mode" to redirect sensitive requests to local LLMs (e.g., Ollama).
  • Broad Detection: Identifies multilingual personal data (names, locations, emails, etc.) and a wide range of secrets (API keys, SSH keys, JWTs).
  • Local-first: Can be run locally via Docker or self-hosted in private infrastructure.

Related

  • Project
  • Project
  • Project
  • Project
  • Project