AGPL
A stricter “network copyleft” open-source license: even if you only run modified code on your own server as a website or SaaS, you must offer the source code to users.
On this page
What is AGPL?
AGPL (GNU Affero General Public License) is the strongest copyleft open-source license from the Free Software Foundation. It builds on GPLv3 and adds one crucial rule (Section 13): even if you never ship installers or files to users and only run modified AGPL code on your own server as a web app or API, you must offer the complete corresponding source code to every user interacting with it over the network.
If GPL says “share your recipe whenever you sell jars of sauce,” AGPL says: “Even if you only serve the dish in a cloud kitchen and never hand out jars, every diner who orders it still gets the full recipe.”
AGPL closes GPL’s “SaaS / web-server loophole”—running a modified service on your own server still triggers open-source obligations.
How does AGPL’s network trigger work?
Many beginners assume “keeping code on my server avoids copyleft.” Under AGPL, four steps apply:
Adopt an AGPL project: you build on an AGPLv3 backend, web app, or database tool.
Modify or integrate: you edit the project or combine it with your own server-side code.
Host it online: you deploy it to a cloud server so users interact with it through a browser or API—no download required.
Offer the source code: Section 13 activates, requiring you to give network users an easy way to get the full corresponding source of the modified service under AGPLv3.
Because of Section 13, corporate compliance lists almost always flag AGPL-3.0 as high-attention: either open-source the service under AGPL or buy a separate commercial license.
Spot an AGPLv3 notice
AGPLv3 shares almost all of GPLv3’s text—the big signals are the word Affero in the name and Section 13 on remote network interaction:
- Seeing
GNU Affero General Public License(AGPL) immediately tells you it is stricter than regular GPL. - Section 13 (Remote Network Interaction) requires offering corresponding source code whenever users interact with a modified version over a network.
- It retains GPLv3’s copyright, patent, and no-warranty provisions.
Here is a quick summary header highlighting AGPLv3’s defining rule:
Copyright (C) 2026 Alex Chen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License.
Section 13 (Remote Network Interaction): if you modify this program and
let users interact with it over a network, you must offer them access to
the Corresponding Source of the modified version.When scanning dependencies, never gloss over that extra letter A in AGPL—for web apps and SaaS products, it changes everything.
How is AGPL different from GPL?
Both are strong copyleft licenses. The decisive difference is what happens when you only run the software on your own server.
| Compare | AGPL (AGPLv3) | GPL (GPLv3) |
|---|---|---|
| Hosted web app / SaaS | Modifying and hosting over a network requires offering source code to users | No distribution occurs, so server-only code usually stays private |
| Shipping binaries or packages | Must share derivative source under AGPL | Must share derivative source under GPL |
| Common business use | Popular for open-source SaaS tools offering “AGPL free + paid commercial license” | Common in OS kernels, CLI tools, and desktop apps |
Well-known web projects like Mastodon, Plausible Analytics, and Grafana use AGPLv3 so hosted deployments stay open—or pay for a commercial license instead of turning community work into a closed SaaS rival.
When is AGPL a good fit?
AGPL is designed specifically for software that runs primarily on servers.
- Open-source web apps: projects like Mastodon and Plausible ensure modified hosted instances remain transparent.
- Commercial open-source startups: free under AGPL for the community, with a paid commercial license for closed-source enterprises.
- Preventing closed cloud forks: stops third parties from modifying a backend and selling it as a proprietary hosted service without contributing back.
Keeps copyleft effective in the cloud era and gives open-source teams a viable dual-licensing business model.
Because it imposes strict rules on hosted apps, many enterprises and cloud providers block AGPL dependencies by default.
Common things people get wrong
My code only runs on my server and users just visit a webpage—so I don’t need to open-source, right?
Wrong. Regular GPL allows that, but closing that exact server loophole is the entire reason AGPL exists. Network interaction with a modified AGPL service triggers the share-source rule.
Can commercial companies never use AGPL software?
They can—either by open-sourcing their service under AGPL or by purchasing a separate commercial license from the copyright holder (dual-licensing). What is not allowed is silently using it in a closed commercial service.
If I don’t edit the AGPL code at all, am I automatically in the clear?
Still be careful. Running an unmodified standalone tool is far safer, but integrating your own closed-source backend closely with AGPL code—or making even small edits—can trigger copyleft obligations.
Quick quiz
You fork an AGPLv3 open-source backend, customize the UI and billing, and host it on your own server as a paid web app (no downloads). Must you offer the modified source code to your users?
Yes. Under AGPLv3 Section 13, letting users interact with a modified version over a network triggers the requirement to provide the corresponding source code.
Remember this: With AGPL, “it only runs on my server” is not an escape hatch—modified web services must share their source.
Read further
See the official AGPLv3 text and guides below.