AI models were trained on open source code, so their output should be open source too

All AI-generated code should be Open Source

AI models were trained on open source code, so their output should be open source too

Jakub Jankiewicz argues that all AI-generated code should be open source. Models were trained on decades of open source code and on Stack Overflow content under Creative Commons licenses requiring attribution, so turning that output into closed, proprietary code amounts to license laundering. He also notes that purely AI-generated code isn't written by a human and therefore shouldn't be copyrightable, citing the Monkey Selfie ruling. He urges developers to release such code under open source licenses or CC0.

Turning this collective knowledge into proprietary, closed-source code feels like license laundering.
  1. jrmg

    In the United States the Copyright Office actually has guidance on this that I feel most people aren’t aware of.

    https://www.copyright.gov/ai/Copyright-and-Artificial-Intell...

    An excerpt, with emphasis mine:

    • Questions of copyrightability and AI can be resolved pursuant to existing law,

    without the need for legislative change.

    • The use of AI tools to assist rather than stand in for human creativity does not affect

    the availability of copyright protection for the output.

    • Copyright protects the original expression in a work created by a human author,

    even if the work also includes AI-generated material.

    • Copyright does not extend to purely AI-generated material, or material where there

    is insufficient human control over the expressive elements.

    • Whether human contributions to AI-generated outputs are sufficient to constitute

    authorship must be analyzed on a case-by-case basis.

    • Based on the functioning of current generally available technology, prompts do not

    alone provide sufficient control.

    • Human authors are entitled to copyright in their works of authorship that are

    perceptible in AI-generated outputs, as well as the creative selection, coordination,

    or arrangement of material in the outputs, or creative modifications of the outputs.

    • The case has not been made for additional copyright or sui generis protection for AI-

    generated content.

    I am sure there will be many more legal battles and probably legislation about this to come.

  2. waximabbax

    By this logic, shouldn't any code using an open-source framework or language also be open source? Even before AI, devs learned from Stack Overflow and plenty of open source code.

    You're confusing writing code with software engineering. Devs never just wrote code, they took ownership of the outcome. Business owners put their money on the line for product decisions.

    To say that just because devs or founders use AI to write code, the code is no longer their intellectual property is ridiculous. Humans take responsibility for the outcome and are willing to accept the losses. AI can't do that. AI doesn't have any stakes in the output it generates, humans do.

  3. osigurdson

    Open sourcing all AI generated code isn't practical and doesn't really even address the issue. An AI model is never going to be able to properly provide attribution or determine what code used what license anyway. Instead, GPL code should be removed from AI training sets going forward by default. Essentially, anyone who does not want AI to train on their code / work of any sort should be able to opt out.

    While this will not impact current models, future models would eventually be free of it.

  4. mbgerring

    I think we need to go one level up in the law, and recognize that existing models of copyright and ownership simply don’t apply here, and come up with something new.

    There is an undeniable core mathematical principle that should be recognized in law somehow: the emergent capabilities of LLMs are not possible without, effectively, the entire recorded intellectual output of human civilization since the dawn of recorded history as training data.

    Trying to determine who “owns” that data, or each individual piece of it, leads us to insane distortions like LLM labs scanning and destroying books. Nobody, including the labs, thinks this is the best solution, but they’re doing it to comply with today’s interpretation of the law.

    The reality is that if we are considering the entire corpus of training data, we all own it. We’re not really talking about who owns one book. We’re talking about who can be said to own all the knowledge in all the books. Who can be said to own the existence of books, or the conditions of civilization that cause us to value and preserve books in general.

    The preservation and archiving of knowledge that enabled the emergence of LLMs is the product of a system of social relations that belong to the entire civilization. It is a commons. And when we talk about the future impact of these systems, we’re generally talking about taking the value of that commons, and concentrating the value of it in the hands of about a dozen people.

    To me, there is no other way to thi […]

  5. blagie

    I am the author of multiple AGPL systems, many in mainstream use. Early LLM models would spit out my code almost verbatim. Modern systems borrow heavily on the creative design of those systems.

    One company first pirated my AGPL code (e.g. shipped it without my name, copyright notices, source availability, etc.). I sent them violation notices. After many months of fighting, they had an LLM clone the system. The LLM clone feels:

    a) Buggy and bad compared to my code

    b) Still, like it's basically my creative content

    It's as if you asked an LLM to rewrite Harry Potter, with the same plot, but bad dialogue.

  6. viraptor

    Doe v. GitHub already decided (I'm simplifying, read the actual thing yourself) that LLM output is not automatically open source - or specifically it doesn't infringe on the open source training material and doesn't inherit the oss copyright notice.

    Thaler v. Perlmutter (again simplified) showed 100% AI output can't be given any copyright.

    The directions the current cases are going are very much opposed to that idea and I wouldn't expect things to change in the opposite direction.

  7. semiquaver

    I really have to wonder what context this person is operating in. The vast majority of software written in the world is proprietary, written for a company to aid some business process, and ridiculously specific to its use case, and freely intermixed with proprietary business information.

    “Open sourcing” is not just a legal state, it’s an affirmative act that takes work to prepare the codebase for public consumption. Saying that all the weird business code in the world should be involuntarily publicized is an incoherent concept. What precisely would OP expect to happen in a world that adhered to their opinion? Because to be clear, 90%+ of all code being written today is LLM-generated, so OP suggests that companies should no longer have any privacy wrt their internal software, all LLM code just gets yeeted into the public. How could that possibly work?

    Given how easy it is to write software now, this perspective seems to overindex on a past state of the world that no longer applies.

  8. glitchc

    The article contradicts itself.

    It's important to remember that the purpose of the license is to allow the copyright owner to exercise their rights in a manner they deem fit. Even if they choose to give the code away, that choice is captured in the form of a specifically worded license (MIT, BSD, etc.).

    This means that licenses exist because code is copyrightable in the first place, with the license governing the use of said copyright. If AI code is not copyrightable, then no license can govern it.

  9. hintymad

    > All AI-generated code should be Open Source

    What problem does this solve, though? If anything, wouldn't this help empower the frontier labs, in particular Anthropic? With everything open sourced, the labs get the knowledge of each company for free, right? Thank about how IBM owned the computation with mainframes until personal computers and workstations became powerful enough.

    If we want freedom as the open source movement advocates, we'd need focus on make building open models accessible to millions of engineers and companies. Given the sheer investment required to build the frontier models, though, I'm not sure there's a way unless we have breakthroughs in the AI algorithms or hardware, so that individual engineers or small companies can build competing models.

  10. x3haloed

    Kind of a silly position. I mean, if it's you're code verbatim, then yeah, it's a violation. Shouldn't be allowed. But like... it saw open-source code and therefore all output must be open source? I don't know about that.

    Here's where I can get on board. I think people should be putting AI to work to improve everyone's lives for free. Your version of "should" is like "we should make this a law." My version of "should" is more like a moral recommendation -- we should be using as much of our subscriptions as possible to benefit everyone instead of enriching a handful of people. I view it as a natural extension of the spirit of free software to begin with. Software should be free (as in freedom), and we finally have enough development power to make real headway on that.

More from this day

2026-11-15