JAISafe — AI skill for Claude Code
Local privacy boundary for AI coding agents - 把本机上下文留在本机:出站请求里的本机路径与凭证会被替换为句柄,响应返回时还原,客户端零改动.
How to install JAISafe
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Jsopenzhuge/JAISafe and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What JAISafe does
Local privacy boundary for AI coding agents - 把本机上下文留在本机:出站请求里的本机路径与凭证会被替换为句柄,响应返回时还原,客户端零改动.
Alternatives in AI
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Claude Squad — by smtg-ai - Claude Squad is a terminal app that manages multiple Claude Code, Codex (and other local agents i 6.5k ★
README
把本机上下文留在本机
面向 AI 编码代理(Claude Code、Cline、Cursor、自研 Agent…)的本地隐私边界
JAISafe 在你的代理和模型供应商之间运行,把出站请求里的**本机身份信息**——绝对路径、API 密钥、 数据库连接串、私钥、敏感文件名——替换成句柄之后再发出去,并在响应返回时**还原成真值**。
客户端零改动:你的代理完全不知道这件事发生过。
本地(可信) │ 上游(不可信)
│
C:\Users\me\proj\secret\layoff.pdf ────┼──▶ [WORKSPACE_ROOT_1]\secret\[SENSITIVE_DOC_1].pdf
ghp_9fK2…(真 token) ────┼──▶ ghp_Xy3k…(同长度同前缀假值)
postgres://svc:hunter2@db.corp.internal ─┼──▶ postgres://vq3f:9Kd2…@db-a7f2.svc.synthetic
│
C:\Users\me\proj\secret\layoff.pdf ◀───┼──── 模型回显的内容里若有句柄,自动还原
它不是 NewAPI / One-API 那类多租户 API 网关。协议转换、渠道路由、故障转移都是为了 让隐私边界能落在**一个统一的位置**而顺带解决的工程问题——见「为什么放在网关」。
它解决什么问题
AI 编码代理会把大量**本机上下文**塞进请求:文件绝对路径、`grep` 结果、报错堆栈、 `.env` 片段、终端历史、Git 分支名。这些内容一旦发往上游,就离开了你的机器。
问题不在于「模型看到了我的代码」——那是你请它做的事。问题在于**你的代码之外的东西**:
- 你的用户名、主目录结构、内网目录命名
- 项目里的敏感文件名(
layoff_plan_2026.pdf、acme-acquisition-2026/) - 环境变量里的真实密钥(一粘贴
.env就全出去了) - 数据库连接串、内部主机名、证书私钥
这些东西对完成任务毫无帮助,却会被上游记录、可能进入训练数据、可能出现在日志审计里。 JAISafe 做的事很具体:**把这一层剥掉再发出去**。
一次真实的 Agent 请求,脱敏前后:
| 客户端原文(本机) | 实际发送给上游 | |
|---|---|---|
| 路径 | C:\Users\1\Desktop\MyWork\JAISafe\llm-gateway\app\relay.py |
[WORKSPACE_ROOT_1]\llm-gateway\app\relay.py |
| 凭证 | ghp_9fK2mQ…(36 位真 token) |
ghp_Xy3kPq…(同长度同前缀,HMAC 派生) |
| 文件名 | layoff_plan_2026.pdf |
[SENSITIVE_DOC_1].pdf |
| 主机 | vault.acme-corp.internal |
host-a7f2q9.corp.internal |
模型依然能理解「这个文件在项目的 `app/` 下」「这是个 GitHub token」「这是个内部主机」, 但它**不知道你是谁、你的机器长什么样、你的密钥是什么**。
它保护什么、不保护什么
隐私工具最容易变成安全剧场,所以这一节放在最前面。
| ✅ 保护 | ❌ 不保护 |
|---|---|
| 本机绝对路径(盘符 / UNC / POSIX)、主目录结构 | 你主动发给模型的代码、提示词、业务内容 |
| 环境变量与代码里的凭证(Key / JWT / 连接串 / 私钥) | 上游能推断出的业务信息(项目类型、技 |
Related Skills
Abu Cowork
Open-source alternative to Claude Cowork — a local-first AI agent desktop app · multi-model · self-evolving sk
OpenAgentd
The open-source, local-first alternative to Claude Code & Claude Cowork. Run multi-agent AI workflows locally
Meepo
A local, privacy-first AI agent (Rust) that connects LLMs to your email, calendar, browser, code, and messages
Kuse Cowork
💻 Empower your workflow with Kuse Cowork, an open-source desktop agent offering local execution, model freedo
Free Image And Video Generation Skill
Provide free offline and cloud AI tools for image and video generation with easy setup and privacy-focused loc
Tracecrate
Local-first AI agent trace workbench. Inspect Claude Code, Codex and OTLP logs, compare runs, and export priva
Related Agents
Claude Coder
Default coding agent with privacy-gated commits, session lifecycle, and reusable skill composition.
Analysis Robustness
Analysis expert focused on edge cases, boundary conditions, error paths, adversarial inputs, and defensive cod
Worker Coder
Single writer — executes boundary-clear, independent coding tasks inside one workstream (several workstreams m