Skip to main content
Gerrit is a self-hosted, web-based code review tool for Git repositories where review is organized around changes (individual patch sets) rather than pull requests, and repositories are called projects. This guide helps you connect Qodo to your Gerrit instance so it can review changes and deliver findings directly where you already work. Assuming your Qodo environment is already set up, connecting Gerrit involves creating a dedicated Qodo user in Gerrit, connecting it to Qodo, and registering a webhook so Gerrit can notify Qodo of new changes.

Prerequisites

Before you begin, ensure you have:
  • A Qodo on-premises environment already set up. Contact your Qodo Account Manager if you haven’t configured this yet.
  • A Gerrit instance where you have administrator access, to create a dedicated user, grant it permissions, and register a webhook.

Access the Gerrit integration

1
Log in to your Qodo portal.
2
From the left-hand navigation menu, select Integrations.
3
Select the Self-Hosted tab, locate the Gerrit card, and click Add installation to launch the installation wizard.

Install Qodo on Gerrit

1

Before you begin

Gerrit wizard step 1, Create a Qodo user, showing required ref and label permission tables
1
In your Gerrit server, create a new user named Qodo. This user will be used to post review comments on Qodo’s behalf in the Gerrit UI.
2
Grant the user the following permissions:
3
Generate an HTTP password for the user. You’ll enter its username and password in the next step.
4
Back in the wizard, click Continue.
2

Connect to Gerrit

Gerrit wizard step 2, Connect to Gerrit, showing Gerrit URL, username, HTTP token, and API path fields
Enter the following, then click Connect to Gerrit:
  • Gerrit URL: Your Gerrit instance URL (for example, https://gerrit.example.com).
  • Username: The dedicated Gerrit user created in the previous step.
  • HTTP token: The user’s HTTP password.
  • API path (optional): Path to Gerrit’s authenticated REST API. If your Gerrit instance is served under a sub-path, add that to the Gerrit URL above instead of this field.
Qodo validates the credentials against your Gerrit server, then stores them in your on-premises database, not in the Qodo portal itself.
3

Import repositories

Gerrit wizard step 3, Import repositories, showing the repositories-added confirmation and webhook setup commands
Qodo imports every Gerrit project the connected user can access.Then, register a webhook on your Gerrit server so Qodo receives change events:
1
Copy the Webhook URL shown in the wizard.
2
Run the following command against your Gerrit server, replacing the URL and credentials with your own:
This targets All-Projects, Gerrit’s global config project. Webhook configuration is inheritable: it applies to every repository, without requiring per-project configuration. To scope the webhook to specific repositories, replace All-Projects in the URL with a repository’s name and repeat this for each repository to include.
3
Verify it was created:
Replace All-Projects with a specific repository name if that’s what you registered the webhook against.
4
Back in the wizard, click Done.

Verify the installation

1
Open a new change in one of the connected projects and confirm that Qodo is triggered automatically.
2
Add a comment using one of the supported commands:
  • /agentic_describe
  • /agentic_review
Qodo should respond with a review or change summary directly on the change.

Troubleshooting

If Qodo is not responding:
  • Confirm the webhook is registered on the project you expect (All-Projects, or a specific repository), using the verify command from Install Qodo on Gerrit.
  • Confirm the HTTP credential used hasn’t expired.

Manage repositories

Every Gerrit project the connected user can access is imported when you connect (see Install Qodo on Gerrit), but only projects covered by the webhook actually receive change events.
  • To cover only specific projects, register the webhook against those projects by name instead of All-Projects.
  • To turn code review on or off for a project already covered by the webhook, without touching the webhook itself, use the Code review toggle on the Repositories page in the Qodo portal.

Next steps