Skip to main content
GitHub hosts repositories, issues, pull requests, and CI workflows for engineering teams. The GitHub API connector lets your Lovable app call the GitHub REST API from server code. It’s designed for apps that read or update GitHub data, such as issue dashboards, PR trackers, and automation workflows. GitHub is available as two connection types in Lovable: With GitHub, your app can:
  • List and read repositories, branches, and file contents
  • Create and update issues and pull requests
  • Read commits, releases, and workflow runs
  • Build internal tools and automations on top of GitHub data
It’s a good fit for internal engineering tools, team dashboards, and apps that automate work around your repositories.
This connector calls the GitHub REST API from apps you build with Lovable. Want to export or two-way sync your Lovable project’s code to a GitHub repository instead? Use GitHub Git sync.

Common use cases and example apps

These examples show what you can build with GitHub, each with a prompt to start from.

How to connect GitHub API

Who can create GitHub API connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors. When adding a connection, you can choose between:
  • GitHub: sign in with your GitHub account in one click (OAuth)
  • Use your own credentials: connect with a personal access token you create in GitHub
You can create multiple GitHub API connections using different GitHub accounts or tokens, which is useful for separating environments (for example, development and production) or using different permission scopes. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in chat to link their project to it.

Prerequisites

Before connecting GitHub API, make sure you have:
All API requests made through this connector count toward your GitHub account rate limits. Billing and quota are handled directly by GitHub, not Lovable.
Follow the setup steps below based on how you want to connect GitHub.
Choose this option for the fastest setup. You authorize Lovable with your GitHub account, and no personal access token is needed. In the connection form, this option is labeled GitHub.
1

Open GitHub API in Connectors

Open Connectors and select GitHub API. For the other places to open the catalog from, see Where to find connectors.The first time you open GitHub API, Lovable asks what you want to do. Choose Use the connector. The other option, Sync my code, sets up GitHub Git sync instead.
2

Add a connection

Click Add connection and select App + chat connector.
3

Name the connection

In Display name, name the connection (for example, GitHub Prod). This name is only used inside Lovable to identify the connection.
4

Choose GitHub authentication

Under Authentication, select GitHub. This is the OAuth option.
5

Review scopes (optional)

Under Scopes, review the permissions your app requests. Read user profile is always included, and Repositories is selected by default.For full scope documentation, see Scopes for OAuth apps.
6

Choose who can use this connection

Under Who can use this connection, decide who in your workspace can use the connection. You start as the only person with access:
  • Only you (default): leave the access list as is; only you can use the connection and its associated data.
  • Invite specific people: add workspace members by email; only you and the people you add can use the connection and its associated data.
  • Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
See Who can use connections and clients for more information.
7

Connect to GitHub and authorize

Click Connect. The GitHub authorization window opens, so make sure your browser doesn’t block pop-ups. If it does, Lovable redirects you instead.Sign in to GitHub if prompted, review the requested permissions, and authorize the app.You’ll be redirected back to Lovable with a confirmation.
When connected, anyone building in a project can ask Lovable in chat to link their project to GitHub API (based on configured connection-level access). Your Lovable apps can then read and update repositories, issues, pull requests, and other GitHub resources.

Limitations

The GitHub API app + chat connector documented on this page cannot:
  • Replace GitHub Git sync for exporting or syncing your Lovable project’s codebase
  • Use GitHub App installation tokens. Connections authenticate as a GitHub account, with an OAuth sign-in or a personal access token.
  • Call endpoints your granted scopes or token permissions do not cover. If a call returns 403, review the OAuth scopes on the connection or the permissions on your personal access token.
  • Support per-end-user GitHub login. Each connection represents a single GitHub account shared across all projects linked to it. If you need each user of your app to sign in with their own GitHub account, use the GitHub app user connector.
If GitHub authorization is revoked from the GitHub side, you’ll need to reconnect the integration in Lovable before API calls can succeed again. If a personal access token expires or is revoked, update the token on the connection in Lovable.

Manage your connection

Connections are managed from Connectors: select , then open the connection.
  • Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
  • Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.