프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Keystash

제작자: thu-lawyer버전 0.4.2i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.thu-lawyer/keystash

설치

개요

제작자가 쓴 설명(영어 원문)

Keychain-backed secret broker: an AI agent can use your keys, but no tool ever returns one.

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 기타

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 레지스트리에 입력해야 할 키가 나와 있지 않아요.

필요한 것

  • PyPIPython의 uv 설치(uvx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "keystash": {
      "command": "uvx",
      "args": [
        "keystash",
        "mcp"
      ]
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add keystash -- uvx keystash mcp

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "keystash": {
      "command": "uvx",
      "args": [
        "keystash",
        "mcp"
      ]
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "keystash": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "keystash",
        "mcp"
      ]
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 thu-lawyer 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

기타 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 32712개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 32712개 중 57%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 32712개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Keystash, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.4.2)은 30일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Spec Driven Development, Remote Desktop Commander, Aiterm MCP

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Spec Driven Development

제작자: formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

내 컴퓨터에서 실행★ 440MIT14개월 전 업데이트
설치

Remote Desktop Commander

제작자: desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

클라우드에서 실행★ 211그저께 업데이트
설치

Aiterm MCP

제작자: kitepon

Persistent terminals and one launcher for Claude, Codex, Grok, Cursor, and Antigravity harnesses.

내 컴퓨터에서 실행오늘 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

keystash 🔑

值留给钥匙串,AI 只拿引用名。

The Keychain keeps the values; your AI agent only ever gets references.

keystash 让 AI 助手(MCP、Claude Code、任何 agent)帮你管理 API key、token、密码, 而不让它看见它们。

v0.4.0 起:值存在 macOS 登录钥匙串,磁盘上只剩元数据,而且全库没有 read 工具 —— 没有任何一个接口会把密钥交给 AI。

一句话:这一版的安全性来自「没有 read 工具」+「全库没有明文出口」,不是来自「用了什么加密」。


English

Why keystash

The usual advice — "don't paste your API key into the chat" — stopped working the day agents became useful. An agent that cannot read OPENAI_API_KEY cannot rotate it, cannot call the API on your behalf, cannot tell you which key expires next month.

So the goal is not "the agent never touches keys". It is the agent manages keys it cannot see:

  • The value goes into the macOS login Keychain. It is never written to a file this tool owns, never printed, never returned by any API.
  • Only metadata (name, tags, rotation schedule, allowed URLs) lives on disk, in plain 0600 JSON. Metadata is deliberately *not* secret — so listing and editing it needs no unlock.
  • There is no `secret_read` tool, and no CLI command that echoes a value to stdout. Not a disabled flag — the code path does not exist.
  • The one route to the outside world, secret_use, can only reach URLs you pre-approved per entry.
Quick start
pip install keystash          # or: uv tool install keystash

keystash doctor # check Keychain / osascript / security / pbcopy

Store a key. The value is typed into a native hidden dialog — never argv, never the shell history.

keystash add OPENAI_PROD_KEY -a https://api.openai.com/ -r 90

Let keystash invent one instead; it prints a fingerprint, never the value.

keystash generate STRIPE_PROD_SECRET -a https://api.stripe.com/ -r 180

generated STRIPE_PROD_SECRET sha256:1f3a9c02 (43 chars)

keystash list # metadata only keystash list --json keystash use OPENAI_PROD_KEY https://api.openai.com/v1/models keystash rm OPENAI_PROD_KEY

Piping a value in (CI, another vault, a password manager export) skips the dialog:

printf '%s' "$VALUE" | keystash add MY_SERVICE_PROD_KEY --stdin -a https://api.myservice.com/

Naming convention: SERVICE_ENV_PURPOSE — OPENAI_PROD_KEY, ALIYUN_OSS_STAGING_SECRET. Enforced: ^A-Z{0,63}$.

Touch ID unlock

Values live in the login Keychain. keystash copy NAME puts the value on the clipboard and clears it again after 30 seconds (--clear-after 0 disables the clear). Nothing is printed. The Touch ID prompt appears when a value is actually needed — not on list, not on show, not on doctor, not on metadata edits.

keystash doctor — clean up the mess you already have

keystash doctor reports the platform, whether the Keychain backend is available, the paths of osascript / security / pbcopy, your metadata file, the audit log, and the legacy vault path. If the metadata file exists it also prints the entry count and which entries are past their rotation interval.

AI agents, zero plaintext: keystash mcp

keystash mcp speaks MCP over stdio only — it opens no socket, not even on 127.0.0.1. It exposes exactly six tools. There is no secret_read, and no run_command:

ToolWhat it doesDoes the AI see the value?
secret_listList entries: name, tags, rotation dates, allowed URLsNo — metadata only
secret_storeStore a value the user types into a dialogNo
secret_rotateReplace a value the same wayNo
secret_generateGenerate a strong value and store itNo — a fingerprint is returned
secret_useCall an allowed URL with the credential, return the replyNo — the key stays in the request header
secret_deleteErase the entry and its Keychain item, after a native dialog you confirmNo

Wire it into an MCP client:

{

"mcpServers": { "keystash": { "command": "keystash", "args": ["mcp"], "env": { "KEYSTASH_META": "/Users/you/.keystash/entries.json" } } } }

Three things worth knowing about secret_use:

  1. Per-entry allow-list. Every entry carries allowed_urls, and a URL must be a prefix match of one of them. https://api.openai.com.evil.com/ does not match https://api.openai.com/, and prefix matching is why the entries must end in /. An empty allow-list refuses everything — the AI cannot pick the destination host, so secret_use cannot be turned into an exfiltration primitive.
  2. Redirects are refused, not followed (allow_redirects=False), so an allowed host cannot bounce the credential somewhere else.
  3. The response body is scrubbed against the value and its encodings (raw, base64, URL-encoded, hex) before it reaches the model, and truncated at 20 000 characters.

Every secret_use call appends one line to the audit log (~/.keystash/audit.log, mode 0600): timestamp, entry name, method, URL, HTTP status. Who called what, never the value.

Commands
CommandPurpose
keystash list [-t TAG] [--json]List entries (metadata only)
keystash show NAMEOne entry's metadata
keystash add NAME [-t TAG] [-r DAYS] [-a URL] [--auth-header H] [--auth-prefix P] [--stdin] [--force]Store a new secret
keystash rotate NAME [--stdin]Replace the value, keep the metadata
keystash generate NAME [-t TAG] [-r DAYS] [-a URL] [-l LEN]Generate and store (16–128 chars, default 43)
keystash edit NAME [-t TAG] [-r DAYS] [-a URL]Metadata only — the value is never read or rewritten
keystash copy NAME [--clear-after SECONDS]Clipboard, auto-cleared (default 30)
keystash use NAME URL [-X METHOD] [-d BODY] [--timeout SECONDS]Call an allow-listed URL
keystash rm NAME [--yes]Delete the entry and its Keychain item
keystash migrate [-s VAULT] [--verify/--no-verify] [--retire-vault]Move a v0.3 encrypted vault into the Keychain
keystash doctorCheck this machine's prerequisites
keystash mcpServe the MCP stdio interface
Migrating from v0.3

v0.3 kept everything in one PBKDF2 + Fernet vault file. migrate reads that vault once and writes each value into the Keychain:

keystash migrate -s ~/keystash-vault.json --retire-vault

The old master password is fetched the way v0.3 fetched it: KEYSTASH_MASTER_PASSWORD if set, then the login Keychain (service keystash, account = the vault's absolute path — the item v0.3 wrote, so anyone who never typed that password by hand still does not have to), and only then a hidden prompt. Values pass through memory only; the only output is a table of old name / new name / tags / verified. --verify (on by default) reads each value back out of the Keychain and compares it before the entry is considered migrated, so a silent Keychain failure cannot lose a key. --retire-vault renames the old file to *.migrated after a fully successful run — it is not deleted. Keep that file until you have confirmed every entry.

Migration leaves every entry's allowed_urls empty on purpose, so secret_use refuses everything until you allow a host: keystash edit NAME --allow https://api.example.com/ (the trailing slash is required). Only the prefixes you add are reachable.

Multi-machine sync

The metadata file is plain JSON; sync it however you like. The values do not sync — they are in this Mac's login Keychain, and that is the point. On a second machine, re-enter or keystash add --stdin each value once, then copy the metadata file over.

Security model

Read this part before trusting the tool.

What keystash does eliminate. The plaintext inventory. Before, your keys were in ~/.zshrc, in .env files, in shell history, in chat logs, in MCP transcripts, in your clipboard buffer's past. Now they are in one place the AI has no tool to read, and no command prints them.

What it does not do. With Keychain storage, encryption at rest is the OS's job, and the layer beneath is your login session. Concretely:

  • Any process running as you can read the same values. security find-generic-password -s keystash -a OPENAI_PROD_KEY -w works from any same-user shell. keystash does not defend against a compromised account, and does not claim to.
  • The boundary is same-user process isolation, not encryption. keystash removes plaintext from the *artifacts* — files, logs, transcripts, argv, env — not from a *trusted* process's memory.
  • Metadata is not secret (plain 0600 JSON): names, tags, rotation dates and allowed URLs are readable by anyone who can read your home directory. Names leak intent ("ALIYUN_PROD_KEY" tells an attacker where to look). Do not put secrets in tags.
  • Scrubbing is literal replacement over a fixed encoding set (raw, base64, urlsafe-base64, percent-encoded, hex). A value re-encoded some other way — encrypted, split across lines, character-shifted — can survive it. Values shorter than 8 characters are still redacted verbatim, but their encoding variants are not, so a short secret is only partially covered.
  • Rotation is a reminder, not an enforcement. -r DAYS makes doctor and the MCP secret_list flag overdue entries. Nothing rotates automatically.
  • Secrets injected into a request are visible to same-user processes in principle; that is the same boundary as above.

What the AI can still do. It can list your entry names, delete entries, call allow-listed URLs with stored credentials (and read the responses), and store *new* values — including ones it invents. Treat secret_delete and the allow-lists as things you review, not things you set once. Read the audit log.

keystash 消掉的是明文,不是信任。

Environment variables
VariableMeaningDefault
KEYSTASH_METAMetadata file path~/.keystash/entries.json
KEYSTASH_VAULTLegacy v0.3 vault path — used only by migrate~/.keystash/vault.json

The --meta/-m and --vault/-V flags override them.

Development
git clone https://github.com/thu-lawyer/keystash.git

cd keystash pip install -e ".[dev]" pytest -q # the real Keychain is never touched ruff check src tests

The test suite drives the CLI as a subprocess and injects an in-memory store, so it passes on Linux and Windows CI with no Keychain. Set KEYSTASH_TEST_KEYCHAIN=1 to opt into the one test that touches the real login Keychain.

License

MIT


中文

为什么是 keystash

「别把 API key 贴进对话」这条建议,在 agent 变得有用的那天就失效了。 一个读不到 OPENAI_API_KEY 的 agent,没法帮你轮换它、没法代你调接口、也说不清下个月哪个 key 过期。

所以目标不是「agent 永不接触密钥」,而是让 agent 管理它看不见的密钥:

  • 值进 macOS 登录钥匙串,不写进本工具拥有的任何文件、不打印、不被任何接口返回。
  • 磁盘上只有元数据(名字、标签、轮换周期、允许的 URL),0600 明文 JSON。 元数据故意不算秘密 —— 所以列出和编辑它不需要解锁。
  • 没有 `secret_read` 工具,也没有任何把值打到 stdout 的 CLI 命令。 不是「关掉的开关」,是这条代码路径根本不存在。
  • 唯一通往外面的路 secret_use,只能打你按条目预先批准的 URL。
快速上手
pip install keystash          # 或:uv tool install keystash

keystash doctor # 检查 Keychain / osascript / security / pbcopy

存一个 key。值在系统隐藏输入框里手打 —— 不走 argv,不进 shell 历史。

keystash add OPENAI_PROD_KEY -a https://api.openai.com/ -r 90

也可以让 keystash 生成;它只打印指纹,不打印值。

keystash generate STRIPE_PROD_SECRET -a https://api.stripe.com/ -r 180

generated STRIPE_PROD_SECRET sha256:1f3a9c02 (43 chars)

keystash list # 只有元数据 keystash list --json keystash use OPENAI_PROD_KEY https://api.openai.com/v1/models keystash rm OPENAI_PROD_KEY

从管道喂值(CI、别的密码库导出)可以跳过弹窗:

printf '%s' "$VALUE" | keystash add MY_SERVICE_PROD_KEY --stdin -a https://api.myservice.com/

命名规范:SERVICE_ENV_PURPOSE —— OPENAI_PROD_KEY、ALIYUN_OSS_STAGING_SECRET。 已强制校验:^A-Z{0,63}$。

Touch ID 解锁

值在登录钥匙串里。keystash copy NAME 把值放进剪贴板,30 秒后自动清除(--clear-after 0 关闭清除)。 不打印任何东西。 真正取值时才出现 Touch ID 提示 —— list、show、doctor、 改元数据都不会触发。

keystash doctor —— 主动清剿你已经撒出去的明文

keystash doctor 会报出平台、Keyc

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기