Before you begin
- The machine running the extension can reach your instance over HTTPS, and over WebSocket at
<instance-url>/ws. In remote and container workspaces, that is the remote machine. GET <instance-url>/healthreturns status 200 with the bodyOKwithin 5 seconds.- Your Git provider is GitHub, GitHub Enterprise Server, GitLab, or Self-Hosted GitLab. The extension doesnât offer Azure DevOps or Bitbucket.
- For GitHub and GitHub Enterprise Server, you have a personal access token. GitLab and Self-Hosted GitLab need no token in the extension.
- The workspace is trusted.
Connect to your instance
1
Sign out of CodeRabbit Cloud
If youâre signed in to CodeRabbit Cloud, run CodeRabbit: Logout.
2
Start the self-hosted sign-in
In the CodeRabbit sidebar, select Self hosting CodeRabbit? below Sign in with browser.
3
Confirm your email
The extension uses your Git email from
git config user.email. If it canât read one, enter your email when prompted. To set it for Git, run git config --global user.email "you@example.com".4
Enter the instance URL
Enter your instance URL when prompted. The extension checks
/health on that URL and saves it as coderabbit.selfHostedUrl in your user settings. If the check fails, you see âCould not connect to self-hosted instanceâ.5
Pick your Git provider
Choose GitHub, GitHub Enterprise Server, GitLab, or Self-Hosted GitLab.
6
Enter a GitHub token
For GitHub and GitHub Enterprise Server, enter your personal access token. The extension keeps it in the editorâs secret storage and sends it to your instance with each review. Your instance can use it to look up your GitHub account by your email.
Where the URL is stored
The instance URL is thecoderabbit.selfHostedUrl setting. Only the value in your local user settings counts; the extension ignores workspace and remote settings, so a repository canât redirect your reviews. You canât set it through enterprise or group policy.
If coderabbit.selfHostedUrl is already set when you select Self hosting CodeRabbit?, the extension uses it without asking for the URL and without the health check.
Whatâs different from CodeRabbit Cloud
- No Account & usage button, plan, or usage dialog.
- No upgrade prompts.
- No Give feedback and no Provide feedback on findings.
- No automatic organization matching.
- No prompt to connect the repository for pull request reviews.
- No sign-in notification at startup.
- No usage telemetry to CodeRabbit. The extension still checks
storage.googleapis.comfor new versions; see Network access for every host.
Sign out or switch back to Cloud
To switch to CodeRabbit Cloud, sign out, then select Sign in with browser. See Sign in and manage your account.Whatâs next
Run a review
Choose the changes and base branch to review, then start a review against your instance.
Data, privacy, and network access
See what a review sends, which hosts the extension contacts with a self-hosted URL, and what stays on your computer.
Troubleshooting
Fix failed health checks and connections that go to CodeRabbit Cloud instead of your instance.