Hiring a Software Contractor: Who Owns the Code and What the Contract Must Say

A company commissions development from a freelancer or a studio, pays against acceptance certificates and assumes the code is its own. The law does not always agree. In many countries the rights in a contractor’s software must be assigned in a written contract, or they stay with the author. We go through how this works in the US, the UK, the EU and Russia according to primary sources, and what to write about AI-generated code, personal data and access.

Checked on 3 November 2026. Rules and sources are current as of this date.

Who owns the code by default

The answer depends on the law of the country and on who the author is: an employee or a contractor. That difference drives everything else.

United States

US law treats as a “work made for hire” a work prepared by an employee within the scope of employment. A commissioned work qualifies only if it falls within a closed list of categories and the parties sign a written agreement to that effect (17 U.S.C. § 101). A stand-alone program by a contractor does not usually fit the list, so the rights have to be assigned. An assignment is valid only in a writing signed by the owner of the rights (§ 204).

United Kingdom

Where a literary work, which includes software, is made by an employee in the course of employment, the employer is the first owner of the copyright, subject to any agreement to the contrary (CDPA, s. 11(2)). There is no such rule for a contractor. An assignment is not effective unless it is in writing signed by or on behalf of the assignor (s. 90(3)).

European Union

Directive 2009/24 on the legal protection of computer programs speaks directly only about an employee. Where a program is created by an employee in the execution of his duties or following the employer’s instructions, the employer exclusively is entitled to exercise all economic rights, unless otherwise provided by contract (Article 2(3)). The directive has no rule for a contractor, so national law and the contract decide.

Russia

Russian law separates three cases. If a contract with a company has the creation of a program as its express subject, the exclusive right belongs to the customer unless the contract says otherwise (Article 1296 of the Civil Code). That article does not apply where the contractor is the individual author. Then the author’s order contract applies, and the exclusive right passes only if the contract provides for it (Article 1288). If the program arises while performing a contract that did not provide for its creation, the exclusive right stays with the contractor and the customer gets a free non-exclusive licence for the purposes of the contract (Article 1297).

Our takeaway

Do not rely solely on the default rules. Depending on the country and on who wrote the code, the customer may own the rights, may get only a limited licence or may get nothing beyond what the contract says. A clear written assignment or licence is the safest approach.

Four jurisdictions side by side

A summary of what follows directly from the texts of the laws.

CountryWhat the law saysWhat to do
United StatesA contractor’s work rarely qualifies as a work made for hire, and rights do not pass without a signed writingA written assignment signed by the contractor
United KingdomThe employer is first owner only for an employeeA written assignment signed by the assignor
European UnionThe directive covers only the employee, national laws decide the restAn assignment in the contract, checking the national law of each country where you need protection
RussiaDepends on the contract type: the customer owns a program commissioned from a company, but an individual author keeps the right unless it is assignedIdentify the contract type and state the assignment, its scope and any reuse rights

What the contract must contain

A good development contract answers five questions. Who owns the code, to what extent, for how long, what the contractor may keep and who answers for third-party rights inside the code.

Assignment

Use direct assignment wording, not “the right to use”. State the scope, territory and term, or that it is perpetual. In the US and the UK the contractor’s signature is required.

Existing code and tools

Separate what is created for you from the contractor’s general tools. General components need a licence, and what is created for you needs an assignment. The licence for the contractor’s existing components should let you modify, maintain and sublicense them as part of the product. List open-source components with their licences and approve copyleft ones in advance.

Reuse

In Russia, where the exclusive right has gone to the customer under a commissioned-work contract, the contractor may by default keep a free non-exclusive licence for its own needs (Articles 1296 and 1297). If that does not suit you, prohibit it expressly.

Warranties

The contractor confirms that the code does not infringe third-party rights and that the licences of third-party components allow commercial use.

Code produced with AI

Contractors increasingly write code with generative models, and that affects what exactly you receive.

The US Copyright Office position

In its report of 29 January 2025 the Office concluded that outputs of generative AI can be protected by copyright only where a human author has determined sufficient expressive elements. Prompts alone are not enough. Using AI as an assistant does not bar protection of the work as a whole.

What to put in the contract

Whether the contractor may use AI tools, which ones, how it discloses their use and who is responsible if generated code infringes third-party rights or the tool’s licence terms.

Our takeaway

Under US law, if you pay for original code but receive mostly generated code, the protectable part may be smaller than you think, and other countries may differ. Require disclosure of AI use and limit what code and data the contractor may feed into outside AI tools.

Need help with this topic?

We will review your situation and propose a solution for your project.

Contact us

Personal data and confidentiality

If a contractor gets access to user databases, logs or test data with real people, it will usually act as a data processor on your behalf, although the role depends on who decides the purposes and means of the processing.

Article 28 GDPR

Processing may be entrusted only to those providing sufficient guarantees. It is governed by a contract setting out the subject matter and duration, the nature and purpose of the processing, the type of personal data and the categories of data subjects. The processor acts only on documented instructions and engages another processor only with the controller’s authorisation.

Confidentiality and security

The processor ensures that authorised persons are bound by confidentiality and takes the measures required by Article 32. At the controller’s choice it deletes or returns the data after the work ends.

Do not hand over live data

Use anonymised or test data for development. If real data cannot be avoided, sign the processing agreement before access is granted.

Accounts, keys and repositories

Rights in the code mean little if the contractor holds the keys to everything else.

Everything in the company’s name

Wherever the platform allows it, register the repository, cloud accounts, domains, app store accounts and signing keys to the customer from day one. Where an account cannot be transferred, agree on admin access and a transfer procedure.

Handover and acceptance

The contract should provide for delivery of the source code, documentation and access on acceptance and on termination. Tie payment under the final certificate to actual handover, and align payment, acceptance and the transfer of IP rights so you never run the product before the rights have passed. Handover should also cover build and deployment scripts, infrastructure files, database schemas and a list of dependencies.

Subcontractors

Require written consent for subcontractors and for the passing of rights down the chain. Otherwise rights assigned to you may never have reached you. If you hire a studio, it must itself hold assignments from its developers and subcontractors, because it cannot transfer rights it does not own. Ask for evidence of them.

Link to app publishing

The Apple and Google rules are covered in detail in our article on publishing an app on the App Store and Google Play. If the developer account is registered to the contractor, the platform sees the contractor as the seller.

Liability, acceptance and support

These terms are discussed least and cause the most disputes.

Acceptance

A review period, completion criteria and a procedure for fixing defects. Without them a dispute over whether the work was accepted is often not decided in your favour.

Liability

Define what the contractor answers for towards you: infringement of third-party rights, data leaks, hidden features. A limit on liability should reflect the real risks of the project.

Support and source code

Terms for fixing bugs after launch and for delivery of current source code if the contractor stops work.

Case law

The best-known decision on this question comes from the US Supreme Court, so it shows US law logic, and in another jurisdiction local rules must be checked. The problem itself is similar everywhere: paying for work does not transfer the rights.

CCNV v. Reid, 5 June 1989

A non-profit organisation commissioned a work from a sculptor, and there was no written agreement on rights. The Court unanimously held that “employee” in the work-made-for-hire provisions is determined by the general common law of agency, and that the sculptor was an independent contractor. The commissioned sculpture was outside the closed list of commissioned-work categories and was not covered by a signed written agreement, so it was not a work made for hire. The question of possible joint authorship was left to the lower court.

What this means

If the developer is not an employee, rights in the code do not pass to the customer automatically just because the customer paid. A written assignment or a licence with clear terms is needed.

Case analysis (hypothetical example, not a real case)

A startup hires a freelancer to build an app and pays the invoices, but the contract has no clause on rights. Two years later an investor runs due diligence and asks for confirmation of title to the code. The freelancer replies that nothing was ever transferred. A sensible order of action is to sign a written assignment with the contractor that also confirms the transfer for code already written, provide consideration for it, check whether the contractor used other people, and list the open-source libraries used.

What to do now

Reviewing existing contracts takes a few hours, and losing rights costs far more.

  1. Find the development contracts

    Collect every contract under which product code was written, including old freelancer contracts.

    Start here
  2. Check the assignment of rights

    Is there a direct written assignment signed by the contractor, and what does it cover.

  3. Close gaps with an addendum

    If there is no assignment, obtain one retroactively in a separate signed document.

  4. Ask for a component list

    A list of third-party libraries and licences, and information about AI use.

  5. Move access to the company

    Repositories, cloud, domains, store accounts and keys.

  6. Update your template

    Include assignment of rights, a reuse ban, data terms and subcontractor terms.

Do not delay

A missing assignment is easier to obtain while the relationship with the contractor is working. After a dispute it can become a bargaining chip.

Paying for code does not yet give you the rights in it.The LegalBit team

Frequently asked questions

Is paying for the work enough for the rights to pass to the customer?

No. In the US and the UK an assignment of copyright is valid only in writing signed by the assignor. In Russia the rights default to the customer only where a company is commissioned to create the program. An individual author keeps the right unless it is assigned in the contract.

Does “work made for hire” apply to a contractor’s code?

As a rule, no. For commissioned works US law has a closed list of categories and requires a written agreement, and a stand-alone program does not usually fit. That is why a direct assignment is used.

May the contractor reuse the code it wrote for other clients?

In Russia it may by default keep a free licence for its own needs where the right passed to the customer under a commissioned-work contract, unless the contract says otherwise. Elsewhere it depends on the contract. It is best to settle the rule expressly.

Is AI-generated code protected by copyright?

According to the US Copyright Office, protection arises only where a human has determined sufficient expressive elements, and prompts alone do not create it.

Do we need a separate agreement if the contractor sees personal data?

Yes. If the contractor processes data on your behalf, Article 28 GDPR requires a contract with mandatory terms, including acting only on instructions and returning or deleting data.

What to do about signed contracts with no assignment of rights?

Sign an addendum with an assignment of rights and the contractor’s signature, then update your contract template.

See also: Publishing an app on the App Store and Google Play; Terms of Service and Privacy Policy for your project; EU AI Act checklist for IT companies and SaaS. Services: lawyers for IT companies and SaaS, contracts and documents.

This is what we do

How we help IT companies and developers: