Back to blog Stacked glowing layers rising in the GitHits brand style

June 10, 2026 · 2 min read

Connect Your Agents to GitHits with a Single Command

Run one init command to detect your installed agents, configure them to use GitHits, and sign in, at the user or project level.

Every coding agent has its own setup path. Some use a command, others need a config file, and the details change from tool to tool. GitHits gives you one command that detects supported agents on your machine, configures the ones you choose, and walks you through authentication.

Run the init command

Start in your terminal:

npx githits@latest init

The CLI asks whether you want to connect GitHits to your agents or set up agent skills. For the standard MCP setup, choose the option to connect GitHits to your agents.

User level or project level

Next, choose where the configuration should live. User-level setup configures the selected agents globally, so GitHits is available across your projects. Project-level setup only configures the current project, which is useful when you want the integration scoped to one repo.

Pick the tools to configure

The CLI scans your machine for supported agents and shows the tools it can configure. Select one agent, several agents, or all detected agents. GitHits then writes the right local configuration for each selected tool.

Sign in or sign up

Authentication happens as part of the flow. If you already have a GitHits account, sign in and authorize the CLI. If you are new to GitHits, use the same flow to create an account, then return to the terminal and finish authorization.

After authentication succeeds, the CLI completes the install and shows a few example prompts for the agents you configured.

Try these prompts

Open one of the agents you configured and ask it to use GitHits directly. A few good first prompts:

  • “Use GitHits to find real examples of Hono middleware in open-source projects.”
  • “Use GitHits to inspect the Hono router implementation and explain why route matching is fast.”
  • “Use GitHits to check whether drizzle-orm has runtime dependencies or known vulnerabilities.”
  • “Use GitHits to compare Hermes and OpenClaw for a React-to-SvelteKit migration, and cite the source files you used.”

That is the full setup path. Run npx githits@latest init, pick the agents you want to configure, sign in or sign up, and start asking source-grounded questions.