Skip to main content

Module config

Module config 

Source
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§

ApiKeyEntry
AppConfig
ResolvedKey

Functions§

compute_fingerprint
config_file_path
get_setting
Read an operational setting from XDG config (flag > XDG > default is applied by callers). Returns None when 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.