config.env, environment variables, and command flags.
State directory
By default, state lives under~/.notewise.
Set
NOTEWISE_HOME to move this state root.
Practical precedence
For a command run, command-line flags win. ForOUTPUT_DIR, the value in config.env is used unless --output is passed. Other settings use environment variables, then config.env, then code defaults.
Common config keys
Provider API keys and provider auth keys are also accepted in
config.env when they are listed in source constants.
chunk_size, chunk_overlap, and max_concurrent_chapters are code-default
settings, not normal config.env keys.Commands
notewise config masks secrets before printing settings.