This guide is specifically for GitHub Enterprise Server (Self-Hosted) users. If you’re using GitHub.com, see our GitHub integration guide instead.
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.
Before you begin: Ensure you have the following prerequisites before starting the integration process: Administrative privileges on your GitHub Enterprise Server instance Access to create OAuth Apps and GitHub Apps in your organization Network connectivity allowing webhooks from CodeRabbit to your instance
Ability to whitelist IP addresses if required by your security policy

Integration overview

The GitHub Enterprise Server integration requires several components working together:

OAuth App

Handles user authentication and login flow

GitHub App

Provides repository access and webhook functionality

Webhook Configuration

Enables real-time event processing

Network Access

Allows CodeRabbit to communicate with your instance

Setup process

Follow these steps to integrate CodeRabbit with your GitHub Enterprise Server:
1

Initialize CodeRabbit connection

Visit the CodeRabbit login page and select Self-Hosted GitHub.CodeRabbit login pageEnter the URL of your GitHub Enterprise Server instance and click submit. CodeRabbit will check for existing configurations and either:
  • Start the login process if your instance is already configured
  • Prompt for additional setup details if this is a new integration Self-hosted GitHub enterprise connection page for CodeRabbit
2

Create GitHub OAuth App

Navigate to your GitHub Enterprise Server instance and create an OAuth App for user authentication.
For detailed instructions, see GitHub’s official documentation on creating an OAuth App.
Configuration steps:
  1. Sign in to your GitHub Enterprise Server as an administrator
  2. Navigate to SettingsDeveloper settingsOAuth Apps
  3. Click New OAuth App
  4. Configure the OAuth App with these exact settings:
FieldValue
Application nameCodeRabbit OAuth
Homepage URLhttps://coderabbit.ai
Application descriptionOAuth application for signing into CodeRabbit
Authorization callback URLhttps://app.coderabbit.ai/login
  1. Click Register application GitHub Create OAuth App
Save OAuth credentials:After creating the OAuth App:
  1. Click Generate a new client secret under the ‘Client secrets’ section
  2. Copy and securely store the following credentials:
    • Client ID
    • Client secret (visible only once)
    GitHub OAuth Client ID & Secret
The client secret is only displayed once. Make sure to copy it immediately and store it securely.
3

Create GitHub App

Create a GitHub App to enable CodeRabbit’s repository access and webhook functionality.
For detailed instructions, see GitHub’s official documentation on registering a GitHub App.
App configuration:
  1. Navigate to SettingsDeveloper settingsGitHub Apps
  2. Click New GitHub App
  3. Configure the basic app settings:
FieldValue
GitHub App nameCodeRabbit
DescriptionGitHub App for CodeRabbit
Homepage URLhttps://coderabbit.ai
Callback URLhttps://app.coderabbit.ai/login
Request user authorization (OAuth) during installation✓ Enabled
Where can this GitHub App be installed?Any account
  1. Click Create GitHub App
Generate app credentials:After creating the GitHub App, you’ll need to generate and save several credentials:
  1. Client Secret: Click Generate a new client secret and copy it immediately
  2. Private Key: Click Generate a private key and download the PEM file
  3. Note the App ID and Client ID displayed on the page
GitHub App Client ID & Secret
Customize the app appearance: Use the CodeRabbit logo as the profile picture for easy recognition in your GitHub interface.
4

Complete CodeRabbit setup

Submit all the credentials you’ve gathered to complete the integration setup.In the CodeRabbit onboarding form, enter the following information:
Click Submit to complete the setup. CodeRabbit will validate the configuration and initiate the login process. On subsequent visits, your setup will be automatically detected for direct login.
5

Install the GitHub App

Install the GitHub App to your organizations to enable CodeRabbit access to repositories.
  1. Navigate to your GitHub App in GitHub Enterprise Server
  2. Click the Install App tab
  3. Select the organization(s) where you want to install CodeRabbit
  4. Choose repository access:
    • All repositories (recommended for full integration)
    • Selected repositories (for limited access)
  5. Click Install
Important timing: If you install the GitHub App before completing Step 4 (CodeRabbit setup), the installation event will fail. If this happens:
  1. Go to your GitHub App’s Advanced tab
  2. Find the failed installation.created event
  3. Click Redeliver to resend the webhook
6

Configure network access

Ensure your GitHub Enterprise Server can communicate with CodeRabbit by configuring network access.IP Allowlisting:If your instance requires IP allowlisting, add these CodeRabbit IP addresses to your firewall:
35.222.179.152/32
VPN Integration:For enhanced security or complex network setups, CodeRabbit offers VPN tunneling to enable secure, direct connectivity between CodeRabbit and your GitHub Enterprise Server through an encrypted tunnel.
Enterprise Feature: VPN tunneling is available to customers on the Enterprise tier only.

Troubleshooting

What’s next

Once your GitHub Enterprise Server integration is complete, you can customize CodeRabbit to fit your team’s workflow: