GitHub App connections give you repo-level access control and organizational visibility. Org admins can see which repos are connected and approve or revoke access at any time.
How it works
When you connect a GitHub App through OneCLI:- You’re redirected to GitHub to install the app on your account or organization
- You choose exactly which repositories the app can access
- OneCLI receives a short-lived installation token (1 hour TTL) that’s automatically refreshed
- Your agents use this token to interact with GitHub APIs, scoped to only the repos you selected
Setup
1
Go to Connections
Open the OneCLI dashboard and navigate to Connections → GitHub App.
2
Configure credentials (self-hosted only)
If you’re using OneCLI Cloud, skip this step. Platform credentials are pre-configured.For self-hosted deployments, create a GitHub App and enter your App ID, App Slug, and Private Key in the custom credentials form.Your GitHub App should have:
- Setup URL:
https://<your-onecli-url>/api/apps/github-app/callback - Redirect on update: Checked
- Webhook: Inactive (not required)
3
Install the app
Click Connect GitHub App. You’ll be redirected to GitHub where you can:
- Select the organization or personal account
- Choose All repositories or Only select repositories
- Review the permissions the app requests
Permissions
The GitHub App requests only the permissions your agents need:
Permissions are set at the app level. To change them, update the app’s configuration in your GitHub App settings.
Managing access
After connecting, you can modify which repositories the app can access:- Go to Connections → GitHub App in the OneCLI dashboard
- Click Manage on the connection
- You’ll be taken to GitHub’s installation settings where you can add or remove repositories