Skip to content

vaultfold

vaultfold keeps secrets in an encrypted vault stored in git, shared with the people and devices you choose.
Environment variables:
VAULTFOLD_HOME root for the config, data, cache and runtime dirs
VAULTFOLD_VAULT vault to use when --vault is not given
VAULTFOLD_IDENTITY_NAME identity to unlock when --identity is not given
VAULTFOLD_PASSPHRASE_FD fd to read passphrases from, one line per prompt
VAULTFOLD_AGENT forces agent-session detection on
VAULTFOLD_AGENT_SOCK agent daemon socket path or pipe name, overriding discovery
VAULTFOLD_NO_AGENT 1 stops commands from starting the agent daemon
VAULTFOLD_IDENTITY reserved for machine identities (future use)
VAULTFOLD_DEV_PASSPHRASE dev-only passphrase for the hidden dev subcommands
VAULTFOLD_ACCESSIBLE 1 selects the accessible (no-animation) prompt renderer
NO_COLOR any non-empty value disables prompt color and escape sequences
XDG_CONFIG_HOME honored on every OS when given as an absolute path
XDG_DATA_HOME honored on every OS when given as an absolute path
XDG_CACHE_HOME honored on every OS when given as an absolute path
XDG_RUNTIME_DIR honored on every OS when given as an absolute path
Usage:
vaultfold [flags]
vaultfold [command]
Available Commands:
add Add or update an entry; values come from a prompt or --stdin
agent Run and control the background agent daemon
agent-help Print the guide for AI agents
agent-mode Grant or revoke agent session overrides
audit Audit exposure after revocations
browser Register the browser extension's native messaging host and check it
collection Create and list collections
device List and revoke member devices
doctor Check the vault and repository for problems
edit Edit the fields and metadata of an entry
epoch List and mint collection key epochs
export Export entries (not yet available)
generate Generate passwords and passphrases
get Print a field of an entry
git-credential Act as a git credential helper (not yet available)
help Help about any command
history Show the history of an entry, a field, an agent session or the policy chain
hook Install or remove the git pre-commit hook
import Import entries from another password manager (not yet available)
init Create a vault in this repository or a standalone directory
inject Render a template with vault references resolved
key Create, show and import identities
link Write a vault reference into a project file
ls List entries, optionally under a path prefix
mcp Serve the MCP tools for AI agents (not yet available)
member Add, list, rename, revoke and change the roles of vault members
mv Move or rename an entry
redact Mask vault values in text (not yet available)
resolve Choose between concurrent values of an entry
rm Remove an entry
rotate Show the rotation checklist and mark entries rotated
run Run a command with vault references resolved in its environment
scan Scan files for plaintext secrets
search Search entry paths, types and tags across registered vaults
sync Fetch, verify, merge and push the vault
totp Print a one-time password
vault Register, list and choose vaults
version Print the version, commit, date, Go toolchain and platform of this build
Flags:
-h, --help help for vaultfold
--json print exactly one JSON document on stdout
--vault name select a vault from the registry by name
-v, --version version for vaultfold
Use "vaultfold [command] --help" for more information about a command.