Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quinnjrv0.1.0MIT
Move API keys and JWTs into the OS password store (Keychain, Secret Service — gnome-keyring/KWallet/KeePassXC, Windows Credential Manager) and keep them out of project files
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that moves API keys and JWTs out of your project files and into the operating system's password store — then keeps them out.
Secrets sitting in .env files, .mcp.json, and scattered config are the
easiest thing in the world to git commit by accident, paste into a chat, or
leak through a backup. Your OS already ships an encrypted, access-controlled
place for them: the macOS Keychain, the Linux/BSD Secret Service (gnome-
keyring, KWallet, KeePassXC), or the Windows Credential Manager. keypass
migrates your secrets there and wires your project to read them back at
runtime, so the plaintext lives in exactly one protected place.
Zero dependencies. Pure POSIX sh plus whatever secret store your OS
already runs. No jq, no Python, no runtime to install.
Three parts:
| Part | What it does |
|---|---|
keypass CLI | get / set / del / export secrets, dispatching to your platform's native store. |
| Secret-blocking hook | A PreToolUse hook that stops Claude from writing a plaintext key or JWT into a file. |
migrate-secrets skill | Walks Claude through finding your existing secrets, storing them, generating env files, and stripping the plaintext. |
The CLI picks a backend from your platform automatically:
| Platform | Store | Underlying tool |
|---|---|---|
| macOS | Keychain | security(1) (built in) |
| Linux, FreeBSD, OpenBSD, NetBSD, DragonFly | Secret Service over D-Bus | secret-tool — one interface for gnome-keyring, KWallet ≥ 5.97, or KeePassXC |
| Windows (Git Bash / MSYS / Cygwin) | Credential Manager | bundled PowerShell backend (advapi32, no modules) |
security is built in.secret-tool (from libsecret) and a running Secret
Service daemon: gnome-keyring, KWallet ≥ 5.97, or KeePassXC with Secret
Service integration enabled. On Arch: sudo pacman -S libsecret.The keyring must be unlocked for lookups to succeed. On headless/SSH or locked-screen sessions, lookups time out after 10s and fail loudly rather than hanging your shell — unlock the keyring first.
Add the plugin to Claude Code (adjust the path/source to how you distribute
plugins in your setup), then optionally put the CLI on your PATH so the
generated env files work outside Claude Code too:
ln -sf /path/to/claude-plugin-keypass/scripts/keypass ~/.local/bin/keypass
In a project that has secrets in .env / config files, ask Claude:
migrate my secrets to the system password store
The migrate-secrets skill takes over: it finds secret-shaped values,
confirms the list with you (never printing full values), stores each one,
generates the env wiring, and removes the plaintext from your files — leaving
a breadcrumb comment where each value used to be.
# store a secret (read from stdin — never passed as an argument)
printf '%s' 'sk-...' | keypass set myproject OPENAI_API_KEY
# read it back (no trailing newline)
keypass get myproject OPENAI_API_KEY
# load many secrets into your shell in one shot
eval "$(keypass export myproject OPENAI_API_KEY STRIPE_KEY DATABASE_URL)"
# remove one (idempotent — deleting a missing key succeeds)
keypass del myproject OPENAI_API_KEY
The first argument is a service namespace (use the project name); the rest
are key names. export resolves every key in a single process — one backend
round-trip — which is what makes it cheap to call from an .envrc.
Point your tooling at the store instead of at plaintext:
# .envrc (direnv) — one line, all keys, re-read on every shell load
eval "$(keypass export myproject OPENAI_API_KEY STRIPE_KEY)"
// .mcp.json — reference the env populated above, no secret in the file
{ "env": { "OPENAI_API_KEY": "${OPENAI_API_KEY}" } }
For Claude Code's own Anthropic key, set apiKeyHelper in
~/.claude/settings.json to keypass get myproject ANTHROPIC_API_KEY.
While the plugin is enabled, a PreToolUse hook watches every Write and
Edit. If Claude tries to write something shaped like an API key, JWT, or PEM
private key into a file, the write is blocked with a note to store it in
keypass instead. Removing a secret from a file is always allowed, so the
migration itself isn't caught in its own net.
This is a helpful guardrail, not airtight DLP: secrets written through the
Bash tool (echo … > .env) aren't intercepted. Store those with keypass by
hand.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (quinnjr/claude-plugin-keypass) — no native marketplace selected
npx claudepluginhub p/quinnjr-keypassPlugins from other owners that cover similar ground