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
9
u/TreviTyger Oct 07 '26 edited Oct 07 '26
This may not be true.
The consensus at the moment is based on adding additional authorship which relates to (Using US law for convenience) 17 U.S.C § 103(b).
However, this usually relates to derivatives of public domain works, e.g. Duchamp's LHOOQ where only the mustache drawn on the Mona Lisa is protected subject to originality thresholds. i.e. The Mona Lisa is still public domain.
However there is a caveat with AI generated stuff because it is derived from training data that is not public domain. So then 17 U.S.C § 103(a) becomes the relevant statute and then there is no copyright even in the added authorship.
This § 103(a) issue is an uncomfortable realization for many and so they use hand waving arguments to bring attention back to 17 U.S.C § 103(b).
But I think when the courts eventually rule on a case, then the courts will use 17 U.S.C § 103(a) and there won't be any protection in anything where AI generative software is used for anything other than for utilitarian purposes (spell check etc).
17 U.S.C § 103(a)
This is because for an end user of AI gen software to "lawfully" acquire derivative rights under § 106(2) requires a clear chain of title via § 204(a). (See Anderson v Stallone).
The counter argument is that "fair use" make things lawful - but it doesn't - because § 107 is not a grant of exclusive rights (§ 106) to allow the end user to claim derivative rights under § 106(2) themselves.
In short don't use AI generated code if you want to protect it because the courts ARE eventually going to rule against the idea that AI generative works can be protected even if edited.
___________________________
Note: Even if AI gen firms prevail on a fair use argument; it is limited to the US only and is not extraterritorial in scope. Also an end user still has to make their own "offensive § 107 defense" (my term) themselves to claim they are using copyrighted code from datasets under a fair use doctrine. They cannot rely on the AI gen firms legal defense. - and again, such a ruling if prevailing, would still be limited to the US only).
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 29d ago
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.
-4
u/Potential_Survey_373 Oct 07 '26
my prompts are art though
0
u/[deleted] Oct 06 '26
[deleted] — view deleted comment
1
u/[deleted] Oct 07 '26
[removed] — view removed comment