Customize your vault
Everything here lives in one file, <vault>/.coldvault/config.json. python3 coldvault.py setup writes it, and python3 coldvault.py sync --vault FOLDER reads it on every run. An option you pass on a run (such as --notes or --username) replaces the saved value for that run only. If the file isn't valid, sync stops and asks you to move it aside and run setup again.
A complete example:
{
"version": 1,
"transcripts": ["~/.claude/projects", "~/.codex/sessions"],
"notes": ["~/notes"],
"notion_exports": ["~/Downloads/Export.zip"],
"chatgpt_exports": ["~/Downloads/chatgpt.zip"],
"claude_exports": ["~/Downloads/claude.zip"],
"username": "your-github-name",
"folders": {"projects": "Work", "sessions": "Conversations", "imported": "Library"},
"schedule_hours": 1
}Which sources
| Key | What it imports | To turn it off |
|---|---|---|
transcripts | Claude Code and Codex sessions (*.jsonl) from each folder | [] |
notes | Every .md file in each folder, under Imported/<folder name>/ | [] |
notion_exports | Notion Export → Markdown & CSV zips or unzipped folders, under Imported/Notion/ | [] |
chatgpt_exports | ChatGPT data export ZIPs, under Sessions/ | [] or omit |
claude_exports | Claude.ai data export ZIPs, under Sessions/ | [] or omit |
username | Your public GitHub repositories, one project note each | "" |
Each list holds folder or file paths (setup saves them as absolute paths; ~ also works). setup asks for every one of them, so the easiest way to change sources is to run setup again; it keeps your folders. Notes and Notion folders must be outside the vault. To add a kind of source Coldvault doesn't know, see add-a-source.md.
A source you remove stops updating: its notes are no longer listed in the index, but notes already written stay in the vault until you delete them.
Folders
Generated notes go in Projects/, Sessions/ and Imported/. To use other names, set folders with any of the three keys projects, sessions and imported. Each name is a single folder: it can't start with . or contain / \ : [ ] | # ^ or a backtick. The three names must differ, ignoring case, including the defaults you keep.
The next sync moves the notes Coldvault wrote, and you haven't edited, into the new folders and updates the links. Edited notes and your own files stay where they are. If a moved note's name is already taken by one of your files, or a source fails, the move finishes on a later sync. Until it does, sync refuses a different name. You can't swap two names in one step (for example, projects to Sessions): rename to a new name first, sync, then rename again.
The starter folders created in a new vault (Writing/, Context/, Capabilities/, Agent-Space/, Templates/, Attachments/) are yours. Rename, move or delete them in Obsidian as you like; Coldvault never recreates them. Daily/ is different: Coldvault writes a Daily/YYYY-MM-DD.md note for each day with sessions or imports, so it comes back after you delete it.
Schedule
On Linux and macOS, python3 ~/coldvault/coldvault.py schedule install --vault ~/ColdvaultVault schedules the vault every hour. Use --hours N to set an interval of 2, 3, 4, 6, 8, 12, or 24 hours, counted from local midnight. Run schedule install again to change the interval or schedule remove --vault ~/ColdvaultVault to remove the job.
If you already set up a manual job for the same vault, remove that job first. See Uninstall for how to stop a manual job.
If a scheduled Mac sync gets a permission error on a protected folder such as Desktop or Documents, move the vault or source to an unprotected folder in your home directory.
Use the same lock as Coldvault when you edit your Linux crontab by hand:
mkdir -p "$HOME/.cache"
flock "$HOME/.cache/coldvault-schedule.lock" crontab -ecrontab replaces the whole table when it saves, so overlapping saves without the lock can overwrite each other. If a tool edits the table without this lock, finish that edit before installing, updating, or removing a Coldvault schedule.
To schedule it by hand instead, the lines below rebuild ~/ColdvaultVault every hour from the standard Claude and Codex folders, using the ~/coldvault/coldvault.py from the README. Replace '' with your GitHub username to include your public repositories.
On Linux, add this line with the locked crontab editor above:
0 * * * * python3 "$HOME/coldvault/coldvault.py" --username '' --output "$HOME/ColdvaultVault"Older versions named the script vault_kit.py. A schedule that still runs vault_kit.py keeps working, because that file now just runs the coldvault.py beside it. If you downloaded only vault_kit.py, download coldvault.py into the same folder too.
On a Mac, create a launchd agent and load it:
mkdir -p ~/Library/LaunchAgents
cat > ~/Library/LaunchAgents/coldvault.rebuild.plist <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>coldvault.rebuild</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>python3 "$HOME/coldvault/coldvault.py" --username '' --output "$HOME/ColdvaultVault"</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
</dict>
</plist>
EOF
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/coldvault.rebuild.plistThe first run is an hour later. To run it now, use launchctl kickstart gui/$(id -u)/coldvault.rebuild; to stop it, use launchctl bootout gui/$(id -u)/coldvault.rebuild. After you change the plist, run that launchctl bootout and then the launchctl bootstrap line again so launchd reads the change.
To reuse the sources saved by setup, use sync --vault FOLDER in the line instead:
0 */6 * * * python3 "$HOME/coldvault/coldvault.py" sync --vault "$HOME/ColdvaultVault"That runs every 6 hours. On a Mac, set StartInterval in the launchd file to the interval in seconds (21600 for 6 hours).
When you schedule by hand, set schedule_hours in config.json to the interval in whole hours (6 here). Rerunning setup preserves this value. python3 coldvault.py status --vault FOLDER uses it as the expected interval. If the last successful run was more than twice that interval ago, status reports stale and exits 1.
To change when a manually scheduled job runs, use the locked crontab editor above on Linux or update the launchd plist on macOS.
Preservation receipts
Coldvault normally imports a redacted conversation into a session note. To also keep the complete, unredacted transcript and issue a receipt, add this setting to the vault configuration:
"preservation_receipts": {
"host": "laptop",
"folder": "/absolute/path/to/receipts",
"archive_folder": "/absolute/path/to/originals"
}Use the host name your cleanup tool uses. Choose private folders outside the vault and outside any directory subject to cleanup. The archive folder's parent must already exist. Coldvault creates both folders with mode 700. Existing folders must belong to you and disallow writes by others. With only folder and host configured, sync still imports conversations and issues no new receipts. Setup preserves these settings.
For each eligible transcript, sync stores the exact bytes at <archive_folder>/<sha256> with mode 600. This copy includes tool output and any credentials present in the original. Sync reads it back, compares every byte and flushes the archive before writing a mode-600 receipt at <folder>/<SHA-256 of "HOST:PATH">.json. Identical originals share one archive file. Each changed version has its own file.
A version 2 receipt contains schema_version (the integer 2), host, path (absolute source path), sha256 (source digest), destination (absolute archive file path), and verified_at (UTC verification time). Copy the file at destination to restore the original and compare its SHA-256 with the receipt.
Sync issues a receipt only for a complete transcript whose source succeeded and whose session note still matches the import. An incomplete record, changed source or edited note can leave an older receipt in place. Before removal, a compatible cleanup tool must reject older or unknown receipt versions and check the host, source path, current source digest and the independent archive at the recorded destination. Version 1 receipts only record a conversation import.