Have old private repositories, internal tools or unreleased side projects you own? AI labs license real-world code for model training. The license is non-exclusive, so you keep full ownership and the same code can be licensed more than once.
Indicative rates (not guaranteed): about $100 per million tokens of source code and about $40 per million tokens of Git history. Payout comes after a buyer licenses the code, usually within 2-16 weeks.
What does not qualify: code that was ever public, forks, client-owned code, or code with confidential data.
Agencies: https://pangea.ai/code-licensing/agency?id=1340
Companies and individuals: https://pangea.ai/code-licensing/companies?id=1340
Full guide: https://github.com/PedroGajic/license-your-private-code
Disclosure: these are referral links; I may earn a commission at no cost to you.