If something is not working as expected, start withDocumentation Index
Fetch the complete documentation index at: https://docs.githits.com/llms.txt
Use this file to discover all available pages before exploring further.
npx githits@latest auth status to confirm you are authenticated and the CLI is reachable. The issues below cover the most common problems and how to resolve them.
Keychain prompts keep appearing on macOS
Keychain prompts keep appearing on macOS
macOS asks for permission when GitHits accesses the system keychain. When the prompt appears, click Always Allow to stop it from appearing again for this CLI binary.If prompts persist even after selecting Always Allow — for example, because your agent calls GitHits frequently and macOS keeps re-prompting — switch to file storage mode. Add the following to your config file, then run Or switch for a single session:Note that file storage is not encrypted. Use it only on machines where you trust local user-account access.
npx githits@latest login --force to re-store credentials:Login token expired or refresh failed
Login token expired or refresh failed
GitHits refreshes tokens automatically on next use. After an extended idle period, the refresh may fail and you will see an authentication error.Run If you are in a headless environment, use:This prints a URL you can open on another device to complete login.
npx githits@latest login again to re-authenticate:Agent isn't calling GitHits tools
Agent isn't calling GitHits tools
First, confirm the GitHits MCP server is connected to your agent. In Claude Code, run
/mcp and check that a GitHits entry appears in the list. In other tools, check your MCP server panel or equivalent.If GitHits is not listed:-
Re-run
npx githits@latest initto re-configure your tool: -
If that does not detect your tool, check the MCP config file for your tool manually and verify the
githitsentry is present. -
Verify you are authenticated:
`npx githits@latest init` didn't detect my tool
`npx githits@latest init` didn't detect my tool
npx githits@latest init supports a fixed list of tools. If your tool is not on the list, configure GitHits manually by adding the following MCP server entry to your tool’s config:npx githits@latest init auto-detection, open a GitHub issue to request it.Node.js version error
Node.js version error
GitHits requires Node.js 24 or later. Check your current version:If you are on an older version, upgrade using nvm:Or download the latest LTS release from nodejs.org.
MCP server is slow to start
MCP server is slow to start
GitHits is normally started through If startup latency remains a problem, check whether your package manager or network is repeatedly downloading packages without cache reuse.
npx so the MCP server uses the latest CLI. In an MCP config, use the explicit server command:Search returns no results
Search returns no results
If a search returns no results, the repository or package may not yet be indexed. Use Indexing a new or recently updated repository typically takes around 10 seconds for an average-sized repo. If results are still missing after a short wait, try rephrasing your query or searching by a related package name.
npx githits@latest search-status to check indexing progress for a prior search, or run a new indexed search and follow up:Auth status shows unauthenticated despite logging in
Auth status shows unauthenticated despite logging in
If
npx githits@latest auth status shows you as unauthenticated even though you have logged in, check the following:-
API token conflict: If
GITHITS_API_TOKENis set in your environment, GitHits uses it instead of stored OAuth credentials. Runecho $GITHITS_API_TOKENto see if it is set, and verify the token is valid. -
Stale credentials: Run
npx githits@latest login --forceto re-authenticate and overwrite any stale credentials: -
Wrong storage mode: If you previously used file storage and later switched back to keychain, credentials may be missing from the keychain. Re-run
npx githits@latest loginto store them in the current mode.