devtools.cihat.dev

GitHub license checker

Before you copy code or add a dependency, see which license the repository uses and what it lets you do with it.

Try:

GitHub API: 60 requests an hour per network without signing in.

How to use it

  1. Paste the repository link or type owner/repo.
  2. Press Check license. GitHub identifies the license file; the tool then reads that license’s terms from GitHub’s license data.
  3. Read the three columns: what you may do, what you must do in return, and what the license does not give you.

The common licenses in one table

Most open source on GitHub uses one of a handful of licenses. They split into permissive ones, which ask little, and copyleft ones, which ask you to share your changes.

LicenseUse in a closed productMain condition
MITYesKeep the copyright and license notice
Apache 2.0YesKeep the notices and state your changes; includes a patent grant
BSD 2-Clause / 3-ClauseYesKeep the notice; 3-Clause also bars using the authors’ names for endorsement
MPL 2.0YesChanged files stay under MPL and their source stays available
LGPL 3.0Yes, as a separate libraryChanges to the library are shared under LGPL
GPL 3.0Only if you release your source under GPLThe whole distributed work is licensed under GPL
AGPL 3.0Only if you release your source under AGPLUsers over a network also get the source

When there is no license

Public is not the same as open. A repository with no license is covered by ordinary copyright, so you may look at it but not reuse it. GitHub’s terms let other users view and fork it on GitHub; nothing more. If you need the code, open an issue and ask the author to choose a license.

For your own repository, the license generator writes the file with your name and year.

Questions people ask

How do I check the license of a GitHub repository?

Paste it above. GitHub detects the license file, and the tool shows the license with what it permits, requires and excludes. On github.com the license also shows in the repository’s About panel.

Can I use MIT licensed code commercially?

Yes. MIT allows commercial use, modification and distribution, as long as the copyright and license notice stay with the code.

What does “not identified” mean?

There is a license file, but its text does not match any license GitHub knows, usually because it was edited. Read the file itself.

Is this legal advice?

No. It summarises the main terms from GitHub’s license data. For a real decision, read the license text and ask a lawyer when it matters.

Does it check the licenses of dependencies?

No. It checks the repository’s own license. Each dependency has its own; check them one by one or use your package manager’s license report.