Skip to content
Kosh Docs

kosh get

Retrieve a credential by its exact label and user, and copy it to the clipboard.

Retrieve a credential by its exact label and user.

Terminal window
kosh get <label> <user>

Arguments: exactly two.

Both arguments are matched literally — no fuzzy matching and no partial matches — so this is the command to use in scripts, or when several credentials share a similar name. Use kosh search when you only remember part of the label.

  • After the master password is verified the secret is decrypted and copied to the clipboard; it is never printed to the terminal.
  • A successful lookup bumps the credential’s access count, which ranks it higher in future searches.
  • Labels or users containing spaces must be quoted.
Terminal window
kosh get github alice
kosh get "aws prod" "ops-team"