Keyrook

Passhold CLIby Keyrook

Secrets in your scripts, never written in them.

The Passhold CLI is your Passhold vault in a terminal. Name a secret by where it is kept, passhold://personal/Database/password, and the command that needs it gets the value. Your scripts, config files and shell history keep only the name.

macOS & Linux
brew install keyrook/tap/passhold-cli

Version 0.5.1, on npm, Homebrew, winget, GitHub releases and the Official MCP Registry (io.github.keyrook/passhold). Personal vault CLI is part of Keyrook Premium; Agents, MCP, zero-secret proxy and passhold scan are free.

env injected in memory

~/shop — passhold run

passhold login --email alex@example.com

Signed in as alex@example.com. Next: eval "$(passhold unlock)"

eval "$(passhold unlock)"

Unlocked for 15 minutes (in this shell only).

DB_PASSWORD=passhold://personal/Database/password passhold run -- ./deploy.sh

Deploying shop to production… done.

  • passhold://a secret by its name
  • Family vaultsshared, by name
  • SSH agentasks before each signature
  • 15 minutesunlocked, in this shell only
  • Open sourceGPL-3.0 or later

Secrets by reference

Write down where a secret is, never what it is.

A reference is passhold://vault/item/field. Your own vault is personal; a family's shared vault is its name. The item is its name or its id, the field one of its kind's — password, username, url, notes, private_key — or one you added.

Run a command with its secrets.

Put references in the environment, or in an --env-file, and passhold run starts the command with their values in place.

  • Each value goes to the command it runs, and to nothing else
  • A .env file of references can be kept with the code
  • Shell history shows the reference, never the value

Fill a config file as you need it.

Keep a template with a {{ passhold://… }} where each secret goes. passhold inject writes the file with the values in — a new file readable by you alone — or prints it, for a command to read.

  • The template holds no secret, so it can be committed
  • A file it makes is readable only by you
  • Delete that file when you are done: it holds the values

Vaults and items

Your vault, and your family's, from the keyboard.

List, search, create, edit and delete logins, cards, addresses, notes and SSH keys — in your own vault and in the vaults your family shares with you. It is the same vault Passhold opens in your browser and on Android.

  • A value of - is asked for unseen, so it stays out of your shell's history; @path reads it from a file
  • --generate makes up a strong password; a replaced one is kept in the login's history
  • Deleting moves an item to the trash, and restore brings it back
  • --json on list and get, for a script to read
  • A family's shared vaults

    Each is named by its own name: passhold://Family/Netflix. One you may only view is read, never written.

  • Keys you have compared

    A member whose key changed is taken only after you compare codes with them: passhold compare Family. Someone who left is named until passhold vaults has shown it.

  • The trash is the owner's

    Deleting moves an item to the trash. Only its owner empties the trash, in Passhold.

SSH agent

Your SSH keys, signing from the vault.

passhold ssh-agent offers the SSH keys in your vaults to ssh, git and ssh-keygen -Y sign, and asks you before each signature — in a dialog, with your SSH_ASKPASS, or in its own terminal.

  • It hands out no key, and takes none: ssh-add is refused
  • It stops when Passhold locks, or the unlock ends
  • On Windows, on the pipe Windows' OpenSSH looks for

Also in the terminal

More at the prompt.

  • Secret leak scanner & pre-commit hook

    passhold scan --install-hook blocks commits containing exposed API keys, private keys, database URLs or high-entropy secrets — 100% offline and free on every plan.

  • Zero-secret local HTTP proxy

    passhold proxy --item Stripe --target https://api.stripe.com --read-only --expires 1h binds strictly to 127.0.0.1, injects real keys only on allowed hosts, and redacts every response.

  • Passwords, made up

    passhold generate, with the length and the kinds of characters you choose. Look-alikes such as l and 1 are left out unless you ask for them.

  • 2FA codes

    passhold totp prints the code that the link with Keyrook Authenticator holds for a login.

  • Send

    Text (free on every plan), a copy of a login or a file, as a link that opens a few times and then is gone: passhold send --file report.pdf --opens 2 --expires 7d.

  • Files & export

    Attach sealed files with passhold file add / get, export JSON or CSV, and inspect every command with passhold help.

What stays on this computer

Unlocked for this shell, and only for a while.

Signing in says who you are. Unlocking opens Passhold's key — with your account's password, your recovery key, or Passhold in your browser.

  • 15 minutes, in one shell

    The key that opens the unlock lives in that shell's PASSHOLD_SESSION, never in a file. --minutes sets another time; passhold lock ends it.

  • Let in by your browser

    With --with-browser, Passhold in a browser already signed in hands the key over, once both show the same code. No password typed.

  • Nothing of a login on disk

    Every command reads the sealed records from your account and opens them in memory. ~/.config/passhold, readable by you alone, holds who is signed in and the unlock, sealed under a key only your shell holds.

Where a secret does leave Passhold

  • To the command you run. What passhold run starts holds the values it is given, as any program holds its environment. Run what you trust.
  • Into the files you ask for. inject --out, export --out and file get --out write values in plain text. Delete them when you are done.
  • When you print it. passhold get shows a value on the screen, and in whatever reads the terminal's output.
  • With --no-confirm, the SSH agent signs without asking you.

Side by side

Beside 1Password's and Bitwarden's.

All three read and write a vault from a terminal. Where they differ, as each one's own pages say:

Passhold CLI1Password CLIBitwarden CLI
A secret by its namepasshold://vault/item/fieldop://vault/item/field— bw get by name or id
A command run with its secretspasshold runop run, its output masked—
A config file filled inpasshold injectop inject—
SSH agentIn the CLI, asks before each signatureIn the desktop appIn the desktop app
For servers and CIEnrolled machines & tokens, per-item grantsService accountsAn API key, for automated work
Installnpm, Homebrew, winget and one fileHomebrew, winget, APT and morenpm, Chocolatey, Snap, one file
What you needKeyrook PremiumA 1Password subscriptionA Bitwarden account

As read on 24 November 2026 in 1Password's secret references, getting started with 1Password CLI, 1Password's SSH agent, Bitwarden's Password Manager CLI and Bitwarden's SSH agent.

AI agents & machines

An agent that uses a secret without reading it.

Keep API keys for automation and coding tools in a separate encrypted agent vault, apart from your personal vault. Enrol a machine with passhold machine, grant scoped & time-boxed access (--read-only, --paths, --expires 1h), run passhold mcp or the zero-secret loopback passhold proxy, seal new keys into your Agent Inbox (save_api_key), or fill logins in your browser (fill_login) while you approve requests in Passhold (browser, web vault, Android or passhold approve) and can pause every machine at once.

Questions

Before you install.

What does it cost?

The CLI is part of Keyrook Premium, with 2FA codes in Passhold, Send, files and the rest; a family on Family Premium has it too. Passhold itself, in your browser, on Android and on the web, stays free. What each plan holds.

Which systems does it run on?

macOS, Linux and Windows. See the requirements for the one-file programs.

I signed up with Google or GitHub. How do I unlock?

Sign-up with Google or GitHub sets a vault password right in the same flow, so eval "$(passhold unlock)" works directly with your vault password. Older passwordless accounts — or anyone who prefers not to type a password — can also unlock with --with-browser or --recovery-key.

Can a server or a CI job use it?

Yes. Enrol a machine with passhold machine invite and passhold machine enroll, or issue a scoped machine token with passhold machine token (set in PASSHOLD_MACHINE_TOKEN). It reads only the items you explicitly grant from an agent vault, never your personal vault, and can be paused or removed immediately.

Is it open source?

Yes, under GPL-3.0 or later, in Passhold's repository, beside the extension and the web vault.

Get the Passhold CLI

Install it with Homebrew, winget or npm, or take the file for your system. Then passhold login.

With a package manager

Homebrew on macOS and Linux

brew install keyrook/tap/passhold-cli

npm with Node.js 22 or later

npm install --global @keyrook/passhold-cli

winget on Windows

winget install Keyrook.Passhold.CLI

One file

Take the file for your system (cli-v0.5.1), check it against SHA256SUMS, unpack it and put passhold on your PATH. No Node.js to install.

  • macOS 11 or later, on Apple silicon or Intel.
  • Linux on x64 or arm64, with glibc 2.28 or later (which leaves out Alpine).
  • Windows 10 or later, on x64.

Apple has yet to notarise the Mac programs. If you downloaded one in a browser, clear its mark with xattr -d com.apple.quarantine passhold. Homebrew's programs run as they are.