License or sell your source code?
Selling transfers ownership of the code to one buyer, once. A non-exclusive license lets a buyer use a copy for a defined purpose while the company keeps ownership and can, unless it agrees to exclusivity, license the same code again. For a company that is still running its product, licensing is usually the better fit: it brings cash without giving up the asset.
What is the difference in practice?
| Sale | Non-exclusive license | |
| Ownership | Goes to the buyer | Stays with the company |
| Buyers | One | Several, over time |
| Use | Any use the buyer chooses | Defined: training, evaluation, or both |
| Product | May have to stop | Keeps running |
| Revenue | Once | Per license, possibly repeated |
What does a license for AI training usually say?
- Purpose: training and evaluation of models, nothing else
- No redistribution of the code, no publication, no use to build a competing product
- What is delivered: which repositories, which period, in which state (cleaned, pseudonymised)
- Duration and territory
- Price and payment terms
- Confidentiality of the licensor's identity
When does a sale make sense?
When the company is closing and nobody will run the product again, or when a buyer wants exclusivity and pays for it. Even then, a sale of the code is distinct from a sale of the business, and in an insolvency procedure it is decided by the court-appointed officers.
Can a license hurt the company later?
The main risks are a competitor gaining access to the code and an acquirer worrying about copies in circulation. They are handled before and in the contract: buyers are screened and you approve each one; use is limited to training and evaluation; redistribution and use to build a competing product are prohibited; and the licensor's identity stays confidential unless it approves disclosure.
Sources
- MIT Technology Review, AI labs are buying data from dead startups to train models (13 Oct 2026)
- Directive 2009/24/EC on the legal protection of computer programs (EUR-Lex)