xiaYuTian11/maskit

数据面具 Data Maskit — 专为大模型打造的本地隐私脱敏网关(请求自动打码,回复流式还原;支持 Cursor / Claude Code / Codex / Pi 等任意可配 Base URL 工具)

What it solves

When you use AI coding tools like Cursor, Claude Code, or ChatGPT, your real data often gets uploaded to cloud models without you noticing: API keys, database connection strings, internal IPs, phone numbers, and even screenshots or document images. Maskit sits between your terminal and the AI model as a transparent local gateway, so sensitive information is physically masked before it leaves your computer, and the model's answers are seamlessly restored to the original text on your screen.

How it works

Maskit runs as a local proxy that intercepts API requests from your AI tools. Before sending data out, it replaces sensitive text with structured placeholder tokens (for example, {{PHONE_bcdfgh}} for a phone number) using 21 built-in recognition rules plus your own custom keywords and regex patterns. For images and PDFs, it performs physical pixel-level redaction using a local OCR engine. When the model responds, Maskit streams the answer back and instantly swaps the placeholders for the original real values—so you see the true content while the model never sees it. All processing happens locally with zero telemetry, and if you turn off the proxy, it automatically falls back to a direct passthrough so your tools never lose connectivity.

Who it’s for

Developers and teams who use AI coding assistants (Cursor, Claude Code, Codex, etc.) or chat with web-based models (ChatGPT, Claude, DeepSeek) and need to protect sensitive credentials, business data, internal network details, or personal information while still getting useful AI help. It’s also suitable for organizations that need a privacy-friendly gateway for shared team or server deployments.

Highlights

  • Deep text redaction with 21 built-in rules, custom sensitive words and regex, and multi-turn consistency—placeholders stay the same across a conversation.
  • Local AI semantic recognition (NER) using an offline ONNX model to identify names, organizations, and addresses in free text.
  • Multimodal redaction for images, Word documents, and PDFs: physical pixel-level masking of sensitive characters, with optional local OCR (RapidOCR + ONNX Runtime) and PDF text-layer cleaning.
  • Supports all major AI tools and SDKs by simply pointing their API Base URL to a local port; also offers a browser extension for Chrome/Edge.
  • 100% local computation, zero telemetry, no need to install CA certificates (uses a pure local reverse proxy), and automatic passthrough fallback to avoid tool downtime.
  • Desktop clients for Windows, macOS, Linux, and a Docker image for team/server/NAS deployment, with a full web-based management console.

Related

  • Project
  • Project
  • Project
  • Project
  • Project