Authentication
Gitquarry requires authentication for every GitHub request.Scope
- PAT-only in v1
- host-scoped credentials
- public repositories only
- read-only GitHub usage
Login
Interactive:Resolution Order
Credential resolution follows this order:- host-specific environment variable such as
GITQUARRY_TOKEN_GITHUB_COM - global environment variable
GITQUARRY_TOKEN - saved secure credential for the current host
- explicit insecure-file fallback, only when opted in
Secure Storage
Secure OS storage is the default path.- Linux: native keyring backend
- macOS and iOS: Apple-native backend
- Windows: Windows-native backend
Insecure Fallback
If secure storage is unavailable, gitquarry can fall back to a local credentials file only when you explicitly opt in:E_AUTH_STORAGE.
On Unix-like systems, gitquarry restricts:
- the config directory to owner-only permissions
- the insecure credential file to owner-only permissions
Status and Logout
auth status reports the effective state for the current host.
If an environment override is active, that override is reported separately from saved credential state.
auth logout removes saved credentials for the current host, including opt-in insecure-file credentials.