
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 分