Skip to content

Configuration

Hansard stores machine preferences in config.json. Use the configuration CLI instead of editing that file directly so values are normalized consistently.

Terminal window
hansard config show
hansard config show --json
hansard config path
hansard config get storage.root

Secret values are masked by default. hansard config get <key> --reveal prints a raw value for scripts and should be used only when terminal output is trusted.

Terminal window
hansard config set imports.defaultSinceDays 90
hansard config set sync.intervalMinutes manual
hansard config set index.paused true
hansard config unset notify.slack.botToken

Values that parse as JSON, booleans, or numbers retain those types. Other values are stored as strings.

config setup revisits the preference-oriented parts of initialization without running an import:

Terminal window
hansard config setup
hansard config setup --watch-sources codex-cli,cursor --default-since-days 90
hansard config setup --sync-interval-minutes manual --no-autostart
Terminal window
hansard config sources edit

The configured source list is the default for manual hansard import --source all. The watcher uses that list in Custom mode; Automatic mode may include additional supported sources it discovers. An explicit --source ... or --sources ... selection overrides the configured list for one import run only.