
Keysrs
io.github.gshost1由 GitHub 账号 gshost1 发布v0.16.0更新于 Nov 6, 2026
Local Mac API-key vault: Touch ID-approved, scoped grants for agents, not keys. Needs Keysrs.app.
概览
本地 macOS API 密钥保险库,让 AI 代理使用经 Touch ID 批准的短期受限令牌,而不是真实密钥。
- 可以做什么
- 扫描项目环境文件中的凭据型变量,只报告名称和末四位提示,不显示值
- 导入并封装项目密钥到 macOS 钥匙串,把环境文件改写为 30 天项目令牌
- 为指定密钥申请授权,限定单个主机和时限,并由 Touch ID 批准
- 一次调用撤销所有授权、项目令牌和中继配对
- 为云虚拟机和沙箱签发可撤销令牌,通过 SSH 或自部署中继访问网关
- 统计经其网关的令牌、请求数以及按密钥和提供方估算的花费
- 适用场景
- 当你希望编码代理调用付费 API 而不把长期密钥交给它们时,或当虚拟机、沙箱需要访问留在你 Mac 上的密钥时使用。适合需要逐次 Touch ID 批准和快速撤销的 macOS 用户。
- 运行要求
- 作为本地 MCP 服务器运行,需要 macOS 14+ 的 Apple Silicon 设备并安装 Keysrs.app 桌面应用;清单未声明环境变量或请求头。通过应用的设置命令向代理注册,云虚拟机场景需要 SSH 或部署在自己账户中的 Cloudflare Worker 中继。
安装
在 SourceWeft 中
- 打开 控制台中的 Keysrs,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Keysrs
Short-lived tokens for AI agents, on your Mac and on cloud VMs. Your real API keys stay in the macOS Keychain; agents get a scoped token instead.
- MCP-first. Agents talk to Keysrs over MCP: they find keys in a project, import them, and ask you for access. You approve each grant with Touch ID.
- Short-lived tokens. A grant covers one key, one host and minutes to hours; a project token lasts 30 days. Revoke everything in one call.
- Cloud VMs too. A VM or sandbox gets a token, never the key. Its calls come back to the gateway on your Mac, over SSH or a relay you deploy yourself, and the real key is swapped in there.
Keysrs also charts the calls made through its gateway: tokens, requests and estimated spend per key and provider.
Free and MIT-licensed. macOS 14+ on Apple Silicon.
Install
Download Keysrs-arm64.dmg from keysrs.com or the
latest release,
drag Keysrs to Applications and open it. It runs in the background (no Dock
icon or window until you open it again) and updates itself.
For the keys command line, choose Install Command Line Tool… in the
Keysrs menu, which links ~/.local/bin/keys.
Use it with your agents
This registers the Keysrs MCP server with Claude Code, Codex, Cursor, Droid and Claude Desktop. Restart the agent, then ask it in plain words:
- "Scan this project for API keys with Keysrs." It finds credential-shaped variables in your env files and reports names and last-4 hints, never values.
- "Import and wrap this project's keys." One Touch ID moves the keys into the macOS Keychain and rewrites the env files to a 30-day project token.
- "Ask me for a Keysrs grant for the key anthropic, 30 minutes." You approve with Touch ID; the agent gets a token scoped to one key, one host and a time limit.
- "Revoke everything." Ends every grant, project token and relay pairing at once, and turns the relay off.
keys unwrap puts the original values back.
Cloud VMs
On the VM, point the agent at http://127.0.0.1:12767/openai and use the
ksfc_… token as its API key. For a sandbox you can't SSH into, keys relay
carries the same gateway through a Cloudflare Worker you deploy into your own
account, and keys share "my box" --key openai hands a machine several keys
at once through it (one token, one pairing, printed as env lines to paste).
See cloud agents and the relay.
From the command line
Details: the full guide, agents and MCP, cloud agents and the relay.
Privacy
- Everything listens on
127.0.0.1only. The one optional way in from outside is a relay Worker you deploy into your own Cloudflare account, and keys never travel over it. - No tool, log, screen or report ever shows a key value. Copy, reveal, env and rotate ask for Touch ID every time.
- Keysrs counts only the calls made through its own gateway; it reads no
other tool's logs. It never reads
~/.codex/auth.json,~/.grok/auth.json, browser cookies or provider websites. - The app sends no analytics or telemetry.
- Update checks are one cookieless request to GitHub's release API.
Build from source
Signing setup is in SIGNING.md; .github/workflows/test.yml is
the full list of checks CI runs.
Keysrs was called Keysreallysafe; the repository, the Keychain service and the data folder keep that name so existing installs keep working.
License
MIT. See LICENSE and third-party notices.
来源:README.md,提交 48dd806
工具
0版本历史
1- v0.16.0最新Nov 6, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分