Catalogue No. 001ExplainerVerified 2026-10-10Licensing open

Sell code for AI training

Sell code for AI training: AI labs license real source code and git history. Sell a non-exclusive license, keep ownership, get paid each time.

Free to join. No public listing. A real estimate in minutes once Git is connected.

Lot 014Company ownedSpecimen

Invoicing platform, shelved 2024

48,210 lines and five years of real commits from a B2B product that never turned a profit. Tested and company owned.

Languages
TypeScript, Go
Lines of code
48,210
Commits
3,912
Source tokens
0.6M
History tokens
23.5M
Last commit
Mar 2024
Source 0.6M · 2.5%History 23.5M · 97.5%
Commits per quarterActivity stopped Q2 2024
Per license, USD0.6M × $100 + 23.5M × $40≈$1,000recurring
Illustrative lotNot a live listing
Quick answer

AI labs pay to license real source code and git history to train and evaluate coding models. Source pays $100 per million tokens and history $40. You sell a license and keep ownership, and the same repo can be licensed again.

Applies to code you own Currency USD Verified 2026-10-10
§ 01Demand

Why do AI labs pay for source code?

Coding models learn from code. To get better at writing, fixing and reviewing software, they need to see a lot of real software, and the public supply is largely used up. Open source code has been collected many times over. What labs lack is private code: the products, tools and systems that companies and developers built and never published.

That code is valuable for the same reason it was hard to write. It shows how working developers solve real problems under real constraints. And its git history shows something no finished snapshot can: how the code changed, which bugs were found, how features grew and what got thrown away. Labs license code to use as training data and to build tests that check whether a model can do real engineering work.

  1. Reason 01

    Scarce input

    Real production code is the one input labs cannot generate synthetically. They pay for the real thing.

  2. Reason 02

    Rising demand

    Labs are licensing real-world codebases to train and evaluate coding models, and the appetite is growing.

  3. Reason 03

    History counts

    Commits, fixes and the way a codebase matured carry signal. You are paid for git history as well as the final source.

    Source 21%History 79% of licensed tokens
  • Reason 04

    Commercial success is irrelevant

    What matters is that the code is real and that you hold the rights.

    Shelved products, dead startups, internal tools, R&D and side projects all qualify.
§ 02What labs value

What do AI labs look for in training code?

Labs grade code on what it can teach a model. That turns the usual idea of what makes code valuable upside down. The things that make a product worth buying barely matter. The things owners worry about, like a messy history or an unfinished feature, often help.

Tests deserve a special mention. A test suite shows what the code is supposed to do and how its authors checked it, and labs use that to measure whether a model can make a change without breaking anything. A repo with tests and a long history of changes to them is among the most useful kinds of code a lab can license.

What labs value
  • Real git history: commits, fixes, reverts and refactors
  • Tests, and the history of how they changed
  • Production patterns: config, migrations, error handling
  • Code written by working developers under real deadlines
  • Less common languages, frameworks and domains
What labs ignore
  • Revenue and whether the product succeeded
  • User numbers, downloads and reviews
  • Polish, documentation and a tidy file tree
  • Whether the code still builds or runs
§ 03Rates

How much do AI labs pay for code?

Value per license is source tokens at $100 per million plus history tokens at $40 per million. A token is a short chunk of text, roughly three or four characters of code. History usually holds far more tokens than source, so it carries most of the value: across the program, 79% of licensed tokens are history.

The specimen lot above is a shelved invoicing platform with five years of commits. Its per-license value works out at about the same as one typical repo, which earns about $1,000 to $1,500 per license. Rates can change on 30 days’ notice and never retroactively. For the depth table and an estimator, read how much is my code worth.

What does code as training data mean?

A lab trains a coding model by showing it large amounts of code and asking it to predict what comes next, then tests it on tasks it has not seen. Licensed code is used in both stages. In training, the model learns patterns from the source and from the sequence of commits. In evaluation, real repos become tasks: fix this bug, add this feature, pass these tests. Your code is not copied into anyone’s product, published or attributed. It becomes one small part of what a model learns from.

Rate A · Source code

$100/M

per million tokens

Rate B · Git history

$40/M

per million tokens

Value per license = source tokens × $100/M + history tokens × $40/M

Rates can change on 30 days' notice, never retroactively · Paid within 15 days of the buyer paying

Illustrative, conservative · Last verified 2026-10-10

Find out what your repos earn.

Get a valuation

Free to join. No public listing. A real estimate in minutes once Git is connected.

§ 04Non-exclusive terms

Do I keep my code if I license it to AI labs?

Yes. A license gives a lab the right to use a copy of your code for training and evaluation, and ownership stays with you. You keep ownership and full internal and commercial use, and because the license is non-exclusive, the same repo can be licensed to more than one buyer. Each license that closes pays you. For a plain guide to how code licenses work, see code licensing explained.

Ownership
Stays with you
Your use
Full internal and commercial use
Exclusivity
Non-exclusive
Repeat licenses
The same repo can be licensed again
Upfront cost
None. No fee to join or from your share
Commitment
None. Withdraw a codebase at any time
Access
Read-only, selected repos only
Rate changes
30 days' notice, never retroactive
Payout
Within 15 days of the buyer paying
Attribution
None. Your code is not published
§ 05Privacy

How is my code scrubbed before a buyer sees it?

You do not need to clean anything up. The scrubbing happens on a review copy, so your repository is never touched. Only the repos you select are copied, and only the copy is graded and shown to buyers.

Secrets are the main worry for most owners, and with good reason: almost every real repo has a key or a password committed somewhere in its history. That is expected, and it is handled for you on the copy.

  1. Copy

    A review copy is made

    The repos you select are copied with their history through read-only access. Your repository stays exactly as it is.

    Your repo Untouched
  2. Strip

    Secrets and personal data come out

    Keys, tokens, credentials and personal data are removed from the copy, in the code and in every commit of the history.

    Scope Code and history
  3. Verify

    Checked, graded, then batched

    The scrubbed copy is verified before anyone sees it, graded on quality, and taken to buyers in batches. There is no public listing.

    Listing None
§ 06The IP question

“But this is proprietary code.”

And it is yours, which is exactly what makes it licensable. You decide what is shared: only the repos you choose, only code you hold the rights to. Secrets, customer data and third-party code stay out. Within the repos you submit, secrets and personal data are stripped from the review copy before anything reaches a buyer.

  1. Fact 01You pick what is shared.
  2. Fact 02You keep full ownership.
  3. Fact 03Secrets are stripped for you.
§ 07Proof

How much have code owners earned?

Across the programLast 60 days

$6M earned

Owners in the licensing program earned $6M in the last 60 days, across 11,069 licensed repos.

Earned
$6,000,000
Repos
11,069 licensed
Tokens
57.1B
Source 11.8B · 20.7%History 45.31B · 79.3%
One companyLast 60 days

$300K earned

One company licensed 326 repos through the program and earned $300,000 in the same 60 days. Most of its value came from history.

Earned
$300,000
Repos
326 licensed
Tokens
2.2B
Source 300.9M · 13.7%History 1.9B · 86.3%
Last verified 2026-10-10

Published program figures, shown as illustrative, conservative. What your repos earn depends on analysis of the code and on buyer demand.

§ 08Questions

What else do owners ask?

Q.01Do I keep ownership of my code?

Yes. You grant a non-exclusive license and keep ownership. You can keep using, changing and shipping it.

Q.03Is the license exclusive?

No. The same repo can be licensed more than once, and you are paid each time. How often depends on demand.

Q.05What contributes to the value?

The token count of your source and of your git history, how deep and real that history is, tests, and buyer demand. History carries most of the value.

Q.12What if the code uses open source libraries?

That is fine. Third-party code is excluded from what is licensed. Your own code and history are what count.

Q.15What does "secrets stripped" mean?

Keys, tokens, credentials and personal data are removed from the review copy of both code and history and verified before a buyer sees anything. Your repository is untouched.

§ 10  ClosingCatalogue No. 001Licensing open

What is your code worth?

Request access. Connect Git. See a real per-repo estimate in minutes, then decide.

Get a valuation

Free to join. Nothing upfront. You can withdraw a codebase at any time.

Get a valuation