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

Where to sell source code

Where to sell source code today: AI labs license real code and git history. Sell a non-exclusive license, keep the code and get paid each time.

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

Route 01AI lab licensingOpen

License to AI labs

The one route paying for real source code at scale today. Non-exclusive, so the same repo can earn again.

Buyer
AI labs
Terms
Non-exclusive license
Upfront cost
$0
Access
Read-only
Payout
Within 15 days
Rates
$100/M source, $40/M history
Typical repo, per license, USD$1,000to$1,500
Illustrative, conservativeVerified 2026-10-10
Quick answer

Today the buyers paying for real source code at scale are AI labs, through licensing programs. You sell a non-exclusive license, keep the code and can be paid again when it is licensed again. Source pays $100 per million tokens, history $40.

Applies to code you own Currency USD Verified 2026-10-10
§ 01Who pays today

Where can I sell my source code?

The short answer is AI labs. The companies building coding models need large amounts of real source code to train and evaluate them, and they pay to license it. They buy through licensing programs that collect code from many owners, check it, and take it to labs in batches.

This is a different shape of deal from selling a product. A lab wants a copy of the code and the git history behind it, under a license that lets it train on that copy. Your app, users and brand stay with you, and nothing is handed over. You keep the code, keep using it and keep the right to license it again. Each license that closes pays you.

It is also the one route paying at scale for code that never succeeded commercially. Shelved products, dead startups, internal tools, abandoned side projects and legacy systems all qualify. The code does not need users, revenue or a working build. It needs to be real, and it needs to be yours.

What kind of code do AI labs license?

Private code with a real history. Labs already have the public code on the internet, so what they lack is the software that companies and developers kept to themselves. That covers products, internal tools, services, scripts, mobile apps, games and the long tail of systems that ran a business for years. Any mainstream language counts, and older or less common ones can be in short supply. What lowers the value is code that is mostly generated, copied from tutorials or squashed into a few commits, because it says little about how real software is built. Code you do not own cannot be licensed at all.

Earned, last 60 days
$6M
Repos licensed
11,069
Source code
$100/M
Git history
$40/M

Program figures · Illustrative, conservative · Verified 2026-10-10

See what your repos would earn.

Get a valuation

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

§ 02What to look for

What is the best website to sell source code?

The best place is the one with clear terms. Licensing code is new to most owners, so it pays to know what good terms look like before you sign anything. These are the terms this site checks for, and the terms of the program it works with.

Published rates
Per-token rates you can check before you join
Exclusivity
Non-exclusive, so the same repo can earn again
Ownership
You keep it, with full internal and commercial use
Access
Read-only, and only the repos you select
Upfront cost
None, and no fee taken from your share
Privacy
Secrets and personal data stripped before buyers see code
Commitment
None. You can withdraw a codebase
Listing
No public listing, ever

Be wary of anything that asks for a fee to list, for write access to your repos, or for exclusive rights. None of those are needed to license code for training.

How do I check a licensing program before I sign?

Read the agreement in full before you connect anything. Check that the license is non-exclusive and that you keep ownership. Check what happens if you withdraw a codebase, how rates can change and how quickly you are paid after a buyer pays. Ask which repos the access covers, and confirm it is read-only. A good program answers all of this in writing, before you sign.

§ 03What it pays

How much can I make selling code online?

Pay is set per token. Source code pays $100 per million tokens and git history pays $40 per million. Most repos hold far more history than source, so history usually carries most of the value. A typical repo earns about $1,000 to $1,500 per license, a light one about $400 to $700 and a deep one about $2,500 to $4,000.

Across the program, owners earned $6M in the last 60 days from 11,069 licensed repos. Rates can change on 30 days’ notice, never retroactively, and you are paid within 15 days each time a license closes and the buyer pays. For the full working and the depth table, read how much is my code worth.

Income depends on demand. Some repos are licensed several times and some once, and the program cannot promise how often. What it can show is the published rate for each token and a real per-repo estimate before you commit to anything.

There is no fee to join and nothing upfront. The program is paid from the buyer’s side, and no fee is taken from your share. If you connect your repos and the estimate is not worth it to you, you can withdraw and walk away.

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

§ 04Why labs pay

Why are AI labs buying source code?

Because real code is scarce. Labs can generate synthetic code, but it does not show how software is really built: the fixes, the rewrites, the tests added after an outage. Only real repos with real history do. Demand is rising as labs compete on coding models, and commercial success makes no difference to what a repo is worth to them. That is why code with no market of its own, from a failed product to an internal tool, now has buyers. For the full picture, read sell code for AI training, or see code licensing explained for how code licenses work in general.

  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.
§ 05The 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.
§ 07Questions

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.14Will my code be listed publicly?

No. There is no listing. Buyers see a scrubbed review copy.

§ 08  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