Licensa / Guides

Licensing code for AI training from the EU: the legal checklist

Before licensing its code to an AI lab, a European company needs to check six things: that it owns the code, which third-party components it contains, what personal data sits in the history, how any transfer to a US buyer is framed, how the code is protected during the process, and what the buyer needs from it under the AI Act. Most issues can be fixed when found early; a few, such as code nobody can prove they own, can stop a deal. This page is general information, not legal advice.

By Augustin Rudigoz · Updated 3 December 2026

1. Does the company own the code?

Under EU law, when an employee creates a computer program in the course of their duties, the employer is entitled to exercise the economic rights in it, unless the contract says otherwise (Directive 2009/24/EC, Article 2(3)). National laws implement this, for example Article L.113-9 of the French Intellectual Property Code.

That rule covers employees only. Founders and officers without an employment contract, interns, freelancers and agencies keep their rights unless they have assigned them in writing. In France, the assignment must list each right transferred and its scope, purpose, place and duration (Article L.131-3), and a blanket assignment of all future works is void (Article L.131-1). Check the contracts, including for code you wrote for clients: who owns it depends on what the contract says.

2. What third-party code does it contain?

List vendored libraries and copied snippets with their licenses. Third-party code is excluded from the licensed lot. Copyleft components need particular attention, because their license terms travel with the code.

3. What personal data is in the repository?

Commit authors' names and email addresses, comments, test fixtures and logs can contain personal data within the meaning of the GDPR. Two routes: anonymise it, which takes it out of the GDPR's scope, or keep it pseudonymised and treat it as personal data, because pseudonymised data remains personal data (GDPR, Article 4(5) and Recital 26). In the second case, licensing is a new purpose: it needs a legal basis, typically legitimate interest after a compatibility check (Article 6(1)(f) and 6(4)), and the people concerned must be informed (Article 14). Anything with customer data is excluded.

4. How is a transfer to a US buyer framed?

If personal data leaves the EU, pseudonymised data included, the transfer needs a legal basis: the EU-US Data Privacy Framework for certified recipients (adequacy decision of 10 July 2023) or the European Commission's standard contractual clauses. Only properly anonymised data falls outside these rules.

5. How is the code protected during the process?

Source code is usually protected as a trade secret, which requires reasonable steps to keep it secret (Directive (EU) 2016/943, Article 2(1)(c)). It is usually protected by copyright as well. In practice: a mutual NDA before any exchange, an anonymous profile first, a small sample only after scoping, and delivery only once the license is signed.

6. What does the buyer need under the AI Act?

Since 2 August 2025, providers of general-purpose AI models must put in place a copyright policy and publish a sufficiently detailed summary of their training content, using a template the Commission published on 24 July 2025 (AI Act, Article 53(1)(c) and (d)). The copyright policy must respect rights reservations made under the Copyright Directive (Directive (EU) 2019/790, Article 4(3)). Models placed on the market before 2 August 2025 have until 2 August 2027 to comply. Buyers therefore value material with a clear, documented license over material of uncertain origin. Keep the chain of title: who wrote what, under which contract.

What if the company is in a restructuring or insolvency procedure?

It depends on the procedure. Taking France as an example: in a mandat ad hoc or a conciliation, management keeps its powers and decides. In a safeguard or a judicial reorganisation, a license outside the ordinary course of business needs the authorisation of the supervising judge (juge-commissaire, Article L.622-7 of the Commercial Code). In a judicial liquidation, the liquidator acts in place of management (Article L.641-9). A non-exclusive license can bring in cash while leaving the asset in place for a later buyer of the business.

Sources

Related guides