Prerequisites
- A GitHub account with permission to create GitHub Apps (a personal account or an organization admin)
- The base URL of your instance (for example
https://compiler.yourdomain.com)
Step 1: Create a new GitHub App
-
Go to GitHub Settings:
- For a personal account:
https://github.com/settings/apps/new - For an organization:
https://github.com/organizations/YOUR_ORG/settings/apps/new
- For a personal account:
-
Fill in the basic information:
-
Set both the Callback URL and, under Post installation, the Setup URL to:
GitHub sends people to the Setup URL after they install the app, so without it you won’t be brought back to your instance. Also check Redirect on update, so changing the repository selection later brings you back too.
- Uncheck Expire user authorization tokens. Compiler doesn’t need it.
- Uncheck Request user authorization (OAuth) during installation. Compiler doesn’t need it.
- Under Webhook, leave Active unchecked. Compiler doesn’t use webhooks, so no webhook URL is needed.
Step 2: Configure permissions
Under Repository permissions, set:
Leave all other permissions as No access.
Step 3: Choose where it can be installed
Under Where can this GitHub App be installed?, select Only on this account for private use.Step 4: Create the app
Click Create GitHub App. GitHub takes you to your new app’s settings page.Step 5: Note your app credentials
After creation, collect these values.App ID
App ID
Found at the top of the app settings page:
App slug
App slug
Found in the URL of your app’s public page:
Private key
Private key
- Scroll down to the Private keys section
- Click Generate a private key
- A
.pemfile downloads automatically
Step 6: Configure your instance
- Sign up as the first user on your instance. Setup asks for the GitHub App straight after sign-up. To change it later, open Settings > GitHub as an admin.
-
Enter your credentials:
- Click Continue. Compiler checks the credentials before it moves on.
Step 7: Install the app on your repositories
- Click Install GitHub App
- GitHub asks you to authorize the installation
- Select which repositories to grant access to:
- All repositories: access to all current and future repositories
- Only select repositories: choose specific repositories (recommended)
- Click Install
- GitHub sends you back to your instance through the Setup URL from step 1
Step 8: Finish setup
- Choose your AI provider
- Create your first project and pick the repositories it should cover from those the app can access
- Compiler clones the repositories in the background. You can start asking questions while they sync