tokensafe-dev/tokensafe
本地安装,压缩代理读取的上下文并守住密钥,附带运行检查与合并门禁。
解决什么问题
没有它,代理会反复读取冗余上下文、浪费 token,密钥可能离开本机,主分支也更容易被破坏。
- BM25 代码全文搜索
- 超大截图自动降采样
- 冗余规则与转写清理
适用客户端
- claude-desktop
- cursor
- vscode
- cline
- windsurf
- cli
安装命令
npx tokensafe pip install tokensafe && tokensafe 一键配置
{
"mcpServers": {
"tokensafe": {
"command": "npx",
"args": [
"-y",
"tokensafe",
"mcp"
]
}
}
} 安全标记
- 需要 API Key: 未标注
- 本地运行: 是
- 访问网络: 是
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-05(0d) |
|---|---|
| Star | 47 |
| 待处理 issue | 0 |
| 协议 | Apache-2.0 |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-05 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
TokenSafe cuts what your agent reads and keeps your keys on your machine.