Sell your code to AI labs

Code you wrote years ago still pays.

AI labs buy private code to train their models. Pangea pays about $100 for every 100,000 lines. Drop a project below to see what yours is worth.

Want a number for your private code first? Connect GitHub, GitLab or Bitbucket, or pick a folder.

or check a folder

Drop a project folder or a .zip here

Drop your whole code folder to check every repo at once.Phones can't open folders. Use a .zip or a link.

or paste a link

Nothing gets uploaded. It all runs in your browser.

Your code is worth about $0 Drop a project to see your number.
Sell my code on Pangea

Pangea checks your code before it pays. You can sell the same code to more than one buyer.

What you can sell

  • Private repos that were never public
  • Code you own (not your employer's)
  • Client work with written permission
  • Your own work (no forks or templates)
  • Code people wrote, not AI tools

Older repos earn more

Pangea also pays $40 per 1M tokens of commit history. Years of commits can earn more than the code. Pangea counts it when you sign up.

Prices checked on Oct 19.

Another buyer: Patronus AI

Patronus AI licenses private code that runs in production, with its commit history. Patronus checks a sample under NDA and pays you once it accepts. Patronus turns down code that was ever public or mostly written by AI. You can sell the same code on Pangea too.

Offer my code to Patronus AI ↗

What your code is worth by size

A quick guide by project size.

Lines of codeTokensValue
10,000100,000$10
100,0001,000,000$100
500,0005,000,000$500
2,000,00020,000,000$2,000

How to sell your code to AI labs

A sale takes 4 steps with Pangea or Patronus AI.

  1. Check what it's worth

    Drop a folder or a .zip at the top of this page. The number uses Pangea's rate of $100 per 1M tokens of code.

  2. Sign up with a buyer

    Pangea takes anything from one solo repo to an agency's portfolio. Patronus AI wants code that runs in production.

  3. Let the buyer check it

    Pangea scans your code before it pays. Patronus AI reviews a sample under NDA.

  4. Get paid more than once

    You keep the code. Each lab that licenses it through Pangea pays you again.

What counts as private code

Labs already train on public GitHub. They pay for code they can't read anywhere else.

A repo that was ever public doesn't count, even if only an old Internet Archive copy shows it. Forks, templates and packages on npm or PyPI don't count either, and neither do WordPress sites, themes or plugins.

Labs want code people wrote

Labs no longer take code written by AI tools. Pangea and Patronus AI both turn it down.

Code from before 2025 fits best. Pangea marks newer code as unlikely to sell until you explain how you built it. That isn't a no: your commit history and old tickets help show a person wrote it.

Make sure the code is yours

Code you wrote at a job usually belongs to your employer. Client work needs the client's permission in writing. If your company owns the code, the company signs up as the seller.

How Pangea sets the price

Pangea pays $100 per 1M tokens of code. That's about 100,000 lines. Commit history pays $40 per 1M tokens on top.

Docs and config count up to 10 times the size of your code. Pangea skips minified files.

How Patronus AI sets the price

Patronus AI publishes no rate. It quotes a price after it reviews your sample. It pays you directly once it accepts the code.

Questions

Is this a job?

No. You license your code and get paid each time a lab licenses it. Want hourly work? The board has 5,794 open roles.

My repo is private on GitHub. How do I check it?

Connect GitHub at the top and pick the repo. Or click Code then Download ZIP on GitHub and drop the .zip here.

Why can't I sell a public repo?

Labs can already read public code. They only pay for code that was never public.

Do I need to log in?

No. A folder or a .zip is read in your browser. Nothing gets uploaded. Connecting GitHub, GitLab or Bitbucket is up to you.

Does my code leave my computer?

No. Connecting only lets your browser read repo names, sizes and languages. This page forgets your access when you close the tab. To remove it completely, remove the app in your GitHub, GitLab or Bitbucket settings. We never see your code.

Can I sell code I wrote with AI tools?

Not the parts AI wrote. Labs no longer take AI-written code. If your code is from 2025 or later, tell Pangea how you built it when you sign up.

Is this what I'll get paid?

It's the price before Pangea checks your repos. Commit history can add more. A repo with little history may get less.