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
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
Prerequisites
Before connecting GitHub API, make sure you have:- A GitHub account
- A personal access token, only if you connect with your own credentials instead of signing in with GitHub
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All API requests made through this connector count toward your GitHub account rate limits. Billing and quota are handled directly by GitHub, not Lovable.
- Connect with your GitHub account
- Use your own credentials
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.
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.
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.
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.