> V1.1.0 > Guides > Retrieve passphrase kloset store
Version v1.1.0

Beta Version

You're viewing documentation for version v1.1.0. Beta versions are subject to changes and may not represent the final stable release. Do not use in production environments.

Retrieving passphrase via external command

Last reviewed: 2026-01-29 / Plakar v1.1.0

Plakar can retrieve a Kloset Store passphrase by executing an external command. The command must output the passphrase to standard output.

This allows you to use password managers or secret stores instead of keeping the passphrase in plain text in the Plakar configuration.

Example

If your password manager prints the passphrase to stdout, you can configure the store like this.

For example, using gopass:

plakar store add test \
  location=/var/backups \
  passphrase_cmd='gopass show mystore/passphrase'

When you access the store:

plakar at "@test" ls

Plakar executes the command, reads its output, and uses it as the passphrase.

Limitations

  • The command must not require user interaction. If the command prompts for input (for example, a GPG key password), Plakar will fail.
  • The command must only output the passphrase to stdout.

This mechanism is useful with tools such as gopass, 1Password, Vault, or any other system that can return secrets via a command.

Found a bug or mistake in the documentation? Create an issue on GitHub