Should the code that AI writes for you belong to everyone? Developer Jakub T. Jankiewicz says yes. In a blog post titled "All AI-generated code should be Open Source," he argues that any code produced with the help of AI should be released under an open source license or dedicated to the public domain through Creative Commons Zero (CC0).
The post is an opinion piece, not a formal proposal, and it arrives as AI coding assistants become a daily tool for developers. It is a debate starter rather than a rule: nothing in current law forces companies to publish the code their AI tools generate.
Why AI-generated code should be open source
Jankiewicz builds his case on how AI models are trained. He notes that large language models learned from a huge corpus of open source code written since the GNU Project and the Free Software Movement began, scraped from the internet without permission or attribution. Models were also trained on Stack Overflow and its Stack Exchange sister sites, whose content is published under Creative Commons licenses that legally require attribution.
Turning that collective knowledge into proprietary, closed-source code feels like license laundering, he writes. In other words, the inputs were shared, so the outputs should be too.
Copyright and the AI code question
The second argument is legal. Purely AI-generated code is not written by a human, so it should not be copyrightable, according to the post. Jankiewicz points to the Monkey Selfie dispute in the United States, which established that non-humans cannot hold copyrights, a precedent later cited by the U.S. Copyright Office in relation to AI.
He adds that Wikimedia Commons requires purely AI-generated images to be tagged as public domain. But he also acknowledges that copyright law differs around the world: the UK, for example, grants limited copyright protection to computer-generated works. To keep things fair across jurisdictions, he says developers and companies should explicitly release AI-generated code under open source licenses or CC0.
Not all code is fully AI-written
Jankiewicz admits that code is rarely 100% manual or 100% automated. Still, he argues that developers increasingly rely on AI without reviewing the generated output, let alone adapting it to their needs. Code produced this way, where the human effort is little more than writing prompts, should definitely be open source, he writes.


