Skip to content
Kosh Docs

kosh add

Interactively add a credential to the vault of the active profile.

Add a credential to the vault of the active profile.

Terminal window
kosh add

Arguments: none — all values are collected through interactive prompts, so nothing sensitive ends up in your shell history.

Prompts, in order: master password → label → user → secret → confirm secret.

  • A credential is identified by its label and user together, so the same label can hold several accounts.
  • If that pair already exists, a caution block is shown and you must type overwrite <label> <user> to confirm before the stored secret is replaced.
  • The label cannot be the name of a Kosh subcommand — run kosh help to see the reserved names. Violations report credential label cannot be a command name.
  • To have Kosh create the secret for you instead of typing one, use kosh generate.
Terminal window
kosh add