30+ software licenses, and what each lets you do when you self-host

Before you run, change, or host someone else's app, it's worth knowing what its license lets you do. Compare the common licenses in one table, then open a license for its obligations, its official text, and the apps that use it.

This is a practical guide, not legal advice. If money, customers, or a commercial product are involved, read the project's license and get legal help.

What does each license let you do?

The table shows what each license allows for the things self-hosters do: run it, use it at work, host it for others, change it, and pass it on. It reports what the license text permits, not what a company policy will approve.

LicenseSelf-hostCompanyOSIServiceModifyRedistributeCopyleft
MITyesyesyesyesyesyesnone
Apache-2.0yesyesyesyesyesyesnone
BSD-2-Clauseyesyesyesyesyesyesnone
BSD-3-Clauseyesyesyesyesyesyesnone
ISCyesyesyesyesyesyesnone
Zlibyesyesyesyesyesyesnone
Unlicenseyesyesyesyesyesyesnone
CC0-1.0yesyespdyesyesyesnone
WTFPLyesyesnoyesyesyesnone
MPL-2.0yesyesyesyescarefulcarefulweak
LGPL-2.1yesyesyesyescarefulcarefulweak
LGPL-3.0yesyesyesyescarefulcarefulweak
EPL-2.0yesyesyesyescarefulcarefulweak
GPL-2.0yesyesyesyescarefulcarefulstrong
GPL-3.0yesyesyesyescarefulcarefulstrong
AGPL-3.0yesyesyescarefulcarefulcarefulnetwork
EUPL-1.2yesyesyescarefulcarefulcarefulnetwork
OSL-3.0yesyesyescarefulcarefulcarefulnetwork
SSPL-1.0yesyesnocarefulcarefulcarefulservice
Elastic-2.0yesyesnonocarefulcarefulnone
BUSL-1.1dependsdependsnodependsdependsdependsdelayed
FSLyescarefulnocarefulyescarefuldelayed
PolyForm Shieldyescarefulnocarefulyescarefulnone
Sustainable Useyesyesnonodependsdependsnone
PolyForm NCyesnononocarefulcarefulnone
Proprietary / EULAdependsdependsn.a.dependsnonon.a.
CC BY 4.0yesyesn.a.yesyesyesnone
CC BY-SA 4.0yesyesn.a.carefulcarefulcarefulshare-alike
CC BY-NC 4.0yesnon.a.nocarefulcarefulnone
Dual licensingyesyesdependsdependsdependsdependsdepends
Community + enterprisedependsdependsdependsdependsdependsdependsmixed
or-later / mixed treesyesyesdependsdependsdependsdependsmixed

How do I read the license table?

ColumnThe question it answers
Self-hostCan you run it on your own hardware, for yourself and your household?
CompanyCan it run on a work server for internal use?
OSIIs it approved by the Open Source Initiative? pd means a public domain dedication, which works like open source without being on the list. n.a. means OSI doesn't review that kind of license, such as Creative Commons or a commercial EULA. depends marks patterns that mix licenses, such as dual licensing.
ServiceCan you host it for people outside your household or company, including paid hosting?
ModifyCan you change the code, and what do you owe when your changes leave your server?
RedistributeCan you pass it on in images, appliances, forks, or products?
CopyleftDo conditions travel with the code, and how far?
ValueMeaning
yesAllowed. Routine notices or attribution may still apply.
carefulAllowed with a real obligation, such as sharing source, share-alike, or a limit on competing. The license's card explains it.
dependsProject terms, a chosen option, or a separate agreement decide.
noThe license doesn't allow it.

WTFPL, for example, allows everything, yet some company policies ban it. The self-hosted apps directory uses the same license names, so you can filter apps by license there.

What are the main types of software license?

Most licenses here fall into four families. What separates them is what you owe when the software leaves your hands.

The four license families differ by what must stay open and when that obligation begins. permissive notices travel fork may close weak copyleft covered code open rest may stay closed copyleft program source follows network may add a path restricted business terms vary not open source
The four license families differ by what must stay open and when that obligation begins.
FamilyExamplesWhat you owe
PermissiveMIT, Apache-2.0, BSDKeep the copyright notices when you pass it on. Your fork can stay closed.
Weak copyleftMPL-2.0, LGPLChanges to the covered files or library stay open when you ship them. The rest of your product stays yours.
CopyleftGPL, AGPLDistributed covered works follow GPL terms; AGPL adds a source offer for modified network versions.
RestrictedSSPL, Elastic, BSL, FSL, PolyFormThe code is public, but the terms limit some uses, often hosting it as a service or competing with the publisher. These are source-available, not open source.

Self-hosting a restricted app for yourself or your company is usually allowed, but each license's own text decides. Public domain dedications work like permissive licenses. Creative Commons licenses usually cover docs and media, not the app's code.

When does GPL or AGPL require you to share source code?

GPL applies when you distribute a copy, changed or not. Then you must pass on the license and make the source available to whoever gets the copy. Running it on your own server, or inside your company, isn't distribution.

AGPL adds a network rule in section 13. If you change the program and people use your changed version over a network, you must offer them its source. That rule stops a changed, hosted copy from staying closed, which is why AGPL is common for self-hosted web apps.

Two points people often misread:

  • Running unmodified AGPL software doesn't trigger section 13, even when family, coworkers, or customers log in.
  • If you're the only user of your changed version, there's no one you owe source to.

EUPL and OSL have network rules too. Their cards below explain them.

License details by family

Each card says what the license asks of you and links to its official text. When the self-hosted apps directory lists apps under a license, the card links to them too.

Permissive licenses

Run it, change it, sell it, keep your fork private forever. The only real duty is keeping copyright notices when you redistribute.

MIT License

MIT

MIT lets you use, change, sell, or host the software with almost no friction. Keep the copyright and license notice when you pass the code or a package to someone else.

Apache License 2.0

Apache-2.0

Apache-2.0 gives you MIT-like freedom with explicit patent protection. Keep the license, copyright notices, and any NOTICE file when you redistribute it.

BSD 2-Clause License

BSD-2-Clause

BSD-2-Clause lets you use and change the software freely. Keep the copyright notice and disclaimer when you redistribute it.

BSD 3-Clause License

BSD-3-Clause

BSD-2-Clause plus one rule: you may not use the original author's name to promote your product without permission.

zlib License

Zlib

Permissive and commercial-friendly, as long as you do not misrepresent where the code came from and you mark altered versions.

Public domain dedications

Fine to run, with almost nothing to comply with. The real question is what part of the project they actually cover.

The Unlicense

Unlicense

A public-domain style dedication. Where it works as intended, you can use, change, and share the software with almost no conditions.

CC0 1.0 Universal

CC0-1.0

A Creative Commons public-domain dedication. Common for data and documentation, sometimes used to waive copyright on code as far as the law allows.

Weak copyleft licenses

Free to use anywhere. The share-back duty is scoped: changes to the covered files or library stay open when you ship them, the rest of your product stays yours.

Mozilla Public License 2.0

MPL-2.0

Weak, file-level copyleft. You can combine MPL code with other code, but distributed changes to MPL-covered files stay under MPL with source available.

GNU Lesser General Public License 2.1

LGPL-2.1

Weak copyleft built for libraries. You can link it into other software more flexibly than GPL, but changes to the LGPL library itself get shared when you distribute them.

GNU Lesser General Public License 3.0

LGPL-3.0

The newer library license. Same share-alike idea as LGPL-2.1, updated terms around combining and installing the library.

Eclipse Public License 2.0

EPL-2.0

Weak copyleft, common in the Eclipse and Java tooling world. Source duties focus on the EPL modules you distribute, not on everything around them.

Strong and network copyleft

The whole program stays free software. GPL triggers when you distribute it. AGPL, EUPL, and OSL also trigger when people reach your modified version over a network.

GNU General Public License 2.0

GPL-2.0

GPL-2.0 lets you run and change the software freely. If you distribute it, you must provide the corresponding source under the same GPL terms.

GNU General Public License 3.0

GPL-3.0

GPL-3.0 lets you run and change the software freely, but anything you distribute must keep the same source-sharing freedom. It adds clearer patent protection and rules for installing modified software on locked-down devices.

GNU Affero General Public License 3.0

AGPL-3.0

AGPL-3.0 works like GPL but also protects people using a modified version over a network. If you change the hosted app, offer those users the corresponding source.

European Union Public Licence 1.2

EUPL-1.2

A European copyleft license with a remote-access trigger, which is why it sits in this family rather than with the weak copyleft licenses.

Open Software License 3.0

OSL-3.0

Strong copyleft with network-use language. Less common than AGPL, similar questions when you offer software to other people.

Source-available and restricted

Code you can read and usually self-host, with terms that put it outside the open-source definition. SSPL conditions service use on releasing service source, while BSL, FSL, and PolyForm depend on project parameters or competition limits.

Server Side Public License 1.0

SSPL-1.0

SSPL is comfortable for running software yourself, but offering it as a service can require releasing much of the surrounding service stack. That makes it source-available, not open source.

Elastic License 2.0

Elastic-2.0

Elastic-2.0 is meant for self-managed use and lets you modify the software. You cannot offer the product itself to others as a managed service.

Business Source License 1.1

BUSL-1.1

BUSL-1.1 changes from project to project, so the Additional Use Grant decides what you may do until the published change date. After that date, the code moves to the named open-source license.

Functional Source License

FSL allows broad use but temporarily blocks products that compete with the original software. After the delay, the code converts to MIT or Apache-2.0.

Sustainable Use License

SUL

Vendor terms that allow free internal self-hosting while limiting your right to offer the software itself to third parties as a service.

PolyForm Noncommercial 1.0.0

PolyForm-Noncommercial-1.0.0

Non-commercial use, modification, and sharing are allowed. Commercial use needs separate permission from the publisher.

Proprietary EULAs and custom commercial licenses

Your rights come only from that vendor agreement. There is no general open-source permission set underneath it.

Creative Commons and content licenses

You will meet these on docs, wikis, diagrams, and media packs around self-hosting, not usually on the app backend itself. The first question is always which part of the project they cover.

Creative Commons Attribution-ShareAlike 4.0

CC-BY-SA-4.0

Attribution plus share-alike. Publicly shared adaptations must use a compatible ShareAlike license.

Creative Commons NonCommercial

CC-BY-NC-4.0

Free non-commercial use with attribution. Company use and other commercial use need a different permission.

Patterns, not licenses

Three shapes you will meet on directory cards that are not single licenses at all.

Dual licensing

Dual licensing gives the same code more than one legal path, often AGPL for the community and a paid license for companies. You follow the option you qualify for.

Community edition plus enterprise modules

The software splits into a free community edition and paid enterprise modules. The core may be open or source-available while features like SSO sit behind a separate commercial license.

or-later, linking exceptions, and mixed trees

Version suffixes, linking exceptions, and licenses that vary by folder. These change what you may do even when the short label looks familiar.

What is the difference between open source and source-available?

Open source means anyone may use, study, change, and share the software for any purpose, including commercial use, as set out in the Open Source Definition. MIT, Apache-2.0, GPL, and AGPL all qualify. A duty to share source isn't a limit on use, so copyleft licenses count.

Source-available means the code is public, but the terms limit some uses. SSPL, Elastic License, BSL, FSL, and PolyForm each limit something different.

A public repository or a free download doesn't tell you which one you have. Read the license before company use, redistribution, or paid hosting.

Which license should I choose for my self-hosted app?

Start from what you want to allow and what you want to prevent.

If you wantConsider
As many users as possible, and you don't mind who profitsMIT, or Apache-2.0 for an explicit patent grant
Changes to your files shared back, without rules for whole productsMPL-2.0
A library others can use in closed productsLGPL-3.0, or MIT
No closed, hosted copies of your changed appAGPL-3.0
A business on top of open source codeAGPL-3.0 plus a paid commercial license. You need the rights to all the code, often through contributor agreements.
To block resale as a managed service, and you accept losing the open source labelBSL 1.1 or FSL, which turn into open source licenses after a set time. Elastic-2.0 or Sustainable Use if you want no conversion date.
Free personal use and paid company usePolyForm Noncommercial. Expect fewer business users.

Whatever you choose, add a short note beside the LICENSE file that says in plain words what self-hosters may do.

Questions people ask

Can my company change a GPL app and keep the changes private?

Yes, as long as the copies stay inside the company. GPL applies when you distribute, and internal use isn't distribution.

Is code on GitHub automatically open source?

No. Code is open source only when its license meets the Open Source Definition. SSPL, BSL, FSL, Elastic, and PolyForm code is often public, and none of those licenses are open source.

Can I sell hosting for an MIT-licensed app?

Yes. Permissive licenses allow it. That's one reason some projects later move to AGPL or a source-available license.

Do two BSL 1.1 projects grant the same rights?

No. Each project sets its own Additional Use Grant and change date, so read both.

Can I use code from a repository with no license?

First look for a license grant in the README, the docs, or other files. If there's none anywhere, normal copyright applies, so treat it as all rights reserved. GitHub's licensing guidance explains this.