https://example.ghe.com should also use the Self-Hosted GitHub setup flow. Standard GitHub.com organizations should use the GitHub guide instead.
For an overview of all supported Git platforms, see Platform overview.
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:
-
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
- 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. Use HTTPS for a direct connection, and make sure the host resolves to a reachable, non-restricted address. CodeRabbit rejects the configuration before setup completes when a direct host resolves to a restricted address. Private GitHub Enterprise Server hosts connected through the CodeRabbit Reverse Tunnel remain supported; verification uses the approved reverse-tunnel gateway route instead of rejecting the private canonical host.
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
GET /app), and confirms the App works before saving the instance and starting the login process. The submitted credentials must work at creation time; placeholder, malformed, mismatched, or otherwise unverifiable credentials cannot be saved first and corrected later. On subsequent visits, your setup will be automatically detected for direct login.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
Configure network access
Troubleshooting
Who should create the OAuth App and GitHub App?
Who should create the OAuth App and GitHub App?
.ghe.com. This user will be responsible for:- Managing the CodeRabbit integration
- Handling app installations across organizations
- Troubleshooting permission issues
Which token should I use when resetting instance credentials?
Which token should I use when resetting instance credentials?
site_admin role. For *.ghe.com hosts, CodeRabbit validates enterprise-owner access instead.GitHub App verification fails
GitHub App verification fails
- App ID: Confirm it matches the GitHub App on the target server
- Private key: Verify it is valid for that App
- Client ID: Compare the submitted value with the client ID reported by the App
- Target server: Confirm it is reachable through the configured direct or reverse-tunnel route
Host URL verification fails
Host URL verification fails
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