GNU Affero General Public License v3.0, explained
Network copyleft AGPL-3.0-only · AGPL-3.0-or-later
AGPL-3.0 is GPL-3.0 plus a network clause: if users interact with a modified version over a network, you must offer them its complete source code. It is the licence to check first in a hosted service.
Not legal advice. Read the licence text for the exact terms.
What it allows
- Use, change and run the code for any purpose
- Sell copies, under the AGPL
What it requires
- Everything GPL-3.0 requires when you distribute
- If you modify the program and users interact with it remotely, offer those users the corresponding source of your version (section 13)
When it matters
| Shipping an app | As GPL-3.0: the combined work must be offered under the AGPL with its source. |
|---|---|
| A hosted service (SaaS) | If you modified the AGPL program and users interact with it over the network, you must offer them its source. Whether your own services that only talk to an unmodified AGPL program (such as a database over its protocol) are covered is debated: get advice for your setup. |
| Internal use | Users inside your organisation also interact over the network: if you modified it, offering them the source is the safe reading. |
Its family: network copyleft
Like strong copyleft, and more: if users interact with a modified version over a network (a SaaS or a web API), you must offer them its source code. The common case to check is AGPL in a hosted service.
Questions
What does AGPL require for a web service?
If you run a modified version and users interact with it remotely, you must offer them the source of that version. Running it unmodified triggers no publication duty beyond what you distribute.
Can I use an AGPL database in my SaaS?
Often yes when it runs unmodified as a separate program, but check how your code is combined with it.
Other licences
Related free tools
Dependency licence check
Upload a lockfile and see every dependency's licence. GPL, AGPL, unknown and changed licences are flagged for your kind of project. Free.
SBOM summary generator
Upload a lockfile and get an SBOM summary by email: components, licences, vulnerabilities and AI components. CycloneDX and SPDX files with Pro.
Published ; awaiting review.