What it is
Software starts as source code, the human-readable instructions a programmer writes. Most commercial software ships only the finished, compiled version. Open-source software publishes the source code too, under a license that gives other people the right to use it, study it, change it and pass it on.
The license is the heart of it. Code that is merely visible is not necessarily open source. A project is open source when its license grants those rights. The Open Source Initiative keeps the widely used definition, and common licenses include MIT, BSD and the Apache 2.0 license.
Licenses differ
Open source does not mean no rules. Permissive licenses, like MIT and Apache 2.0, let you use the code in almost any project, including paid products, as long as you keep the notice. Copyleft licenses, like the GPL, require that changes you distribute stay open under the same terms.
Always read the license before you build on something.
How it shows up in AI
Much of the AI toolchain is open source: libraries for training models, servers for running them, and frameworks for building agents. Protocols such as the Model Context Protocol are published as open standards that anyone can implement.
Models are a murkier case. An open-weight model releases its trained numbers so you can run it yourself, but may keep the training data and code private, and its license may add limits. Some people argue that is not truly open source. When a release is called "open," check what is actually included and under which terms.
Why it matters, including the risks
Open code can be inspected by anyone, which helps catch bugs, and it lets you run tools on your own hardware (local inference) without depending on one vendor.
It also has costs. Anyone can study the code, including attackers. Popular projects are often maintained by a few volunteers, and a hijacked package can spread to thousands of users, which is how a supply chain attack works. Pin the versions you depend on, and keep them updated.
Open-source tools can also be turned to misuse. A tool built for security testing, for example, can be picked up by attackers because it is free and well documented.
Questions to ask before you adopt a project
- What is the license, and does it fit your use?
- Is it actively maintained, and by whom?
- Who reviews changes before they ship?
- Do you know exactly which version you are running?
Open source is a way of sharing work, not a guarantee of quality or safety. The openness is what lets you check for yourself.