/pass-cli:pass-clifrom pass-cli
Uses the Proton Pass CLI (pass-cli) without exposing secrets, finding vaults and items by ID, building pass:// references, and injecting values with pass-cli run or inject. Use when a task needs a credential stored in Proton Pass, mentions pass-cli or pass:// URIs, or wires Proton Pass into chezmoi, CI or .env files.
Ships in pass-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Not for other password managers. Checked against Proton Pass CLI 2.4.2 (pass-cli <command> --help) and protonpass.github.io/pass-cli on 2026-10-17.
The safest output is an unresolved pass:// reference. When something needs the value, inject it into that process or file rather than into the conversation.
pass:// values are secrets. Never let them reach the transcript. Any command whose stdout could contain one must be redirected, masked, or consumed by a child process.pass-cli item view with a field URI or --fieldpass-cli item view of a whole item (shows every field)pass-cli item list --show-secretspass-cli inject without --out-filepass-cli run --no-maskingpass-cli item totp and pass-cli totp generate (current codes)pass-cli password generate and item create ... --generate-password (the output may hold the new value)item create --password <value>, item update --field password=<value>, password score <value> or login --pat <token>. Arguments land in shell history and the process list, and Claude's commands land in the transcript. Prefer --generate-password (output redirected or discarded), or --from-template with a 0600 file the user filled in.! PROTON_PASS_PERSONAL_ACCESS_TOKEN=... pass-cli login).Check the session and interface. pass-cli --version, pass-cli info, and pass-cli <command> --help for any flag you're unsure of. Flags change between releases; this skill was checked on v2.4.2.
Find IDs. List vaults and items as JSON and pick out only IDs and titles:
pass-cli vault list --output json | jq '.vaults[] | {name, share_id}'
pass-cli item list --share-id "$SHARE_ID" --output json | jq '.items[] | {id, title, item_type}'
Without --show-secrets, item list JSON holds metadata only (shape verified on v2.4.1). Then build REF="pass://$SHARE_ID/$ITEM_ID/$FIELD". Read secret references before choosing a field, using names instead of IDs, or handling sections and TOTP.
Resolve by the least-exposing path.
| Need | Use |
|---|---|
| Value in a non-interactive child process | pass-cli run [--env-file F] -- cmd (masks output) |
| Value in a config file | pass-cli inject -i tmpl -o out (mode 0600) |
| A chezmoi-rendered dotfile | {{ protonPass "pass://..." }} (see the chezmoi skill if installed; needs a live pass-cli session on that machine) |
| The raw value | Only on explicit request, into a safe sink |
Read resolution and automation before using run, inject, dotenv files, or TTY apps.
Authenticate if needed. People use browser login (pass-cli login). Automation uses an already-provisioned, scoped, expiring PAT or a pass-cli agent. Read authentication and recovery before logging in, changing access, or troubleshooting.
On failure, check pass-cli info, re-list by ID, confirm the field name, and retry the quoted ID-based reference. Never broaden sharing or token access to get past an error.
Other access-changing or long-lived commands need the same approval: ssh-agent load|start|daemon (puts keys in an agent), session remove-lock, and settings changes that weaken key storage.
Give the unresolved reference, or say that injection succeeded and where. Name the identifiers used and whether anything was written or executed. Never include the value.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin pass-cli