Skip to content

Files and environment variables

Where keypaste keeps things on your computer, and the environment variables that change what it reads. None of the files below travels with the vault.

PathHolds
<vault>.kdbxYour vault: a KDBX 4 file KeePassXC and other KeePass apps open.
<vault>.backups/Copies made by the first save after each unlock: recent, daily and weekly (Backups). They cover a bad save, not a lost disk.

~/.keypaste on Linux and macOS, %USERPROFILE%\.keypaste on Windows, or the folder KEYPASTE_HOME names.

PathHolds
audit.jsonlThe audit log: one line per call, never a value.
agents/Each vault’s agent settings, sealed with a key the vault holds.
app.tomlApp settings, your answer on crash reports, and the date of the terms of use you agreed to, shared by the app and the CLI.
recent.tomlRecent vaults, their key file paths and YubiKey slots.
projects.jsonEach environment’s folder for a vault, its stage there (dev unless set) and whether the shell hook loads it, which keypaste run and the hook use when you name no environment.
recommendations.jsonSecurity findings you dismissed.
save-counts/Each vault’s last seen save count, so an older copy is noticed.
crash-reports/Reports waiting to be sent, only while Send crash reports is on.

Item names and agents’ reasons are in the audit log, so treat the folder as sensitive. On Windows it takes its parent folder’s permissions, so keep it in a folder only you can read. Run agents safely lists which of these an agent’s commands must not write.

FileHolds
.env.keypastekp:// references, safe to commit.
.mcp.json, .codex/config.toml, .cursor/mcp.jsonAn AI tool’s project configuration, which can start the bridge (keypaste setup).

keypaste setup and the app’s Connect keep the first original of a file they edit as <file>.keypaste-backup.

VariableSets
KEYPASTE_VAULTThe vault, when a command gets no --vault. Otherwise the vault chosen with keypaste use or in the app.
KEYPASTE_KEYFILEThe vault’s key file, in place of --keyfile.
KEYPASTE_HOMEkeypaste’s home folder, in place of ~/.keypaste. The approver writes the audit log in its own home.
KEYPASTE_APPROVERWhich approver’s pipe to use, in place of --approver; needed only when you run more than one.
KEYPASTE_TOKENA scoped token, read by --token env (Run in CI).
KEYPASTE_SHARE_URLThe share service, in place of --endpoint (Share links).

An AI tool started from your desktop, such as Claude Desktop, does not see your shell’s variables, so set the vault in its configuration or with keypaste setup.