
How much is your code worth to AI labs?
Pangea sells code licenses to AI labs. Connect your code and see what its source would earn at those rates, before git history. It all runs in your browser, and we never see your code.
Get a number for your private code. Connect GitHub, GitLab or Bitbucket, pick a folder, or type a line count.
Connect your code
Connecting reads repository names, sizes and languages. It doesn't read your code.
GitHub asks you which repositories to share.
Count every file with a GitHub token
Connecting reads the sizes GitHub reports. A token that can read files lets this page count each file the way Pangea does.
- 01Create a fine-grained token on GitHub's token page. Under Repository access, choose the repositories to price.
- 02Under Repository permissions, set Metadata to Read-only and Contents to Read-only.
- 03Paste the token below. It's gone when you close this tab.
Pick a local folder
Pick a repository's top folder, or a folder that holds several repositories.
This browser lists every file before counting, so a folder with a large node_modules takes a moment.
Rough estimate from a line count
Assumes about 10 tokens a line, our own rule of thumb. Source only.
$0.00
| Repository | Status | Commits | Source tokens | Source value |
|---|
- Git history. Pangea pays for it on top, and says it carries most of the value. Count it on your machine.
- The grade. A lab reviews a copy of each repository against a fixed rubric, and only accepted ones are licensed.
- Whether a repository was ever public. The host doesn't report it, and Pangea doesn't take code that was, or forks.
It's an estimate, not a payout. What you're paid depends on the tokens that qualify, the deal terms and the buyer paying.
Get Pangea's quote, history included
Pangea gives a figure for each repository within minutes of you connecting Git there.
- 01Fill in Pangea's short form.
- 02Connect GitHub, GitLab or Bitbucket and pick your repositories.
- 03Sign the license agreement and add your payout details.
- 04A lab grades each repository. Accepted ones are licensed, and you keep the code.
Did the code run in production, with five or more contributors? Patronus AI licenses that too, and gives a range on its site.
Get a range from PatronusWe may earn a fee if you sign up. How we get paid. Rates checked November 20, 2026.
How source and git history are counted
Pangea licenses two things from a repository: the code as it stands today (the source) and every earlier version of it (the git history). Pangea says history carries most of the value, and 79% of the tokens on its network are history. The calculator above counts source only, so its figure leaves the larger part out.
pre.dev publishes a script that counts both. It reads every version of every file that a branch or tag still reaches, and counts each version in full, the same way it counts a file today. A file edited 40 times leaves 40 versions behind, so a repository worked on for years can hold more history tokens than source tokens.
| Counted | Source | Git history |
|---|---|---|
| What counts | Each code file in the latest commit | Each earlier version of each code file, on every branch and tag |
| Rate | $100 per million tokens | $40 per million tokens |
| Counted once | Each file | Each distinct version. A version that matches today's file counts in source only |
| Docs, config and data | Up to 10 times the code beside them | Up to 10 times the code in history, counted apart from source |
| Skipped | Dependencies, build output, minified and bundled files | The same, plus commit messages, which aren't counted |
| Limit | None | 100 MB per file path across its versions, about 26.2 million tokens |
| Counted on this page | Yes | No. Run the script below |
From pre.dev's script, read November 20, 2026. Pangea's code licensing page, checked the same day, publishes the two rates and the 79% history share, and puts a typical repository at $1,000 to $1,500. Not a quote.
One edited file can earn more from history
A 20 KB TypeScript file is about 5,000 tokens today, or $0.50 at the source rate. If it went through 40 earlier versions of about the same size, its history is about 200,000 tokens, or $8.00 at the history rate.
Squashing a repository removes its history
Squashing, rewriting history or deleting branches drops the old versions, and their tokens with them. Price the repository as it is and submit it the same way. Pangea strips secrets and personal data before a lab sees the code.
A browser can't count history
Reading every old version over the GitHub API would take thousands of calls per repository. pre.dev's script reads them from your own clone with git and prints source and history side by side. It makes no network calls.
curl -fsSLO https://api.pre.dev/api/code-licensing/estimate.mjs
node estimate.mjs /path/to/repo Needs git and Node 18 or newer. Run it on a full clone, because a shallow one leaves the old versions out. Pass several paths, or a folder of repositories, to get one row each and a total.
Which repositories Pangea takes
From Pangea's code licensing page, checked October 20, 2026.
Private and never public
Code that was ever public is out, even if it's private now.
Yours to license
You own the code or hold the right to license it. Work done for a client is out.
Original work
Forks, copies and thin layers on a template are out. Generated files, vendored code and third-party code don't count toward the value.
Written by people
AI-written code is out. Code from 2025 on needs a note on how it was built.
Pangea grades each repository before a lab licenses it
A lab reviews a copy of each repository against a fixed rubric, and only accepted ones are offered for licensing. pre.dev, which runs Pangea's licensing, scores architecture, tests, documentation and history. You don't need to add anything first: for a lower-scoring repository, Pangea may test additions such as documentation, tests or CI on its own copy, and yours stays untouched.
The standard license is non-exclusive, so you keep using the code and the same repository can be licensed more than once. An exclusive license or a full sale needs a separate written agreement on price.
We may earn a fee if you sign up. How we get paid.
Source value of 1,000 to 500,000 lines
| Lines | Source tokens | At $100 per 1M |
|---|---|---|
| 1,000 | 10,000 | $1.00 |
| 5,000 | 50,000 | $5.00 |
| 10,000 | 100,000 | $10.00 |
| 50,000 | 500,000 | $50.00 |
| 100,000 | 1,000,000 | $100 |
| 500,000 | 5,000,000 | $500 |
Assumes about 10 tokens a line, which is our own rule of thumb; no buyer publishes one. Source only, at Pangea's rate checked November 20, 2026.
Patronus AI also licenses production code
Patronus AI licenses private software that runs or ran in production, with its development history. It weighs the code, its history and its tests, then makes a written offer after a sample review.
Its estimate gives a range from 10,000 lines, 1,000 commits, two years of history and five contributors. Code that was ever public doesn't qualify.
From Patronus's data page and estimator, checked November 3, 2026. What Patronus publishes.
Common questions
Does Dataconto see my code?
No. The count runs in your browser. Connecting lets your browser read repository names, sizes and languages straight from the host. This page forgets your access when you close the tab. To remove it completely, remove the app in your GitHub, GitLab or Bitbucket settings.
What can't this figure see?
Git history, which Pangea pays for on top and says carries most of the value. The grade, which Pangea sets after a lab reviews a copy. Whether a private repository was ever public, which the host doesn't report. Pangea's own estimate, after you connect Git there, counts history too.
How is the value worked out?
Tokens are bytes divided by four. Source code counts in full at $100 per million tokens. Docs, config and data files (.json, .md, .yaml and the like) count up to ten times the code beside them. Git history is $40 per million tokens and is counted by the script above.
Are commit messages part of git history?
Not for pricing. pre.dev's script counts the files in each old version and leaves commit messages, authors and dates out.
Do branches other than main count?
Yes. The script reads every branch and tag the repository holds, including the remote branches a normal clone brings with it. Versions that lived only on a deleted branch don't count.
Why does the script show almost no history?
Usually the copy is shallow (cloned with --depth) or the code arrived in one commit, for example after a move from another host without its history. Run git fetch --unshallow, or point the script at the original repository.
What does a GitHub token let this page read?
The token, under "Count every file with a GitHub token", gives the exact count. It reads the list of repositories you own, and the path and size of each file in them. File contents are read only for files of 100 KB or more, to check whether they are minified. The token stays in this tab and is not stored.
Will Pangea pay exactly this figure?
Not necessarily. Pangea calls its rates indicative, so this figure is an estimate. You're paid within 15 days of a lab paying for a license. What Pangea publishes has the details.
Can I add the tickets, docs and chat behind my code?
Yes, on pre.dev, which runs Pangea's licensing. Since November 2026 you can upload exports from tickets (Jira, Linear, Asana, Trello and others), docs (Notion, Confluence, Google Drive, Figma), chat and email (Slack, Discord, Teams, WhatsApp, Telegram, mbox), support desks, CRMs, and ChatGPT or Claude chats. Names, emails and keys are scrubbed, files are deleted once read, and you review each link to a repository. It's experimental, so it pays nothing yet and doesn't change what your repositories are worth.