license-your-private-code

πŸ’° License Your Private Code to AI Labs β€” Keep 100% Ownership

Have old private repositories, internal tools or unreleased side projects collecting dust? AI labs pay to license real-world code for model training. You keep ownership, and the license is non-exclusive, so the same codebase can be licensed and paid for more than once.

How it works

  1. Connect your Git account and get a free per-repo estimate.
  2. Approve which repositories you want to offer.
  3. Secrets and personal data are stripped from the review copy before anything is shared.
  4. You get paid when a buyer licenses your code (payout within ~15 days of the buyer’s payment).

Indicative rates (from the program page, not guaranteed)

| What | Rate | |β€”|β€”| | Source code | ~$100 per million tokens | | Git history | ~$40 per million tokens | | Typical illustrative range | ~$1,000–$1,500 per repo (not a quote) |

Rates can change with 30 days’ notice. Timelines are typically 2–16 weeks and depend on buyer demand.

βœ… What qualifies

❌ What does not qualify

You are responsible for the ownership warranty. Read the full terms before submitting.

πŸ‘₯ Who this is for

❓ FAQ

Do I lose ownership? No. Licenses are non-exclusive; you keep using, modifying and shipping your code.

Can the same repo be licensed more than once? Yes, and you are paid each time.

When am I paid? Only after a buyer licenses the code; typically 2–16 weeks.

What about secrets/PII? They are stripped from the review copy before anything is shared.

Is income guaranteed? No. Rates are indicative and depend on buyer demand.

More questions: Discussions FAQ

Get started

Disclosure: these are referral links. I may earn a commission if you license code through them, at no cost to you.


⭐ Star this repo if it was useful, and share it with a developer who has old code sitting idle.

Also available as

πŸ“„ Google Doc version of this guide Β· 🌐 Website Β· 🏒 Guide for agencies (gist)