calendar Last updated: 23 November 2026
How to connect GitHub to ChatGPT
How to's

How to Connect GitHub to ChatGPT (3 Ways, 2026)

Try It Free

Connect your data in 1 min. Free forever plan

Got insights from this post? Give it a boost by sharing with others!

To connect GitHub to ChatGPT, open Plugins in the ChatGPT sidebar, search for GitHub and click Install plugin. ChatGPT sends you to GitHub to install the ChatGPT app and choose the repositories it can read. The GitHub plugin, published by OpenAI, lets ChatGPT read code, explain a repository and review a pull request.

To report on GitHub activity over time, such as merged pull requests per week or failed GitHub Actions runs, connect GitHub to Windsor.ai with a personal access token and install the Windsor.ai plugin in ChatGPT. Through Windsor.ai, ChatGPT reads rows from 39 GitHub tables. It can combine them with data from other tools, such as Jira. It can’t change anything in GitHub.

Which way to connect GitHub to ChatGPT

The three ways to connect GitHub to ChatGPT differ in what ChatGPT reads (code or activity records) and whether it can read other tools next to GitHub.

  • OpenAI’s GitHub plugin: reads code, README files and documentation in the repositories you choose. Answers questions about the code. Reads GitHub only.
  • Windsor.ai plugin: reads pull requests, reviews, issues, commits, releases and GitHub Actions runs as rows with dates, for counts and trends. Can’t change anything in GitHub (write actions list). Reads GitHub next to 350+ other sources.
  • File upload: you export data from GitHub (for example with the GitHub CLI) and attach the file to a chat. Nothing to connect, but each file is a snapshot.

Use OpenAI’s GitHub plugin to ask about the code itself. Use Windsor.ai for reports across repositories, people and weeks, or for GitHub next to Jira or a database. You can install both.

Connect GitHub with OpenAI’s GitHub plugin

The GitHub plugin is published in ChatGPT by OpenAI. Its plugin page describes it as “Triage PRs, issues, CI, and publish flows” and lists two apps: GitHub, and GitHub Enterprise for a workspace’s GitHub Enterprise host.

OpenAI's GitHub plugin in the ChatGPT Plugins directory

Before you start

  • A GitHub account on github.com with access to the repositories you want to use.
  • A ChatGPT account that can install plugins. OpenAI says GitHub availability “can vary by plan, workspace, and product surface”. On some plans GitHub works only in deep research or agent mode, not in a regular chat. In a ChatGPT workspace, such as Business, Enterprise or Edu, your admin decides which plugins members can install.
  • If the repositories belong to an organization, the organization may need an owner to approve the ChatGPT app.

Steps

  1. In ChatGPT, click Plugins in the sidebar.
  2. Search for GitHub, open the plugin by OpenAI and click Install plugin.
  3. ChatGPT sends you to GitHub. Install and authorize the ChatGPT app, then choose the repositories ChatGPT can read. Repositories you give access to can take about 5 minutes to appear in ChatGPT.
  4. In a new chat, type @ and pick GitHub from the list, then ask a question to test the connection.
@GitHub Explain how authentication works in the your-org/your-repo repository: the main components, the request flow, and where tokens are handled.

What OpenAI’s GitHub plugin can do

  • Read code, README files and other documentation in the repositories you allowed, and search them by file name, function name or error message, in the ChatGPT modes that support it.
  • Explain a repository, summarize a pull request and turn recent commits and merged pull requests into an update.

Things to know

  • Repository access: installing the ChatGPT app on GitHub and giving it access to a repository are separate steps.
  • Pushing code: OpenAI says the GitHub app in ChatGPT “only lets you read from your repositories”. To edit code and push it to GitHub, use Codex.
  • No synced index: ChatGPT reads repository content when you ask. OpenAI says GitHub sync and individually configured repository indexing are not available.
  • Change access or disconnect: to change which repositories ChatGPT can read, open Settings, then Plugins, select GitHub and use the repository management option. To disconnect, open the same page and click Disconnect.

Sources for this section: the GitHub plugin page in ChatGPT and OpenAI’s help article Connecting GitHub to ChatGPT.

Connect GitHub with the Windsor.ai plugin

Use the Windsor.ai plugin for GitHub reports: time from opening to merging pull requests, review status, issue backlogs, CI failures per workflow and star growth, across all the repositories you list.

Before you start

  • A Windsor.ai account. The free forever plan needs no credit card and covers GitHub as one source with 30 days of data history. One GitHub token with its repository list counts as one account, which the free forever plan includes. For your first 30 days you can test more sources. To keep GitHub and other tools connected after that, paid plans start at $19/month for 3 sources or $99/month for 7, billed annually (pricing).
  • Repositories on github.com. The Windsor.ai GitHub connector doesn’t connect to self-hosted GitHub Enterprise Server.
  • A ChatGPT account that can install plugins.

Step 1. Create a GitHub personal access token

  1. In GitHub, open Settings, then Developer settings, Personal access tokens, Fine-grained tokens, and click Generate new token.
  2. Enter a name and choose an expiry date.
  3. Under Resource owner, choose the user or organization that owns the repositories.
  4. Under Repository access, choose Only select repositories and pick the repositories you want to report on.
  5. Under Permissions, set the repository permissions Contents, Issues, Pull requests, Actions and Deployments to Read-only. Don’t give the token any write permission. The Windsor.ai GitHub connector only reads.
  6. Click Generate token and copy the token.

If the organization uses SAML single sign-on, no extra step is needed. GitHub authorizes fine-grained tokens for it when you create them. If the organization requires approval, an owner must approve the token before it can read private repositories. A fine-grained token reads one user or organization only.

Step 2. Add GitHub to Windsor.ai

  1. Go to onboard.windsor.ai/app/github and sign in or create an account.
  2. In the Authentication box, paste this line with your token in place of YOUR_TOKEN:
{"option_title": "PAT Credentials", "personal_access_token": "YOUR_TOKEN"}
  1. In the GitHub Repositories box, enter your repositories, such as ["your-org/your-repo"], or ["your-org/*"] for every repository in the organization. Separate several entries with spaces, such as ["your-org/repo-one your-org/repo-two"].
  2. Click Add Account.

GitHub is a community connector in Windsor.ai, so support and stability may be more limited than for connectors Windsor.ai maintains itself.

GitHub Authentication and GitHub Repositories fields in Windsor.ai

Step 3. Install the Windsor.ai plugin in ChatGPT

  1. In ChatGPT, click Plugins in the sidebar and search for Windsor.ai, or open the Windsor.ai plugin page.
  2. Click Install plugin and sign in to Windsor.ai.
  3. In a new chat, type @Windsor.ai and test the connection.
@Windsor.ai List the data sources connected to my Windsor.ai account. Is GitHub there?

Install the Windsor.ai plugin in ChatGPT

The Windsor.ai ChatGPT setup guide shows each setup screen.

GitHub data ChatGPT can read through Windsor.ai

Through the Windsor.ai connector, ChatGPT reads rows from 39 GitHub tables (full field list).

  • Pull requests: number, title, state, author, labels, requested reviewers, draft, created, merged and closed dates.
  • Pull request stats: additions, deletions, changed files, commits, comments, review comments, merged by.
  • Reviews: review state (approved, changes requested, commented), reviewer, submitted date.
  • Issues: number, title, state, state reason, labels, assignees, milestone, comments, created and closed dates. GitHub counts pull requests as issues too, so ask for “issues, not pull requests” when you mean issues only.
  • Commits: author, committer, branch, date.
  • GitHub Actions: workflow runs and jobs with name, status, conclusion, branch, event and start time. Jobs also have a completed time.
  • Releases and deployments: tag name, release notes, published date, deployment environment.
  • Repositories: name, language, visibility, stars, forks, open issues, default branch, last push.
  • People: collaborators, teams, team members and commit activity per contributor.

Each table has its own date field. Merged pull requests use the merge date (pull_requests__merged_at), issues the created date (issues__created_at), stars the star date (stargazers__starred_at) and workflow runs the start time (workflow_runs__run_started_at). Name the date in your question, such as “merged in the last 30 days”.

The connector has no cycle-time metric. ChatGPT gets each pull request’s dates and calculates durations itself. Forks are each repository’s current count, with no fork dates.

GitHub isn’t on the Windsor.ai write actions list (checked 23 November 2026), so ChatGPT can’t change code, pull requests, issues or settings through Windsor.ai.

Windsor.ai can return a cached answer to a repeated query for up to 6 hours, so a pull request merged a minute ago may not show yet.

Prompts to try once GitHub is connected

Code and pull request review (OpenAI’s GitHub plugin)

@GitHub Summarize pull request #128 in your-org/your-repo like a senior reviewer: what changed, what could break, and which tests are missing.
@GitHub Where in your-org/your-repo is the retry logic for failed webhook calls? Show the files and functions.

Delivery speed and review status (Windsor.ai)

@Windsor.ai For each repository, list the pull requests merged in the last 30 days (by merge date) with the hours between opening and merging each one. Use code to show the median per repository.
@Windsor.ai Which open pull requests have no review yet or a review that requested changes? Show how many days each one has been open, oldest first.

On the free forever plan, open pull requests created more than 30 days ago can be missing. A paid plan reaches further back.

CI health (Windsor.ai)

@Windsor.ai Count GitHub Actions workflow runs in the last 14 days (by run start time) by workflow name and conclusion. Which workflow fails most often?

Growth over time (Windsor.ai)

@Windsor.ai How many new stars did each repository get per week over the last 90 days (by star date)?

90 days of history needs a paid plan.

GitHub next to Jira (Windsor.ai)

@Windsor.ai For Jira work items closed in the last 30 days, find the merged GitHub pull requests that mention each work item key, and list work items with no linked pull request.

GitHub plus Jira is 2 sources. After your first 30 days that needs a paid plan, from $19/month billed annually for 3 sources.

Without a plugin: upload an export

A file upload suits a single question when you don’t want to connect anything.

  1. Export the data you need from GitHub. For example, this GitHub CLI command saves up to 500 merged pull requests to a file: gh pr list --repo your-org/your-repo --state merged --limit 500 --json number,title,createdAt,mergedAt > pull-requests.json
  2. In ChatGPT, attach the file and ask your question.

The file is a snapshot, so you export again for each update.

Common problems

  • A private repository doesn’t show in ChatGPT (GitHub plugin). The ChatGPT app on GitHub has no access to that repository, or is installed for a different account or organization. Check the app’s repository access on GitHub.
  • The GitHub plugin can’t read an organization’s repositories. The organization may need an owner to approve the ChatGPT app.
  • GitHub doesn’t appear in the @ list. Your plan may offer GitHub only in deep research or agent mode.
  • Your organization isn’t listed under Resource owner when you create the token. The organization blocks fine-grained tokens. Ask an owner to allow them.
  • Windsor.ai shows no GitHub data. Check that the Authentication box holds the full JSON line, that the token hasn’t expired, that the token has read access to contents, issues, pull requests, Actions and deployments, and that the repository names match the owner/repository format.
  • Windsor.ai can’t read a private repository in an organization. A fine-grained token waits for approval when the organization requires it. Ask an organization owner to approve the token.
  • ChatGPT answers from memory instead of GitHub. Start the prompt with @ and pick GitHub or Windsor.ai from the list.

Conclusion

To ask ChatGPT about your code, such as how a feature works or what a pull request changes, install OpenAI’s GitHub plugin. To report on pull requests, reviews, issues and CI runs over time, especially next to Jira or your database, connect GitHub to Windsor.ai and install the Windsor.ai plugin. For a one-off question, attach an export.

For other developer tools, see how to connect Jira to ChatGPT, PostgreSQL to ChatGPT and BigQuery to ChatGPT. The GitHub to ChatGPT integration page lists what Windsor.ai reports from GitHub.

Connect GitHub to Windsor.ai. Free forever plan, no credit card. Paid plans from $19/month.

FAQs

How do I connect GitHub to ChatGPT?

Open Plugins in the ChatGPT sidebar, search for GitHub and click Install plugin. ChatGPT sends you to GitHub to install the ChatGPT app and choose the repositories it can read. For reports on GitHub activity, connect GitHub to Windsor.ai with a personal access token, then install the Windsor.ai plugin in ChatGPT.

Tired of juggling fragmented data? Get started with Windsor.ai today to create a single source of truth

Let us help you automate data integration and AI-driven insights, so you can focus on what matters, growth strategy.
g logo
fb logo
big query data
youtube logo
power logo
looker logo