Prerequisites
- A registered GitLab instance that CodeRabbit can reach over the network.
- A CodeRabbit organization admin to configure Agent. Billing-only admins cannot manage connections or scopes.
- Permission to install or authorize the app in your Slack workspace.
- A GitLab token valid for your instance with access to the intended groups and repositories. The setup form recommends a personal access token with the
apiscope. - An active Agent trial, subscription, or add-on for the connected workspace. A Review or Advanced plan evaluation alone does not confirm Agent access. See Agent billing.
- For SSO workspaces, confirm Agent access with Support before setup. The repository-discovery rules below apply to workspaces with Agent access; SSO alone does not enable it.
Register your GitLab instance
If this instance already uses CodeRabbit Review, reuse its registration. Otherwise, follow the self-managed GitLab guide to register the instance and configure the CodeRabbit user and OAuth application. For IP-restricted instances, follow that guideâs IP allowlist instructions. For private-network instances, contact Support to arrange and verify Agent connectivity through the CodeRabbit Reverse Tunnel.Setup steps
Select your CodeRabbit organization
Connect Slack
Choose the GitLab token
- Inherit Review token copies the CodeRabbit bot token stored for this GitLab instance into a separate Agent credential.
- Define new Agent token saves a separate token for Agent. The token is not shown again after saving.
Check repository access
Save the Base Scope
Verify access in Slack
@coderabbit to read a specific file from an intended repository and summarize it without making changes. Check that the answer identifies the correct repository and file. This verifies read access, not permission to push changes or open merge requests.Understand repository access
A GitLab instance is the server, such ashttps://gitlab.example.com. A GitLab group can appear as an organization in CodeRabbit. A scope controls which context Agent can use in Slack; it does not grant new GitLab permissions.
Repository discovery differs by workspace type:
Troubleshooting
Slack says the workspace subscription is inactive
Slack says the workspace subscription is inactive
The instance or expected organization is missing
The instance or expected organization is missing
The token is rejected or cannot be inherited
The token is rejected or cannot be inherited
Repositories are missing from the Base Scope
Repositories are missing from the Base Scope
Repositories work in Base Scope but not in a named scope
Repositories work in Base Scope but not in a named scope
More than one GitLab credential matches
More than one GitLab credential matches
Setup stays pending
Setup stays pending