Who owns code written with Claude Code? IP, copyright and contract points

By: Irina Shvaya | October 14, 2026
This article is part of our Claude Code Guide: what Claude Code is, how to use it safely on a business website, and how to budget for and choose help. Want it set up for your team? See Claude Code consulting.

Between you and Anthropic, you own what Claude Code produces for you. Anthropic's Commercial Terms (Team, Enterprise, API) say the customer "owns its Outputs," and both the commercial and consumer terms assign Anthropic's rights in outputs to the user, "if any." That last phrase is the catch. Anthropic's terms settle who holds whatever rights exist; they don't create copyright where the law doesn't recognize it. In the US, the Copyright Office's position is that AI output is protected "only where a human author has determined sufficient expressive elements," and prompts alone don't count.

For a business website, that usually matters less than it sounds, because a real site is a mix of human decisions, human edits, existing code and AI-written pieces. What matters more is the chain from Anthropic to whoever holds the account, and from them to you, plus the limits of Anthropic's IP indemnity. This guide lays those out as of October 2026. This is not legal advice. Copyright and contract law vary by country and change; if the code is central to your business, or you are buying or selling a company that depends on it, ask an intellectual property attorney.

Key Takeaways

  • Commercial Terms (effective June 17, 2025): "Customer (a) retains all rights to its Inputs, and (b) owns its Outputs," and Anthropic "assigns to Customer its right, title and interest (if any) in and to Outputs."
  • Consumer Terms (effective October 8, 2025), which cover Pro and Max: "we assign to you all of our right, title, and interest—if any—in Outputs."
  • The US Copyright Office (January 29, 2025) says AI-assisted work can be protected where a human makes "creative arrangements or modifications of the output, but not the mere provision of prompts."
  • Only the Commercial Terms include an Anthropic IP indemnity, and it excludes claims arising from your modifications to outputs, combining outputs with other technology, patents and trademarks.
  • On consumer plans there is no Anthropic indemnity; the user indemnifies Anthropic instead.
  • If a vendor's account produced your code, the vendor is Anthropic's customer, and your contract with the vendor is what transfers the work to you.

What Anthropic's terms say about ownership

Claude Code is governed by Anthropic's standard terms: Commercial Terms "for Team, Enterprise, and Claude API users" and Consumer Terms "for Free, Pro, and Max users," per Anthropic's legal and compliance page. On ownership they are close:

PointCommercial TermsConsumer Terms
Your inputs"retains all rights to its Inputs""you retain any right, title, and interest that you have in the Inputs"
Outputs"owns its Outputs"; Anthropic assigns its rights "(if any)"Anthropic assigns its rights "if any"
Condition"Subject to Customer's compliance with these Terms""Subject to your compliance with our Terms"
Training on your content"Anthropic may not train models on Customer Content from Services"Depends on your training setting
IP indemnity from AnthropicYes, with exclusions (see below)No; you indemnify Anthropic

Three points are easy to miss. The commercial ownership clause applies "As between the parties and to the extent permitted by applicable law," so it settles rights between you and Anthropic, only as far as the law allows, and doesn't decide anyone else's claims. The assignment is conditional on following the terms, including the Usage Policy. And "Outputs" means responses generated by the service; your existing code, which you send as input, stays yours either way.

Can AI-written code be copyrighted?

This is a question of law, not of Anthropic's terms. In the US, the Copyright Office's Part 2 report on copyrightability (January 29, 2025) concluded that "the outputs of generative AI can be protected by copyright only where a human author has determined sufficient expressive elements. This can include situations where a human-authored work is perceptible in an AI output, or a human makes creative arrangements or modifications of the output, but not the mere provision of prompts." It also said "the use of AI to assist in the process of creation or the inclusion of AI-generated material in a larger human-generated work does not bar copyrightability."

What that means in practice for a website, in general terms that your attorney can refine:

  • Your existing site remains yours. Code, copy and design that people wrote don't change status because Claude Code edited around them.
  • Human selection, arrangement and editing count. A site where people decided the structure, reviewed and rewrote output, and combined it with their own work is in a different position from code generated in one prompt.
  • Small, purely generated snippets may have thin or no protection. For most business sites, that is a minor risk; your competitive value is rarely a CSS file.
  • Other countries take their own positions. Ask counsel where you or your customers are.

The Copyright Office has also issued registration guidance for works that contain AI-generated material. If you plan to register software or content, read it and get advice before filing.

Anthropic's IP indemnity: what it covers and what it doesn't

An indemnity is a promise to defend you, and pay certain costs, if someone sues. Section K.1 of the Commercial Terms says Anthropic will defend the customer against "a third-party claim, suit, or proceeding alleging that Customer's paid use of the Services (which includes data Anthropic has used to train a model that is part of the Services) in accordance with these Terms or Outputs generated through such authorized use violates any third-party intellectual property right."

Section K.3 then excludes claims that arise from:

  1. "modifications made by Customer to the Services or Outputs"
  2. "the combination of the Services or Outputs with technology or content not provided by Anthropic"
  3. "Inputs or other data provided by Customer"
  4. use the customer "knows or reasonably should know violates or infringes the rights of others"
  5. "the practice of a patented invention contained in an Output"
  6. "an alleged violation of trademark based on use of an Output in trade or commerce"

It also excludes claims arising from the indemnified party's "fraud, willful misconduct, violations of law, or breach of the Agreement." Read the exclusions against how websites are actually built. Nearly all website code is edited by people and combined with frameworks, themes, plugins and your own content, which are the situations exclusions (a) and (b) describe. The indemnity is real, but it is narrower than "Anthropic has you covered," and only applies to "paid use" under commercial terms. How it applies to a given claim is a question for counsel.

The Consumer Terms have no equivalent. Instead: "YOU AGREE TO INDEMNIFY AND HOLD HARMLESS THE ANTHROPIC PARTIES," and Anthropic's liability is capped at the greater of what you paid in the previous six months and $100. That is one more reason company work belongs on a commercial plan; the plans are compared in our guide to Claude Code pricing and plans.

Open-source code and third-party components

Claude Code can add packages, copy patterns from documentation, or write code that resembles common open-source snippets. Open-source licenses come with conditions, such as keeping notices or, for some licenses, sharing source code. Those obligations are yours whether a person or an AI added the component.

  • Review new dependencies in every pull request, including their licenses.
  • Keep a list of third-party components and licenses for the site, and update it at handover.
  • Treat any non-trivial snippet that looks copied from a library or documentation as third-party code: find the original and check its license yourself.
  • Don't paste code you don't have rights to into a session; inputs you provide are outside Anthropic's indemnity under exclusion (c).

Review rules like these belong in your team's AI code review policy.

When a vendor builds your site

Anthropic's terms run between Anthropic and the account holder. If your developer or agency uses its own Claude account, the vendor is the "Customer" who owns the outputs as against Anthropic. Your rights then come from your contract with the vendor. Points to settle, which our guide to contract terms for Claude Code work covers clause by clause:

PointWhat to agree
Ownership of deliverablesCode, configuration, CLAUDE.md files, settings, hooks, skills and scripts are assigned to you, usually on payment
Vendor's own toolsA license for any vendor templates or scripts left in your project
Account and planCommercial terms, and whose account is used
Third-party componentsA list of packages and assets with licenses
WarrantiesThe vendor's own promises about originality and licensing, since Anthropic's indemnity runs to its customer, not to you
RecordsThe full git history handed over with the code

The handover itself is covered in what you should receive at the end of a project. If the vendor uses seats on your own Team or Enterprise plan instead, you are the customer, which simplifies the chain. Deliverables and handover can also be written into the project scope; our scope-of-work template includes a handover checklist, and our guide to choosing a Claude Code agency lists questions to ask before you sign.

Keep a record of human work

Because human contribution matters to copyright, keep evidence of it as a matter of routine. Git history shows who committed what and when. Claude Code adds a Co-Authored-By trailer to commits by default, so AI-assisted commits are marked unless someone changes the attribution setting. Pull request reviews, design decisions, briefs and edited drafts all show human direction. None of this guarantees an outcome, but it is far easier to keep these records from the start than to reconstruct them later. The same habit helps with content, as our piece on AI-generated vs human-edited content explains.

Using Anthropic's names

A related IP point for agencies and software builders: Anthropic's legal page says you can state in plain text that a product "has Claude Code preinstalled or that it runs Claude Code," but "you can't use the Claude Code or Anthropic names or logos as part of your own product, feature, or company name, in your own logo, or in a way that suggests Anthropic built, endorses, or is partnered with your product." Check this before naming a service or tool.

Conclusion

As between you and Anthropic, you own Claude Code's output, on both commercial and consumer plans. Whether that output is protected by copyright depends on human contribution, and Anthropic's IP indemnity, available only on commercial plans, has exclusions that matter for how websites are built. Use a commercial plan for company work, keep the vendor-to-you chain clear in your contract, track third-party licenses, and keep records of human decisions. Then have an IP attorney review anything the business depends on. If you want a site built with that paper trail from day one, see our Claude Code development services. More guides are in our Claude Code Guide.

Frequently asked questions

Does Anthropic own the code Claude Code writes?

No. Under both the Commercial and Consumer Terms, Anthropic assigns to the user whatever rights it has in outputs, and the Commercial Terms say the customer "owns its Outputs." The terms add "if any," because they can't create rights the law doesn't grant.

Is code written by Claude Code protected by copyright?

In the US, only to the extent a human determined its expressive elements, for example by creatively arranging or modifying the output. Prompts alone are not enough, according to the Copyright Office. AI-assisted parts of a larger human-made work don't make the whole work unprotectable.

Will Anthropic defend me if someone claims the code infringes their IP?

On commercial plans, Anthropic's terms include an indemnity for third-party IP claims about paid use and outputs, with exclusions for modifications, combinations with other technology, your inputs, patents and trademarks. Consumer plans have no Anthropic indemnity. Have counsel read section K before relying on it.

If an agency builds my site with Claude Code, who owns it?

As against Anthropic, whoever's account produced the output. As between you and the agency, whatever your contract says. Make sure it assigns the deliverables to you and lists any exceptions.

Do I have to disclose that code was written with AI?

Not under Anthropic's ownership terms. You may have other reasons to, such as client contracts, your own policy or a copyright registration, where the Copyright Office has guidance on AI-generated material. Ask counsel for your situation.

Put this into action with eSEOspace

We help businesses grow with seo, geo & aeo that actually performs. Explore the services behind this guide:

Book a free strategy call →

Get a FREE Audit

We'll perform a comprehensive SEO, AEO, GEO & CRO audit of your website — completely free — and show you exactly how to outrank your competitors.

Don't have a site yet? Get in touch →

Get a FREE GEO/AEO/SEO Audit

We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.

Don't have a site yet? Get in touch →

You Might Also like to Read