Skip to content
BENIBIX Learn

GNU GPL vs AGPL

People think the GPL makes you share code for a web app, and it does not. With the GPL, the duty to share starts when you hand out copies. Running changed code on your own server is not handing it out. The AGPL adds that rule, so users of the web service can ask for the code too.

Development🚀 Product & Releases

GNU General Public License (GPL)

An open source license. Changes you share must stay open source too.

The GNU GPL is an open source license that keeps code open after others change it. You may use, change and share the code. But if you share a changed version, you must share its code under the GPL too. This rule is called copyleft. Linux uses version 2, and the newest is version 3, from 2007.

Example
Lucy builds an app on a GPL library and starts selling copies. Because she gives the app to others, she must also offer them its source code under the GPL.
Why it matters
It stops companies from taking open code, changing it and closing it off. Everyone keeps the right to see the code.
Full entry
Development🚀 Product & Releases

GNU Affero General Public License (AGPL)

Like the GPL. But if you run your changed copy as a web app, you must share the code.

The AGPL is the strongest common copyleft license. It has the rules of the GPL, plus one more for the web. With the GPL, the duty to share code starts when you hand out copies. With the AGPL, it also starts when people use your changed version over a network. So if you run a changed AGPL app as a website, its users can ask for the code.

Example
Jack's startup changes an AGPL chat server and runs it for customers online. The AGPL means he must offer those customers his changed code.
Why it matters
Most software today runs on servers, not in copies people download. The AGPL closes that gap, so firms check for it with care.
Full entry

In one line

GNU General Public License (GPL)
An open source license. Changes you share must stay open source too.
GNU Affero General Public License (AGPL)
Like the GPL. But if you run your changed copy as a web app, you must share the code.