Unsterwerx

Environment Variables

Unsterwerx recognizes the following environment variables.

Configuration

VariableDescriptionDefault
UNSTERWERX_DATAData directory path (database, CAS, config)~/.unsterwerx
UNSTERWERX_CANONICAL_THREADSNumber of parallel canonical extraction workers8

UNSTERWERX_DATA

Sets the data directory used for the SQLite database, CAS storage, and configuration files. Equivalent to --data-dir.

bash
export UNSTERWERX_DATA=/mnt/data/unsterwerx
unsterwerx status

The --data-dir CLI flag takes precedence over this variable.

UNSTERWERX_CANONICAL_THREADS

Controls the number of parallel workers used during canonical extraction (the NAC pipeline). Higher values increase throughput on multi-core systems but also increase memory usage.

bash
export UNSTERWERX_CANONICAL_THREADS=4
unsterwerx similarity

Set to 1 to disable parallel extraction (useful for debugging).

Precedence

  1. CLI flags (--data-dir, --config)
  2. Environment variables (UNSTERWERX_DATA)
  3. Config file values
  4. Built-in defaults