Skip to main content
GitHub hosts repositories, issues, pull requests, and CI workflows for engineering teams. The GitHub connector lets your Lovable app call the GitHub REST API using a personal access token from your GitHub account. It is designed for apps that read or update GitHub data from server code, such as issue dashboards, PR trackers, and automation workflows. the GitHub API is available as an app + chat connector: one shared connection that works in the chat while you build and in your published apps. 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 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

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.
Your personal access token functions like a password. Keep it secure and never share it publicly. You will need it in the next step.
See GitHub documentation for more: Managing personal access tokens.

Step 2: Connect GitHub to Lovable

You can create multiple connections using different personal access tokens.
1

Open GitHub in Connectors

Go to Connectors and select GitHub.
2

Add a connection

Click Add connection.
3

Configure the connection

  1. Display name: name the connection, for example GitHub Prod.
  2. 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.
See Connection-level access for more information.
5

Connect

Click Connect. Lovable verifies the token against the GitHub API before saving the connection.
When connected, anyone building in a project can ask Lovable in chat to link their project to GitHub (based on configured connection-level access). Your Lovable apps can then read and update repositories, issues, pull requests, and other GitHub resources through the connector gateway.

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.
If you revoke the personal access token on GitHub, update the connection with a new token or create a new connection before API calls can succeed again.

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.