packages/kilo-docs/pages/automate/code-reviews/gitlab.md
Kilo's Code Reviews integrate with GitLab to automatically review merge requests with AI. When an MR is opened, updated, or reopened, the Review Agent analyzes the changes and posts feedback directly on the merge request — as summary notes and inline discussion comments.
Both GitLab.com and self-hosted GitLab instances are supported.
Why Maintainer role? Kilo creates a bot account (Project Access Token) on each project so that review comments appear from a bot, not your personal account. This requires Maintainer access.
Connect your GitLab account via the Integrations page. You can use OAuth (GitLab.com or self-hosted) or a Personal Access Token (PAT).
Once connected, return here to configure the Review Agent.
When you select repositories, Kilo automatically creates webhooks on each project.
Once configured, the Review Agent automatically runs when:
| MR Event | Triggers Review |
|---|---|
| MR opened | ✅ Yes |
| New commits pushed to MR | ✅ Yes |
| MR reopened | ✅ Yes |
| Draft or WIP MR opened | ❌ Skipped |
| MR closed | ❌ No |
| MR merged | ❌ No |
When a review triggers:
Review comments are posted by a Kilo Code Review Bot — not by your personal GitLab account. This bot is created automatically as a Project Access Token on each project.
Kilo manages webhooks automatically:
You don't need to set up webhooks manually. If automatic webhook creation fails due to permissions, you can add the webhook manually in GitLab → Project → Settings → Webhooks:
https://app.kilo.ai/api/webhooks/gitlabDisconnecting from Kilo does not revoke OAuth tokens on GitLab's side. You can manually revoke them from GitLab → User Settings → Applications → Authorized Applications.
You need Maintainer role on the GitLab project. Both webhook creation and bot token creation require Maintainer access or higher.
https://app.kilo.ai/api/integrations/gitlab/callback