Connect your app to GitHub API
Connect your app to the GitHub API using your account login or an access token. This allows your app to read repositories, track pull requests, and create issues automatically.
Anyone who wants to build internal developer tools, issue trackers, or dashboards that display or update GitHub data.
Do this, in order
- 1
Open the Connectors dashboard in Lovable and select GitHub API.
This is where you manage external service connections for your workspace.
- 2
Choose 'Use the connector' when prompted.
This sets up the API connection to read and write GitHub data instead of syncing your Lovable code to a repository.
- 3
Click Connect and give your connection a descriptive display name.
A recognizable name helps you identify the connection later, especially if you set up multiple environments like development and production.
- 4
Select your authentication method by choosing either standard GitHub sign-in or entering a personal access token.
Signing in with GitHub is fastest, while a personal access token lets you restrict permissions to specific repositories.
- 5
Set your permission scopes, configure workspace sharing, and complete the connection authorization.
Your app can only interact with repository data covered by the permissions you grant.
- 6
Ask Lovable in your project chat to link to the GitHub API connection and build your feature.
Linking makes the connection available to your project's server code so it can fetch or send GitHub data.
Paste this into your project
Use GitHub and build a dashboard that lists open issues across my repositories, grouped by label.
Words decoded
- OAuth
- A secure sign-in method that lets you connect an account with one click without typing or sharing your password.
- Personal access token
- A generated secret code from GitHub that acts like a password with specific, limited permissions.
- Scope
- A specific permission setting that controls what data the connected app is allowed to view or change.
- Rate limit
- The maximum number of requests GitHub allows your account to make within a specific time window.
Where people get stuck
- Do not confuse this with GitHub Git sync; this connector interacts with GitHub data inside your app, rather than exporting your Lovable app's source code.
- This connector shares a single GitHub account across the project; it does not allow your app's end users to log into their own GitHub accounts.
- Calls will fail with a 403 error if your selected OAuth scopes or token permissions do not cover the requested repository actions.
- All requests count against your GitHub account rate limits and quotas, not Lovable's.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.