Tools

What is your GitHub, GitLab or Bitbucket code worth to AI labs? (2026)

Updated 7 min readFirst published

AI buyers license private code from operating companies, not only from shut-down startups, and they work from a copy, so your team keeps shipping. Mercor's listing for software companies with 15 to 500 staff says the company earns $50K to $500K, and it names internal platform teams at non-software companies as a fit (Mercor, November 2026). Pangea publishes rates of $100 per million tokens of source code and $40 per million tokens of git history (November 2026).

On this page
  1. Why do AI labs want code from operating companies?
  2. What is company code worth?
  3. How do I count what I have (counts, not content)?
  4. How do I export code for a buyer?
  5. How do I scrub secrets from the copy?
  6. What should I leave out?
  7. Who buys company code?
  8. Questions
  9. Sources

If your company is closing, read selling a startup's codebase instead. This guide is for companies that still run on their code.

Why do AI labs want code from operating companies?

AI labs are training coding agents to work inside real businesses. Public code does not show that work; a private repository a team has maintained for years does, through its pull requests, reviews, fixes and tests.

Buyers say what they want. Mercor asks for private repositories that were never public, 3+ years of commits from at least 10 engineers, and 50,000+ lines the company owns. It adds value for thousands of reviewed pull requests, linked tickets and postmortems, code in C, C++, Rust, Swift, Kotlin, Ruby, COBOL or .NET, banking, insurance, healthcare or trading software, and history that mostly predates 2025 (Mercor, November 2026). Patronus AI lists "older systems that are still used to run a business" among its current interests (Patronus AI, November 2026). Turing's Project Lazarus asks for "source code, reviews, tickets, and the iteration history behind what shipped" (Turing, November 2026).

What is company code worth?

These are buyers' published ranges and reported deals. None is an estimate for your company. Buyers price after reviewing a sample.

Reference pointAmountKind of figureSource
Mercor, Software Company listing (15 to 500 staff)$50K to $500K, "more for large codebases or exclusive terms"Published rangeMercor, November 2026
Mercor, SaaS listing: product databases, warehouse and analytics code$55K to $350KPublished rangeMercor, November 2026
Mercor, Design and Web Agency listing: design systems, websites and the code behind them$20K to $890KPublished rangeMercor, November 2026
Mercor, Production Codebases listing: 40,000+ lines, 10+ contributors, a seeded database, builds on LinuxUp to $200K, "Depending on repo quantity and quality"Published rangeMercor, December 2026
Mercor, GPU Kernel and Specialized Private Code listings: CUDA, ROCm, EDA, formal methods, safety-critical codeUp to $200K eachPublished rangeMercor, December 2026
Mercor, Legacy and Specialist-Language Codebases listing: COBOL, Fortran, Visual Basic, C#, Perl and othersUp to $500K, "Priced per qualifying repository"Published rangeMercor, December 2026
Pangea rates$100 per million tokens of source, $40 per million tokens of git historyPublished indicative ratesPangea, November 2026
Turing, launch of Project LazarusLegacy codebases $10K to $100K+; modern codebases $1,000 per pull request up to $10K; tickets and docs $50 per artifactPublished rates, March 2026Turing blog, March 2026
One software company, 326 repositories$300K earned in the last 60 daysBroker claimPangea, November 2026
Startup with code and employee communicationsFour offers up to $300,000, all declinedPress reportThe Information via FNNews, August 2026
Operating startup: Slack, email, GitHub and Google WorkspaceOffer raised to "mid six figures"Founder postReddit, August 2026

Patronus AI described its basis in October 2026 as $100 to $200 per million tokens of source plus git history. On November 9, 2026 its page no longer showed a rate: it says it assesses the code, history, tests and supporting material, then makes a written offer after a sample review.

The largest code archive in a public sale process is Spirit Airlines': 516 repositories, about 30 million lines, 372,585 commits and 43,170 pull requests, offered with email and chat (The Next Web, August 2026). Google won the auction with a $10 million bid, and the court hearing was moved to November 6, 2026 (TravelPulse, October 2026). That hearing was cancelled. On November 9, 2026 Spirit filed a revised sale agreement at the same $10 million, and the court approved the sale to Google on November 17, 2026 (court docket, November 2026; The Record, November 18, 2026). More deals are in our deal ledger.

How do I count what I have (counts, not content)?

Buyers ask for numbers first. None of these steps shares code.

In any git repository, from a local clone:

CountCommand
Commits on all branchesgit rev-list --count --all
Contributors (by name and email)git shortlog -sne --all then count the lines
First and last commit datesgit log --reverse --format=%ad --date=short and git log -1 --format=%ad --date=short

People who committed under several emails appear more than once, so treat the contributor count as an upper bound. Patronus AI publishes a read-only script that prints lines, commits, merged pull requests, contributors, years, tests and languages per repository into a CSV, without uploading anything (Patronus AI, November 2026).

GitHub. List private repositories that are not forks with gh repo list YOUR-ORG --visibility private --source --limit 1000 (GitHub CLI manual). Count merged pull requests by searching org:YOUR-ORG is:pr is:merged on github.com; the results page shows the total. Per repository, Insights, then Contributors, shows the top 100 contributors, with a CSV download. GitHub notes some of these insights only work for repositories under 10,000 commits (GitHub Docs).

GitLab. For size, open the group, then Settings, Usage quotas, Storage tab, which lists storage per project. For activity, Analyze, Contribution analytics shows pushes, issues and merge requests per member over the last week, month or three months, on Premium and Ultimate (GitLab Docs). Merge requests are listed under Code, Merge requests at project or group level.

Bitbucket Cloud. The REST API lists every repository in a workspace (/2.0/repositories/{workspace}) and every pull request in a repository; add state=MERGED, since only open pull requests are returned by default (Atlassian Developer).

How do I export code for a buyer?

  • Git history, any host: git clone --mirror copies all branches, tags and other refs (Git documentation). Pull requests, reviews and issues live on the host, not in git, so they need a second export.
  • GitHub, with pull requests: an organization owner can start an organization migration through GitHub's REST API. The archive holds git data plus issues, pull requests, reviews and comments, unless you exclude metadata. Leave lock_repositories off so your team keeps working. GitHub deletes the archive after seven days (GitHub Docs).
  • GitLab: Settings, General, expand Advanced, Export project, with the Maintainer or Owner role. It includes the repository, issues, merge requests and comments, but keeps only the latest diff of each merge request (GitLab Docs).
  • Bitbucket Cloud: mirror-clone each repository, and pull pull-request history through the REST API.

Deliver a copy through the buyer's encrypted transfer, not standing access to your live organization. Data Licensors never asks for passwords, and records go from you to the buyer you choose, not through us.

How do I scrub secrets from the copy?

  1. Rotate first. GitHub says revoking or rotating a leaked secret is the first step and may be enough on its own (GitHub Docs).
  2. Scan the full history. gitleaks git -v and trufflehog git file://path-to-repo scan every commit. GitHub secret scanning also covers the entire history on all branches; for private organization repositories it needs GitHub Secret Protection on Team or Enterprise Cloud (GitHub Docs).
  3. Rewrite the delivered copy, not your live repository. GitHub recommends git-filter-repo (version 2.47 or later) to purge files from history, and warns that rewriting breaks signatures and is easy to undo by mistake. Doing it on the export avoids disrupting your team.
  4. Remove customer data from fixtures, seed files, logs and database dumps, then have the buyer scan again. See how de-identification works.

What should I leave out?

  • Code a client owns. Mercor lists "client work an agency doesn't own" as not a fit (Mercor, November 2026). Check your service contracts.
  • Forks, open-source copies and vendored libraries. They are not yours to license, and buyers exclude them.
  • Code mostly written by AI tools. Mercor excludes it, along with single-author repositories.
  • Repositories under customer, government or partner agreements that restrict use.
  • Code you would not want a competitor's model to learn from. Non-exclusive licenses mean the same code can reach several labs. Read exclusive vs non-exclusive licenses and our licensing agreement guide.

Who buys company code?

Sorted by name. See the full list at buyers for code.

BuyerWhat it publishes about code
AfterQueryLists codebases, engineering tickets and incident response; its Atrium page says individual codebase submissions are paused (November 2026)
DatacurveBuilds coding data for AI labs; publishes no page on licensing code from companies and no prices (checked November 9, 2026)
DataVendorMarketplace; 20% platform fee on earnings at withdrawal
LabelboxPrism seeks code generation and edit traces: IDE sessions, diffs, test results, review comments
MercorSoftware, SaaS, agency, game studio and trading firm listings that include code, plus four code-only listings added in November 2026: production codebases with a seeded database, GPU kernels, specialized private code, and legacy codebases
PangeaNon-exclusive code licensing at published per-token rates, which can change on 30 days' notice
Patronus AILicenses codebases directly; non-exclusive; sample review in 5 business days; paid directly on acceptance
TuringProject Lazarus: revenue share on each sale, exclusive to Turing for the first 6 months, may license to several labs

Data Licensors, the company that publishes this page, does not buy code itself: it gets owners written offers from several buyers, free for the owner. Our profile sits next to the others. If your tickets live in Jira, read our ticket data guide, then request offers for the same scope from more than one buyer.

Questions owners ask

Plain answers

Can an operating company license its code without stopping work?

Yes. Buyers work from a copy of your repositories, and several license non-exclusively, so you keep the code and keep shipping it. Turing says operating companies keep running as normal while it works from a copy (Turing, November 2026).

How much do AI buyers pay for a private codebase?

Published figures vary by buyer. Mercor's software company listing says $50K to $500K, Pangea publishes $100 per million tokens of source code and $40 per million tokens of git history, and Turing listed legacy codebases at $10K to $100K+ in March 2026. Offers come only after a buyer reviews a sample.

Does Patronus AI still publish a per-token price for code?

Not on its page as checked on November 9, 2026. In October 2026 the page described $100 to $200 per million tokens of source plus git history. It now says it assesses the code, history, tests and supporting material, and makes a written offer after a sample review.

What numbers will a buyer ask for first?

Repository count, lines of code, commits, merged pull requests, contributors, years of history, languages and whether tests and CI exist. All of these come from git and your host's admin pages without sharing any code.

Do I need to remove secrets from the git history?

Rotate every credential first. GitHub says revoking or rotating a leaked secret is the first step and may be enough. Then scan the full history of the copy you deliver and remove what remains, because buyers will ask you to confirm secrets are gone.

What code should stay out of a license?

Code a client owns, forks and copies of open-source projects, vendored libraries, code mostly written by AI tools, and anything with customer data in fixtures or dumps. Mercor's software listing names most of these as not a fit.

Sources

Numbers in this guide are cited inline by publisher and date.

  1. Judge signs off on sale of Spirit Airlines' data to GoogleThe Record · Published 18 Nov 2026 · Accessed 2 Dec 2026
  2. Notice of filing of revised proposed sale order and revised sale agreement for the deidentified data (Dkt. 1802)U.S. Bankruptcy Court, S.D.N.Y., via Epiq · Published 9 Nov 2026 · Accessed 14 Nov 2026
  3. Agenda for November 17, 2026, hearing (Dkt. 1818)U.S. Bankruptcy Court, S.D.N.Y., via Epiq · Published 13 Nov 2026 · Accessed 14 Nov 2026
  4. Software Company (referral listing)Mercor · Publish date not shown · Accessed 9 Nov 2026
  5. Referral listingsMercor · Publish date not shown · Accessed 9 Nov 2026
  6. Production Codebases: Common Languages (listing)Mercor Data · Publish date not shown · Accessed 1 Dec 2026
  7. GPU Kernel & Accelerator Code (listing)Mercor Data · Publish date not shown · Accessed 1 Dec 2026
  8. Specialized Private Code (listing)Mercor Data · Publish date not shown · Accessed 1 Dec 2026
  9. Legacy & Specialist-Language Codebases (listing)Mercor Data · Publish date not shown · Accessed 1 Dec 2026
  10. Data partnershipsPatronus AI · Publish date not shown · Accessed 9 Nov 2026
  11. Data partnerships (version checked October 29, 2026, with per-token rate)Patronus AI · Publish date not shown · Accessed 29 Oct 2026
  12. Data partnersPatronus AI · Publish date not shown · Accessed 9 Nov 2026
  13. Repository facts script (repo-facts.sh)Patronus AI · Publish date not shown · Accessed 9 Nov 2026
  14. Project LazarusTuring · Publish date not shown · Accessed 24 Nov 2026
  15. How Lazarus worksTuring · Publish date not shown · Accessed 24 Nov 2026
  16. AGI Advance: Weekly AI and AGI Insights (Mar 24, 2026)Turing · Published 25 Mar 2026 · Accessed 9 Nov 2026
  17. Get paid to license your codePangea · Publish date not shown · Accessed 9 Nov 2026
  18. Datacurve homepageDatacurve · Publish date not shown · Accessed 9 Nov 2026
  19. AtriumAfterQuery · Publish date not shown · Accessed 9 Nov 2026
  20. Data partnershipsAfterQuery · Publish date not shown · Accessed 9 Nov 2026
  21. Prism: Real-world data for advancing frontier AILabelbox · Publish date not shown · Accessed 9 Nov 2026
  22. Fees and limitsDataVendor · Publish date not shown · Accessed 9 Nov 2026
  23. Google picked and paid for the firm anonymising the Spirit Airlines dataThe Next Web · Published 18 Aug 2026 · Accessed 9 Nov 2026
  24. Spirit Airlines Google $10 Million Data Sale Delayed as Lawmakers Raise ConcernsTravelPulse · Published 10 Oct 2026
  25. Is My Messenger Chat Training AI? U.S. Sees Surge in Corporate Data Trading (reporting The Information)FNNews · Published 14 Aug 2026
  26. Thinking about licensing our startup's data (Slack, email, GitHub) to AI labsReddit, r/startups · Published 27 Aug 2026
  27. Viewing a project's contributorsGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  28. Searching issues and pull requestsGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  29. gh repo listGitHub CLI manual · Publish date not shown · Accessed 9 Nov 2026
  30. REST API endpoints for organization migrationsGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  31. Exporting migration data from GitHub.comGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  32. About ghe-migrator (migrated data)GitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  33. About secret scanningGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  34. Removing sensitive data from a repositoryGitHub Docs · Publish date not shown · Accessed 9 Nov 2026
  35. Migrate projects by using file exportsGitLab Docs · Publish date not shown · Accessed 9 Nov 2026
  36. Storage (Usage quotas)GitLab Docs · Publish date not shown · Accessed 9 Nov 2026
  37. Contribution analyticsGitLab Docs · Publish date not shown · Accessed 9 Nov 2026
  38. Merge requestsGitLab Docs · Publish date not shown · Accessed 9 Nov 2026
  39. Bitbucket Cloud REST API, repositories and pull requestsAtlassian Developer · Publish date not shown · Accessed 9 Nov 2026
  40. git-clone and git-rev-list documentationGit · Publish date not shown · Accessed 9 Nov 2026
  41. GitleaksGitHub (gitleaks/gitleaks) · Publish date not shown · Accessed 9 Nov 2026
  42. TruffleHogGitHub (trufflesecurity/trufflehog) · Publish date not shown · Accessed 9 Nov 2026
  43. Notice of cancellation of November 6, 2026, hearing (ECF No. 1786)U.S. Bankruptcy Court, S.D.N.Y., via PacerMonitor · Published 5 Nov 2026 · Accessed 9 Nov 2026

Buyers in this guide

Each profile has prices, payment terms and sources. Every player is in the buyer index.

Some companies mentioned here may pay us a referral fee. Written by Data Licensors from public sources. Prices and terms are from the sources above, as of 2 Dec 2026. See every buyer in the buyer index.

Get offers for your records

About two minutes. No upload, no system access.