sgasser/pasteguard
AI gets the context. Not your private data. Local-first privacy proxy for browser chat, AI APIs, and coding agents.
解决的问题
PasteGuard 防止个人身份信息(PII)和密钥被发送到云 AI 服务商。在处理敏感客户数据、客户记录或生产日志时,无需手动脱敏,也无需切换到性能较低的本地模型。
工作原理
PasteGuard 作为一个本地优先的隐私层和代理。它拦截对 AI 服务商(如 OpenAI、Anthropic 或 Gemini)的请求,在数据到达服务商之前,将敏感信息(如姓名、电子邮件和 API 密钥)用占位符替换。然后在用户看到响应前,将这些占位符恢复为原始内容。它结合使用校验和、格式检查和语义后端(GLiNER)进行检测。
适用人群
专为必须遵守严格隐私规则、无法将原始敏感数据发送到云 AI 服务商的团队和开发者设计,包括使用浏览器聊天界面、自定义应用/API 或 AI 编码代理的用户。
主要亮点
- 多接口支持:支持通过浏览器扩展用于聊天界面,通过代理用于 API/SDK,以及与 Cursor 和 Copilot 等编码代理集成。
- 隐私模式:提供“掩码模式”用于占位符替换,以及“路由模式”将敏感请求重定向到本地 LLM(如 Ollama)。
- 广泛检测:可识别多语言个人数据(姓名、位置、电子邮件等)和多种密钥(API 密钥、SSH 密钥、JWT 等)。
- 本地优先:可通过 Docker 本地运行,或在私有基础设施中自托管。
相关
- 项目
- 项目
dataiku/kiji-proxyKiji Privacy Proxy is an open‑source local proxy (macOS desktop app or Linux server) that automatically detects and masks 26 types of personally‑identifiable information in requests to AI services (OpenAI, Anthropic, Gemini, etc.) using an ONNX‑optimized DistilBERT model. It replaces sensitive data with realistic dummy values before forwarding the request, then restores the original data in the response. The tool works transparently via HTTP proxy settings (PAC on macOS, env vars on Linux), includes a Chrome extension for web‑based chat, offers a UI for reviewing masked mappings, and is configurable via custom regexes. All PII processing happens locally, keeping data private and helping meet GDPR/CCPA/HIPAA requirements. Installation is via Homebrew cask on macOS or Debian/Ubuntu packages, Docker, or tarballs. The project is Apache‑2.0 licensed and maintained by Dataiku’s 575 Lab, with full documentation, contribution guides, and security contact information.
- 项目
- 项目
- 项目