Skip to content

keypaste approve

Holds a vault unlocked in this terminal and asks you about each agent’s request.

Terminal window
keypaste approve [--vault <path>] [--keyfile <path>] [--approver <name>] [--approval-timeout <seconds>]
OptionEffect
--vault <path>Which vault to unlock. Or KEYPASTE_VAULT; with neither, the vault chosen with keypaste use or in the app.
--keyfile <path>The vault’s key file. Or KEYPASTE_KEYFILE.
--approver <name>Which pipe to listen on, needed only if you run two. Or KEYPASTE_APPROVER. The bridge must name the same one.
--approval-timeout <seconds>How long you have to answer, 5 to 55, 45 by default.
[d] deny [o] once [a] always 45s ›
KeyAnswer
oAllow once, and keep nothing.
aAlways allow that field to that agent. Not offered without a --client-label, past 128 kept answers, or in a protected stage.
Anything else, or the countdown endingDeny.

An allow counts only after the choices have been on screen for a second. Runs, linked sets and item changes offer no Always allow; a linked set is allowed once with y.

  • It asks for the master password, then waits. While the desktop app holds the vault, it is refused, naming the app.
  • Ctrl+C, SIGTERM and closing the terminal lock the vault; a request waiting at the prompt is denied.
  • It has no idle lock: stop it to lock.
  • After another program saves the vault, requests are refused until it merges that save; a save it can’t merge keeps them refused until you restart it.
Terminal window
keypaste approve
keypaste approve --vault ~/vaults/work.kdbx --keyfile ~/keys/work.keyx
keypaste approve --approval-timeout 20

How approvals work explains what each answer keeps.