xiaYuTian11/maskit
数据面具 Data Maskit — 专为大模型打造的本地隐私脱敏网关(请求自动打码,回复流式还原;支持 Cursor / Claude Code / Codex / Pi 等任意可配 Base URL 工具)
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
Data Maskit (数据面具) 专为大模型打造的本地隐私脱敏与还原网关 · 请求自动结构化打码 · 回复打字机无感还原 · 100% 本地运算零遥测 简体中文 | English 当你在使用 Cursor、Claude Code、Codex、Pi、OpenCode、ChatGPT 或任意 AI 编程助手 时,代码中的高危敏感信息往往在不知不觉中被发送到外部模型服务商: Maskit 的使命:在你的开发终端与外部 AI 服务之间架设一道透明的“本地隐私防护网关”——请求出网前在本地自动打码成结构化占位符,模型回答时毫秒级流式无感还原成原文! 🔍 点击展开:查看真实脱敏与还原弹窗截图(含思维链分析与实时高亮对照) 接入极简:在你的任意工具中,只需把 API Base URL 改为 Maskit 对应的本地端口即可! 打开 Cursor → Settings → Models: http://127.0.0.1:18703 通过环境变量指定本地代理端口即可无感打码: 网页版 AI 无法配置 API Base URL,可通过 Maskit 专属浏览器扩展实现全自动打码与还原: 前往 GitHub Releases 发布页面 下载对应平台的最新安装包: 无需下载源码,直接拉取 GitHub 官方预构建的多架构镜像(原生支持 linux/amd64 与 linux/arm64),内嵌完整 Web 控制台: 浏览器打开 http://:5801 即可直接访问,并在弹出的登录窗口中输入你设置的密码即可管理(亦可使用 http://:5801/#token= 快捷免密进入,fragment 不随请求发送、不会进代理访问日志,进入后 Token 会自动从地址栏抹除)。 如果不想为每个客户端映射一个端口,可以用单端口前缀模式:所有客户端共用 5802 反代端口,靠路径前缀区分。在控制台「客户端管理」中,每个客户端的 路径前缀(basepath) 就是客户端 baseurl 的路径部分: 假设你配置了两个客户端(路径前缀分别为 /openai 与 /anthropic),外部工具的 Base URL 填: Maskit 的脱敏只在你本机算——每个请求都要花本地 CPU。多个智能体 (Cursor + Claude Code + Codex + 某个脚本)共用一个网关时,瓶颈是本机 CPU,不是上游。 脱敏线程池宽度按实际可用核数自适应(14,≤2 核恒为 1),可用 MASKITMASKWORKERS 覆盖。注意纯 Python 规则扫描受 GIL 约束: 加宽 worker 主要受益于 NER(ONNX 会释放…
Read the full README ↗ · Preview checked 2026-11-01T08:53:53.397Z
Inside the original README — Document outline
- 💡 为什么需要 Maskit?
- 🔄 核心原理与真实效果对比
- ✨ 核心亮点与功能全景
- 🛡️ 1. 深度脱敏与多轮会话一致性
- 🤖 2. 本地 AI 实体识别(NER 语义模型联动)
- 🌐 3. 浏览器扩展生态(网页版 AI 隐私保护)
- ⚡ 4. 毫秒级 SSE 流式接管(真·打字机体验)
- 🔌 5. 免装根证书 + 原生直连兜底(绝不断网)
- 🧪 6. 本地试验台与编程助手 Skill 契约
- 📊 7. 全链路日志、安全审计与成本排行
- 📸 功能界面概览
- 🛠️ 万能接入指南(支持任意可配 Base URL 的工具)
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: AGPL-3.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
数据面具 Data Maskit — 专为大模型打造的本地隐私脱敏网关(请求自动打码,回复流式还原;支持 Cursor / Claude Code / Codex / Pi 等任意可配 Base URL 工具)
Repository facts
- Owner
- xiaYuTian11
- Primary language
- Python
- Stars
- 223
- Forks
- 38
- Open issues + pull requests
- 0
- License
- AGPL-3.0
- Archived
- No
- Default branch
- master
- Created
- 2026-09-09T12:36:06.000Z
- Last push
- 2026-09-15T07:58:11.000Z
Topics and intended use
Owner-supplied topics: anthropic, claude-code, cursor, data-masking, llm, mitmproxy, openai, pii, privacy, proxy, security, tauri
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-09-16T06:39:39.411Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.
Related repositories
EbookFoundation/free-programming-books
donnemartin/system-design-primer