This guide covers GitHub/GitLab setup, repository configuration, and your first automated code review.Documentation Index
Fetch the complete documentation index at: https://www.greptile.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Installation & Setup
GitHub or GitLab users can follow the outlined steps to successfully enable Greptile within their repositories. Log in to your Greptile account or sign up via email, Google, Github, or GitLab. Ensure you have the required permissions to allow the AI code reviewer access to all or specific repos. Each platform offers a different procedure for integration.GitHub App Installation
The following steps will help you connect Greptile with GitHub:Connect to GitHub
Go to Code Providers in the sidebar and click Add Provider, then select GitHub to link your account.

GitLab Integration
The following steps will help you connect Greptile with GitLab:Generate Personal or Group Access Token on GitLab
- Log in to your GitLab account.
- Go to User Settings or Group Settings to generate access token.
- An access token should have a name, role, expiration usually one year and selected scope as api.
Copy GitLab Access Token
Copy the generated GitLab access token and fill it in the access token field and click Submit in Greptile Settings dashboard.

Configure Webhook on GitLab
Greptile generates details needed to create a GitLab webhook; a URL, secret token and triggers.

- Go to your GitLab account.
- Click on Webhooks in your GitLab Project/Group Settings.
- Fill in details for GitLab webhook including the Greptile generated URL, secret token, and check required triggers and click Add webhook.
- Click on the DONE, I HAVE MADE THE CHANGES button.
Repository Selection & Configuration
The following configuration steps are common to GitHub and GitLab:Enable repository indexing by Greptile
- Go to your team’s Repositories page
- Click Manage Repos
- Select the repos you want reviewed, then click Enable Repos (or use Enable All)

Configure PR Summary
Customize how Greptile summarizes pull requests:
- Summary: Choose if you want summaries of changes
- Include diagrams: Add diagrams for complex changes (sequence, ER, class, or flow — auto-selected based on change type)
- Confidence scores: Show/hide confidence levels for each PR

Control Review Behavior
Fine-tune what Greptile comments on in Code Review Settings:
- Strictness: Adjust the slider in the When Greptile Reviews section
- Comment types: Toggle Syntax, Logic, and Style in What should Greptile comment on?

Add Filters
Set when Greptile automatically reviews in Code Review Settings under Fine-tuning:
- Labels: Only review PRs with specific labels (e.g., “needs-review”)
- Authors: Include/exclude specific developers or bots
- Branches: Target specific branches (e.g., main, develop)
- Keywords: Trigger on PR title/description keywords
Create Your First Test PR
Try Greptile on a test pull request to see it in action:Wait for review (~3 minutes)
Greptile analyzes your PR with full codebase context and posts a comprehensive review.


You can trigger a code review manually by tagging @greptileai with a comment. This is helpful for reviewing older PRs from before Greptile was integrated.
What’s next?
- For developers: Learn how to work with Greptile reviews →
- For team admins: Set up organizations and teams →
- Deep dive: Understand the anatomy of a review →


