We UC
Back to blog
·7 min read·We UC Team

Who owns the code an AI tool wrote for my business in the UK?

UK law has a rule for computer-generated works that the government wants to repeal. What that means for an app built with Lovable, Cursor or Claude, what the tool's terms say, and the three things worth having in writing.

Who owns the code an AI tool wrote for my business in the UK?

For most businesses the answer is that you can use, change and sell the code, and nobody is likely to challenge you, but whether copyright exists in code an AI tool wrote on its own is unsettled in the UK. The law has a special rule for computer-generated works, and in March 2026 the government said it prefers to repeal it. What protects you in practice is a short list of written things: the tool's terms, your contract with anyone who helped, and control of the repository and accounts.

What does UK law say about code written by AI?

UK copyright law treats code as a literary work, and it has one rule written for works with no human author. Under section 3(1) of the Copyright, Designs and Patents Act 1988, a literary work includes "a computer program". Under section 9(3), for a computer-generated work, "the author shall be taken to be the person by whom the arrangements necessary for the creation of the work are undertaken". Section 178 defines computer-generated as generated by computer "in circumstances such that there is no human author of the work".

So the Act already imagined a work with no human author and gave the copyright to whoever made the arrangements. For an app, that is probably you or your business if you started the project and ran the tool. We haven't found a UK court decision that applies this to code from a modern AI coding tool, so "probably" is as far as we'd go.

Is that rule going to change?

The government has said it wants to remove it. Its report on copyright and artificial intelligence, published on 18 March 2026 after a consultation that closed in February 2025, proposes that protection for wholly computer-generated works "should be removed", because it found no evidence of the protection's ongoing value. The same report says copyright "should continue to protect works created with AI assistance". As far as we can tell the change hasn't been legislated, so the rule above still stands today.

If it goes, the line that matters becomes human contribution. Code you directed, reviewed, edited and structured is the kind the report says stays protected. Code a tool produced from one prompt with nobody shaping it is the kind that could lose protection. Nobody can tell you yet where the line sits for a given project.

Does it matter if the code isn't protected by copyright?

It matters less than it sounds for running the business, and more if you plan to sell it. Not having copyright in a file doesn't stop you running it, changing it or paying someone to maintain it. What it affects is your ability to stop someone else copying the code, and a buyer's lawyers, in due diligence, will ask who owns what. If the answer is "an AI tool wrote most of it and we've no records", expect questions.

Much of the value in a business app also isn't the code. It is the data, the customers, the workflows and the way the thing fits the business, and none of that depends on copyright in the source files.

What do the AI tools' own terms say?

They generally say you own the output, with caveats, so read the terms of whichever tool you used. As one example, Lovable's terms say "As between us, you also own any AI Output generated for you through the Services", subject to "any third-party rights in the underlying models, training data, or outputs". That is a contract between you and the tool's maker. It says nothing about what the law will recognise against a third party, which is why the two layers need separating in your head: the tool's terms settle who it won't claim against, and copyright law settles what you can enforce.

What if a freelancer or consultant used the AI tool for me?

Then ownership depends on your contract with them, and it is the part most often missing. Under section 90(3) an assignment of copyright is only effective in writing signed by the person assigning it, so paying an invoice doesn't move anything. A person you hired is usually the first owner of what they produce, AI-assisted or not. If you are in that position, our piece on what to do when the developer has left covers the written assignment in more detail.

What should I have in writing?

Three things, none of them complicated, and a solicitor can check them for you. We aren't lawyers, and this is a pointer to the sources and not legal advice.

  1. The tool's terms for the plan you used. Save a dated copy of the ownership clause, because terms change.
  2. A signed assignment from anyone who wrote or directed code for you. One short paragraph saying the code, including AI-assisted code, is assigned to your company.
  3. Control of the repository and the accounts. The code should sit in a GitHub organisation your company owns, with the hosting, database and domain in accounts in your name. In practice this is what decides whether you can carry on, and our guide to handing a Lovable app to another developer walks through it.

A fourth habit costs nothing: keep a record of who directed what. Dated commits, the prompts that shaped features, and notes of changes a person made by hand are the evidence of human contribution if the law moves the way the government proposes.

Does a Rescue audit cover ownership?

It covers the technical side of this question, and it doesn't replace a solicitor on the legal side. We UC is a UK software company, and the Rescue audit is a fixed £2,500 + VAT, deducted from the first phase if you go ahead with us on the fix. It looks at security, data, hosting, code, payments, integrations and running costs, and you get a written report, a priced plan and a walkthrough call. Part of reading the hosting is seeing which accounts the app actually lives in and whose name they are under, which is the third item above. Nothing is changed during the audit, we need read access to the code and hosting, and the report is yours either way.

If you'd like that look, you can book a Rescue audit, or tell us about the app first.

Common questions

Can I sell an app that an AI tool wrote?

Yes, in the sense that nothing stops you selling the product or the business. What a buyer will ask is who owns the code and whether you can show it, so the three items above are worth sorting before a sale and not during one.

Do I need to tell customers the code was written by AI?

We haven't found a UK rule that requires it for ordinary business software. If a client's contract or a procurement questionnaire asks, answer it truthfully.

Is AI-written code a copyright risk for what it copies?

It can be, and it's a separate question from ownership. The government's report also deals with how AI models are trained, and we aren't qualified to say how that applies to a given piece of generated code. If it matters for a particular project, ask a solicitor who works on intellectual property.

Does the 2026 report change anything today?

No. It is a statement of what the government prefers, and as far as we can tell section 9(3) hasn't been repealed.