How to license your source code to AI labs from Europe
AI labs and the vendors that supply them license private, real-world codebases to train and evaluate coding models. A European company can take part without selling its code: it grants a non-exclusive license on a cleaned copy, keeps ownership, and is paid per license. The work is mostly preparation: proving you own the code, removing personal data and secrets, and describing the codebase well enough for a buyer to price it.
Who buys private source code, and why?
Buyers are looking for real, non-public material. In our experience of buyer requests, what they value most in code is private production software with its history: the repository at a given commit, the bug that was reported, the fix that shipped and the tests that prove it. That history can be turned into training tasks and evaluation sets for coding models.
The buyers reported in 2026 are foundation AI labs, vendors that build simulated workspaces and reinforcement-learning environments for those labs, and mature tech companies training their own models (MIT Technology Review, October 2026).
What exactly do you grant?
A non-exclusive license to use a copy of the code for model training and evaluation. Your company keeps ownership, keeps running its product, and can license the same code to other buyers, unless it agrees to exclusivity in return for a higher price. The license defines the use, the territory, the duration and what the buyer may not do, such as redistributing the code or using it to build a competing product.
This is different from selling the code or the company's intellectual property. See license or sell your source code.
What never leaves the company?
- Production databases and customer data
- Email, chat and internal documents, unless separately agreed and cleaned
- Secrets: keys, tokens, passwords, certificates
- Third-party code you do not own, including vendored libraries
Personal data in the commit history, such as author names and email addresses, is removed or pseudonymised before delivery. Pseudonymised data is still personal data under the GDPR, so it stays covered by the rules in the EU legal checklist.
How does the process run, step by step?
| 1. NDA | A mutual NDA is signed before any detail is exchanged. |
| 2. Datacard | A one-page description: product, sector, team size, languages, years of history, tests, tickets. |
| 3. Offline inventory | Your CTO runs an open-source script on a local copy. It counts files and lines per language, uploads nothing and runs nothing. |
| 4. Anonymous profile | A profile you approve is shown to selected buyers. Your name is not disclosed. |
| 5. Scoping | If a buyer is interested: scope of the lot, use (training, evaluation or both), price. |
| 6. Sample and delivery | A small cleaned sample, then the full delivery once the license is signed. |
No code leaves the company before step 6, and no price is announced before step 5.
What changes for a company based in the EU?
Four points need care: proving that the company owns the code (employees, founders, freelancers, agencies), handling personal data under the GDPR, framing any transfer to a US buyer, and protecting the code as a trade secret during the process. They are covered in the EU legal checklist.
Buyers also have their own obligation: since 2 August 2025, providers of general-purpose AI models placed on the EU market must have a copyright policy and publish a summary of their training content (AI Act, Article 53). Models already on the market before that date have until 2 August 2027. A licensed codebase with a documented chain of title is easier for them to use than material of unclear origin.
How much can it bring in?
Licensa's working estimate is a few thousand euros to more than €100,000 per license, depending on size, rarity, history and whether the code still runs. There is no public price list. One founder closing his startup received about $25,000 for his codebase alone, through a deal brokered by SimpleClosure (MIT Technology Review). See what a codebase is worth to AI labs.
Sources
- MIT Technology Review, AI labs are buying data from dead startups to train models (13 Oct 2026)
- European Commission, General-purpose AI obligations under the AI Act
- European Commission, Template for GPAI providers to summarise their training content (24 Jul 2025)