r/webdev • u/maher1717 • Oct 06 '26
AI generated code copyrights
Does anyone consider the copyright of code generated by AI? Because, based on research I've done on Copyright and Artificial Intelligence, generated code fall to the public domain, and if you modify it, only the modified parts belong to you. Also, a detailed prompt isn't enough.
This is, in my view, a major issue; yes, we can ignore it and consider it backward law, but no one knows what would happen in the future, and this law could be used against you.
Edit: here sources for USA https://www.congress.gov/crs-product/LSB10922 ,
For Europe : https://www.europarl.europa.eu/thinktank/en/document/EPRS_BRI(2025)782585
blog : https://smpl.as/blog/ai-code-ownership-legal ...
30
u/mekmookbro Laravel Enjoyer ♞ Oct 06 '26
Coinbase CEO was quite proud to announce their codebase is 50% ai written, I wonder if they'll open source it lol
1
u/LemonFishSauce Oct 06 '26
You’ve drawn that conclusion based on your research and it’s your interpretation, isn’t it?
4
u/maxxon Oct 06 '26
Not sure how you can definitely prove that some code is a result of an LLM output. And vice versa. Even if you can fully explain how your code works it doesn't mean you wrote it completely by hand. Maybe a product can be copyrighted, a brand, a service. But the code under the hood? This is like trying to copyright words and letters.
2
u/zick-one Oct 06 '26
how can they know if a block of code was AI vs Human written though???
2
u/otw Oct 07 '26
It's most likely un-copyrightable and public domain yeah. But that also doesn't mean you can't sell it or that you are required to provide the source. You are allowed sell public domain stuff or generally make money off of it. Stock footage companies sell public domain footage all the time.
That being said, none of this has really been challenged and modern corporate culture doesn't really ever risk going to court. So it's pretty unlikely we will see any definitive answer on this. Anytime there's a dispute, it will probably be settled behind close doors.
I hate copyright though and think this is generally a good thing. I'll also just say I think closed source software is generally dead. Even if you were able to retain the copyright, it's now pretty trivial for someone to replicate your product without infringing or stealing the code.
If you have a business model based on you owning the copyright to code, I would say probably give up on that.
1
u/FredFredrickson Oct 08 '26
I think the real worry is whether or not the code it creates is based on something propriety or otherwise legally unusable.
1
u/FPKodes Oct 08 '26
Lol you’re saying a bunch of nothing. Who the hell is gonna tell me my AI-assisted code is part of “public domain” when my repo is private. Gtfoh, stop fear mongering.
1
u/zionsati Oct 07 '26
Not to mention copilot is recently fully AI ported to Rust by Toub. Claude code itself too is mostly AI written. Most companies use AI extensively to write code these days.
-1
u/Comfortable_Job8847 Oct 06 '26
>n sum, the use of a machine as a tool does not negate copyright protection, but the resulting work is copyrightable only if it contains sufficient human-authored expressive elements.
>he Office agrees that there is an important distinction between using AI as a tool to assist in the creation of works and using AI as a stand-in for human creativity. While assistive uses that enhance human expression do not limit copyright protection, uses where an AI system makes expressive choices require further analysis. This distinction depends on how the system is being used, not on its inherent characteristics.
>As described above, in many circumstances these outputs will be copyrightable in whole or in part—where AI is used as a tool, and where a human has been able to determine the expressive elements they contain. Prompts alone, however, at this stage are unlikely to satisfy those requirements.
seems like the answer is, probably you are fine.
-2
u/Automatic_Currency77 Oct 07 '26
your employment contract already assigns everything you produce to your employer. public domain or not, it was never yours to begin with.
0
u/[deleted] Oct 06 '26
[deleted] — view deleted comment
1
u/[deleted] Oct 07 '26
[removed] — view removed comment
9
u/[deleted] Oct 07 '26 edited Oct 07 '26
[removed] — view removed comment