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.
Beside the vault
Section titled “Beside the vault”| Path | Holds |
|---|---|
<vault>.kdbx | Your 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’s home
Section titled “keypaste’s home”~/.keypaste on Linux and macOS, %USERPROFILE%\.keypaste on Windows, or the folder KEYPASTE_HOME names.
| Path | Holds |
|---|---|
audit.jsonl | The audit log: one line per call, never a value. |
agents/ | Each vault’s agent settings, sealed with a key the vault holds. |
app.toml | App 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.toml | Recent vaults, their key file paths and YubiKey slots. |
projects.json | Each 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.json | Security 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.
In a project
Section titled “In a project”| File | Holds |
|---|---|
.env.keypaste | kp:// references, safe to commit. |
.mcp.json, .codex/config.toml, .cursor/mcp.json | An 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.
Environment variables
Section titled “Environment variables”| Variable | Sets |
|---|---|
KEYPASTE_VAULT | The vault, when a command gets no --vault. Otherwise the vault chosen with keypaste use or in the app. |
KEYPASTE_KEYFILE | The vault’s key file, in place of --keyfile. |
KEYPASTE_HOME | keypaste’s home folder, in place of ~/.keypaste. The approver writes the audit log in its own home. |
KEYPASTE_APPROVER | Which approver’s pipe to use, in place of --approver; needed only when you run more than one. |
KEYPASTE_TOKEN | A scoped token, read by --token env (Run in CI). |
KEYPASTE_SHARE_URL | The 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.