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
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 point | Amount | Kind of figure | Source |
|---|---|---|---|
| Mercor, Software Company listing (15 to 500 staff) | $50K to $500K, "more for large codebases or exclusive terms" | Published range | Mercor, November 2026 |
| Mercor, SaaS listing: product databases, warehouse and analytics code | $55K to $350K | Published range | Mercor, November 2026 |
| Mercor, Design and Web Agency listing: design systems, websites and the code behind them | $20K to $890K | Published range | Mercor, November 2026 |
| Mercor, Production Codebases listing: 40,000+ lines, 10+ contributors, a seeded database, builds on Linux | Up to $200K, "Depending on repo quantity and quality" | Published range | Mercor, December 2026 |
| Mercor, GPU Kernel and Specialized Private Code listings: CUDA, ROCm, EDA, formal methods, safety-critical code | Up to $200K each | Published range | Mercor, December 2026 |
| Mercor, Legacy and Specialist-Language Codebases listing: COBOL, Fortran, Visual Basic, C#, Perl and others | Up to $500K, "Priced per qualifying repository" | Published range | Mercor, December 2026 |
| Pangea rates | $100 per million tokens of source, $40 per million tokens of git history | Published indicative rates | Pangea, November 2026 |
| Turing, launch of Project Lazarus | Legacy codebases $10K to $100K+; modern codebases $1,000 per pull request up to $10K; tickets and docs $50 per artifact | Published rates, March 2026 | Turing blog, March 2026 |
| One software company, 326 repositories | $300K earned in the last 60 days | Broker claim | Pangea, November 2026 |
| Startup with code and employee communications | Four offers up to $300,000, all declined | Press report | The Information via FNNews, August 2026 |
| Operating startup: Slack, email, GitHub and Google Workspace | Offer raised to "mid six figures" | Founder post | Reddit, 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:
| Count | Command |
|---|---|
| Commits on all branches | git rev-list --count --all |
| Contributors (by name and email) | git shortlog -sne --all then count the lines |
| First and last commit dates | git 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 --mirrorcopies 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_repositoriesoff 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?
- Rotate first. GitHub says revoking or rotating a leaked secret is the first step and may be enough on its own (GitHub Docs).
- Scan the full history.
gitleaks git -vandtrufflehog git file://path-to-reposcan 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). - 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. - 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.
| Buyer | What it publishes about code |
|---|---|
| AfterQuery | Lists codebases, engineering tickets and incident response; its Atrium page says individual codebase submissions are paused (November 2026) |
| Datacurve | Builds coding data for AI labs; publishes no page on licensing code from companies and no prices (checked November 9, 2026) |
| DataVendor | Marketplace; 20% platform fee on earnings at withdrawal |
| Labelbox | Prism seeks code generation and edit traces: IDE sessions, diffs, test results, review comments |
| Mercor | Software, 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 |
| Pangea | Non-exclusive code licensing at published per-token rates, which can change on 30 days' notice |
| Patronus AI | Licenses codebases directly; non-exclusive; sample review in 5 business days; paid directly on acceptance |
| Turing | Project 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.