Skip to content
CodeLifter
Search/ Browse prompts
CodeLifter Forum

Who owns code you write with an AI assistant at work?

Staff answerWritten by CodeLifter editors · AI code policies1 replyupdated

Short answer

Can an employer stop you using an AI assistant on its code? Yes, in general. An employer that owns the code can set rules about where it goes, and pasting source into a tool sends it to a third party. That is a confidentiality question as much as a copyright one.

From the top reply by CodeLifter editors ·
CiteCodeLifter Forum, "Who owns code you write with an AI assistant at work?", https://codelifter.com/forum/posts/who-owns-code-you-write-with-an-ai-assistant-at-work/, accessed 2026-11-25.
  1. Staff, CodeLifter ·

    Usually your employer. In the US and the UK, code an employee writes as part of the job belongs to the employer unless a contract says otherwise, and an AI assistant does not change that. What changes is how much of the code is protected at all, and whose account the tool's terms treat as owner. Not legal advice.

    What is the starting rule for employees?

    United States. The Copyright Office's Circular 30 on works made for hire says a work is made for hire "when the work is created by an employee as part of the employee's regular duties", and in that case "the employer or the party ordering or commissioning the work is considered the author and copyright owner." The employer is the initial owner "unless the employer or the commissioning party has signed a written agreement to the contrary with the work's creator."

    United Kingdom. Section 11(2) of the Copyright, Designs and Patents Act 1988 says that where a literary, dramatic, musical or artistic work "is made by an employee in the course of his employment, his employer is the first owner of any copyright in the work subject to any agreement to the contrary."

    So for ordinary work done in your job, the human-written parts of the code belong to your employer from the moment you write them. Many employment contracts also contain an intellectual property clause that confirms or extends this; read yours.

    Does the AI assistant change who owns the code?

    It changes what there is to own, and the answer differs by country.

    In the US, copyright needs a human author. The earlier thread on US copyright covers the Copyright Office's position that purely generated material is not protected. The D.C. Circuit's opinion in Thaler v. Perlmutter adds a point that matters for employers: the work made for hire rule does not rescue machine output, because the authorship requirement "applies to all copyrightable work, including work-made-for-hire." The parts you wrote, arranged or substantially changed belong to your employer as usual; the purely generated parts may belong to nobody under copyright. Your employer still controls them in practice, because it controls the repository, and confidentiality and contract terms do not depend on copyright.

    In the UK, section 9(3) of the same Act has a specific rule: for a literary 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." How that applies to modern coding assistants has not been settled, but read with section 11(2), an employee making those arrangements in the course of employment points ownership back to the employer.

    What do the tools' terms say?

    Vendor terms decide what the tool provider keeps, not what your employer owns, but they name an owner. Anthropic's Commercial Terms of Service (effective 17 June 2025) define the "Customer" as "you or the organization, company, or other entity that you represent", and say the Customer "owns its Outputs", with Anthropic assigning "its right, title and interest (if any)" in them. On a company account, that Customer is your employer. The commercial use thread compares the output clauses of GitHub, OpenAI and Anthropic.

    Checked on 12 November 2026.

    What about contractors and freelancers?

    Here the default flips. Circular 30 says a commissioned work is made for hire only if it falls into one of nine listed categories (such as a contribution to a collective work, a compilation or an instructional text) and the parties "expressly agree in a written instrument signed by them" that it is. "If a work fails to satisfy any of these requirements, it is not a work made for hire." Software written by an independent contractor often does not fit those categories, so a client normally needs a written assignment of copyright to own it. Contractors using AI should also check whether the contract asks them to warrant that the work is original or to disclose AI use.

    What about side projects?

    The question is whether the work falls within your job. Circular 30 lists factors courts consider when deciding scope of employment, including whether the hiring party "provide[d] the space, materials, or tools", whether the work was "created as part of the regular business hours", and whether it was "created pursuant to the creator's usual tasks." For AI tools that adds a practical point: building a personal project with the company's licensed assistant, on a company laptop, during work hours, weakens any claim that it was outside your employment. Keep side projects on your own equipment and accounts, and check what your contract says about inventions outside work.

    Steps for a team

    1. Confirm employment and contractor agreements cover code produced with AI assistance.
    2. Use company accounts for work, so the vendor terms run to the company.
    3. Record which code was generated and which a person wrote or changed, since ownership of the human parts is easier to show with records. CodeLifter's who owns AI-generated code guide covers the wider questions.
    4. Get legal advice for anything that matters, such as an acquisition, a dispute or open sourcing a codebase.

    Short version

    • Employee code written for the job belongs to the employer in the US and UK, subject to agreement.
    • In the US, purely AI-generated parts may not be protected at all; your human contributions still go to the employer.
    • In the UK, section 9(3) gives computer-generated works to the person who made the arrangements.
    • On a company account, vendor terms usually treat the company as the output's owner.
    • Contractors usually keep copyright unless they sign an assignment. This is not legal advice.
    1
    ReplyLink

Plain text or simple Markdown. Links are nofollow. Your email is never shown.

  1. CodeLifter editorsStaffStaff, CodeLifter ·

    Can an employer stop you using an AI assistant on its code? Yes, in general. An employer that owns the code can set rules about where it goes, and pasting source into a tool sends it to a third party. That is a confidentiality question as much as a copyright one. Anthropic's Commercial Terms of Service show why companies care about which account is used: on a commercial account, "Customer Content is Customer's Confidential Information" and "Anthropic may not train models on Customer Content from Services." Those promises run to the Customer on the contract, which is the company only if the company holds the account. A personal account used for work code is covered by whatever terms that personal account has, and the company is not a party to them.

    That is why many workplace policies allow AI assistance only through approved company accounts, and ban personal ones for work. The forum's earlier thread on whether employers allow AI coding assistants collects examples of how such policies are written.

    If your workplace has no policy, ask before using a tool on work code rather than after. If it bans the tools, using them anyway risks a breach of your employment terms even where the code itself would still belong to the employer. This is not legal advice.

CodeLifter Forum. Questions and answers on vibe coding prompts, AI-generated code provenance, project AI policies and MCP tools.