keypaste is one command with a verb for each task. keypaste <command> --help prints every flag of a command, and keypaste version prints the version. The desktop app’s Settings › keypaste in a terminal puts it on your PATH, or install it alone .
keypaste <command> [flags]
Command Does More getCopies a secret to the clipboard, or prints it with --reveal. showShows an item’s fields and tags; values only with --reveal. setCreates or updates a secret, or its custom fields. fieldLists, renames or removes an item’s custom fields. attachmentLists, adds, replaces, removes or saves an item’s attachments. rotateReplaces a secret with a new generated one. It changes the vault, not the credential at its provider. runRuns a command with an environment’s variables. keypaste run envImports, exports and compares an environment’s stages: ls, set, rm, pull, export, diff, tag and untag. keypaste env hookPrints the line that loads a folder’s environment into your terminal as you enter it. keypaste hook stageSwitches the stage the hook loads in this terminal. keypaste hook
Command Does More setupConnects this computer’s AI tools to your vault, or takes keypaste out with --remove. keypaste setup mcpThe bridge your AI tools start; you do not run it yourself. The bridge and its tools approveHolds the vault unlocked in this terminal and asks you about each agent’s request. keypaste approve clientsLists agents, their rules and kept answers, and changes them. Agent settings doctorChecks the vault, the AI tools and the app, and says what to fix. tokenCreates, lists and revokes scoped tokens that only feed keypaste run, and seals bundles. keypaste token logShows the audit log; log verify checks its hash chain. The audit log
Command Does More initCreates a new vault. Give an AI agent its first key useChooses the vault used when no --vault is given, or prints it. importCopies in another KeePass file or another password manager’s export, or keeps a KeePass file where it is. Import shareMakes an encrypted link that opens a set number of times; ls, revoke and open manage them. keypaste share accountSigns in to the free keypaste account share links need. keypaste share browserTurns keypaste on or off as each browser’s extension host. Browser fill lockLocks the vault now and pauses every agent. The bridge and its tools addAdds an item. lsLists groups and items. searchFinds items by title, group, username or website. rmRemoves an item. generatePrints a passphrase (--words N); it is not stored. accessChanges the master password or key file.
While the desktop app holds the vault, commands that edit it send their change to the app, which saves it once you allow it. access, import, token and share are refused instead: make the change in the app, or run keypaste lock first.
Flag Effect --vault <path>Which vault to use. Or set KEYPASTE_VAULT; with neither, the vault chosen with keypaste use or in the app. --keyfile <path>The key file the vault needs too. Or set KEYPASTE_KEYFILE. --jsonMachine-readable output, from ls, search, show, field ls, attachment ls, env ls, log, doctor, token ls, share ls, clients and browser. -h, --helpHelp for any command.
Files and environment variables lists every variable keypaste reads.
Code Meaning 0 Success 1 Usage error 2 Internal or environment error 3 Vault or item not found 4 Wrong master password 5 The audit log is not the file keypaste wrote
Once a command keypaste run starts, its exit code is keypaste’s own (keypaste run ). Data goes to standard output and diagnostics to standard error. Passwords are never echoed, and Escape at a prompt cancels.