原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚 登录

keytwig

✓ 品牌同名 GitHub · github.com/keytwig

安装方法

能做什么

Local encrypted vault for agent secrets with scoped injection and output redaction.

作者提供的原文

  • 连接方式 –
  • 账号或密钥 无需密钥
  • 分类 网络安全

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度4/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分16/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

Claude 暂时无法连接 keytwig

开发者尚未在 MCP 注册表中填写安装方式

ChatGPT 暂时无法连接 keytwig

开发者尚未在 MCP 注册表中填写安装方式

你可以改用这些方式

B · 网络安全 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

Claude Code 暂时无法连接 keytwig

开发者尚未在 MCP 注册表中填写安装方式

Cursor 暂时无法连接 keytwig

开发者尚未在 MCP 注册表中填写安装方式

VS Code 暂时无法连接 keytwig

开发者尚未在 MCP 注册表中填写安装方式

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 keytwig 的人💬 讨论 →

一览

注册名称
io.github.keytwig/keytwig
每周下载量i
不在 npm/PyPI 上
许可证i
Apache-2.0
连接方式
–
最新版本i
0.2.0
发布到注册中心i
2026年11月25日
代码最后更新i
2026年11月25日
作者
keytwig
注册状态
活跃

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月26日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 keytwig 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于昨天

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/keytwig.svg)](https://mcp.popnx.com/en/servers/keytwig)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“网络安全”中的其他服务器比较i

  • 星标数多于此分类中其他 1215 个服务器的 75%
  • 发布到注册中心的时间比此分类中其他 1215 个服务器的 96% 更新
  • 基础检查结果等于或优于此分类中其他 1215 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

keytwig 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于昨天,最新版本(0.2.0)于昨天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。

有什么可以替代它?

同一分类中有:GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHits

Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.

作者:githits-com正在增长↓ 3807/周★ 1407天前更新

可立即连接(有 URL) · 需登录✓ 服务方 · githits.com

Snyk MCP

Easily find and fix security issues in your applications leveraging Snyk platform capabilities.

作者:snyk广泛使用↓ 76.2万/周★ 617个月前更新

在你的电脑上运行✓ 服务方 · snyk.io

TokenSafe

Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.

作者:tokensafe-dev广泛使用↓ 6785/周★ 47今天更新

可立即连接(有 URL)9 个工具 · 轻✓ 服务方 · tokensafe.dev

Draugr

Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.

作者:draugr-dev起步阶段★ 30今天更新

在你的电脑上运行✓ 服务方 · draugr.dev
与相似项目对比
本项
keytwig
GitHitsDependency Management MCP ServerSnyk MCPTokenSafeDraugr
运行位置需要安装在电脑上云端或安装在电脑上都可以在云端运行,无需安装需要安装在电脑上云端或安装在电脑上都可以需要安装在电脑上
需要密钥否否否否否否
可在 Claude 中按 + 添加否否否否否否
基础检查3/35/53/43/35/53/3
许可证Apache-2.0Apache-2.0–Apache-2.0MITApache-2.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

keytwig

One local vault for the secrets your projects and agents use. Agents use secrets through keytwig run, which injects values into a child process and masks them in stdout and stderr.

Sibling of memtwig. Linux, macOS and Windows (single static binary, no cgo). See SECURITY.md for the threat model and reporting instructions.

Install

  • Linux or macOS (downloads and verifies the release archive)
  curl -fsSL https://raw.githubusercontent.com/keytwig/keytwig/main/scripts/install.sh | sh

Set KEYTWIG_INSTALL_DIR to override ~/.local/bin or KEYTWIG_VERSION to select a tag such as v0.2.0.

  • Homebrew on Linux or macOS
  brew install memtwig/tap/keytwig
  • Build with Go
  go install github.com/keytwig/keytwig/cmd/keytwig@latest
  • Prebuilt releases for Linux, macOS, and Windows on amd64 and arm64. Verify the archive against checksums.txt, extract it, and put the binary on your PATH.

Quick start

keytwig init                     # identity bound to this machine, no prompts (or --passphrase / --keyring / --file)

keytwig scan # where credentials live today (names and paths only) keytwig import --scan --dry-run # what would be imported from your project .env files keytwig import --scan keytwig run -k STRIPE_SECRET_KEY -- ./deploy.sh cd ~/code/shop && keytwig run -p -- npm run dev # the project's own secrets, usual names keytwig install all # MCP server in Claude Code, Codex, Cursor, Windsurf, Hermes, Grok, Antigravity

Agents

keytwig install (antigravity: standalone and T3-managed) registers keytwig mcp --agent (config backed up as *.keytwig.bak). Tools exposed — none returns a value:

  • keytwig_http — make an HTTP request injecting {{NAME}} placeholders directly (no shell), restricted by [secrets.NAME] allowed_hosts, response masked
  • keytwig_run — run a shell command with secrets injected (keys, file_keys, or project: true); output masked
  • keytwig_list — names, aliases, kind, allowed_hosts, expiry, and which env vars the current project gets
  • keytwig_import — move a .env into the vault without values passing through the model
  • keytwig_status

There is no get/set tool on purpose. Masking protects against accidents (logs, stack traces, env dumps), not against an agent that deliberately transforms a value (e.g. reverses it) before printing. Use keytwig_http when calling APIs so secrets are scoped per host and never touch a shell.

keytwig install claude (and keytwig install all) also installs a PreToolUse hook (keytwig hook claude) that blocks direct reads of .env, vault, and credential files or raw env dumps (pass --no-hooks to skip).

Per-agent and per-secret policies (config.toml)
[agents.hermes]

allow = ["ACME_*", "STRIPE_*"] deny = ["*_PROD"]

[agents.default] # unnamed or unlisted agents deny = ["STRIPE_*"]

[secrets.STRIPE_SECRET_KEY] allowed_hosts = ["api.stripe.com"] expires = "2026-12-31" note = "Stripe live key"

Deny wins; aliases cannot dodge a deny. This is a guardrail between your own agents, not isolation: anything running as your OS user can reach the vault.

Projects

Import remembers which project folder uses which secret under which name. keytwig run -p (from the project folder or any subfolder) injects exactly those.

keytwig rewrite --scan (dry run) / --apply replaces the plaintext values in project .env files with keytwig://NAME; frameworks that let real env vars win over .env (Next.js, Vite, dotenv) keep working under keytwig run -p. keytwig restore puts the values back.

What scan tells you

  • every .env file, classified:
  • harness: folders owned by an agent harness (.hermes, .claude, .codex, OpenBot, … plus your own in config.toml). Those secrets stay where they are.
  • app: other dot-folders in your home (tool state)
  • backup: .bak, snapshots, .moved-… copies
  • project: everything else. Only these files are proposed for import.
  • the same name in several files, and whether the copies carry the same value
  • the same value under different names (compared by sha256 in memory, never printed)
  • login/key files of CLIs and harnesses, and files readable by other users

Deduplication

  • Identical value, different names → stored once; the other names become aliases.
  • Same name, different value per project (e.g. DATABASE_URL) → import --scan stores each one as __NAME. Map it back at run time with -k DATABASE_URL=BILLING__DATABASE_URL.

Protecting the identity

The vault is age-encrypted to an X25519 identity. How that identity is kept:

modeat restunattended agentsnotes
--machine (default)bound to this machine: TPM2 via systemd-creds on Linux, login Keychain on macOS, DPAPI/Credential Manager on Windowsyes, never promptsa copied identity file or backup is useless elsewhere; a process already running as you can still use it. Losing the machine/TPM loses the vault unless you exported the identity
--passphraseencrypted (scrypt)after keytwig unlock (default 12h, --ttl)works everywhere
--keyringOS keyring: Keychain, Credential Manager, Secret Serviceyes, while you are logged inonly as strong as your login keyring; on Linux with autologin the keyring is often saved unencrypted (keytwig status warns)
--fileplaintext 0600 fileyesanyone who copies the file can open the vault

Switch at any time with keytwig protect --machine|--passphrase|--keyring|--file (the vault is not re-encrypted). Always keep an offline backup: keytwig identity export --out FILE.

Commands

keytwig init [--machine|--passphrase|--keyring|--file]

keytwig status keytwig protect --machine | --passphrase | --keyring | --file keytwig unlock [--ttl 12h] / keytwig lock keytwig identity export --out FILE keytwig identity import FILE # restore an exported identity keytwig scan [dir...] [--all] [--json] keytwig import [--only A,B] [--prefix P] [--overwrite] keytwig import --scan [dir...] [--dry-run] [--include-app] printf %s "$V" | keytwig set NAME # or interactive hidden prompt; never from argv keytwig set NAME --file path/to/sa.json # store a file secret (max 1 MiB) keytwig ls [--json] # names, kind, aliases, source, last update — no values keytwig rm NAME keytwig run -k NAME -k VAR=NAME -- cmd keytwig run --file-key SA=GCP_SA -- cmd # mount file secret ephemerally (0600, wiped on exit) keytwig run -p -- cmd # current project's secrets keytwig http GET https://api.stripe.com/v1/charges -H 'Authorization: Bearer {{STRIPE_SECRET_KEY}}' keytwig hook [claude|cursor] # PreToolUse secret guard (stdin JSON) keytwig rewrite [file...|--scan] [--apply] / keytwig restore ... keytwig mcp [--agent NAME] keytwig install [--dry-run] [--no-hooks] keytwig uninstall # remove keytwig's MCP registration (and Claude hook) keytwig log [--agent X] [--limit N] [--json] keytwig doctor # check local setup, permissions, expiry, harnesses keytwig version keytwig run --env-file app.env -- cmd # app.env: API_KEY=keytwig://STRIPE_SECRET_KEY

run replaces every stored value (6+ chars, also base64 / URL / JSON-encoded, and hex for 8+ chars) in stdout/stderr with ‹keytwig:NAME›, also across write boundaries. --no-redact for interactive programs.

keytwig log reads audit.jsonl next to the encrypted vault. Entries record operation metadata without secret values. Filter by agent or limit the number of entries. Use --json for machine-readable output.

Files

LinuxmacOSWindows
identity, config~/.config/keytwig/~/Library/Application Support/keytwig/%AppData%\keytwig\
vault~/.local/share/keytwig/vault.agesame as identitysame as identity

KEYTWIG_HOME overrides both (tests, sandboxes).

config.toml:

harness = ["~/.local/share/my-agent"]   # added to the built-in list

ignore = ["~/huge-folder"] # not scanned

Not yet

  • an OS-level boundary between agents (separate user / daemon with per-agent tokens)
  • adapters for harnesses with their own secret stores (browser logins stay there)
  • Windows: file permissions rely on the user profile ACL, not 0600