Expand description
XDG-based API key management for OpenRouter and other providers. XDG-based API key management for OpenRouter and other providers.
Stores keys in $XDG_CONFIG_HOME/sqlite-graphrag/config.toml with
atomic write, symlink-attack defense and Unix permission hardening.
Structs§
Functions§
- compute_
fingerprint - config_
file_ path - get_
setting - Read an operational setting from XDG config (flag > XDG > default is
applied by callers). Returns
Nonewhen unset. - list_
settings - List all operational settings (no secrets).
- load_
config - mask_
key - resolve_
api_ key - save_
config - set_
setting - Persist an operational setting in XDG config.toml (G-T-XDG-01).
- unset_
setting - Remove an operational setting from XDG config.toml.