AGPL

Also known as: GNU Affero General Public License

On this page 7

The AGPL, or GNU Affero General Public License, is a strong copyleft license that extends the obligations of the GPL to software accessed over a network, so that anyone who runs a modified version as a service must offer its complete corresponding source code to the users interacting with it. In software licensing, it is the standard answer to the so-called SaaS loophole, the gap that lets providers modify GPL code and run it on servers without ever distributing it.

The current version, AGPL version 3, was published by the Free Software Foundation in 2007. It is recognized as both a free software license and an open source license, yet it is also the license that corporate legal departments restrict most often, which makes its exact scope worth understanding in detail.

How the AGPL closes the network gap

The AGPL closes the network gap by attaching a source obligation to remote interaction, not only to distribution. Under the ordinary GPL, the duty to share source code arises when a program is conveyed to another party, for example as a download or on a device. A web application that never leaves its operator’s servers is never conveyed, so the GPL imposes no sharing duty, even when the operator has heavily modified the code.

The AGPL adds one decisive clause, Section 13, titled remote network interaction. It states that if a licensee modifies the program, the modified version must prominently offer all users interacting with it remotely through a computer network an opportunity to receive the corresponding source, at no charge, through some standard means of software copying. In practice, operators satisfy this with a visible source link in the user interface, an API endpoint or a repository reference in the service footer.

Apart from Section 13, the AGPL version 3 text is nearly identical to GPL version 3. It inherits the same rules on patents, anti-tivoization for user products, and termination with a 30-day cure period. Section 13 of each license also explicitly allows combining GPLv3 and AGPLv3 code into one work, with each part keeping its own terms.

The table below shows which actions trigger the source obligation under the GPL and under the AGPL.

ActionGPL version 3AGPL version 3
Distributing binaries or installersSource must be offeredSource must be offered
Running unmodified code as a serviceNo obligationNo obligation to provide source changes
Running modified code as a serviceNo obligationSource must be offered to network users
Internal use by employees onlyNo obligationObligation to those internal users
Private modification never run for othersNo obligationNo obligation
Source obligation triggers compared

Key terms and versions of the AGPL

Correct application of the AGPL depends on a few defined terms that carry precise legal meaning. The corresponding source includes all source code needed to generate, install and run the object code, including build scripts and interface definition files, but excluding general system libraries. A covered work is the unmodified program or any work based on it.

The license also has a history that explains why two similarly named texts exist. The following table lists the versions and their status.

VersionYearPublisherCurrent status
Affero GPL version 12002Affero, Inc.Superseded, based on GPLv2
Affero GPL version 22007Affero, Inc.Transition license toward AGPLv3
GNU AGPL version 32007Free Software FoundationCurrent and widely used
AGPL versions and their status

Projects normally choose between “AGPL-3.0-only” and “AGPL-3.0-or-later”, the two SPDX identifiers for the license. The or-later form lets recipients accept any future version that the Free Software Foundation publishes, while the only form fixes the terms permanently.

How the AGPL compares with other licenses in the topic

The AGPL sits at the strongest end of the copyleft spectrum among widely used licenses. Permissive licenses such as the MIT License, the BSD license and the Apache License require little beyond attribution, while weak copyleft licenses such as the LGPL and the Mozilla Public License confine obligations to specific files or libraries. The GPL covers distributed derivative works, and the AGPL extends that reach to network use.

LicenseCopyleft typeScope of obligationNetwork use covered
MIT LicenseNone, permissiveKeep notice and license textNo
Apache License 2.0None, permissiveNotices, change statements, patent grantNo
Mozilla Public License 2.0Weak, file-levelModified files onlyNo
LGPL version 3Weak, library-levelThe library and its modificationsNo
GPL version 3StrongWhole derivative work when conveyedNo
AGPL version 3Strong, networkWhole derivative work, conveyed or servedYes
Copyleft strength across common licenses

A common confusion concerns the Server Side Public License, a later license modeled on the AGPL that extends obligations to the entire service stack. Unlike the AGPL, it is not approved by the Open Source Initiative, and it should not be treated as an AGPL variant.

When projects and companies choose the AGPL

Projects choose the AGPL when their software is most valuable as a hosted service and they want improvements to flow back to the community. Typical examples are web applications, databases, collaboration platforms, mail servers and federated social networking software, where a cloud provider could otherwise offer a closed, improved fork.

Commercial vendors frequently pair the AGPL with dual licensing: the community edition is released under the AGPL, and customers who cannot accept its terms buy a commercial license. This model requires the vendor to hold all copyrights, which is why such projects often ask contributors to sign a contributor license agreement.

The decision table below summarizes how organizations typically handle AGPL components.

SituationTypical choiceReason
Using an unmodified AGPL database over a networkUsually acceptableNo modification, so Section 13 is not triggered
Modifying an AGPL web application for customersPublish the sourceRemote users must receive the modified code
Embedding AGPL code into a proprietary SaaS productAvoid or buy a commercial licenseWhole combined work would fall under the AGPL
Starting a server project that must stay openChoose AGPL-3.0-or-laterPrevents closed hosted forks
Building a library meant for broad adoptionPrefer a permissive or weak copyleft licenseMany companies block AGPL dependencies
Decision guide for AGPL components

Limitations, risks and common misconceptions

The main limitation of the AGPL is that its boundaries depend on legal interpretation that courts have rarely tested. Whether a separate service communicating over an API forms a single derivative work, or remains a separate program, is debated, and the answer depends on how tightly the components are integrated and exchange internal data structures.

  • Misconception: any use requires publishing code. Running an unmodified AGPL program creates no duty to share changes, because there are none; the original source remains available upstream.
  • Misconception: AGPL code cannot be sold. Commercial use and sale are permitted, provided the copyleft terms are respected.
  • Risk: accidental contamination. A developer who copies AGPL code into a proprietary service can place the entire combined product under AGPL obligations.
  • Risk: corporate policy conflicts. Many enterprises ban AGPL dependencies outright, which can reduce adoption of an AGPL project.
  • Limitation: unmodified copies. Section 13 applies only to modified versions, so a provider running stock code owes users no extra source offer.

In plain words

The AGPL is a set of rules that comes with some free programs. It says you may use, change and share the program, but if you change it and let other people use it, you must also let them have your changed recipe.

Ordinary copyleft licenses only ask you to share when you hand the program to someone. Many programs today run on a website, so nobody ever receives a copy. The AGPL treats letting people use it online like handing it over, so the improvements stay open for everyone.

A real-world example

A small company offers a hosted project management service built on an open source collaboration platform released under AGPL-3.0-or-later. Its developers add a custom invoicing module and a faster search feature, then run the modified platform for about 400 paying customers.

Because remote users interact with modified AGPL software, the company adds a “Source code” link to the application footer that points to a public repository containing the complete modified source, including build scripts. Its proprietary billing system communicates with the platform only through a documented REST API and stays separate.

Before an investor review, the legal team audits the arrangement and confirms that the source offer satisfies Section 13. The company keeps its competitive advantage in service quality and support, while its search improvements are later merged upstream by the original project.