TL;DR
A license is the written permission that lets us use someone else's code or AI model, and it always comes with conditions. Permissive licenses like MIT and Apache 2.0 mostly ask us to keep notices. Copyleft licenses like the GPL ask us to share our source when we distribute. Custom model licenses add rules about use.
- Asking npm for four packages put 69 in Biscuit's folder: 63 MIT, 4 ISC, 1 Apache-2.0, and 1 BSD-3-Clause.
- Code with no license isn't free to use, because the default copyright laws apply until its author adds one.
- The GPL's rule kicks in when we give people a copy, while the AGPL also covers people using a modified version over a network.
- Model licenses can change between versions and add use rules, like Llama 4's Built with Llama notice and Acceptable Use Policy.
When Wren asked the coding agent for a server that could take orders and talk to an AI model, the agent added four packages to Biscuit's project. Four sounds manageable. Then npm installed those four along with everything they depend on, and Biscuit's project folder ended up holding 69 packages written by people Wren has never met.
Every one of those packages came with a little note saying what we are allowed to do with it, and the same goes for any AI model Biscuit might run on. In this article, we'll learn to read those notes, figure out which ones come with strings attached, and check every one of them in our own product.
Onwards!
A Library Card With Conditions
Using somebody else's code is a lot like checking out a book from a library. We get to take it home and use it, but only because the library said so, and the card comes with conditions printed on it.
Here is what that card looks like for one of Biscuit's packages:
That card has a name, and it's called a license. It's the written permission a code's author gives everybody else. As we saw in Copyright, Trademarks, and Patents for Builders, code is copyrighted the moment it's written, so without a license, we would have no permission to use it at all.
Some licenses meet a specific bar. The Open Source Initiative (OSI) maintains the Open Source Definition, and a license that meets it lets anyone use, study, change, and share the code for any purpose, including selling a product. Those are open source licenses. The trap is thinking that open source means there are no rules. Every one of these licenses still has conditions, and the conditions are what the rest of this article is about.
What If There's No License?
Before we look at the conditions, we are going to look at the case where there's no card at all. The agent suggested a slick chat widget it found on GitHub, and that repository has no license file:
No license doesn't mean free to use. It means the opposite. GitHub's own documentation says that without a license, the default copyright laws apply, so no one may reproduce, distribute, or build on the code. GitHub's terms let people view and fork a public repository, and that's about it. If Wren really loves that widget, the move is to ask its author to add a license.
How Many Licenses Is Biscuit Carrying?
Let's go back to those 69 packages. How did four requests turn into a folder full of code?
Each package we ask for brings along the packages it depends on, and those bring their own:
A free tool called license-checker reads the license that each package declares. Here is what it found in Biscuit's folder on December 1, 2026:
Almost all of them use MIT, with four ISC, one Apache-2.0 (the openai package), and one BSD-3-Clause. That's pretty typical for a JavaScript project, and it's good news, because all four of those belong to the most relaxed family of licenses.
What Do Permissive Licenses Ask For?
MIT, ISC, BSD, and Apache 2.0 are called permissive licenses. They let us use the code in anything, including a product we sell, without sharing our own code. Their conditions are small, but they are real.
Here is what MIT and Apache 2.0 ask of us:
The MIT License asks for one thing: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." The Apache License 2.0 asks for a little more. It also gives us something MIT doesn't, which is a patent license from every contributor. That patent license ends for anyone who sues claiming the code infringes their patent.
Keeping the notices usually means shipping a third-party notices file with our product, or a credits screen in an app. Here is the start of Biscuit's:
It's boring, and it's the part people skip most often. The good news is that the same tools that list our licenses can usually generate this file for us.
What Does Copyleft Mean?
A second family of licenses asks for something bigger. If we share a program built with their code, we have to share our program's source code too, under the same license. These are called copyleft licenses, and the best known one is the GNU General Public License, or GPL.
So when does that rule kick in? This is the part that trips people up. The GPL asks for our source when we give the program to other people, and just using it doesn't count. Let's say Biscuit used a GPL library to print receipts.
Here are three ways that could play out:
The GPL FAQ says it plainly. We're free to make changes and use them privately, but if we release a modified version to the public, we have to make its source available under the GPL. Running code on our own server, the way Biscuit runs, doesn't count as releasing it. That gap is why the GNU Affero GPL (AGPL) exists. Its section 13 says a modified version has to offer its source to everyone who uses it over a network.
So copyleft comes in strengths. Here is the whole range, from the most relaxed to the strictest:
Nothing on this scale is good or bad. A GPL library is a fine choice for a web app we never hand out copies of, and an AGPL library in a hosted product is a decision our team should make on purpose rather than by accident.
Can a License Change?
Yes, for future versions. A project's owner can change the license going forward, while the versions already released keep the license they shipped with.
Redis, the popular in-memory database, is the go-to example:
For about 15 years, Redis used the permissive BSD 3-Clause license. In March 2024, starting with Redis 7.4, it switched to two source-available licenses, which let us read the code but don't meet the OSI's definition of open source. Then in May 2025, it added the AGPLv3 as an option. Anyone who upgraded without reading the fine print got a different deal each time.
What About AI Model Licenses?
So far, we have only talked about code. Biscuit also needs an AI model, and the bakery's owner has been wondering whether to download one and run it ourselves, as we explored in What Does Open Mean in Open AI Models? Models come with licenses too, and at the time of writing, they fall into three rough groups:
Models under standard licenses like MIT and Apache 2.0 work just like Biscuit's packages. The others add rules about how the model can be used. Meta's Llama 4 Community License, for example, asks companies with more than 700 million monthly users to get a separate license, requires showing "Built with Llama", and points to an Acceptable Use Policy.
A third style, the OpenRAIL licenses used by models like Stable Diffusion, takes the use rules even further:
The CreativeML OpenRAIL-M license says its use restrictions must be included as an enforceable provision in the license of any model built from it. The rules ride along from one fine-tune to the next.
Model licenses can change between versions, just like Redis did. Here is Google's Gemma family:
Gemma 3 shipped under Google's own Gemma Terms of Use, and in April 2026, Google released Gemma 4 under Apache 2.0. It's the same family with a very different deal, so the license we check has to be the one for the exact version we download.
Biscuit's License Check
Let's put all of this together for Biscuit. Here is Wren's checklist, along with what each license means for us:
Most of Biscuit's licenses are easy yeses as long as we keep the notices. The chat widget stays out until its author adds a license. If Wren ever wants a GPL or AGPL package, that becomes a conversation for the whole team, and anything with a custom or source-available license gets read in full before we depend on it.
Note: This Isn't Legal Advice
This article explains how these licenses work in general, as of December 2026. Licenses are legal agreements, and how they apply can depend on the details and on where you live. For a decision that really matters, like shipping a product built on copyleft code, talk to a lawyer.
Try It This Week
List your dependencies' licenses:
- Run a license checker on your project, like license-checker for npm or pip-licenses for Python, and save what it finds.
- Sort the results into permissive, weak copyleft, copyleft, network copyleft, custom or source-available, and unknown.
- Look up every unknown and every package with no license, then ask its author for one or replace it.
- Check the license for the exact version of any AI model you run yourself.
- Make sure your product ships a notices file with every notice its licenses ask for.
If you find a copyleft or custom license in something you distribute, that's the one to read slowly.
Frequently Asked Questions
Can I Use MIT-Licensed Code in a Commercial Product?
Yes. The MIT License lets anyone use, change, and sell the code, including inside closed products. Its one condition is that the copyright notice and permission notice stay with all copies or substantial portions of the software, which a third-party notices file usually handles.
What Happens If Code on GitHub Has No License?
The default copyright rules apply, so nobody has permission to copy, share, or build on it. GitHub’s terms let people view and fork a public repository, but that isn’t permission to use the code in a product. Ask the author to add a license.
What Is the Difference Between GPL and AGPL?
Both ask us to share our source under the same license when we share a modified program. The GPL’s rule kicks in when we give people a copy, so running it on our own server doesn’t trigger it. The AGPL adds that people using a modified version over a network must be offered its source too.
Is Llama Open Source?
Not by the Open Source Initiative’s definition. Llama 4’s weights are free to download and use, but its Community License adds conditions like a separate license above 700 million monthly users, a Built with Llama notice, and an Acceptable Use Policy. That’s why people call it an open-weight model.
Conclusion
Ok! Time to wrap things up. Every package in Biscuit, and every model it might run on, came with a library card. Most of Biscuit's cards are permissive, so we can do almost anything as long as we keep the notices. Copyleft cards ask us to share our own source when we give the program to others, and the AGPL stretches that to people using it over a network. Model licenses can add rules about how the model gets used, and some of those rules follow every model built from it.
None of this is scary once it's written down. The real risk is the package nobody looked at...like a chat widget with no license, or a library whose next version came with a different deal. Knowing what we're allowed to do is half of the job, though. The other half is asking whether we should, and in Who Could This Hurt?, we will run a quick exercise to find the people our product might harm before we ship it.
Before you go, here are a few things you can do:
-
Keep reading
Read the next article in the series, Who Could This Hurt?, or check out some related content:
-
Ask a question
Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.
Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.
Your support keeps this site going! 😇














