Kamal Tserakhau

Expert commentaryAI/Due Diligence

10 min read

The model writes the code, but the law requires a human: who owns a startup built with Claude?

Who owns the product when AI writes the code? Lawyer and mentor Kamal Tserakhau explains what investors will examine during due diligence, from copyright and licences to control of the code and tax relief.

Contents

A quarter of the startups in Y Combinator's Winter 2025 batch had around 95% of their code written by AI. Claude Code now accounts for 4% of all public commits on GitHub, and Sweden's Lovable, where you build an app by describing it in plain words, gets around a million new projects a week.

Startups launch faster now, but they also collect problems faster. In late January 2026 Moltbook, a social network for AI agents, went live, and its founder wrote that he had not written a single line of code for it. A few days later researchers at Wiz found a database key sitting in the site's code, and the database behind it had no access rules at all. The leak exposed 1.5 million API tokens and more than 35,000 email addresses.

Funds now put questions to projects like this that nobody raised in due diligence five years ago. We asked Kamal Tserakhau, a lawyer and mentor who advises on deals and startup launches, how due diligence on a vibe-coded startup differs from the usual kind.

A legal review of a startup like this raises at least five issues:

  • Does the company hold copyright in its own product?
  • What code and data has the company passed to AI services, and could those services use them for training?
  • Does the product have vulnerabilities that could expose users' data?
  • Does it contain someone else's code under a licence nobody complied with?
  • Can income from the product benefit from an IP Box regime?

01Authorship

The model writes the code, but the law requires a human

Copyright law in the US, the EU and the UK starts from the premise that an author is a human being. In January 2025 the US Copyright Office said that if a developer only wrote prompts, that is not enough to protect the product: protection covers only what a person wrote, selected or reworked themselves.

The courts keep insisting that an author can only be a person, not a machine. The inventor Stephen Thaler spent years trying to register in the US an image that, he said, his AI system had created entirely on its own. The Copyright Office refused, the courts upheld the refusal, and in March 2026 the US Supreme Court declined to hear the case. So AI cannot be an author, and there is protection only where the company can show a human contribution.

In the EU, a work, including a computer program, is protected only if it is the author's own intellectual creation, and the courts read that as free creative choices made by a human.

In the UK, the Copyright, Designs and Patents Act 1988 treats the person who made the arrangements for a computer-generated work as its author and protects that work for 50 years. In theory this gives a company rights where the US and the EU would give none, but there is no case law on vibe coding yet, and in March 2026 the government proposed scrapping the provision. For now it is still in force.

Fewer and fewer people write code by hand. At Anthropic, over 80% of the code that reaches production was written by Claude, and in many teams the human part of the work has shrunk to setting the task and reviewing the result.

No court has yet heard a dispute over who owns a product written in Claude Code or Cursor. Current cases are about training models on other people's works and about refusals to register AI output. But if such a dispute does get to court, say after a co-founder leaves, the judge may well decide there is nothing in the product to protect.

02Company ownership

Rights to AI-generated code do not always automatically belong to the company

Anthropic, OpenAI and Cursor assign their rights in the output "if any", meaning only if such rights exist at all. A lot depends on the subscription. On personal plans (Claude Pro and Max, ChatGPT Plus, GitHub Copilot Pro), code and conversations go into training until the user switches this off. Business plans and the API exclude training, and the provider promises to defend the customer against claims from rights holders, though not for output that has been modified or combined with other code. App builders such as Lovable, Bolt and v0 give no such protection.

The most common trap is a personal subscription held by a founder or a freelancer. Any rights in the output, if they exist, belong to that individual rather than the company, and they can only reach the company through a separate assignment.

03Licences

Other people's code without a licence

Claude Code, Cursor and Codex were trained on open-source code and sometimes reproduce chunks of it almost word for word, with no author or licence attached. In 2026 Black Duck found licence conflicts in 68% of the codebases it audited, up from 56% a year earlier.

For a startup this means two risks:

  • Using someone else's code without meeting the terms of its licence is an infringement, and the rights holder can demand that you stop using it or pay damages.
  • Copyleft licences (GPL, AGPL) can "infect" the product. These open-source licences require derivative works to be distributed under the same open terms. If such a fragment ends up in a product that is distributed, the company may have to release the source code of the whole product, and AGPL bites even when the product is simply available over a network, like any ordinary SaaS.

Dependency scanners, which check third-party libraries and their licences, miss this kind of code because the fragment does not point to any package. In September 2026 a US appeals court threw out the developers' main claim against GitHub over Copilot, but their claims for breach of open-source licences are still going.

04Trade secrets

Trade secrets and access

Since copyright offers little to hold on to, the code can be protected as a trade secret, that is, as valuable information the company keeps confidential. For AI-generated code this is the most workable option, though it has its own pitfalls.

The first is secrecy. If the code was written through a personal account with training switched on, a court may decide the company took no reasonable steps to protect it. In January 2026 a federal court in California dismissed a trade secret claim against OpenAI after finding that, by developing her ideas in ChatGPT, the plaintiff had voluntarily disclosed them to the company.

The second is access. The repository, the API keys, the project in the app builder and the AI service account are often registered to the founder's personal email, and investors will check in due diligence who controls them.

In practice, then, trade secrecy is what protects the product today, and that comes down to who holds the keys. An assignment of "all rights" does not help much here either: you can only transfer rights that actually came into existence.

05Agents and app builders

Coding agents or app builders: two profiles for due diligence

If the product was built with Claude Code, Codex or Cursor, the copyright position is stronger. The review will look at whose accounts and plans the code was written on, whether founders and contractors have signed IP assignments, and whether the codebase contains third-party fragments under copyleft licences.

If it was put together in an app builder such as Lovable, Bolt or Base44, the position is weaker. There is less evidence of human authorship, and the platform's terms decide who has rights in the code and the data. Lovable, for example, takes a perpetual licence to customer data for its own purposes.

Then there is liability for personal data. Escape checked 5,600 public apps built with tools like these and found 175 personal data leaks. The cause is usually the same as at Moltbook: a database with no access rules. For an investor this becomes a GDPR question, with fines attached.

That is why due diligence on a product built with an app builder such as Lovable more often leads to conditions in the deal: a security audit before closing, a plan for moving off the platform, specific warranties on personal data. And "I didn't write a single line of code" in a pitch is a good reason to order that audit before the term sheet.

06IP Box

Does IP Box apply to vibe coding?

Without copyright in a vibe-coded product, IP Box relief is in doubt. IP Box is a preferential tax regime that taxes income from qualifying intellectual property, such as patents and copyrighted software, at a reduced rate. The issue is particularly relevant in Cyprus. The Cypriot IP Box exempts up to 80% of the profit from a qualifying asset, so with corporate income tax at 15% the effective rate falls to 3%. European IP Box regimes do cover software, but they require copyrighted software, meaning a program protected by copyright.

If copyright does not protect the product, the company's right to the relief is open to question.

In Poland the 5% rate under PIT and CIT applies to income from "autorskie prawo do programu komputerowego" (copyright in a computer program), so the code itself has to be protected. The closest thing to guidance is an individual tax ruling issued by the National Tax Information service (KIS) on 18 June 2025 (0113-KDIPT2-3.4011.349.2025.2.AK). A programmer working on a B2B basis, who wrote code with an AI assistant, had his IP Box treatment confirmed. It is too early to call this established practice, though: the tax authority did not test whether the code was creative and did not look at the AI question at all. Neither Poland nor Cyprus has a case yet where the relief was withdrawn because of AI.

07Investor practice

How investor due diligence has changed

In venture deals the market's response shows up so far mainly in model documents. Back in 2023 the US NVCA added generative AI representations to its model stock purchase agreement (SPA), including one that the company has not used such tools to create material proprietary intellectual property. A vibe-coded startup can only give that representation with an exception in the disclosure schedule.

M&A practice is tougher. Law firms advise buyers to push for the seller's warranties on IP and data to be treated as fundamental: they survive longer than ordinary warranties, and liability under them can go up to the purchase price. Buyers also ask for specific indemnities, a promise by the seller to cover losses if a particular risk materialises. W&I insurers may exclude AI risks from cover, and then the seller carries them.

Technical audits are getting stricter as well. According to Black Duck, licence conflicts turn up in 94% of the M&A deals it audits. SIG, which runs technical audits for private equity funds, sees roughly twice as many security violations in AI-built projects.

08Before the round

What to sort out before the round

To sum up, founders should address the following issues before an investment round to make due diligence easier:

  • move AI tools to business plans and company accounts, with training switched off;
  • sign IP assignments with co-founders and contractors that also cover prompts, agent configuration files (such as CLAUDE.md) and projects on platforms;
  • move repositories, keys and platform accounts from personal email addresses to corporate ones;
  • run the code through a licence scanner that matches code fragments as well as packages;
  • commission a security review focused on database access and keys;
  • prepare the disclosure: which tools were used, where the AI-generated code sits in the product and who reviewed it.

If you found this article useful, treat the editorial team to a coffee. Your support helps us continue connecting with company founders and sharing their experiences.

Treat the team to a coffee (opens in a new tab)
Share