Catalogue No. 001By situationVerified 2026-10-10Licensing open

Can I sell a GitHub repository?

Sell a GitHub repository you own by licensing it to AI labs. Connect it read-only, keep the repo and get paid each time it is licensed.

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

Lot 011Author ownedSpecimen

Browser extension, shelved 2024

6,050 lines. A tab manager with 20,000 installs, shelved when its author changed jobs. Private repo, one author.

Languages
TypeScript
Lines of code
6,050
Commits
712
Source tokens
0.1M
History tokens
10.0M
Last commit
Jan 2024
Source 0.1M · 1.0%History 10.0M · 99.0%
Commits per quarterActivity stopped Q1 2024
Per license, USD0.1M × $100 + 10.0M × $40≈$410recurring
Illustrative lotNot a live listing
Quick answer

Yes, you can license a private GitHub repository you own to AI labs by connecting it read-only. You sell a license and keep the repo, so it can be paid for again each time it is licensed, and a typical repo earns about $1,000 to $1,500 per license.

Applies to code you own Currency USD Verified 2026-10-10
§ 01Who this is for

Can I license a GitHub repository?

Yes. If you own the code in a repository, you can license it, and GitHub is the easiest place for it to be. You connect your account with read-only access, pick the repos you want to include, and a real per-repo estimate appears within minutes. GitLab and Bitbucket work the same way.

Nothing about the repository changes. It stays in your account, under your name, with your history. A scrubbed review copy is made for grading, and that copy is what buyers see. You keep pushing to the repo, using it and shipping it as before.

Private repos are what labs want most. Public code is already easy for anyone to find, so a private repo with a long, real history is far more useful. Public repos you wrote yourself can still be included. Forks are a different matter: only the commits you wrote are yours, and repos that are mostly someone else’s work add little.

What happens to my GitHub repo when it is licensed?

Nothing you would notice. Read-only access lets the program copy the repos you select with their history. It cannot push, delete, change settings or see repos you did not pick. You can revoke the access from your GitHub settings whenever you like. The copy is scrubbed of secrets and personal data, graded and taken to buyers in batches. Your repo keeps its name, visibility, stars and issues, and nobody outside sees it.

GitHub organizations work the same way as personal accounts. If the repos belong to a company organization, someone with authority signs for the company and an owner grants the read-only access. You can include some repos from an organization and leave others out.

Usually qualifies
  • Private repos you or your company own
  • Personal projects with years of commits
  • Organization repos, if the organization signs
  • Archived repos you stopped working on
  • Repos on GitLab or Bitbucket as well as GitHub
Stays out
  • Repos you contribute to but do not own
  • Forks where most of the code is someone else's
  • Repos holding customer data or client code
  • Third-party code, which is excluded from what is licensed
§ 02What it is worth

How much is a GitHub repo worth?

Stars and followers do not set the price. Tokens do. Value per license is source tokens at $100 per million plus history tokens at $40 per million, and history usually carries most of the value. A repo with thousands of commits is worth more than a larger repo with a handful of squashed ones.

A typical repo earns about $1,000 to $1,500 per license. A small repo with a short history earns about $400 to $700, and a long-lived repo with tests about $2,500 to $4,000. Licenses are non-exclusive, so the same repo can be licensed again and you are paid each time. The specimen lot above, a shelved browser extension with one author, shows the working.

Do not squash or rewrite history before you connect. The real commit history is part of what you are paid for. Secrets that were committed years ago are found and stripped from the review copy for you. For the full method, read how much is my code worth. For why labs want private repos, read sell code for AI training.

Per-repo ballpark by depth, per license, USD
DepthLooks likePer repo, per licenseLog scale, $100 to $10k
LightShort history, small repo$400 to $700
TypicalA real product, a few years of commits$1,000 to $1,500
DeepLong-lived, deep history, tests$2,500 to $4,000

Illustrative, conservative · What you take home, per license · Verified 2026-10-10

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.

§ 03The 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.
§ 04What to do next

What do I do next?

No clean-up needed. Submit the repos as they are. Secrets and personal data are stripped from the review copy for you.

  1. Step one

    Request access

    Say who you are. You get set up and sent everything you need. Once you connect Git, you see a real per-repo estimate.

    Time A few minutes
  2. Step two

    Sign and connect

    Read the agreement and sign once. Give read-only access to GitHub, GitLab or Bitbucket and pick only the repos you want to license. Submit them as they are.

    Access Read-only
  3. Step three

    Get paid, repeatedly

    Your code is scrubbed and graded on the review copy, then taken to buyers in batches. Each time a license closes and the buyer pays, you are paid within 15 days.

    Payout Within 15 days
§ 05Questions

What else do owners ask?

Q.02Can I continue using the code?

Yes, internally and in your own products. The license does not change that.

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

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

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.

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