- 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 is a connector for apps you build with Lovable. Your app can call the GitHub REST API to read and update repositories, issues, pull requests, and other GitHub data.
Want to export or two-way sync your Lovable project code to GitHub instead? Use GitHub Git sync.
Common use cases and example apps
How to connect GitHub
Workspace admins and owners can connect GitHub. You can create multiple GitHub connections using different personal access tokens, which is useful for separating environments (for example, development and production) or using tokens with different permission scopes. When the connection is created, GitHub becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting GitHub, make sure you have:- A GitHub account
- A personal access token with permissions that match the endpoints your app will call
- Lovable workspace owner or admin role
API requests made through this connector count toward your GitHub account rate limits. Quotas and billing are handled by GitHub, not Lovable.
Step 1: Create a GitHub personal access token
A personal access token lets your Lovable app authenticate with the GitHub REST API on your behalf. To create a GitHub personal access token:1
Open GitHub token settings
Sign in to GitHub and open Settings → Developer settings → Personal access tokens.
2
Generate a token
Create a fine-grained or classic token. Fine-grained tokens can be limited to specific repositories. Classic tokens use scope lists such as
repo or public_repo.3
Select permissions
Grant only the permissions your app needs. For private repositories, include repository read or write access. For public data only,
public_repo may be enough on classic tokens.4
Copy the token
Copy the token when GitHub shows it. You will not be able to view it again.
Step 2: Connect GitHub to Lovable
You can create multiple connections using different personal access tokens.1
Open GitHub in Connectors
Go to Connectors → App connectors and select GitHub.
2
Add a connection
Click Add connection.
3
Configure the connection
- Display name: name the connection, for example
GitHub Prod. - Personal access token: paste the token you created in step 1.
4
Choose who can access this connection
Under Who can access this connection, decide who in your workspace can use the connection:
- Only you (default): only the person creating the connection can use it and its associated data.
- Invite specific people: only you and explicitly added workspace members 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.
5
Connect
Click Connect. Lovable verifies the token against the GitHub API before saving the connection.
Limitations
The GitHub connector cannot:- Use OAuth app or GitHub App installation flows. Use a personal access token instead.
- Replace GitHub Git sync for backing up or syncing your Lovable project codebase.
- Support per-end-user GitHub login. Each connection represents a single GitHub account shared across all projects linked to it.
- Call endpoints your token permissions do not cover. If a call returns
403, update the token permissions or create a new token with broader scopes.
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to manage.
3
Select projects
Under Linked projects, check the projects you want to unlink.
4
Confirm
Click Unlink projects and confirm.
How to delete a connection
Workspace admins and owners can delete connections. Other members can delete a connection if they created it, or if they have been explicitly granted access to it. Before deleting, review the Linked projects section to see which projects are currently using the connection. To delete a connection:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to remove.
3
Review linked projects
Review the Linked projects section.
4
Delete
Under Delete this connection, click Delete and confirm.