|
| 1 | +--- |
| 2 | +title: CodeRabbit in Self Managed Gitlab |
| 3 | +description: Integrate CodeRabbit with your Self Managed Gitlab instance. |
| 4 | +sidebar_label: Self Managed Gitlab |
| 5 | +image: "/preview_meta.jpg" |
| 6 | +--- |
| 7 | + |
| 8 | +<head> |
| 9 | + <meta charSet="utf-8" /> |
| 10 | + <meta name="title" content="CodeRabbit in Self Managed Gitlab" /> |
| 11 | + <meta name="description" content="Integrate CodeRabbit in your own hosted Gitlab instance." /> |
| 12 | + |
| 13 | + <meta property="og:type" content="website" /> |
| 14 | + <meta property="og:url" content="https://coderabbit.ai/" /> |
| 15 | + <meta property="og:title" content="CodeRabbit in Self Managed Gitlab" /> |
| 16 | + <meta property="og:description" content="CodeRabbit: AI-powered Code Reviews" /> |
| 17 | + <meta property="og:image" content="/preview_meta.jpg" /> |
| 18 | + |
| 19 | + <meta name="twitter:image" content="https://coderabbit.ai/preview_meta.jpg" /> |
| 20 | + <meta name="twitter:card" content="summary_large_image" /> |
| 21 | + <meta name="twitter:title" content="CodeRabbit in Self Managed Gitlab" /> |
| 22 | + <meta name="twitter:description" content="CodeRabbit: AI-powered Code Reviews" /> |
| 23 | +</head> |
| 24 | + |
| 25 | +This page guides you through the process of integrating your Self-Managed GitLab with CodeRabbit. |
| 26 | + |
| 27 | +To initiate the integration, we require specific information. This is essential for the initial setup of our CodeRabbit user and the creation of the CodeRabbit application within your ___domain. Once this setup is complete, you can log in directly using the OAuth2 flow. |
| 28 | + |
| 29 | +### **Step 1: Getting Started** |
| 30 | + |
| 31 | +**Visit CodeRabbit:** Land on to our login page https://coderabbit.ai/login and select Self-Hosted Gitlab |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +### Step 2: Enter your Self Managed Gitlab URL |
| 36 | + |
| 37 | +On this page, you need to enter the URL of your self managed GitLab instance and click submit. Once, you submit, we will check our database for a record of your organization. |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +### **Step 3: Enter Admin Personal Access Token (First time only)** |
| 42 | + |
| 43 | +If this is the first time you are signing up with your instance, then we will need a admin access token for setting up the CodeRabbit bot. |
| 44 | + |
| 45 | +#### **Generating Admin Personal Access token** |
| 46 | + |
| 47 | +GitLab offers an option to generate a personal access token for adding a new user and setting up the application in the self-managed instance. To generate the token, please follow the process outlined below: |
| 48 | + |
| 49 | +1. Login to your self-hosted instance. Ensure sure you have admin rights. |
| 50 | +2. On the left sidebar, select your avatar. |
| 51 | +3. Select Edit profile. |
| 52 | +4. On the left sidebar, select Access Tokens. |
| 53 | +5. Select Add new token. |
| 54 | +6. Enter a name and expiry date for the token. We need this for the initial setup, so the minimum expiry time is sufficient. |
| 55 | +7. If you do not enter an expiry date, the expiry date is automatically set to 365 days later than the current date. |
| 56 | +8. Make sure, you select the scope: `api` |
| 57 | +9. Select Create personal access token. |
| 58 | +10. Please note down this token as this will be visible one time only |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +### **Step 3: Paste the token and click submit** |
| 63 | + |
| 64 | +- Submit the access token. |
| 65 | +- We will handle the setup process for you. |
| 66 | +- On subsequent visits, your setup will be automatically detected, allowing for direct login. |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +- Furthermore, please refer to our Get Started Guide to make the most of CodeRabbit. [here](../get-started/add-repo.md) |
0 commit comments