Open Source Licenses Explained for Self-Hosters
MIT, GPL, AGPL, BSL — open source licenses determine what you can do with software. Here's what self-hosters need to know.
Why Licenses Matter for Self-Hosters
Every self-hosted app has a license that governs how you can use it. Most are permissive and you can do almost anything. But some have restrictions that matter.
Permissive Licenses
MIT License
Do whatever you want. Just keep the copyright notice.
Apache 2.0
Like MIT but with patent protection.
Copyleft Licenses
GPL v3
Free to use, but if you modify and distribute the software, you must also release your modifications under GPL.
AGPL v3
Like GPL but closes the "SaaS loophole." If users interact with the software over a network, that counts as distribution.
Source-Available Licenses
Business Source License (BSL / BUSL)
Source code is available but commercial use is restricted for a period (usually 3-4 years).
Server Side Public License (SSPL)
MongoDB's license. If you offer the software as a service, you must open source your entire stack.
What Self-Hosters Can Do
For internal use (running on your own server for your own team), almost all licenses allow everything. The restrictions kick in when you distribute or offer the software to others.
Self-hosting for your own use: almost always fine.
Self-hosting for clients: check the license.
Building a SaaS on top of it: definitely check the license.