Back to Learning Area

Open Source vs. Closed Source

When a model is "open" and when that word is just marketing — an overview.

  • Fundamentals
  • 12 min
  • Beginner

Plain Language

This preview is in Plain Language. The whole portal is also available in Plain Language. You can change the language at the top. Or use the button below. Our Plain Language texts are AI-assisted and editorially reviewed. They follow the core principles of easy-to-read language, but they are not certified Easy Read: a review panel of people with learning difficulties does not test them.

Preview: What is open source?

Open or closed?

Some programs show their code. Code is the blueprint of the program. This is called open source. Other programs hide their code. This is called closed source. Anyone can read and check open-source code.

Licenses regulate usage

Open source has ground rules. These ground rules are called licenses. There are two main types: MIT license: you can use and change the code. GPL license: you can use the code. But you must also share your changes.

Why this is important for AI

For AI programs, openness is important. You can check how the AI was trained. You can find hidden errors. A closed AI program is like a locked box. You have to trust the manufacturer blindly.

Every time you use an AI chatbot, you trust a system whose inner workings you cannot see. You cannot check what data it was trained on, whether it has hidden biases, or what it does with your input.

What if you could look under the hood — not just at the results, but at the engine itself? That is the promise of open source. By the end of this article, you will understand three things: what source code is, how licenses determine what you can do with it, and why all of this becomes critical when the software is an AI system.

What You See — and What You Don't

Definition

Source Code — The Recipe Behind the Software

Analogy

Open source is like a published recipe: you can read the ingredients, follow the steps, adjust the seasoning, and share your improved version. Closed source is like a factory-sealed ready meal: you can eat it, but you have no idea what is inside or how it was made.

The recipe analogy has limits: software can be copied infinitely at zero cost (cooking requires ingredients). A "recipe" with millions of lines of code is only readable by specialists. Some licenses allow reading but restrict commercial use (source-available).

Linux — Open Source

Over 40 million lines of code, publicly visible (on kernel.org, mirrored on GitHub). Anyone can read the code, report bugs, or submit patches. Started in 1991 with ~10,000 lines.

Windows — Closed Source

Proprietary source code that, apart from Microsoft, only selected partners can partially see. Users receive installation packages, not source files. Public, independent inspection is not possible.

Important: code on GitHub is not automatically open source. Without a LICENSE file, full copyright protection applies — no one may copy, modify, or distribute the code, even if it is publicly visible. Public visibility does not grant usage rights. The only exception: GitHub’s terms of service allow anyone to view and fork a public repository on GitHub.

Caution

Common Source Code Misconceptions

"Open Source = free" — Not necessarily. Open source means access to source code and certain freedoms, but companies like Red Hat earn billions with open-source software through support and services.

"Closed Source = more professional" — Most web servers (Apache, Nginx), programming languages (Python), and cloud infrastructures are based on open source. Professionalism does not depend on the licensing model.

"Code on GitHub = Open Source" — Without a LICENSE file, all rights belong to the author. Visibility is not the same as usability.

The Rules of the Game — Software Licenses

Definition

License — The Legal Rules of Open Source

Analogy

Licenses are like the rules of a community garden. A permissive garden (MIT) says: "Pick what you want, use it or sell it — just mention where it came from." A copyleft garden (GPL) says: "You may harvest and breed new plants, but your new varieties must also be available to everyone." A source-available garden lets you look and taste, but prohibits selling the harvest beyond certain limits.

The garden analogy has limits: licenses are legally enforceable contracts with real consequences. Code copies perfectly while plants do not. Subtle legal differences like patent clauses have no garden equivalent.

Permissive (MIT, Apache 2.0)

Maximum freedom. Code visible, modifications allowed, commercial use allowed. Main obligation: keep the copyright and license notice. Changes do not need to be shared.

Copyleft (GPL)

Same freedoms, but with one condition: derivative works must also be under GPL. If you modify the code and distribute it, you must release your source code.

The third family is called source-available: the code is visible, but commercial use or redistribution is restricted. Important: source-available is not the same as open source — the Open Source Initiative (OSI) does not recognize such licenses as open source.

Note

Case Study: LLaMA vs. Mistral

Meta called its LLaMA models "open source," but the Llama Community License restricts companies with over 700 million monthly active users and requires separate licensing. This violates OSI criteria, which do not allow discrimination against specific users. Meta’s first Muse model, Muse Spark (April 2026), was only available closed, via app and API. Since then, Meta has also released Muse models with open weights: Muse Glimmer (August 2026) under Apache 2.0 and Muse Spark Open (October 2026) under its own license, which requires large hosting providers to sign an additional agreement.

In contrast: Mistral publishes many models under Apache 2.0 — genuine open source in licensing terms, with unrestricted commercial use (though Mistral does not disclose its training data either). Still, it pays to look closely here too: Mistral’s largest model, Large 4 (October 2026), comes under its own license, under which providers hosting it as a service need an additional license. The LLaMA case shows why you must read the actual license, not just the marketing.

Caution

Common License Misconceptions

"GPL prohibits commercial use" — No. GPL allows commercial use but requires derivative works to also release their source code when they are distributed.

"No license = public domain" — No. Without a license, full copyright protection applies. No one may use the code.

"Open Weights = Open Source" — No. Model weights are the numerical values a model learns during training — its finished ‘knowledge’. For genuine open-source AI, the OSI has required since October 2024 (Open Source AI Definition 1.0) the weights under open terms, the complete code for training and running the model under an open license, and detailed information about the training data. Merely downloadable weights are a different category; LLaMA is an example. Models that passed the OSI review include OLMo (AI2) and Pythia (EleutherAI).

Interactive: Open Source, Free Software & Proprietary

Click on the regions of the Venn diagram to explore the overlaps between Open Source, Free Software, and Proprietary software. The intersections reveal hybrid models like dual licensing or open core.

Why This Matters for AI — Transparency

A closed AI system is like a car with a sealed hood: you can drive it, but you cannot inspect the engine, verify the safety ratings independently, or repair it yourself. You must trust the manufacturer's claims entirely.

An open AI system lets you open the hood, check every bolt, and even build a better engine. However: most users cannot read source code even when available. And open-source projects sometimes lack resources for thorough review.

Security: open code allows community-driven vulnerability discovery. But it is not a guarantee — the Heartbleed bug hid for over 2 years in OpenSSL, even though the code was open.

Trust: independent audits can verify claims about safety and fairness. With closed systems, you must blindly trust the provider.

Innovation: open models let anyone build on existing work. The history of GNU/Linux proves that open-source collaboration produces systems that power the world.

Closed

The models behind ChatGPT and Claude: accessible only via API or app. No source code, no training data. You can use the model but cannot inspect, run locally, or modify it. The line does not always run between companies, though: in 2025, OpenAI also released open-weight models under Apache 2.0 with gpt-oss.

Open Weights

LLaMA: Model weights available for download, but with a restrictive license. You can run the model locally and pass it on under conditions (include the license, display “Built with Llama”). Companies whose services have more than 700 million monthly users need a special license from Meta; for the multimodal Llama 4 models, people and companies based in the EU are excluded as licensees altogether.

Open Source

Mistral 7B (Apache 2.0): Full license freedom. Weights available, no usage restrictions — but the training data remains closed. The OSI definition of open AI (OSAID 1.0) also requires the training code and detailed information about the training data; Mistral’s Mixtral failed the OSI review because such components are missing. You can use, modify, sell, and redistribute the model.

Hugging Face Central platform for AI models, datasets, and demos
Ollama Run language models locally on your computer
LM Studio Free but proprietary graphical interface for local language models
Stable Diffusion Image generation with open weights on your own hardware (license with conditions, not open source by OSI standards)
n8n Source-available automation with AI integration

"Given enough eyeballs, all bugs are shallow" — this is how Eric S. Raymond formulated the principle named after Linus Torvalds. The idea: the more people read the code, the more likely bugs are found.

Reality is more complicated. The Heartbleed bug hid for over 2 years in OpenSSL, one of the most widely used security libraries in the world — despite the code being open. The "many eyes" were apparently looking elsewhere.

In 2024, a sophisticated backdoor was discovered in the xz compression tool — a targeted supply chain attack where an attacker gained the maintainers' trust over years. The open collaboration became the attack vector.

The takeaway: transparency is necessary but not sufficient. It must be accompanied by active, funded security review. Open source provides the ability to inspect — but someone must actually do it.

Note

Key Takeaways

  1. Source code is the human-readable recipe; a compiled binary is the sealed product. Open source gives you the recipe; closed source gives you only the product.
  2. A license turns visible code into legally usable code. Without a LICENSE file, code on GitHub is all-rights-reserved by default.
  3. Permissive licenses (MIT, Apache) let you do almost anything. Copyleft (GPL) requires you to disclose changes once you distribute them. Source-available lets you look but restricts what you can do.
  4. "Open weights" (like LLaMA) are not the same as "open source" — without an OSI-approved license, training code and information about the training data, key transparency is missing.
  5. For AI systems, transparency is not a luxury — it enables independent security audits, bias detection, and reproducible research.

Check

Quiz: Open Source vs. Closed Source

Not completed

What does a LICENSE file in a GitHub repository do?

Select one answer

Answer Key: 1) B · 2) B · 3) C · 4) B

Check

Checkpoint: Test Your Knowledge

Can you explain this in your own words? Tick what you've got.

0 of 3 done