Industries

Can you license a COBOL, Fortran or other legacy codebase to AI? What buyers require (2026)

Updated 4 min read

Yes. AI buyers license long-lived private systems written in COBOL, Fortran, Visual Basic, C#, Common Lisp, Zig, C89/90 and Perl, from banks, insurers, government contractors, utilities, manufacturers, logistics and telecom companies. Mercor's legacy codebase listing says up to $500,000, priced per qualifying repository, for companies of 15 to 5,000 employees (Mercor Data, checked December 1, 2026). The bar is specific: real history, real tests and a Linux build.

On this page
  1. Why do AI labs want old code?
  2. Which AI buyers want legacy codebases?
  3. What does a qualifying repository look like?
  4. What stays out?
  5. What have companies been paid for legacy code?
  6. How do I count what we have?
  7. Questions
  8. Sources

Why do AI labs want old code?

Models write modern languages well because the public web is full of them. Very little COBOL, Fortran or classic Visual Basic is public, yet these systems still run payroll, claims, billing and engineering calculations. Labs want models that can read, fix and migrate them, and that takes real production code with the history of how it changed. Mercor describes the target as "core banking and insurance systems, scientific and engineering software, manufacturing and logistics back-ends, and internal tools that have run for years" (Mercor Data, December 2026).

Data Licensors, the company that publishes this page, does not buy records itself: it gets owners written offers from several buyers, free for the owner. Our profile sits next to the others.

Which AI buyers want legacy codebases?

BuyerWhat its page saysTermsChecked
Mercor, legacy and specialist-language codebasesPrivate production systems in the eight languages above, 75,000+ lines, 3+ years of full historyUp to $500K, "Priced per qualifying repository"December 2026
Mercor, software companyPrivate code with history; lists "Banking, insurance, healthcare, trading or blockchain software" as a plus$50K to $500K, 15 to 500 employeesDecember 2026
Patronus AIAsks about legacy technology, giving the example "a system built over a decade ago"Non-exclusive; paid directly on acceptanceDecember 2026
Turing, Project LazarusPrepares and licenses a company's operating record, including codePaid on each sale; exclusive for the first 6 monthsNovember 2026

Turing listed legacy codebases at $10K to $100K+ when it launched Project Lazarus in March 2026 (Turing, March 2026); its pages showed no price for codebases when we checked on November 24, 2026. For licensing terms, see exclusive vs non-exclusive licenses.

What does a qualifying repository look like?

Mercor's requirements, word for word (Mercor Data, December 2026):

  • "A private production system in COBOL, Fortran, Visual Basic, C#, Common Lisp, Zig, C89/90 or Perl"
  • "75,000+ lines of code"
  • "15+ contributors, 2,000+ commits and 1,500+ pull requests"
  • "3+ years of full git history (no squashed or single-commit snapshots)"
  • "20%+ line test coverage, with at least 90% of tests passing"
  • "Builds on Linux and ships with complete dependencies"
  • "Mostly human-written and under 20% overlap with public code"

It adds value for "Linked tickets, design docs and code reviews" and "Several qualifying repositories in the same language." It rules out "Code migrated into git without its history," "Forks or copies of open-source projects," "Systems that only build on Windows or mainframe hardware" and "Code mostly written by AI tools."

Two of these catch many legacy shops. First, history: a system moved from an older version control tool into git as a single snapshot has lost the history buyers pay for, so check whether the old repository still exists and can be migrated with history. Second, the build: mainframe COBOL that only compiles on z/OS does not qualify on Mercor's listing, while code that also builds with a Linux COBOL compiler can.

What stays out?

This is general information, not legal advice.

Code you do not own. A bank running a vendor's core system usually holds a license, not the source. Customizations may belong to you or to the vendor depending on the contract. Consultancies that built a system for a client usually need the client's agreement.

Government contract code. Under the standard DoD clause, the government gets unlimited rights in software developed exclusively with government funds, and "All rights not granted to the Government are retained by the Contractor" (48 CFR 252.227-7014). That leaves room to license some contract code, but contract confidentiality terms and export controls still apply. Under the EAR, releasing controlled technology or source code to a foreign person inside the US counts as an export (15 CFR 734.13).

Customer data in the repository. Old systems often carry production extracts in test fixtures, sample files and scripts. These come out before any sample leaves the company, along with passwords, keys and connection strings. See how to scrub a codebase.

A practical sort:

  1. License: systems you built and own, with history, tests and a Linux build, cleaned of secrets and customer data.
  2. Ask first: code built for a client or under a government contract, and vendor customizations.
  3. Leave out: vendor source you only license, export-controlled code without clearance, and anything with customer data you cannot remove.

What have companies been paid for legacy code?

We found no published deal for a named or unnamed company's legacy codebase as of December 1, 2026. Published figures:

BuyerFigureKind of figureSource
Mercor, legacy and specialist-language codebasesUp to $500,000, priced per qualifying repositoryPublished rangeMercor Data, December 2026
Mercor, software company$50,000 to $500,000, 15 to 500 employeesPublished rangeMercor Data, December 2026
Turing, Project Lazarus (launch)$10K to $100K+ per legacy codebase; no longer publishedPast published rangeTuring, March 2026

These are not a price for your code. To see what buyers would pay, get written offers.

How do I count what we have?

Before any call, have for each candidate system:

  • Language, lines of code and whether it builds on Linux today.
  • Years of history in git, and whether older history survives in another tool.
  • Contributors, commits and pull requests, and test coverage.
  • Who owns it: built in-house, built by a vendor, built for a client or under a government contract.

Counts are enough to start. No code leaves the company to get offers. For modern code, see the codebase guide; for physical product designs, the hardware engineering guide.

Questions owners ask

Plain answers

Do AI companies buy legacy code?

Yes. Mercor runs a listing for long-lived private systems in COBOL, Fortran, Visual Basic, C#, Common Lisp, Zig, C89/90 and Perl, and Patronus lists older systems still used to run a business among its interests (checked December 1, 2026).

How much is a legacy codebase worth?

Mercor's legacy listing says up to $500,000, priced per qualifying repository, for companies of 15 to 5,000 employees (Mercor Data, checked December 1, 2026). Turing listed legacy codebases at $10K to $100K+ when it launched Project Lazarus in March 2026, but that figure is no longer on its pages.

Does mainframe COBOL qualify?

Not if it only builds on the mainframe. Mercor requires code that builds on Linux with complete dependencies and lists systems that only build on Windows or mainframe hardware as not a fit. COBOL that also builds with a Linux compiler can qualify.

Does a retired system count?

Yes. Mercor says live systems, retired systems and code from acquisitions all qualify, as long as the code has never been public and keeps its full history.

Can a government contractor license code it wrote under contract?

Sometimes. Under the standard DoD clause the contractor keeps the rights it did not grant the government, but the contract, any confidentiality terms and export controls decide what can be licensed. Check with counsel before including it.

Sources

Numbers in this guide are cited inline by publisher and date.

  1. Legacy & Specialist-Language Codebases (listing)Mercor Data · Published 20 Nov 2026 · Accessed 1 Dec 2026
  2. Software Company (listing)Mercor Data · Publish date not shown · Accessed 1 Dec 2026
  3. Data partnershipsPatronus AI · Publish date not shown · Accessed 1 Dec 2026
  4. Data partnersPatronus AI · Publish date not shown · Accessed 1 Dec 2026
  5. Project LazarusTuring · Publish date not shown · Accessed 24 Nov 2026
  6. AGI Advance: Weekly AI and AGI Insights (Mar 24, 2026)Turing · Published 25 Mar 2026 · Accessed 9 Nov 2026
  7. 48 CFR 252.227-7014, Rights in Other Than Commercial Computer Software and Other Than Commercial Computer Software DocumentationCornell Law School, Legal Information Institute · Publish date not shown · Accessed 1 Dec 2026
  8. 15 CFR 734.13, Export (EAR, including deemed exports)Cornell Law School, Legal Information Institute · Publish date not shown · Accessed 29 Oct 2026

Buyers in this guide

Each profile has prices, payment terms and sources. Every player is in the buyer index.

Some companies mentioned here may pay us a referral fee. Written by Data Licensors from public sources. Prices and terms are from the sources above, as of 1 Dec 2026. See every buyer in the buyer index.

Get offers for your records

About two minutes. No upload, no system access.