Working With Developers

Who Owns AI-Written Code in the UK? Copyright, Contracts and Due Diligence for Founders

Founders now ship products where AI wrote much of the code. Two questions decide whether that code is an asset: does copyright exist in it, and does it belong to your company? Here is how UK law answers both, what the AI tools’ terms add, and what to fix before an investor asks.

By Rahul D SarkerPublished November 26, 2026Updated November 26, 202632 min read

Part of our Working With Developers series. Start with How to Choose a Software Development Agency: A Founder's Guide.

This guide explains the law of England and Wales as it stood on 26 November 2026, with every statute, case and set of terms linked so you can check it. It is general information, not legal advice. For a specific contract, deal or dispute, speak to a solicitor who handles intellectual property.

Read the transcript

Fifty years. That’s how long UK copyright protects code with no human author. For now. In March 2026, the government proposed taking that protection away. Most founders assume that if they paid for the code, they own it. In the UK, that’s simply not how it works. So who really owns the code in your product?

Part one. Two questions. Ownership hides two separate questions. First, does any copyright exist in this code? Second, if it does, has it actually reached your company? AI makes the first question harder, without removing the second.

Part two. Who owns code first. The starting rule is simple. Code your employees write in the course of their job belongs to your company from day one. Everyone else keeps what they write. Freelancers. Agencies. And founders who wrote code before the company existed. To move copyright to you, the law asks for one thing. A written assignment, signed by the person giving it up. An invoice won’t do it. Neither will an email.

Part three. The ownership chain. Real projects have a chain of people. The developer, a subcontractor, the agency, then your company. Rights pass link by link. And nobody can hand on more than they have. Miss one assignment, and the chain stops there.

Part four. When A I writes the code. Copyright protects human creative choices. So what if the AI made all of them? The UK has an unusual answer. A work with no human author is computer-generated, owned by whoever made the arrangements. For fifty years, instead of life plus seventy. In practice, most AI-assisted code does have a human author. A developer who designs it, chooses between options and rewrites what’s wrong is very likely the author. A one-line prompt, accepted as it is, is the weakest claim of all.

Part five. The twenty twenty-six proposals. In March, the government published its report on copyright and AI. It proposed removing protection for computer-generated works, while keeping it for work made with AI assistance. If that becomes law, the line between generated and assisted becomes the line between unprotected and protected. So the human part of your code is the part worth proving. The United States is already there. In March 2025, a federal appeals court confirmed that copyright needs a human author. Prompts alone aren’t enough.

Part six. What the tool terms say. What about the AI providers? The big ones don’t claim your code. Business plans usually rule out training on it, and some offer to defend you against infringement claims, with conditions. But no contract can create copyright the law doesn’t give.

Part seven. Open source in the output. Now and then, an AI reproduces public code closely. Its licence comes with it. Permissive licences just ask you to keep the notices. But copyleft code in a shipped app, or A G P L code in a web service, can mean publishing your own source.

Part eight. Due diligence. When you raise or sell, the other side’s lawyers will check all of this. Signed assignments from founders and every supplier. A list of AI tools and plans. And an open-source inventory. Every gap is cheaper to close before they find it.

Part nine. Evidence of human work. Normal engineering already creates the evidence. You just have to keep it. Specifications written before prompts. Reviews on every change. And commit history that shows who shaped what.

Part ten. Protect it twice. Copyright may not cover everything an AI wrote. Confidentiality can. Keep your source code private, and keep it out of tools that train on it.

So, who owns code an AI wrote? Usually, whoever would have owned it anyway, if the paperwork is right. Paying isn’t owning. And prompting isn’t authoring. The full guide, with seven working tools, is free at loomstrat.com.

In this guide22 sections
  1. 01The short answer
  2. 02Why it matters now
  3. 03How UK law protects code
  4. 04Who owns code first
  5. 05Paying is not owning
  6. 06The ownership chain
  7. 07When AI writes the code
  8. 08The government’s proposals
  9. 09The US position
  10. 10What AI tool terms say
  11. 11What indemnities cover
  12. 12Training and infringement
  13. 13Open-source code in AI output
  14. 14Patents and trade secrets
  15. 15What your contract should say
  16. 16Due diligence
  17. 17Evidence of human authorship
  18. 18Six common situations
  19. 19Ten mistakes to avoid
  20. 20Glossary
  21. 21Questions and answers
  22. 22Sources and method

The short answer

Who owns code written with AI tools in the UK?

Usually the company or person who would own it anyway. If an employee writes code in the course of their job, the employer owns it; if a freelancer or agency writes it, they own it until they assign it to you in a signed, written document. The AI provider does not own it: the major tools’ business terms say so. The harder question is whether copyright exists at all. Code a person designs, selects and edits is very likely protected. Code an AI produces from a bare prompt may have no human author; UK law currently treats that as a “computer-generated work” owned by whoever made the arrangements, but the government proposed removing that protection in March 2026.

Two separate questions hide inside “who owns my code?”. The first is about existence: is there any copyright in this code to own? The second is about title: if there is, who holds it, and has it reached your company? Before AI, founders mostly worried about the second. Copyright arose automatically whenever a developer wrote original code, and the only question was whose name was on it.

AI coding tools add uncertainty to the first question without removing the second. A product built with heavy AI help still needs a clean chain of contracts from every person who touched it. It now also needs evidence that people made the creative choices, a sensible choice of AI tools and plans, and some care about open-source code the tools may reproduce.

This guide works through both questions in the order a careful investor’s lawyer would. There are seven working tools along the way: an ownership checker, an ownership chain diagram, a human-contribution scale, an AI tool terms explorer, an open-source licence risk check, a contract clause builder and a due diligence checklist.

Key facts

Checked 26 November 2026

Code is a literary work
UK copyright protects computer programs and their preparatory design material as literary works. CDPA 1988, section 3(1)
Employers own staff code
An employer is the first owner of work an employee makes in the course of employment, unless agreed otherwise. CDPA 1988, section 11(2)
Assignments must be signed
An assignment of copyright is not effective unless it is in writing and signed by or for the person assigning. CDPA 1988, section 90(3)
Computer-generated works
Where there is no human author, the author is the person who made the arrangements necessary for the work’s creation. CDPA 1988, section 9(3)
Shorter protection
Copyright in a computer-generated work lasts 50 years from the end of the year it was made. CDPA 1988, section 12(7)
Reform proposed
In March 2026 the government proposed removing protection for computer-generated works, while keeping it for works made with AI assistance. Report on Copyright and AI
US requires a human
A US federal appeals court confirmed in March 2025 that copyright requires a human author. Thaler v Perlmutter, D.C. Circuit
Providers disclaim ownership
GitHub, Anthropic and OpenAI business terms leave ownership of output with the customer. Provider terms

Why ownership matters now

For most of the software industry’s history, code ownership was paperwork. A founder hired an agency, the contract had an IP clause, and nobody looked at it again until an investor’s lawyer did. That lawyer would check that the company owned its main asset, and a missing assignment was a fixable annoyance.

AI changes the risk in three ways. More code is written faster, often by more people, including founders with no engineering background using AI app builders. More of it is produced with less human creative input, which is the thing copyright protects. And every AI tool brings a set of terms, sometimes on a personal account, that someone at the company accepted without reading.

The consequences show up at the moments that matter most. An investor’s due diligence asks for proof of ownership. An acquirer asks for warranties that the code does not infringe anyone’s rights. A competitor copies your product and you need to show what you own. A former contractor claims the code they wrote is still theirs. Each of those moments goes better if the ownership chain is complete and the human choices behind the code are on record.

How UK law protects code

In the UK, code is protected by copyright under the Copyright, Designs and Patents Act 1988 (the CDPA). Section 3(1) defines a literary work to include “a computer program” and “preparatory design material for a computer program”. That second category matters for AI-assisted work: specifications, architecture documents and design notes can be protected in their own right.

Copyright arises automatically. There is no register to join and no fee. It protects the expression of the code, the particular way it is written and structured, not the ideas, algorithms or functions behind it. Two developers who independently write code that does the same thing each own their own version.

To be protected, a work must be original. The Court of Appeal confirmed the modern test in THJ Systems v Sheridan [2023] EWCA Civ 1354: a work is original if it is the author’s own intellectual creation, reflecting their free and creative choices. Code dictated entirely by technical function, with no room for choice, may fail that test even when a human wrote it. Most real software involves many choices about structure, naming, sequence and design, and easily passes.

For an ordinary literary work, copyright lasts for the author’s life plus 70 years (section 12). For practical purposes, that is longer than any software will matter.

What copyright does and does not protect in software
ProtectedNot protected
Source code as writtenThe idea or business logic behind it
Object code compiled from itAlgorithms and mathematical methods
Preparatory design materialProgramming languages
Original structure and arrangementFunctionality as such
Documentation and commentsShort, purely functional fragments
Original user interface text and graphicsInterface conventions everyone uses

Who owns code first

The starting rule is simple. Under section 11(1), the author of a work is the first owner of any copyright in it. The author is the person who creates it.

There is one major exception. Under section 11(2), where a work is made by an employee in the course of their employment, the employer is the first owner, “subject to any agreement to the contrary”. So code your employees write for your business belongs to your company from the moment it exists, with no further paperwork.

Everyone else keeps what they write until they transfer it. That includes freelancers and contractors, agencies and their staff (the agency owns its employees’ work, but it is still the agency’s, not yours), co-founders who are not yet employees, and founders who wrote code before the company was incorporated. It also includes advisers, friends and family who “helped out” with a feature.

AI tools do not change any of this. When a freelancer uses an AI assistant to write code for you, the question of who owns that code is answered by the freelancer’s contract with you. The tool does not become a co-owner, and neither does the person who designed the tool.

Ownership checker

Who owns the code in your product?

Answer three questions about one part of your codebase. The checker applies the UK rules on first ownership, assignment and computer-generated works.

First owner

Uncertain

The agency (or its developers)

Paying for the work does not transfer copyright. Without a signed, written assignment, the person who wrote the code keeps it and you usually only have a licence to use it.

A person chose, combined and edited what the AI produced. That is likely enough for a human author in the parts they shaped, but less certain for long passages accepted unchanged.

Next step: Get a signed assignment from the supplier, and from any subcontractors, before the next payment.

Based on the Copyright, Designs and Patents Act 1988, sections 9, 11 and 90, checked 26 November 2026. A general guide to how the rules work, not legal advice on your contracts.

Founders are the most common gap

In our experience preparing client codebases for investment, the gap investors find most often is not an agency contract. It is a founder. Founders often write the first version of a product before the company exists, or while they are directors but not employees. That code belongs to them personally. It reaches the company only through a signed assignment, which takes minutes to sign today and can become a negotiation if a founder leaves on bad terms.

Paying for code is not owning it

The most expensive misunderstanding in software contracts is that paying for code makes it yours. It does not. Under section 90(3) of the CDPA, an assignment of copyright “is not effective unless it is in writing signed by or on behalf of the assignor”. An invoice, a purchase order, an email saying “the code is yours” or a verbal promise will not do it on its own.

Without an assignment, the supplier keeps the copyright and you usually have a licence to use the code for the purpose you paid for. Courts will often imply such a licence, and in some cases may find that the client was meant to own the code. But implied terms are decided after a dispute, by a judge, and you cannot show an investor a licence that only exists by implication.

A licence also limits what you can do. You may not be able to sell the code, license it to others, or stop the supplier reusing it for a competitor. The law gives every lawful user a few rights that no contract can remove, such as making a back-up copy (section 50A; terms that try to prevent it are void under section 296A). Those rights are narrow. They are not ownership.

Moral rights, the author’s right to be named and to object to derogatory treatment of their work, are a common worry in creative contracts. For software they matter less: the CDPA excludes computer programs and computer-generated works from both rights (section 79(2) and section 81(2)). They can still apply to documentation, designs and other material delivered alongside the code, which is why many contracts include a waiver.

The ownership chain

Real projects rarely involve one developer and one client. An agency may employ some developers and contract others. A contractor may bring in a friend for a weekend. Each of those people uses AI tools on terms of their own. Ownership flows from whoever creates the code to your company through every one of those relationships, and it can only flow as far as the weakest link allows.

The rule underneath is that nobody can give away more than they have. If a subcontractor never assigned their work to the agency, the agency cannot assign it to you, however well your contract with the agency is drafted. The agency might be in breach of its promise to you, but that gives you a claim against the agency, not ownership of the code.

Interactive diagram

Ownership passes link by link. One missing link breaks the chain.

Rights in code move from whoever creates it to whoever needs to own it, one agreement at a time. Turn each link on or off to see where ownership stops.

  1. Step 1

    AI tool

  2. Step 2

    Developer

  3. Step 3

    Subcontractor

  4. Step 4

    Agency

  5. Step 5

    Your company

The chain breaks at subcontractor. Any freelancer the agency brings in signs an assignment back to the agency. Without it, rights stay with the subcontractor, and every link after it passes on less than you think.

Each link needs a written agreement signed by the party giving up the rights (CDPA section 90(3)). An assignment can only pass on rights the person giving it actually has.

Your contract with a supplier should therefore do two things. It should assign to you everything the supplier delivers, and it should oblige the supplier to obtain assignments from everyone who works on the project, and to show them to you on request. The clause builder below includes both.

When AI writes the code: is there an author?

Everything above assumes copyright exists. With AI, that assumption needs checking. Copyright protects the creative choices of an author. If an AI made all the choices, there may be no human author at all.

The UK has an unusual answer to that situation, written in 1988 for a very different kind of computer. Under section 9(3) of the CDPA:

“In the case of a literary, dramatic, musical or artistic work which is computer-generated, the author shall be taken to be the person by whom the arrangements necessary for the creation of the work are undertaken.”

- Copyright, Designs and Patents Act 1988, section 9(3)

Section 178 defines “computer-generated” as “generated by computer in circumstances such that there is no human author of the work”. So the UK, unusually, gives protection even where no human is the author, and names an owner: whoever made the arrangements. Protection for these works is shorter, 50 years from the end of the year the work was made (section 12(7)), and there are no moral rights in them.

That sounds like good news for founders, but it comes with three problems.

  • Nobody knows who “made the arrangements” for AI-generated code. It could be the developer who wrote the prompt, the company that set up the repository and paid for the tool, or arguably the AI provider. No UK court has decided it for modern AI.
  • It sits awkwardly with the originality test. Originality means the author’s own free and creative choices. A work with no human author has nobody whose choices can be original, and lawyers disagree about whether section 9(3) protects such works at all.
  • The government wants to remove it, as the next section explains.

In practice, most AI-assisted code is not computer-generated in the legal sense, because a person made real creative choices. A developer who designs the structure, decides what each part should do, chooses between alternatives the AI offers, rewrites what is wrong and integrates it with the rest of the system is very likely the author of the result. The question gets harder as human input shrinks, until code an autonomous agent writes and merges without any human change is at the far end of the scale.

Interactive scale

How much human input does code need to be protected?

Copyright protects human creative choices. Move along the scale, from code a person typed to code an agent wrote alone, and compare how UK and US law treat each point.

More humanMore AI

Designed and edited

A developer specifies the design, has an agent draft it, then restructures and rewrites much of it.

United Kingdom

Very likely a human author: free and creative choices shape the result.

United States

Protected in the human selection, arrangement and modifications.

Strength of your copyright claim

UK position from CDPA sections 9(3) and 178 and the Court of Appeal in THJ v Sheridan; US position from the Copyright Office report, Part 2 (January 2025). No UK court has yet ruled on AI-written code; the middle of the scale is our reading.

What counts as creative input in code

The courts have not yet set out what human input makes AI-assisted code original. Applying the free and creative choices test, our reading is that the following count in your favour: writing a detailed specification or architecture that the AI follows; choosing how to divide a problem into modules and functions; selecting between alternative outputs for reasons beyond “it works”; restructuring, renaming and rewriting generated code; and combining many generated pieces into a coherent whole. Accepting a suggestion unchanged, or writing a one-line prompt and shipping whatever comes back, counts for little.

The government’s 2026 proposals

On 18 March 2026, the Department for Science, Innovation and Technology, the Department for Culture, Media and Sport and the Intellectual Property Office published the Report on Copyright and Artificial Intelligence, laid before Parliament under section 136 of the Data (Use and Access) Act 2025. On computer-generated works, the report says:

“We propose that this specific type of protection should be removed, while copyright should continue to protect works created with AI assistance.”

- Report on Copyright and Artificial Intelligence, March 2026

Two consequences follow. If the proposal becomes law, code generated with no human author would have no copyright at all in the UK, putting the UK in line with the United States. And the line between “AI-generated” and “AI-assisted” would become the line between unprotected and protected, which makes evidence of human input far more valuable.

The report gives no timetable for legislation, and the change would need an Act of Parliament. Until then section 9(3) remains law. Sensible founders plan for the stricter position now, because code written today will still be in use when the law changes, and any transitional rules are unknown.

The report also moved away from the government’s earlier preferred option of a broad exception allowing AI developers to train on copyright works unless rights holders opt out. That debate is mainly about the inputs used to train AI models. For founders, the more relevant line in the report is that infringement by an AI system’s output is assessed at the output stage, which the training section below explains.

The US position, and why it matters to UK founders

Many UK start-ups raise from US investors, sell to US customers or are acquired by US companies, so the American position matters even for a company based in London.

US law has no equivalent of section 9(3). In Thaler v Perlmutter, decided on 18 March 2025, the US Court of Appeals for the District of Columbia Circuit confirmed that the Copyright Act requires a human author, upholding the refusal to register an image an AI system created autonomously.

The US Copyright Office set out how that applies to AI-assisted work in Part 2 of its report on Copyright and Artificial Intelligence, published on 29 January 2025. Its conclusions, as summarised by the Office: using AI as a tool does not prevent protection; prompts alone do not give enough human control to make the user the author of the output; and human contributions, including creative selection, arrangement and modification of AI-generated material, can be protected.

AI-written code in the UK and US
United KingdomUnited States
Human-written with AI helpProtectedProtected
AI output a person selected, arranged and editedVery likely protectedHuman contributions protected
AI output from prompts aloneComputer-generated work under section 9(3), if anythingNot protected
Owner where no human authorPerson who made the arrangementsNobody
Duration where no human author50 yearsNot applicable
Direction of travelGovernment proposes removing section 9(3)Settled by the courts for now

What the AI tool terms say

A common fear is that the AI provider owns, or has rights in, the code its tool produces. For the major providers’ business products, the terms say otherwise. They also differ in ways that matter: whether the provider will defend you if someone claims the output infringes their rights, and whether your code may be used to train future models.

Terms explorer

What each AI coding tool’s terms say about your code

Pick a tool and plan. Business terms and personal terms differ more than most people expect, especially on indemnities and training.

GitHub Copilot (paid business plans)

GitHub Generative AI Services Terms (March 2026)
Who owns the output
GitHub says it does not own your inputs or the outputs.
If someone claims infringement
Defence of third-party claims follows your main GitHub agreement. Microsoft’s Customer Copyright Commitment also covers GitHub Copilot for paid business customers.
Training on your code
Not used to train models unless you instruct it.
Summaries of the linked terms as we read them on 26 November 2026. Terms change often and the conditions matter: read the current version, and the exclusions, before you rely on any of them. None of these terms can create copyright where the law gives none.

Three patterns stand out. Business terms are consistently better than personal terms: they promise not to train on your code and offer some form of indemnity. Personal accounts, such as a developer’s own ChatGPT subscription, typically offer no indemnity and may allow training unless the user opts out. And no provider promises the output is protected by copyright, because no contract can create copyright the law does not give.

That makes the plan your developers use a governance question, not just a cost one. A supplier who builds your product on a personal AI account may be giving your code to a provider whose terms allow training on it, and leaving you without the protections business plans include.

What indemnities cover, and what they do not

An indemnity is a promise that the provider will defend you against a third-party claim, and pay the costs and damages, if the claim falls within its terms. Several providers now offer one for AI output. Microsoft’s Customer Copyright Commitment covers paid business customers of GitHub Copilot among other products. Anthropic’s Commercial Terms cover claims that paid, authorised use of its services, including outputs, infringes intellectual property. OpenAI’s Services Agreement and Google Cloud’s terms include indemnities of their own.

These are valuable, but they are narrower than a headline suggests. Typical conditions and exclusions include:

  • The customer must be on a paid business plan, not a free or personal one.
  • Claims arising from output the customer modified, or combined with other material, may be excluded.
  • Claims where the customer knew, or should have known, the output infringed are excluded.
  • Some providers require safety features to stay switched on. Microsoft’s commitment historically required GitHub’s duplicate-detection filter; check the current version, which changes.
  • The indemnity covers claims by third parties. It does not give you ownership, and does not help if your own copyright turns out not to exist.

Most important for founders: the indemnity protects the provider’s customer. If your agency held the AI subscription, the agency is the customer, not you. Unless your contract with the agency passes protection on, through its own warranty and indemnity, you may have none.

Training data and infringement claims

A separate worry is whether AI-written code infringes other people’s copyright, because the model learned from their code. In the UK, the leading case is Getty Images v Stability AI [2025] EWHC 2863 (Ch), decided by Mrs Justice Joanna Smith on 4 November 2025. Late in the trial Getty dropped its primary claims about training and outputs, citing evidential weaknesses and jurisdictional hurdles; Stability had argued the training took place outside the UK, as the CMS case tracker records. The court rejected Getty’s remaining copyright claim, holding that the model was not an infringing copy because its weights did not store or contain copies of Getty’s images. Getty won only a narrow part of its trade mark claim.

Getty was given permission to appeal on the secondary infringement point, and the Court of Appeal heard the appeal on 11 and 12 November 2026, as reported by the IPKat. Judgment was awaited when we checked on 26 November 2026. The case is about images rather than code, but its reasoning on what a model contains will shape claims about code models too.

For a founder, the practical risk is narrower than the headlines. The government’s March 2026 report notes that infringement by an AI system’s output is judged at the output stage, in the ordinary way: does the output reproduce a substantial part of someone else’s work? Most AI-written code does not. The real exposure is the occasional suggestion that closely matches existing public code, which is where open-source licences come in.

Open-source code in AI output

AI coding models were trained on large amounts of public code, much of it under open-source licences. Occasionally a model reproduces a passage closely. If that passage is under a licence with conditions, using it brings those conditions with it, whether a person copied it or an AI did.

GitHub offers a way to manage this. According to its code referencing documentation, Copilot can check suggestions against an index of public code on GitHub and either block matching suggestions or show them with the repository and licence of the match, so the developer can decide. The check covers suggestions of meaningful length, and code you have edited is not checked. Other tools offer similar features, or none.

Risk check

If AI copied open-source code into your product, how much does it matter?

AI tools occasionally reproduce public code closely enough to carry its licence with it. The risk depends on the licence and on how you deliver your software.

Lower risk for now

Running GPL code on your own servers is not distribution, so the source-sharing duty is not triggered. It will be if you ever ship the software to customers or an acquirer redistributes it.

A summary of common licence terms, not a full analysis. Copilot can flag or block suggestions that match public code, with the licence of the match: see GitHub’s code referencing documentation. Licence texts at opensource.org and gnu.org.

Permissive licences such as MIT, BSD and Apache 2.0 rarely cause trouble: keep the notices. Copyleft licences such as the GPL can require you to release your own source code if you distribute software that includes the licensed code, and the AGPL extends that to software users reach over a network. Code with no licence at all gives you no permission to copy it. Licence texts are at opensource.org and gnu.org.

The practical controls are the same ones good teams use for code people copy: switch on public-code blocking or referencing, run a licence scanner that produces a software bill of materials, and check anything flagged as copyleft before release. For a deeper look at open-source obligations, see our Software Ownership 101 guide.

Patents and trade secrets

Copyright is not the only way to protect software, and with AI it may not be the most reliable.

Patents

Software is hard to patent in the UK, and AI does not make it easier. In Thaler v Comptroller-General of Patents [2023] UKSC 49, the Supreme Court held on 20 December 2023 that an inventor under the Patents Act 1977 must be a natural person, so an AI system cannot be named as inventor. An invention a person makes using AI can still be patented if it meets the usual tests, with the person as inventor.

Trade secrets and confidential information

Confidential information is protected whoever, or whatever, created it, as long as it is kept confidential. For many software businesses, the source code’s secrecy is worth more than its copyright: competitors cannot copy what they cannot see. That protection is lost if the code leaks, which is why the AI tool’s data terms matter. Before anyone pastes confidential code or customer data into an AI tool, check that the plan keeps it confidential and does not use it for training.

A sensible approach protects code in layers: copyright where human authorship is clear, confidentiality for everything, contracts with everyone who sees the code, and access controls that match.

50 yearsprotection for a computer-generated work, against life plus 70 years for a human authorCDPA section 12
Section 90(3)copyright moves only by a signed, written assignmentCDPA 1988
20 Dec 2023Supreme Court rules an AI cannot be named as an inventorThaler v Comptroller

What your contract should say

Most of the risk in this guide is dealt with by a well-drafted development contract. If your supplier uses AI tools, and nearly all do, the contract should cover the points below. The clause builder gives plain-English starting points to take to your solicitor.

Clause builder

The clauses to ask for when a supplier uses AI

Pick the protections you need. The builder assembles plain-English starting points you can take to your solicitor or your supplier.

4 clauses

  1. Assignment of all deliverables

    The Supplier assigns to the Client, with full title guarantee, all present and future intellectual property rights in the Deliverables, including source code, documentation and design materials, whether created by the Supplier’s staff, subcontractors or with the help of AI tools. This assignment takes effect on creation.

  2. Disclosure of AI tools

    The Supplier will tell the Client in writing which AI tools it uses to create the Deliverables, on which plan, and will use only tools whose terms do not claim ownership of outputs or allow training on the Client’s code.

  3. Human review

    A qualified person will review every change to the Deliverables before it is merged, and the Supplier will keep records of these reviews.

  4. Open-source controls

    The Supplier will not include third-party code, whether copied by a person or produced by an AI tool, under a licence that would require the Client to disclose its source code, and will keep an up-to-date list of open-source components and their licences.

Starting points written by us in plain English, not drafted contract terms. Have a solicitor adapt them to your contract and governing law before you sign.

The assignment clause does the most work. It should use present words of assignment, take effect when the code is created rather than on final payment, cover everything delivered including design material and earlier versions, and say explicitly that it covers work created with AI tools. Payment protections can be handled separately, for example by a licence that ends if invoices are not paid.

Be wary of contracts that keep the supplier’s “background IP” or reusable components without giving you a licence to them. Many agencies reuse their own code across clients, and that is reasonable, but you need a perpetual, irrevocable licence to use, modify and transfer it with your product. Our fixed-price MVP guide covers how these terms interact with pricing.

Due diligence when you raise or sell

When you raise investment or sell your company, the other side’s lawyers will check that you own your technology. Expect a request for every contract with developers, founders and agencies; a list of open-source components and licences; and, increasingly, questions about which AI tools were used and how.

Gaps found during due diligence are fixable, but fixing them under time pressure costs money and leverage. A former contractor asked to sign an assignment while a funding round waits may ask to be paid for it. A founder who has left may refuse. You will usually give warranties in the investment or sale documents that you own your IP, so gaps also become personal risk.

Checklist

Would your codebase pass an investor’s IP due diligence?

Ten things a buyer’s or investor’s lawyers will ask about. Tick what you can prove with documents today.

10out of 100

Fix ownership before you raise or sell

Fix these first

  1. Have each founder assign code written before incorporation or outside employment.
  2. Get signed assignments from past suppliers now, while they still answer email.
  3. List every AI coding tool used, the plan, and its terms on ownership and training.
Our weighting, from preparing client codebases for handover, investment and sale. Gaps in the ownership chain carry the most weight because they are the hardest to fix later.

Action plan

Securing ownership of an AI-assisted codebase

A practical order of work for a start-up that has built with AI tools and wants a clean position before raising or selling.

0 of 12 done. Current stage: Week 1: Map.

Stage 1 · Week 1: Map

Stage 2 · Week 2: Close the chain

Stage 3 · Week 3: Clean up tools

Stage 4 · Week 4: Evidence and controls

Keeping evidence of human authorship

If copyright depends on human creative choices, you need to be able to show them. The good news is that normal engineering practice produces most of the evidence, as long as you keep it.

  1. 1

    Write specifications before prompts

    Design documents, architecture decisions and acceptance criteria show the human design that AI output followed. They are also protected as preparatory design material.

  2. 2

    Commit in small, described steps

    Commit history with clear messages shows how code was built and changed over time, and by whom.

  3. 3

    Review every change

    Pull-request reviews show a person judged, corrected and approved the code before it was merged.

  4. 4

    Keep the edits

    When a developer restructures or rewrites AI output, the difference between the suggestion and the merged code is evidence of their choices.

  5. 5

    Record which tools were used

    A simple log of tools and plans by project answers due diligence questions in minutes.

  6. 6

    Store contracts with the code

    Keep signed assignments and AI tool terms where the next owner of the code will find them.

These steps also make software better. Reviewed, well-described changes are easier to maintain and safer to hand over, which is why we recommend them whether or not ownership is in question. Our software handover checklist covers what to collect when code changes hands, and our guide to taking a vibe-coded app to production covers reviewing AI-built code.

Six common situations

Who owns the code, and what to do
SituationLikely positionWhat to do
Employee writes code with Copilot on a business planEmployer owns it; human authorship likelyKeep reviews and commit history
Agency builds an MVP with AI tools; contract has no assignmentAgency owns it; you have a licenceGet a signed assignment now
Founder built the prototype in an AI app builder before incorporatingFounder owns what is protected; the builder’s terms also applyFounder assigns to the company; check the builder’s terms
Freelancer uses a personal ChatGPT accountFreelancer owns until assigned; no provider indemnityAssignment, plus move to a business plan
Async agent writes and merges a module with no human changesPossibly a computer-generated work; weakest protectionAdd human review and edits; protect as confidential
AI output matches GPL code in a downloadable appGPL conditions may apply to your appRemove or rewrite the matching code before release

Ten mistakes to avoid

  1. Assuming payment means ownership. Only a signed, written assignment transfers copyright.
  2. Forgetting the founders. Code written before incorporation belongs to the person who wrote it.
  3. Trusting an agency clause without the subcontractors. An agency cannot assign what it does not own.
  4. Assuming the AI provider owns the output. Major business terms say it does not; check the plan used.
  5. Assuming the AI provider’s terms give you copyright. No contract can create copyright the law does not give.
  6. Letting developers use personal AI accounts. They often lack indemnities and may allow training on your code.
  7. Shipping prompt-only code for core features. It has the weakest protection and is the most at risk from reform.
  8. Ignoring public-code matches. Copyleft code in a shipped product can oblige you to publish your own.
  9. Pasting confidential code into unvetted tools. Lost confidentiality cannot be restored.
  10. Waiting for due diligence. Every gap is cheaper to close before an investor finds it.
Copyright
The right to stop others copying a work, which arises automatically for original works, including code.
Literary work
The category of copyright work that includes computer programs and their preparatory design material.
Originality
The test for copyright protection: the work is the author’s own intellectual creation, reflecting free and creative choices.
Author
The person who creates a work. Usually its first owner.
First owner
Whoever holds copyright when a work is created: the author, or the employer for work made in the course of employment.
Assignment
A transfer of ownership of copyright. In the UK it must be in writing and signed by the person assigning.
Licence
Permission to use a work without owning it, on the terms the licence sets.
Computer-generated work
A work generated by computer where there is no human author. Under UK law the person who made the arrangements is treated as author.
Moral rights
An author’s rights to be named and to object to derogatory treatment. They do not apply to computer programs.
Indemnity
A promise to defend a claim and cover its costs, within stated conditions.
Copyleft
An open-source licence condition requiring derived works to be shared under the same licence, as in the GPL.
Software bill of materials
A list of the components in a piece of software, including open-source packages and their licences.
Due diligence
The checks an investor or buyer makes before a deal, including that the company owns its technology.
Trade secret
Valuable information protected because it is kept confidential, such as unpublished source code.

Questions and answers

Who owns AI-generated code in the UK?

Usually whoever would own the code if a person had written it unaided. Employees’ code belongs to the employer; freelancers and agencies keep their code until they assign it in signed writing. The AI provider does not own it under the major providers’ business terms. Where there is no human author at all, section 9(3) of the Copyright, Designs and Patents Act 1988 treats the person who made the arrangements for the work as its author.

Is AI-generated code protected by copyright in the UK?

Code a person designs, selects and edits with AI help is very likely protected as an original literary work. Code generated with no human author may be protected as a computer-generated work for 50 years under section 9(3), but that is untested for modern AI, and the government proposed removing the protection in its March 2026 report.

Does ChatGPT or GitHub Copilot own the code it writes?

No. GitHub’s terms say it does not own inputs or outputs, and OpenAI’s and Anthropic’s terms leave ownership of output with the customer and assign any rights they have. These terms cannot create copyright where the law gives none.

If I pay a developer, do I own the code?

Not automatically. Under section 90(3) of the Copyright, Designs and Patents Act 1988, copyright only transfers by an assignment in writing, signed by or for the person assigning. Without one, the developer keeps the copyright and you usually have a licence to use the code.

What is a computer-generated work?

A work generated by computer in circumstances where there is no human author, as defined in section 178 of the Copyright, Designs and Patents Act 1988. The person who made the arrangements necessary for its creation is treated as the author, and protection lasts 50 years from the end of the year it was made.

Is the UK changing the law on AI-generated works?

The government proposed in its Report on Copyright and Artificial Intelligence, published on 18 March 2026, to remove copyright protection for computer-generated works while keeping it for works created with AI assistance. It gave no timetable, and the change would need legislation.

Can AI-written code infringe someone else’s copyright?

Yes, if it reproduces a substantial part of an existing work, such as a long passage of open-source code. That is judged at the output stage in the usual way. Tools that block or flag suggestions matching public code reduce the risk.

Will the AI provider protect me if I am sued?

Possibly, if you are the provider’s paying business customer and meet its conditions. Microsoft, Anthropic, OpenAI and Google offer indemnities for some business products, with exclusions. If your agency held the subscription, the agency is the customer, so ask for a warranty and indemnity in your contract with them.

Can an AI be named as an inventor on a UK patent?

No. The Supreme Court held in Thaler v Comptroller-General of Patents in December 2023 that an inventor must be a natural person. A person who makes an invention using AI can still be named as inventor.

What should I do before raising investment?

Get signed IP assignments from every founder, freelancer and agency, list the AI tools used and their plans, move developers onto business plans, check open-source licences, and keep review and commit records that show human authorship.

Sources and method

We read every source below on 26 November 2026. Quotations from the Copyright, Designs and Patents Act 1988 are from the revised text on legislation.gov.uk. Summaries of AI provider terms are our reading of the current versions; terms change often, so check them before relying on them. Views labelled as ours, and the tools’ verdicts, come from Loomstrat’s work building and handing over client software, not from a court. Loomstrat builds custom software for clients, so read our comments on development contracts with that in mind. Nothing here is legal advice.

UK legislation and government

  1. 01
    Copyright, Designs and Patents Act 1988, sections 3, 9, 11, 12 and 178

    legislation.gov.uk, Revised text, checked November 2026. Literary works, computer-generated works, first ownership, duration and definitions.

  2. 02
    Copyright, Designs and Patents Act 1988, sections 50A, 79, 81, 90 and 296A

    legislation.gov.uk, Revised text, checked November 2026. Back-up copies, moral rights exclusions, written assignments and void contract terms.

  3. 03
    Report on Copyright and Artificial Intelligence

    DSIT, DCMS and Intellectual Property Office, 18 March 2026. Proposal to remove protection for computer-generated works; text and data mining; output-stage infringement.

Cases

  1. 04
    Getty Images v Stability AI [2025] EWHC 2863 (Ch)

    High Court, via The National Archives, 4 November 2025. Model weights not an infringing copy; outcome of copyright and trade mark claims.

  2. 05
    Getty Images v Stability AI: case tracker

    CMS, Updated 2026. Primary claims dropped late in the trial; permission to appeal.

  3. 06
    Getty Images v Stability AI: the appeal

    The IPKat, November 2026. Court of Appeal hearing on 11 and 12 November 2026.

  4. 07
    Thaler v Comptroller-General of Patents [2023] UKSC 49

    UK Supreme Court, via The National Archives, 20 December 2023. An inventor must be a natural person.

  5. 08
    THJ Systems v Sheridan [2023] EWCA Civ 1354

    Court of Appeal, via The National Archives, 20 November 2023. Originality as the author’s own intellectual creation and free and creative choices.

  6. 09
    Thaler v Perlmutter

    US Court of Appeals, D.C. Circuit, 18 March 2025. Human authorship required under US law.

US Copyright Office and provider terms

  1. 10
    Copyright and Artificial Intelligence, Part 2: Copyrightability

    US Copyright Office, 29 January 2025. Prompts alone insufficient; selection, arrangement and modification protectable.

  2. 11
    Inside the Copyright Office’s report, Part 2

    Library of Congress blog, February 2025. Summary of the report’s conclusions.

  3. 12
    GitHub Generative AI Services Terms

    GitHub, March 2026. Ownership of inputs and outputs; training; defence of claims.

  4. 13
    Code referencing for GitHub Copilot

    GitHub Docs, Checked November 2026. Blocking and referencing suggestions that match public code.

  5. 14
    Customer Copyright Commitment

    Microsoft, Checked November 2026. Products covered and required mitigations.

  6. 15
    Commercial Terms of Service

    Anthropic, Effective 17 June 2025. Ownership and assignment of outputs; indemnity; training.

  7. 16
    Services Agreement and Terms of Use

    OpenAI, Effective 1 January 2026. Business and personal terms on ownership, indemnity and training.

  8. 17
    Generative AI indemnified services

    Google Cloud, Checked November 2026. Indemnity for listed generative AI services.

Have a build brief already forming in your head?

Loomstrat Studio scopes, builds, and hands over production software in 3–6 weeks - fixed price, 100% repository ownership.

  • Reply within 24 hours
  • Fixed price before we start
  • Zero technical debt guarantee