Who owns the code Claude Code wrote?
The ownership of AI-generated code, such as that produced by tools like Claude Code, remains legally uncertain and depends on the level of human creative input, employment agreements, and potential contamination from open-source licenses. Current U.S. copyright law requires human authorship for protection, and works generated predominantly by AI may not qualify for copyright. A 2026 incident where Anthropic's AI-generated code was leaked and rapidly replicated highlighted unresolved legal questions around ownership and enforceability of intellectual property rights.
- ▪Copyright law in the United States protects only works created by humans, and AI-generated code without meaningful human input may not be eligible for protection.
- ▪The 2026 Thaler case upheld the principle of human authorship for copyright but did not directly address AI-assisted code or cases involving partial human involvement.
- ▪Anthropic accidentally released 512,000 lines of AI-generated source code, sparking legal questions about ownership after the code was quickly copied and rewritten by others.
- ▪Employment contracts often assign ownership of AI-assisted work to employers, regardless of the extent of AI involvement.
- ▪The term 'meaningful human authorship' is key to establishing copyright, but no specific threshold has been defined by courts or the U.S. Copyright Office.
Opening excerpt (first ~120 words) tap to expand
Who Owns the Code Claude Wrote?AI-generated code copyright explained for builders.Sena EvrenApr 28, 2026621319ShareTL; DRAgentic coding tools like Claude Code, Cursor, and Codex generate code that may be uncopyrightable, owned by your employer, or contaminated by open source licenses you cannot see. Some of this is settled law, some is actively contested, and this piece is clear about which is which. If you are shipping AI-assisted code and have not thought about any of this, this piece is for you.Legal Layer Angle: In this piece I will talk about what a developer using AI coding tools needs to document to own what they build, what their employment contract probably says about AI-assisted work product, and what the practical implication is for open source contributions written with AI…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Substack.