Publication

The GNU AGPL in the age of artificial intelligence

The AGPL was designed for a world in which software is used remotely. With AI services and agents, everything becomes a service: its network clause takes on new importance, and comes up against its limits. What does it cover when the “software” includes model weights, training data and generated content?

Download the PDF

An artificial intelligence that you query remotely does not hand itself over. You receive no copy, no code and no means of correcting it. You receive answers.

The GNU AGPL licence was written for this case: software that runs elsewhere. With AI, this is becoming widespread. The licence is gaining in importance, but it does not capture everything that makes up an AI system. This text explains what it requires, where it stops and how we apply it. It does not constitute legal advice.

The network clause extends copyleft to remote users

The AGPL builds on the GPL and adds an obligation: offering the source code to remote users of a modified version. To understand it, we need to start with copyleft.

A free licence grants four freedoms: to use, study, modify and redistribute software. Copyleft adds a condition. Anyone who redistributes the software must pass on the same freedoms, with the source code that enables them to be exercised. The software thus remains free as it passes from hand to hand.

Version 3 of the GNU GPL attaches this condition to conveying a copy. It specifies that mere interaction with a user through a computer network, with no transfer of a copy, is not conveying (FSF, 2007b). An online service can therefore be built on modified GPL software without ever publishing the modifications.

The Affero General Public License was created to fill this gap. Its first version was published in March 2002 by the company Affero, with the help of the Free Software Foundation (Topham, 2021). Version 3 of the GNU AGPL, dated 19 November 2007, brought it into the family of GNU licences.

Its section 13 adds a simple obligation. If you modify the program, your version must prominently offer its source code to its remote users. It must enable them to receive that code at no charge, from a server, through a customary means of copying (FSF, 2007a).

The “Corresponding Source” is defined broadly. It includes all the code needed to generate, install, run and modify the program, scripts included. “Source code” itself means the preferred form of the work for making modifications to it. We will return to this notion with AI models.

What the clause requires:

  • a prominent offer, made to all users interacting remotely with a modified version;
  • the complete Corresponding Source of that version, including the parts under the GPL v3 that are combined with it;
  • access at no charge, through a customary means.

What it does not require:

  • publishing the code to the whole world: the offer is made to the users of the service, who remain free to redistribute it;
  • offering the code of an unmodified version: section 13 applies only to the modified version;
  • covering the output produced: under section 2, output is covered only if its content itself constitutes a covered work.

The GPL protects those who receive a copy. The AGPL also protects those who never receive one.

The GPL protects those who receive a copy. The AGPL also protects those who never receive one.

With AI, remote use is becoming widespread

Many AI systems are not installed: they are queried remotely. What the AGPL treated as a marginal case is becoming common.

Three forms come up often. A conversational assistant answers in a window. An application programming interface, or API, serves a model to other software. An agent carries out a sequence of actions on someone’s behalf: searching, drafting, ordering, executing.

In all three cases, the user receives no copy. Under the GPL, an operator who has modified the software therefore need not share anything. Under the AGPL, the operator’s users are entitled to the code of the modified version they use.

What is at stake goes beyond technology. An institution that entrusts a task to a service must be able to say how it works. It must be able to verify it, correct it or leave it. Without access to the code, it delegates execution without being able to account for it.

The network clause does not resolve everything. The Free Software Foundation says so itself: the AGPL does not address the problem of a service replacing the user’s own software (FSF, 2022). Receiving the code of a service does not give you control over it. The computing still takes place elsewhere, on data that no longer resides with you.

This is why we bring three conditions together. Free licences grant rights. Local execution, or local‑first, gives control. Skills let you exercise both. Without any one of the three, you remain a tenant of your own tools.

The licence captures the code, not the whole AI system

The AGPL was written for code. An AI system also comprises weights, training data and outputs. It is configured through instructions and document collections. It is increasingly built into agents that orchestrate tools. On each of these points, the licence provides only a partial answer, and the law remains uncertain.

Model weights. These are the numerical parameters set during training, often numbering in the billions. The AGPL applies to “the Program”, which it defines as any copyrightable work licensed under it (FSF, 2007a). Are parameters produced by a statistical computation such a work?

The answer is not settled. It may vary from one country to another. If the answer is no, a licence based on copyright has little hold over them. A licence grants rights only over what it can capture.

A licence grants rights only over what it can capture.

A second question follows. For a model, what is “the preferred form of the work for making modifications to it”? To fine-tune a model, you often start from the weights themselves. To rebuild or understand it, you need the training code and the data. The FSF also notes that training data is not, in the usual sense, the “source code” of the parameters (FSF, 2024).

One possible reading follows from section 2. Weights are produced by running training code. Placing that code under the AGPL would therefore not, on its own, place the weights under the same licence.

Training data. It raises an even more delicate question. It sometimes contains personal data or third-party works, which you are not entitled to redistribute. The text of the AGPL does not say whether a training corpus forms part of the Corresponding Source.

There are two reference points, and they diverge. On 28 October 2024, the Open Source Initiative published version 1.0 of its Open Source AI Definition (OSI, 2024; OSI, n.d.). It adopts four freedoms: to use, study, modify and share the system.

To make modification possible, this definition requires access to three elements. The complete code used to train and run the system. The model parameters. And information about the data, detailed enough for a skilled person to build a substantially equivalent system.

It does not require the data itself to be distributed. It asks for the data to be described, including data that cannot be shared, and for an indication of where to obtain the rest. It also allows share-alike terms, akin to copyleft.

In October 2024, the Free Software Foundation announced a more demanding position. It was then preparing criteria for machine learning applications. In its view, such an application is free only if all its training data, and the related processing scripts, respect the four freedoms (FSF, 2024).

The OSI definition is a reference point, not a legal standard. It does not command unanimous support, particularly on the role of data. Each organisation must decide what level of openness it requires of its suppliers, and of itself.

Generated outputs. On this point, section 2 of the AGPL is clear. The output of a covered program is covered only if its content constitutes a covered work. Texts or images produced by a model served under the AGPL therefore fall, in principle, outside the licence, unless they reproduce a covered work.

Their status is a matter for the applicable copyright law. For generated content, that law itself remains uncertain.

Prompts, document collections and adapters. Here, the network clause may never apply. Many AI services do not modify the engine that runs the model: they configure it.

Three levers are common. The system prompt is a standing instruction, sent with every request. With retrieval-augmented generation, or RAG, the model draws on passages retrieved from a document collection (Lewis et al., 2020). A LoRA adapter adds small trainable matrices to a model whose original weights remain frozen (Hu et al., 2021).

Section 13, however, applies only to a modified version of the program. Changing a prompt or adding to a document collection does not generally amount to “modifying the Program”. That is the case, at least, when they are supplied as data rather than written into the code. The code remains intact; what sets the service apart lies elsewhere.

The adapter is a less clear-cut case. It changes the model’s behaviour but, in all likelihood, not the engine’s code. It brings us back to the question of weights, discussed above.

Two open-source inference engines illustrate another limit. vLLM, an inference and serving engine for language models, is released under the Apache License 2.0 (vLLM Project, n.d.). llama.cpp is released under the MIT License (ggml authors, n.d.). These licences have no network clause: even when modified, these engines can be run as a service without sharing their code.

A service can thus be built on free software without its users receiving any code. There is no need to circumvent the network clause: in these architectures, it may have nothing to capture.

Agents. An agent orchestrates tools: a model, a search engine, scripts, other services. Where, then, does “the Program” end? In the FSF’s view, programs that communicate through common mechanisms, such as network sockets or the command line, are normally separate. It adds that where the line falls is a legal question, which judges will ultimately decide (FSF, 2026a).

In general, then, a tool’s licence will not extend to the agent that calls it. Another question is new. Section 13 applies to “users” interacting remotely. When the party at the other end is an agent calling an API, who is the user? The person who launched the agent, the agent itself, or no one?

The 2007 text does not say. Nor does it say how to “prominently offer” source code to a machine. These questions remain open.

We publish under copyleft, with the licence suited to each kind of work

Our policy comes down to one rule. Everything the Foundation publishes is released under a copyleft licence. The choice of licence depends on the work, and on how it will be used.

Published work Licence What it protects
Software used over a network: service, API, agent GNU AGPL v3 Remote users receive the code of modified versions.
Software run locally GNU GPL v3 Every copy conveyed comes with its code and the same freedoms.
Hardware: schematics, drawings, manufacturing files CERN-OHL-S v2 Anyone who conveys a product provides its complete source, modifications included.
Texts and documentation CC BY-SA 4.0 Adaptations are shared under the same licence, with attribution.

The CERN-OHL-S was published by CERN, in Geneva, in 2020 (CERN, 2020). It carries copyleft over to hardware: anyone who conveys a product must provide its complete source, or indicate where to obtain it. CC BY-SA 4.0 applies a similar principle to texts (Creative Commons, n.d.).

This choice remains within the framework of our statutes. Article 4 refers to projects under the GNU GPL and/or under a “GPL-compatible” free licence. The AGPL v3 comes within its scope through a specific provision.

The AGPL v3 and the GPL v3 each contain a section 13 that governs how the two fit together. It permits parts under each licence to be combined in a single work (FSF, 2007a; FSF, 2007b). The network clause then applies to the combination as a whole.

This compatibility is real, but narrow (FSF, 2026b). It does not allow code to be relicensed: each part keeps its own licence. It allows a single program to be built with both.

The licence sets a minimum; our commitment goes further. The GPL requires the code to be provided only when a copy is conveyed. The AGPL requires it only in relation to remote users of a modified version. We, for our part, publish our technical results: the code and the methods.

We explore in confidence with our partners. We publish at the time agreed in writing with each of them. This is our model: protected partners, a responsible foundation, shared results.

Our Laboratory, which is in its exploration phase, applies these rules to embodied AI. It works with the Reachy Mini robot, whose development kit is released under a free licence, and with a language model run locally. This local‑first choice changes the question: what runs on site is already in the user’s hands. The AGPL takes over as soon as any part is offered as a service.

For weights and datasets, no instrument is as obvious a choice. When we publish any, we will apply the same share-alike principle. We will state what it covers, and what it does not.

Agency is decided before deployment

Agency over an AI system is determined in three places: licences, contracts and architecture. Six measures contribute to it.

  1. Locate execution. Distinguish what runs on your own systems from what runs elsewhere. The relevant licence, and your room for manoeuvre, depend on it.
  2. Choose the AGPL for any software that could become a service, with its downside in mind. A local tool may one day be offered over a network. The FSF encourages planning for this possibility (Topham, 2021). Provide for prominent access to the code by design, including for an API or an agent. Some large companies, however, rule out the AGPL: Google’s policy prohibits it in principle, for fear of its “viral” effect (Google, 2026). Discuss this with your private-sector partners at the scoping stage.
  3. Require more than access. In your procurement and contracts, ask for the code, the weights and a description of the data. Access to an API gives you neither the right to study nor the right to leave.
  4. Read the licence for the weights. Being downloadable does not make weights free. Check the restrictions that licence imposes, for example on uses or on the number of users.
  5. Designate who is answerable. A licence grants rights; it designates no one as responsible. For each system, name the person who answers for what it does.
  6. Have borderline cases assessed. Weights, data and agents fall within an uncertain area of law. Have them examined by a lawyer, in the light of the law that applies to you.

A licence grants rights, but they still have to be exercised

The AGPL is not enough to make an AI system free. Yet it protects a concrete part of it: the code of services that others modify and that we use remotely.

The rest is up to us. Definitions are taking shape. Positions diverge. The law will evolve. In the meantime, three requirements hold: understanding what runs, staying in control of what matters and knowing who answers for it.

You can entrust a task to a machine. You cannot delegate to it the responsibility for what it does. An intelligence that no one can study, correct or leave is not a tool: it is a dependency.

References

This article was written with the help of artificial intelligence. Its English translation was produced the same way, and quotations from French-language sources are our translations.

  1. Free Software Foundation, “GNU Affero General Public License”, version 3 of 19 November 2007, gnu.org, 2007a. https://www.gnu.org/licenses/agpl-3.0.html
  2. Free Software Foundation, “GNU General Public License”, version 3 of 29 June 2007, gnu.org, 2007b. https://www.gnu.org/licenses/gpl-3.0.html
  3. Craig Topham, “The fundamentals of the AGPLv3”, Free Software Foundation Bulletin, Fall 2021, fsf.org, 16 November 2021. https://www.fsf.org/bulletin/2021/fall/the-fundamentals-of-the-agplv3
  4. Free Software Foundation, “Why the Affero GPL”, gnu.org, updated 2 January 2022. https://www.gnu.org/licenses/why-affero-gpl.html
  5. Free Software Foundation, “FSF is working on freedom in machine learning applications”, fsf.org, 22 October 2024. https://www.fsf.org/news/fsf-is-working-on-freedom-in-machine-learning-applications
  6. Open Source Initiative, “The Open Source Initiative Announces the Release of the Industry’s First Open Source AI Definition”, opensource.org, 28 October 2024. https://opensource.org/blog/the-open-source-initiative-announces-the-release-of-the-industrys-first-open-source-ai-definition
  7. Open Source Initiative, “The Open Source AI Definition – 1.0”, opensource.org, n.d., accessed 25 November 2026. https://opensource.org/ai/open-source-ai-definition
  8. Patrick Lewis et al., “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks”, arXiv:2005.11401, paper accepted at NeurIPS 2020, 2020. https://arxiv.org/abs/2005.11401
  9. Edward J. Hu et al., “LoRA: Low-Rank Adaptation of Large Language Models”, arXiv:2106.09685, 2021. https://arxiv.org/abs/2106.09685
  10. vLLM Project, “vllm”, code repository and LICENSE file (Apache License 2.0), GitHub, n.d., accessed 25 November 2026. https://github.com/vllm-project/vllm
  11. ggml authors, “llama.cpp”, code repository and LICENSE file (MIT License), GitHub, n.d., accessed 25 November 2026. https://github.com/ggml-org/llama.cpp
  12. Free Software Foundation, “Frequently Asked Questions about the GNU Licenses”, gnu.org, updated 13 January 2026 (2026a). https://www.gnu.org/licenses/gpl-faq.html
  13. Free Software Foundation, “Various Licenses and Comments about Them”, gnu.org, updated 22 April 2026 (2026b). https://www.gnu.org/licenses/license-list.html
  14. CERN, “CERN Open Hardware Licence Version 2 - Strongly Reciprocal”, Geneva, 2020. https://ohwr.org/cern_ohl_s_v2.txt
  15. Creative Commons, “Attribution-ShareAlike 4.0 International” (CC BY-SA 4.0), Mountain View, n.d., accessed 25 November 2026. https://creativecommons.org/licenses/by-sa/4.0/
  16. Google, “AGPL Policy”, Google Open Source, updated 18 November 2026. https://opensource.google/documentation/reference/using/agpl-policy