Skip to Content
ReferenceStorage and paths

Storage

Buckler stores all state under ~/Library/Application Support/Buckler/ by default. The app reads BUCKLER_HOME to override the home directory; the CLI uses --home.

State directory

~/Library/Application Support/Buckler/

File or directoryContents
buckler.sqliteSQLite database with tables: inventory, intel, indicators, findings, baselines, provider_state, llm_ledger
config.tomlScan roots, schedule, LLM options, dispatch runners (see config.toml)
providers.tomlProvider list and watchlist (see providers.toml)
Quarantine/Quarantined packages and artifacts, one directory per finding
dispatch/Task bundles written for agent dispatch, one task.json per finding
logs/Rotated text logs (when structured logging is enabled)

Quarantine structure

Each quarantine directory is named by finding ID and contains:

  • manifest.json — Paths moved, original locations, and finding metadata
  • The quarantined files and directories in their original structure

The Restore action reads the manifest and moves everything back.

Dispatch structure

Each dispatch/<finding-id>/task.json contains:

  • The structured finding (tier, purl, path, indicators, remediation)
  • Affected project paths
  • Safe version (when available)

Dispatch runners read this file. The bundle never contains raw article text or chatter.

Cache directory

~/Library/Caches/Buckler/

Bulk intel downloads (OSV zip files, RSS feed caches) are stored here. The cache survives app uninstall. macOS can purge this directory under disk pressure.

Local IOC directory

~/.config/buckler/iocs/

The default file provider reads JSON and CSV IOC lists from this directory. The directory is outside Buckler’s state tree so that you can version it separately or sync it from a remote source.

Database schema

The SQLite database has seven tables:

  • inventory — Installed packages, declared lockfile entries, and cached artifacts. Keyed by (purl, path).
  • intel — Threat intelligence records from all providers. Keyed by id.
  • indicators — Indicator rows (package-version, package-range, file-path, file-hash, file-string, network, persistence, ssh-key) linked to intel.
  • findings — Open, snoozed, and closed findings. Keyed by (intel_id, purl, path).
  • baselines — Host artifact baselines: authorized_keys lines, LaunchAgent plists, .pth files, shell rc hashes.
  • provider_state — ETag, Last-Modified, last run time, and last error per provider.
  • llm_ledger — Token counts per prompt per day.

The database path is ~/Library/Application Support/Buckler/buckler.sqlite.

Environment variables

  • BUCKLER_HOME — App only. The app uses this directory as the home directory, and keeps its state in $BUCKLER_HOME/Library/Application Support/Buckler. Use it for tests. With BUCKLER_HOME set, the app does not show notifications: it writes them to notifications.jsonl in the state directory. It does not register as a login item, and it keeps its settings apart from the normal app. Start the executable directly, because open does not pass environment variables: BUCKLER_HOME=/tmp/test /Applications/Buckler.app/Contents/MacOS/Buckler. The CLI uses --home instead.
  • BUCKLER_TIMING — Set to 1 to log scan and matcher wall-clock times to stderr.
Last updated on