Every open source project comes with a licence, and that licence decides what you may do with the code. For most people using an app, any open source licence is fine: you can use the software for free, for any purpose, including at work. The differences matter when you modify the code, redistribute it or offer it as a service.
The two families: permissive and copyleft
Permissive licences (MIT, BSD, Apache 2.0) let anyone do almost anything with the code, including using it inside closed-source, commercial products. The main obligation is to keep the copyright and licence notice.
Copyleft licences (GPL, AGPL, and the weaker LGPL and MPL) also let you use and modify the code freely, but if you distribute a modified version, you must release your changes under the same licence. The idea is that the software and its improvements stay open.
The main licences at a glance
| Licence | Type | Use commercially | Must share changes when… |
|---|---|---|---|
| MIT | Permissive | Yes | Never (keep the notice) |
| BSD | Permissive | Yes | Never (keep the notice) |
| Apache 2.0 | Permissive + patent grant | Yes | Never (keep notices, state changes) |
| MPL 2.0 | Weak copyleft (per file) | Yes | You distribute modified MPL files |
| LGPL | Weak copyleft (library) | Yes | You distribute a modified version of the library |
| GPL | Strong copyleft | Yes | You distribute the software or a derivative |
| AGPL | Strong copyleft + network | Yes | You distribute it or let users interact with it over a network |
MIT
The MIT License is the most popular licence on GitHub. It is a few short paragraphs: do what you like, keep the notice, no warranty. Excalidraw, Godot and Ghost use it.
Apache 2.0
Like MIT, but longer and more explicit, with a patent grant that protects users from patent claims by contributors. Popular with foundations and companies: Jitsi Meet, Keycloak and Supabase are Apache-licensed.
GPL
The GNU General Public License is the classic copyleft licence behind Linux, GIMP and OBS Studio. Use and modify freely; if you distribute the result, it must also be GPL, with source code.
AGPL
The Affero GPL closes the “SaaS loophole”. Under the GPL, a company can modify software and run it as a web service without sharing its changes, because it never distributes the software. The AGPL requires that users interacting with a modified version over a network can get its source code. That’s why so many self-hosted web apps choose it: Nextcloud, Mastodon, Immich and Plausible are all AGPL.
LGPL and MPL
The “weak copyleft” licences sit in between. Changes to the licensed code itself must be shared, but it can be combined with proprietary code. Firefox, Thunderbird and LibreOffice use the MPL.
Open core: when only part is open source
Many companies publish the core of their product under an open source licence and keep some enterprise features (single sign-on, audit logs, advanced permissions) under a separate commercial licence. This is called open core. The open source part is still genuinely open source and can be self-hosted, but check that the features you need are in it. On this site we add a note to projects that work this way.
Source-available is not open source
Some licences publish the source code but restrict how it can be used: the Business Source License (used by Terraform since 2023), the Server Side Public License, the Elastic License or the Sustainable Use License. These are often called source-available. They are not approved by the Open Source Initiative, usually forbid offering the software as a competing service, and are not listed here. When a project switches to such a licence, the community often forks the last open version, as happened with OpenTofu.
Which licence should you look for?
- As a user or company running the software internally: any OSI-approved licence works. Copyleft obligations only apply when you distribute or (for AGPL) offer modified versions to others.
- If you want to build a commercial product on top of the code: permissive licences (MIT, Apache, BSD) give you the most freedom.
- If you care that the project can never be taken private: strong copyleft (GPL, AGPL) offers the most protection, especially combined with many independent contributors.
Browse all projects by licence.