CodeRabbit integrates seamlessly with your self-hosted GitHub Enterprise Server to provide AI-powered code reviews directly within your development workflow. This comprehensive guide walks you through the complete setup process. For an overview of all supported Git platforms, see Platform overview.Documentation Index
Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
Use this file to discover all available pages before exploring further.
Integration overview
The GitHub Enterprise Server integration requires several components working together:OAuth App
GitHub App
Webhook Configuration
Network Access
Setup process
Follow these steps to integrate CodeRabbit with your GitHub Enterprise Server:Initialize CodeRabbit connection
- Start the login process if your instance is already configured
-
Prompt for additional setup details if this is a new integration

Create GitHub OAuth App
- Sign in to your GitHub Enterprise Server as an administrator
- Navigate to Settings → Developer settings → OAuth Apps
- Click New OAuth App
- Configure the OAuth App with these exact settings:
| Field | Value |
|---|---|
| Application name | CodeRabbit OAuth |
| Homepage URL | https://coderabbit.ai |
| Application description | OAuth application for signing into CodeRabbit |
| Authorization callback URL | https://app.coderabbit.ai/login |
-
Click Register application

- Click Generate a new client secret under the ‘Client secrets’ section
-
Copy and securely store the following credentials:
- Client ID
- Client secret (visible only once)

Create GitHub App
- Navigate to Settings → Developer settings → GitHub Apps
- Click New GitHub App
- Configure the basic app settings:
- Basic Information
- Webhook Configuration
- Repository Permissions
- Organization & Events
| Field | Value |
|---|---|
| GitHub App name | CodeRabbit |
| Description | GitHub App for CodeRabbit |
| Homepage URL | https://coderabbit.ai |
| Callback URL | https://app.coderabbit.ai/login |
| Request user authorization (OAuth) during installation | ✓ Enabled |
| Where can this GitHub App be installed? | Any account |
- Click Create GitHub App
- Client Secret: Click Generate a new client secret and copy it immediately
- Private Key: Click Generate a private key and download the PEM file
- Note the App ID and Client ID displayed on the page
Required credentials checklist
Required credentials checklist
- ✅ App ID
- ✅ Client ID
- ✅ Client secret
- ✅ Webhook secret
- ✅ Private key (PEM file)

Complete CodeRabbit setup
GitHub instance configuration
GitHub instance configuration
- Host URL: Your GitHub Enterprise Server URL
OAuth App credentials
OAuth App credentials
- OAuth Client ID: From Step 2
- OAuth Client Secret: From Step 2
GitHub App credentials
GitHub App credentials
- GitHub App ID: From Step 3
- GitHub App Client ID: From Step 3
- GitHub App Client Secret: From Step 3
- GitHub App Webhook Secret: From Step 3
- GitHub App Private Key: Upload the PEM file from Step 3
Install the GitHub App
- Navigate to your GitHub App in GitHub Enterprise Server
- Click the Install App tab
- Select the organization(s) where you want to install CodeRabbit
- Choose repository access:
- All repositories (recommended for full integration)
- Selected repositories (for limited access)
- Click Install
Troubleshooting
Who should create the OAuth App and GitHub App?
Who should create the OAuth App and GitHub App?
- Managing the CodeRabbit integration
- Handling app installations across organizations
- Troubleshooting permission issues
I see an error when trying to log in to CodeRabbit
I see an error when trying to log in to CodeRabbit
- Verify all OAuth App and GitHub App settings match the required configuration
- Ensure webhook URLs are accessible from your GitHub Enterprise Server
- Confirm all credentials are correctly entered in CodeRabbit
- Clear browser cache and cookies for both CodeRabbit and your GitHub instance
- Try logging in from an incognito/private browser window
- Disable browser extensions that might interfere with authentication
- Verify your GitHub Enterprise Server can reach
app.coderabbit.ai - Check firewall rules and proxy settings
- Ensure CodeRabbit IPs are allowlisted if required
Webhook events are not being received
Webhook events are not being received
-
Check webhook configuration:
- Verify the webhook URL is
https://app.coderabbit.ai/githubHandler - Ensure webhook is active in your GitHub App settings
- Confirm the webhook secret matches what you entered in CodeRabbit
- Verify the webhook URL is
-
Test webhook delivery:
- Go to your GitHub App’s Advanced tab
- Look for recent webhook deliveries and their response codes
- Redeliver failed webhooks to test connectivity
-
Network connectivity:
- Ensure your GitHub Enterprise Server can reach CodeRabbit’s webhook URL
- Check for any proxy or firewall blocking outbound requests
CodeRabbit isn't reviewing pull requests
CodeRabbit isn't reviewing pull requests
-
Verify installation:
- Confirm the GitHub App is installed on the correct organization
- Check that CodeRabbit has access to the specific repository
- Ensure the repository isn’t archived or has restrictions
-
Check permissions:
- Verify all required repository permissions are granted
- Confirm CodeRabbit can read pull requests and write comments
-
Review configuration:
- Check if there are any custom review instructions blocking reviews
- Verify the repository doesn’t have CodeRabbit disabled in settings