keypaste approve
Holds a vault unlocked in this terminal and asks you about each agent’s request.
Synopsis
Section titled “Synopsis”keypaste approve [--vault <path>] [--keyfile <path>] [--approver <name>] [--approval-timeout <seconds>]Options
Section titled “Options”| Option | Effect |
|---|---|
--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. |
The prompt
Section titled “The prompt”[d] deny [o] once [a] always 45s ›| Key | Answer |
|---|---|
o | Allow once, and keep nothing. |
a | Always 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 ending | Deny. |
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.
Behaviour
Section titled “Behaviour”- 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.
Examples
Section titled “Examples”keypaste approvekeypaste approve --vault ~/vaults/work.kdbx --keyfile ~/keys/work.keyxkeypaste approve --approval-timeout 20How approvals work explains what each answer keeps.