The GitHits CLI reads several environment variables at startup. You can use them to authenticate without a browser, switch credential storage modes, point the CLI at a different server, or suppress update notifications.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.
| Variable | Purpose | Default |
|---|---|---|
GITHITS_API_TOKEN | API token for authentication (format: ghi-...) | — |
GITHITS_AUTH_STORAGE | Override OAuth storage mode: keychain or file | keychain |
GITHITS_MCP_URL | Override MCP server URL | https://mcp.githits.com |
GITHITS_API_URL | Override REST API URL | https://api.githits.com |
GITHITS_CODE_NAV_URL | Override package/source service URL | https://pkgseer.dev |
GITHITS_TELEMETRY | Emit end-of-run timing spans to stderr for local profiling | — |
GITHITS_DISABLE_UPDATE_CHECK | Disable npm latest-version update notices | — |
GITHITS_API_TOKEN
Set an API token to authenticate without browser OAuth. This is the recommended approach for CI pipelines, automation scripts, and headless environments where a browser login isn’t practical. Tokens follow the formatghi-... and can be generated from your GitHits account settings.
When GITHITS_API_TOKEN is set, the CLI skips local OAuth storage entirely. You can verify this with npx githits@latest auth status, which reports the credential source.
GITHITS_API_TOKEN takes precedence over stored OAuth credentials. If both are present, the environment variable is used.GITHITS_AUTH_STORAGE
Override the OAuth credential storage mode for a single process or for all GitHits commands in the current shell session.keychain(default) — stores OAuth credentials in the system keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service).file— stores OAuth credentials as JSON files in the GitHits config directory.
file mode in SSH sessions, CI environments, or when persistent keychain prompts remain even after granting access.
GITHITS_MCP_URL
Override the MCP server URL. By default the CLI connects tohttps://mcp.githits.com. Set this variable to point at a self-hosted or staging MCP server.
GITHITS_API_URL
Override the REST API base URL. By default the CLI useshttps://api.githits.com.
GITHITS_CODE_NAV_URL
Override the URL for the package and source navigation service. By default the CLI useshttps://pkgseer.dev.