Skip to content
Source code

Sell source code to AI companies: rates and rules

Private repos with full git history can be licensed to AI companies. See the per-token rates, what rules a repo out and how a sale runs to payment.

Published October 19, 2026. Last checked November 5, 2026

An IBM 705 vacuum-tube computer

You sell source code to AI companies by licensing a copy, so you keep the code and can keep shipping it. Buyers pay for private repositories and their git history. Pangea publishes per-token rates: $100 per million tokens of source code and $40 per million tokens of git history. Labs pay because, in Pangea’s words, “authentic production code is the one input labs can’t generate synthetically”. Most of what they pay for is the history: Pangea says “Git history carries most of the value”.

Pangea pays per token, for source and history separately

$100 per million tokens of source code
$40 per million tokens of git history

Pangea's indicative rates, from its code licensing page, checked November 3, 2026.

The rates can change on 30 days’ notice, never retroactively. Pangea’s own illustration is roughly $1,000 to $1,500 per repository at typical depth, which it labels “not a quote”. The worth calculator applies these rates to your repositories.

Pangea’s license is non-exclusive, so the same codebase can be licensed to several labs. An exclusive license or a full acquisition needs a separate written agreement on pricing.

Git history carries most of the value, so don’t squash it

Across Pangea’s network, 45.31 billion of the tokens are git history and 11.8 billion are source, so history is 79% of the total (Pangea’s page, checked November 3, 2026). A repository with five years of commits, branches and merges carries far more licensable tokens than the same code squashed into one commit. Rewriting, squashing or pruning history before you submit removes the part with its own price. The worth calculator explains how source and history are each counted.

Size, history and the grade set the price

Because the rate is per token, more hand-written code and a longer history mean a higher figure. Before anything is licensed, an AI lab reviews a copy of each repository against a fixed rubric, and Pangea says final value depends on that analysis and on buyer demand. Pangea excludes generated files, vendored code, binaries, data dumps and third-party code from the valuation, so a repository that is mostly a framework scaffold and a vendor folder has little left. You don’t need to remove those files first: Pangea asks for repositories as they are and leaves them out of the count.

Buyers won’t take code that was public, AI-written, copied or client-owned

Pangea’s page and its November 2026 guide list what not to submit:

  • Previously public code. A repository that was public and later made private is out. So is one an old Internet Archive capture shows, or one published as an npm or PyPI package.
  • AI-written code. The labs stopped accepting it in November 2026. Code from 2025 on is marked a low likelihood until you explain how it was built, so it isn’t an automatic no.
  • Forks and copies. The upstream code belongs to someone else. Renamed versions of another project, the same code submitted twice and a public template with little new code on top count as copies. A starter is fine when most of the code and commits are yours.
  • Client work. Agencies and consultancies can’t license code they wrote for clients without the client’s written OK.
  • WordPress sites, themes and plugins.
  • Nothing to license. Datasets, data dumps, generated output, or repositories that are mostly vendored libraries and build files.
  • Confidential data or conflicting third-party rights. For example, a former co-founder with no IP assignment, a contractor who kept copyright, or an acquirer who bought the IP.

What the labs want instead: real products such as SaaS platforms, backends, internal tools and full applications, with years of commits from several developers, and the pull requests, code review, issues and tests kept on the host.

Pangea scrubs secrets, credentials and personal data from its copy before a buyer sees the code, which handles a stray credential in the history. Customer data should stay out, so tell Pangea about anything sensitive you know is there. Scrubbing doesn’t fix ownership: Pangea’s agreement makes you responsible for owning what you submit, with no cap, so if ownership is unclear, ask a lawyer before you submit.

Dataconto

See if AI labs would license your code

Answer seven questions and see who would pay for it. It's free, and we never email or call you first.

Matching your answers

A company shows up here once your answers meet everything it asks for.

Your answers stay anonymous unless you ask for an introduction.

How a Pangea sale runs, from estimate to payment

  1. Request access. You give your details and connect Git. Pangea returns an estimate.
  2. Sign and connect. You review the agreement, sign, and grant read-only access to GitHub, GitLab or Bitbucket. You choose the repositories.
  3. Grading. Pangea scrubs and grades a separate copy, in a few hours to four weeks.
  4. Licensing. Accepted repositories go to labs as soon as they pass their checks. Licensing typically takes 2 to 16 weeks and is not guaranteed.
  5. Payment. Within 15 days of the buyer’s payment, once your tax and payout details are complete.

You can withdraw a repository before it goes to labs. After that it stays in the active process, and you can remove it from future opportunities with 30 days’ notice.

Production code can also go to Patronus AI

Patronus AI licenses private software used in production, with its development history, for its own AI research. It publishes no rates. Its online estimate gives a range for a repository with 10,000 lines, 1,000 commits, two years of history and five contributors (checked November 3, 2026). Code that was ever public doesn’t qualify.

  1. Tell Patronus what you have. On GitHub, you can connect read-only. Patronus measures the repositories you pick, doesn’t run your code and deletes its copy afterwards. You can also type in what you know.
  2. Sample and offer. If it fits, Patronus reviews a sample under NDA within 5 business days, then makes a written offer.
  3. Full review. If you accept, it has up to 30 days to check the full code.
  4. Payment. Patronus pays you directly once it accepts the code. The license is non-exclusive.

Get a range from Patronus. If the deal doesn’t go ahead, Patronus deletes what you shared and confirms it in writing.

Software companies with 10 or more engineers can list with Mercor Data

Mercor Data publishes a listing for software companies of 15 to 500 people, based anywhere: B2B SaaS, fintech, marketplaces, developer tools, healthtech and internal platform teams at non-software companies. It wants private repositories that have never been public, mirrored or open-sourced, 3 or more years of commit history from at least 10 engineers, 50,000 or more lines of code the company owns outright, written by people, with tests that run. Live products, retired products and codebases from acquisitions all qualify. The license covers the git history with its branches and diffs, pull requests and code reviews, test suites and CI configuration, and linked tickets and engineering docs where they exist.

Not a fit: forks or copies of open-source projects, student, hackathon or side projects, code mostly written by AI tools, client work an agency doesn’t own, and repositories with a single author. That last rule is the difference from Pangea and Patronus, which take a personal repository. Mercor’s range for a software company is $50K to $500K, read November 5, 2026, with more for large codebases or exclusive terms. Thousands of pull requests with review discussion, tickets, design docs and postmortems from the same team, history that mostly predates 2025, and code in C, C++, Rust, Swift, Kotlin, Ruby, COBOL or .NET add to the amount. We refer companies to Mercor Data by hand, with your OK, from the fit check.

Licensing the code is separate from selling the company

When a company is sold, the code usually goes with it. If you license the code first, tell the acquirer and have a lawyer check how the sale contract treats the license. Once the code belongs to someone else, you can’t license it. For a SaaS you plan to list for sale, see selling the code separately from the business.

A company that is closing has a second asset besides the code: Slack, tickets, docs and email, which buyers of company records license separately.

Keep the unsquashed history, proof of privacy and the IP paperwork

  • The repository with its full git history, unsquashed and unpruned.
  • Proof it was never public: your GitHub, GitLab or Bitbucket settings history, or your own records.
  • IP assignments from co-founders and contractors, and the contract if an acquirer or client was involved.
  • Read-only access ready to grant, from an account the owner controls.

Buyers in this guide

Sources

  • Pangea, code licensing for companies, checked November 5, 2026
  • Pangea, guide "What qualifies for code licensing" (November 2026, by email), checked November 4, 2026
  • Patronus AI, Data partnerships, checked November 5, 2026
  • Mercor Data, Software Company listing, checked November 5, 2026

More guides