Licensa / Guides

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.

By Augustin Rudigoz · Updated 3 December 2026

What is the difference in practice?

SaleNon-exclusive license
OwnershipGoes to the buyerStays with the company
BuyersOneSeveral, over time
UseAny use the buyer choosesDefined: training, evaluation, or both
ProductMay have to stopKeeps running
RevenueOncePer 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

Related guides