Keyfold

io.github.codewithkolin由 GitHub 账号 codewithkolin 发布v1.0.1更新于 Oct 27, 2026

Use API keys from your Keyfold vault in commands and .env files. No tool returns a secret value.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

Keyfold 的 MCP 服务器让 AI 助手使用本地加密保险库中的 API 密钥,而模型始终看不到密钥值。

可以做什么
  • 列出保险库中的项目名和密钥名
  • 写入 .env 文件、注入密钥运行命令,或导入已有的 .env 文件,每次均需在应用中批准
  • 保存新密钥并创建项目
  • 没有任何工具返回密钥值,每个请求都要在 Keyfold 应用中点击确认
适用场景
适合助手需要运行依赖 API 密钥的命令或生成 .env 文件,而你希望密钥保存在本地保险库中,而不是粘贴到对话或配置文件里。
运行要求
需要一台安装了 Keyfold 应用的 Mac,应用需运行并已解锁;需在应用设置中安装 keyfold 命令行工具并加入 PATH;服务器以 keyfold mcp 通过 stdio 启动。无需账号、云端或遥测。
安装前请注意
你批准的命令仍可能打印出密钥,而模型会读取其输出;批准可在一小时内有效。服务器可写入 .env 文件并以注入密钥的方式运行命令,请逐项在应用中核对请求。它要求同一台机器上的保险库处于解锁状态。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Keyfold,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Keyfold core

The open-source parts of Keyfold, an offline-first vault for developers: API keys organised by project and environment, plus passwords, in one encrypted file. No account, no cloud, no telemetry.

The Keyfold app for Mac is built on these crates (Windows is coming through the Microsoft Store). Get it at keyfold.app/download; signed builds are also on the Releases page.

What is here

CrateWhat it does
crates/keyfold-coreArgon2id key derivation, XChaCha20-Poly1305 envelope encryption, the tamper-evident vault format, rolling backups, the Recovery Kit, .env parsing, key detection patterns, 2FA codes (RFC 6238) and offline Ed25519 licence verification
crates/keyfold-agentThe JSON-line protocol between the keyfold CLI and the running app, over an owner-only local socket
crates/keyfold-cliThe keyfold command line and the MCP server for Cursor and Claude Code. No tool returns a secret value; every request is approved in the app

Use it with an AI agent (MCP)

keyfold mcp lets Claude Code, Cursor, Codex, Gemini CLI and other MCP clients use your API keys without the model seeing them. Its seven tools list project and key names, write a .env file you approve, run a command with the keys injected, store a key, create a project and import a .env file. None of them returns a secret value. Every request waits for your click in the Keyfold app, which shows the command or file the keys are for.

  1. Install Keyfold for Mac. In the app, open Settings › General › Command line and MCP and click Install, which puts keyfold on your PATH.
  2. Add the server to your client:
claude mcp add --scope user keyfold -- keyfold mcp

Cursor (.cursor/mcp.json): { "mcpServers": { "keyfold": { "command": "keyfold", "args": ["mcp"] } } }

A command you approve can still print a key, and the model reads what it prints; the MCP guide covers that and one-hour approvals. The server needs the Keyfold app running and unlocked on the same Mac. The Dockerfile builds it on Linux only so that MCP directories can read its tool list.

MCP Registry name: mcp-name: io.github.codewithkolin/keyfold

Docs

  • Vault format: every byte of the file, and how it is authenticated.
  • Threat model: what Keyfold protects against, and what it cannot.
  • MCP and CLI guide: connecting an AI agent without showing it your keys.

Build and test

cargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo build --release -p keyfold-cli   # the `keyfold` binary

Rust stable, no other toolchain needed.

Security

Please report vulnerabilities privately; see SECURITY.md.

Licence

AGPL-3.0-only. See the LICENSE file in each crate. The Keyfold desktop app around these crates is proprietary.

来源:README.md,提交 42beb0f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Oct 20, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分