<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Predrag Gajic</title>
    <description>The latest articles on DEV Community by Predrag Gajic (@predraggajic).</description>
    <link>https://dev.to/predraggajic</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4259228%2F80cb501f-287c-4ce8-a0c2-b8dada10879c.jpg</url>
      <title>DEV Community: Predrag Gajic</title>
      <link>https://dev.to/predraggajic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/predraggajic"/>
    <language>en</language>
    <item>
      <title>Your old private repos can earn money from AI training (and you keep ownership)</title>
      <dc:creator>Predrag Gajic</dc:creator>
      <pubDate>Sun, 22 Nov 2026 19:27:04 +0000</pubDate>
      <link>https://dev.to/predraggajic/your-old-private-repos-can-earn-money-from-ai-training-and-you-keep-ownership-2m88</link>
      <guid>https://dev.to/predraggajic/your-old-private-repos-can-earn-money-from-ai-training-and-you-keep-ownership-2m88</guid>
      <description>&lt;p&gt;Most developers I talk to (I'm a tech recruiter, so that's a lot of developers) have the same thing on their disk: a handful of private repos that will never ship. An abandoned startup. An internal tool from a job that ended. A side project that hit 80% and stalled.&lt;/p&gt;

&lt;p&gt;That code still has value, just not where you'd expect it. AI labs need large amounts of real-world, non-public code to train and evaluate coding models, and public GitHub has been scraped to death. So there is now a market for &lt;strong&gt;licensing private code&lt;/strong&gt;, and you don't have to sell or give up your repo to take part.&lt;/p&gt;

&lt;p&gt;Here's what I've learned about how it works, what qualifies, and what to watch out for.&lt;/p&gt;

&lt;h2&gt;
  
  
  How code licensing for AI training works
&lt;/h2&gt;

&lt;p&gt;The model is simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You connect your Git account&lt;/strong&gt; and get a per-repo estimate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You choose which repos to offer.&lt;/strong&gt; Nothing is shared without your approval.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets and personal data are stripped&lt;/strong&gt; from the review copy before a buyer sees anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A buyer licenses the code&lt;/strong&gt;, and you get paid (typically within ~15 days of the buyer paying).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The important part: the license is &lt;strong&gt;non-exclusive&lt;/strong&gt;. You keep ownership, you can keep using the code, and the same repo can be licensed more than once.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it pays (indicative only)
&lt;/h2&gt;

&lt;p&gt;Pricing is usually by volume of tokens:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Indicative rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Source code&lt;/td&gt;
&lt;td&gt;~$100 per million tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Git history&lt;/td&gt;
&lt;td&gt;~$40 per million tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Illustrative range&lt;/td&gt;
&lt;td&gt;~$1,000–$1,500 per repo (not a quote)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These figures come from the program page and are not guaranteed. Rates can change, and deals take 2–16 weeks depending on buyer demand. Treat it as a bonus for code that's otherwise doing nothing, not as income you can plan around.&lt;/p&gt;

&lt;h2&gt;
  
  
  What qualifies and what doesn't
&lt;/h2&gt;

&lt;p&gt;✅ &lt;strong&gt;Usually qualifies&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Code &lt;strong&gt;you own&lt;/strong&gt; or have the right to license&lt;/li&gt;
&lt;li&gt;Private repos, internal tools you own, abandoned startups, side projects&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;❌ &lt;strong&gt;Doesn't qualify&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anything that was ever &lt;strong&gt;public&lt;/strong&gt;, and forks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client-owned&lt;/strong&gt; or employer-owned code (check your contracts!)&lt;/li&gt;
&lt;li&gt;Code containing confidential data or conflicting third-party rights&lt;/li&gt;
&lt;li&gt;Generated files, vendored dependencies, binaries and data dumps (they don't count toward value)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Before you submit: a short checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check ownership.&lt;/strong&gt; If you wrote it at a job or for a client, it's very likely not yours to license. You give an ownership warranty, so take it seriously.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check co-founders.&lt;/strong&gt; For a dead startup, make sure whoever owns the IP (often the company) agrees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan for secrets&lt;/strong&gt; anyway, even though the platform strips them. &lt;code&gt;gitleaks&lt;/code&gt; or &lt;code&gt;trufflehog&lt;/code&gt; take a minute.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the full terms&lt;/strong&gt;, especially on how the code may be used and on payout conditions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where to start
&lt;/h2&gt;

&lt;p&gt;I put together a free guide with FAQs on GitHub: &lt;a href="https://github.com/PedroGajic/license-your-private-code" rel="noopener noreferrer"&gt;license-your-private-code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want to try it, the program I refer developers to is Pangea:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👤 Individuals / companies: &lt;a href="https://pangea.ai/code-licensing/companies?id=1340" rel="noopener noreferrer"&gt;https://pangea.ai/code-licensing/companies?id=1340&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🏢 Agencies with lots of past project code they own: &lt;a href="https://pangea.ai/code-licensing/agency?id=1340" rel="noopener noreferrer"&gt;https://pangea.ai/code-licensing/agency?id=1340&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; those are my referral links. I may earn a commission if you license code through them, at no extra cost to you. The guide on GitHub is free and works without them.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Have you licensed code for AI training, or decided against it? I'd like to hear why in the comments, especially from anyone with concerns about how the code gets used.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>career</category>
      <category>github</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
