On this page
Key points
- Buyers pay most for code with its history: commits, pull requests, reviews, tickets and design documents1,9.
- Code your employees wrote is usually the company's; code from contractors is theirs unless they assigned it in writing13,14.
- Open source components can only be passed on under their own licence terms16,17,18.
- Customer data in your product is usually not yours to license, because you process it for your customers19.
- Revoke and rotate every secret before anything moves; deleting it from the latest commit is not enough20.
- Published code prices are modest: Turing's March 2026 terms offered up to USD 10,000 for a modern codebase2.
- The ONS counts 4,770 UK computer programming and consultancy firms with 20 to 249 staff22.
Why do AI buyers want code with its history?
Because AI developers are training models to do software work, and a finished repository does not show how it was built. The history does: why a change was made, what a reviewer objected to, and which ticket it fixed.
Turing says plainly that "code earns most with its history: commits, pull requests and reviews, tickets and docs", and that communication and tickets "often matter more" than code1. Ventra seeks "source code with its history, reviews and the decisions behind it"9. Labelbox Prism marks software and internet data as "urgent" and wants code edit traces with "diffs, test results, review comments"8. Mercor connects to GitHub for "repositories, commits, PRs, and issues"11.
SimpleClosure's chief executive puts it well: "A feature traced from a Notion spec through Figma designs and Jira tickets to the finished GitHub code tells a fuller story than the repository alone"4. The most valuable package links your repositories, issue tracker, pull request reviews, design documents and incident or support threads. More on demand across all record types is in what AI companies buy.
Do you own all of your code?
Probably not all of it. Code written by employees in the course of their work usually belongs to the company; code written by contractors, agencies and freelancers usually belongs to them unless they signed it over.
UK copyright law treats a computer program as a literary work15. The author is the first owner, except that the employer owns work an employee makes "in the course of his employment", "subject to any agreement to the contrary"13. An assignment "is not effective unless it is in writing signed by or on behalf of the assignor"14.
Check three groups before you license anything:
- Contractors, agencies and offshore teams. Find the signed assignment clause for each. If it is missing, ask for a confirmatory assignment.
- Founders' early code, written before the company existed or before their employment contracts began.
- Bespoke work for clients. Many development contracts assign the code to the client or restrict its use. Leave client repositories out unless the contract clearly lets you license them.
SimpleClosure warns sellers to check for "confidential or third-party material you may not have the right to transfer"4. A buyer will ask you to warrant ownership, so this work protects you as well as them.
How do open source licences and third-party code affect licensing?
You can only license what you own. Open source libraries and vendored third-party code belong to their authors and come with conditions, so most sellers should leave them out and license their own first-party code.
Common licences attach different conditions to passing code on:
| Licence | Condition when you pass the code on |
|---|---|
| MIT | "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software"17 |
| Apache 2.0 | Give recipients "a copy of this License" and keep notices, among other conditions18 |
| GPL version 3 | "You may not impose any further restrictions" on the rights the GPL grants16 |
The GPL defines "convey" as any propagation "that enables other parties to make or receive copies"16. Handing a buyer a copy of GPL code may therefore carry the GPL's conditions with it, which sits badly with an exclusive licence. Take legal advice if your repositories include GPL code.
In practice: run a dependency and licence scan, exclude vendored folders, list any third-party components and their licences in the data manifest, and limit your warranties in the licence to first-party code. Our licence terms guide covers warranties and exclusivity.
What about customer data in tickets, logs and databases?
Treat your product database and anything customers uploaded as off limits. For most software companies that data belongs to customers, and you may use it only on their instructions.
Under UK GDPR a processor "processes the personal data only on documented instructions from the controller", and a processor that decides the purposes of processing itself "shall be considered to be a controller" for it19. Licensing customers' data to an AI buyer would be exactly that, and would almost certainly breach your customer contracts too.
Customer data also leaks into engineering records:
- support tickets and bug reports with names, emails, screenshots and attachments;
- application logs with user IDs and IP addresses;
- test fixtures and seed files copied from production;
- pull request discussions that paste real records.
These need removing or masking, to the standard in our anonymisation guide. We prefer that done before anything leaves your systems: Scale AI says it anonymises "inside your environment, before any data is extracted"7, and SimpleClosure processes every dataset "for PII before it is licensed"5. Where a buyer removes personal data after transfer, we tell you in writing first and your own solicitor confirms the transfer route.
Which secrets and security checks come before any transfer?
Revoke or rotate every credential that has ever been committed, then scan the whole history. Deleting a secret from the latest version leaves it in every earlier commit.
SimpleClosure warns that "live credentials such as API keys and access tokens" can be "buried in code, tickets, and attachments"4. GitHub's secret scanning "scans your entire Git history on all branches"21, and GitHub's guidance says that for a leaked secret "as a first step you need to revoke and/or rotate that secret"20. Rewriting history is not enough on its own: old commits may remain "in any clones or forks"20.
Before any export:
- List every repository, tracker and wiki in scope.
- Revoke and rotate all secrets found anywhere in the history.
- Remove customer data, production logs and copied fixtures.
- Strip third-party code and record its licences.
- Remove security-sensitive material, such as open vulnerability tickets and penetration test reports.
- Share a small sample under a non-disclosure agreement before any full export. Turing, for example, asks sellers to run its evaluation script locally first1.
What has code sold for?
Less than headline ranges suggest. The clearest public figures for code alone run from about USD 1,000 per pull request to USD 100,000 or more for a legacy codebase2,6.
| Evidence | Figure | What kind of evidence |
|---|---|---|
| Turing, Project Lazarus launch, 24 March 2026 | Modern codebases USD 1,000 per pull request, up to USD 10,000 per codebase; legacy codebases typically USD 10,000 to 100,000 or more; USD 50 per bundled ticket or document2 | Buyer's published price list, since replaced by a revenue share1 |
| SimpleClosure AssetHub sale, 2026 | A founder netted "roughly $25,000" for a startup's code base, with about USD 15,000 expected for workspace data6 | Press report |
| Turing, as described by aitrainer.work | "A single payment, up to $1M" for a full operating record3 | Third-party reading; not on Turing's current page |
| micro1, all company records | USD 100,000 to 3 million or more, with software and engineering among its examples12 | Buyer's marketing range |
| Grepped marketplace | No figure; the seller is paid when a lab buys, and each listing shows "whether it has been sold before"10 | Marketplace terms |
Code sales are now common in startup closures: 47% of SimpleClosure's shutdown deals include code or data sales6. But the six and seven-figure ranges buyers advertise cover a whole company's linked records, not a repository alone. If you are winding down, see closing a company; for other sectors, see our sector guide, and for which buyers take UK companies, our buyer comparison.
Related sectors: licensing manufacturing data for AI training and licensing law firm data for AI training.
See what your code, tickets and engineering records could be worth with a free valuation. It is confidential, we reply within one working day, and sellers pay nothing: see how we are paid.
FAQ
Questions about selling code to AI
Can we sell our codebase to AI companies?
Yes, if you own it. You would normally license a copy rather than sell the code outright, and keep using it. Turing, Ventra, Labelbox Prism and Mercor take source code, and value it most with its commits, pull requests, reviews and tickets. Remove secrets, customer data and third-party code first, and have your own solicitor approve the licence.
Do we own code written by contractors?
Usually not, unless they signed a written assignment. Under UK copyright law the author owns a work first; the employer owns it only when an employee wrote it in the course of employment. An assignment must be in writing and signed by the person assigning. Check every contractor, agency and founder agreement, and get assignments signed before you license.
Does open source code affect licensing?
Yes. Open source components belong to their authors and are licensed to you on conditions, such as keeping the MIT notice, passing on the Apache licence or not adding restrictions to GPL code. You can only pass them on under those terms. The simplest course is to license only your own code and list third-party components in the data manifest.
What is code worth to AI buyers?
Less than headline ranges suggest. Turing's March 2026 terms offered USD 1,000 per pull request, up to USD 10,000 for a modern codebase, and typically USD 10,000 to 100,000 or more for legacy codebases2. One founder netted about USD 25,000 for a startup's code through SimpleClosure6. Six and seven-figure ranges cover whole-company records, not code alone, and nothing is guaranteed.
Sources
- 1Turing, Project Lazarus (page and FAQ)lazarus.turing.com · Read 12 Nov 2026
- 2Turing, AGI Advance: Weekly AI and AGI Insights, 24 Mar 2026 (introducing Project Lazarus, with prices)turing.com · Read 12 Nov 2026
- 3aitrainer.work, Enterprise Data Partnerships (third-party listing describing Turing)aitrainer.work · Read 12 Nov 2026
- 4SimpleClosure, Dori Yona, How Real Are Those Million-Dollar Data Offers?, 1 Oct 2026simpleclosure.com · Read 12 Nov 2026
- 5SimpleClosure, AssetHubsimpleclosure.com · Read 12 Nov 2026
- 6MIT Technology Review, Matthew King, AI labs are buying data from dead startups to train their models, 13 Oct 2026technologyreview.com · Read 12 Nov 2026
- 7Scale AI, Data Partnerships (industries, data sources and FAQ)scale.com · Read 12 Nov 2026
- 8Labelbox Prism, homepage (live demand and industries)prism.labelbox.com · Read 12 Nov 2026
- 9Ventra, Company data (proprietary data: codebases)joinventra.com · Read 12 Nov 2026
- 10Grepped, homepagegrepped.ai · Read 12 Nov 2026
- 11Mercor, Mercor Data (supported tools)mercor.com · Read 12 Nov 2026
- 12micro1, Monetize your company's operational data (payout tiers and examples)micro1.ai · Read 12 Nov 2026
- 13Copyright, Designs and Patents Act 1988, section 11 (first ownership of copyright)legislation.gov.uk · Read 12 Nov 2026
- 14Copyright, Designs and Patents Act 1988, section 90 (assignment and licences)legislation.gov.uk · Read 12 Nov 2026
- 15Copyright, Designs and Patents Act 1988, section 3 (literary works, including computer programs)legislation.gov.uk · Read 12 Nov 2026
- 16Free Software Foundation, GNU General Public License version 3gnu.org · Read 12 Nov 2026
- 17SPDX, MIT License (licence text)spdx.org · Read 12 Nov 2026
- 18Apache Software Foundation, Apache License, Version 2.0apache.org · Read 12 Nov 2026
- 19UK GDPR, Article 28 (processor)legislation.gov.uk · Read 12 Nov 2026
- 20GitHub Docs, Removing sensitive data from a repositorydocs.github.com · Read 12 Nov 2026
- 21GitHub Docs, About secret scanningdocs.github.com · Read 12 Nov 2026
- 22Office for National Statistics, UK business; activity, size and location 2026 workbook, Table 3 (published 24 Sep 2026)ons.gov.uk · Read 12 Nov 2026
Every source was read on the date shown. Buyers change their terms often; if you spot something out of date, email support@sleepingasset.com and we will correct it.