Sell your GitHub code and repository history to AI companies
Yes, if you own the code. Private repositories with long commit histories, pull requests and code review are among the most valuable data a business can license, because AI companies building coding models need real, non-public engineering work. Before anything is offered, ownership has to be confirmed, third-party and open-source code separated out, and secrets and customer data scrubbed from the full history. Pergola handles that review and the export with your GitHub admin.
What AI companies want from your repositories
- Source code in real production systems, especially in less common languages or domains.
- Commit history: how code changed over time, with messages explaining why.
- Pull requests and review comments: proposed changes, critique and the revisions that followed. Few public sources show this well for private commercial code.
- Issues and discussions that connect bugs and features to the code that addressed them.
- Tests, CI workflows and infrastructure code.
Who typically has valuable code
Software companies, MSPs and IT services firms with internal tools and automation, engineering firms with in-house analysis software, and consulting firms that build software. Code in specialized industries, such as healthcare, insurance, manufacturing or logistics, is often more distinctive than general web apps.
Ownership, licensing and secrets
- Do you own it? Code written by employees in the course of their work generally belongs to the employer. Code from contractors and agencies depends on their contracts, and without a written assignment it may not be yours to license.
- Client work. If you built software for clients, your agreements may have assigned the code to them or restricted reuse. That code is usually excluded unless the contracts allow it.
- Open-source and third-party code. Vendored dependencies, copied snippets and forks carry their own licenses, some of which impose conditions on redistribution. Commercial SDKs and licensed code usually cannot be passed on. These are identified and removed or listed so the buyer can handle them under their terms.
- Secrets in history. Passwords, API keys and tokens committed at any point remain in git history even if later deleted. The full history is scanned and secrets removed. You should rotate any that are found regardless.
- Customer data in repos: test fixtures, seed data and database dumps sometimes contain real records. These are removed.
- Commit author details: names and email addresses of developers are replaced.
How the export works
- We agree scope with you: which repositories, and whether issues, pull requests and discussions are included.
- An organization owner works with Pergola to give read access. Repositories are cloned with full history, and pull requests, reviews and issues are collected through GitHub's API.
- Pergola runs license, secret and personal-data scans across every commit and cleans the result.
- Your repositories are not changed, and we check your agreement with the vendor for anything relevant.
What makes code more valuable
- Long history with meaningful commit messages.
- Real code review, with substantive comments rather than approvals alone.
- Tests, which let buyers check that code works.
- Uncommon languages, frameworks or domains.
- Linked issues, connecting a problem description to its fix. Pairs well with Jira history.
What gets removed
- Secrets, credentials, private keys and internal hostnames
- Third-party and licensed code you can't relicense
- Client-owned code
- Customer data in fixtures, logs and dumps
- Developer names and emails, and your company and product names where they would identify you
Common questions
Does licensing our code to an AI company mean giving it to competitors?
Buyers license it for training, under terms that restrict other uses, and never learn which company it came from. Code with real competitive sensitivity can be excluded.
Our code is on GitLab or Bitbucket, not GitHub. Does it matter?
No. Git history exports the same way, and issues and reviews can be collected from those platforms too.
Is old or retired code worth anything?
Often yes. Older systems in less common languages can be especially useful.
General information, not legal advice. Pergola reviews each seller's contracts, policies and applicable law before anything is sold.