The GitHits CLI reads a TOML configuration file at startup. The config file is optional — the CLI works without it, using sensible defaults. You only need to create it when you want to change a setting, such as switching from keychain to file-based OAuth storage.Documentation Index
Fetch the complete documentation index at: https://docs.githits.com/llms.txt
Use this file to discover all available pages before exploring further.
Config file location
| Platform | Path |
|---|---|
| macOS / Linux | ~/.config/githits/config.toml |
| macOS / Linux (XDG override) | $XDG_CONFIG_HOME/githits/config.toml |
| Windows | %APPDATA%\githits\config.toml |
config.toml for you. Create the file yourself if you need to override any defaults.
On older macOS installs, GitHits may have stored auth data in
~/Library/Application Support/githits. The CLI still reads that location for migration, but all new auth config and file storage now uses ~/.config/githits.The [auth] section
The[auth] section controls how OAuth credentials are stored on disk.
~/.config/githits/config.toml
storage
Controls the OAuth credential storage backend. Accepted values:
"keychain"— stores credentials in the system keychain (macOS Keychain Access, Windows Credential Manager, Linux Secret Service). This is the default and the most secure option."file"— stores credentials as JSON files in the GitHits config directory. The files are written with private permissions where the platform supports it, but they are not encrypted.
Keychain storage (default)
Withstorage = "keychain", GitHits reads and writes OAuth credentials through the operating system’s credential manager. This means:
- On macOS, credentials are stored in Keychain Access. The first access may show a system prompt — choose Always Allow to prevent repeated prompts.
- On Windows, credentials are stored in Credential Manager.
- On Linux, credentials are stored in the available Secret Service or keyring backend.
npx githits@latest auth status, or a login check after metadata is stale or expired.
File storage
Withstorage = "file", GitHits stores OAuth credentials as JSON files in the config directory instead of the system keychain. This is useful when:
- You are connecting over SSH and don’t have access to a graphical keychain prompt.
- You are running in a CI or headless environment where no keychain is available.
- The system keychain keeps showing prompts even after granting access.
config.toml:
~/.config/githits/config.toml
Checking your current configuration
Runnpx githits@latest auth status to see which storage backend is active and where credentials are stored: