Building software

Who should own the code, from the first commit

Software you paid for can still sit in someone else's accounts. Put it in your name before the first line is written.

By the duyan team · Updated · 3 min read

Building software

In short

  • Open the repository, cloud account, domain and app⁠-⁠store accounts in your company's name, before work starts.
  • Give the builder access you can remove, and keep the owner logins yourself.
  • Have the contract assign the code to you in writing. Paying for it may not be enough.
  • At the end, log in to everything yourself and remove access you no longer need.

Our view: in your name from day one

You should own every account your software lives in, from the first commit. That means the code repository, the cloud account, the domain and the app⁠-⁠store accounts.

The builder works inside them with access you grant. You can then remove that access in one step, whatever happens.

Why "we'll hand it over at the end" goes wrong

A handover tends to happen at a bad moment. The builder may be in a dispute with you, waiting on an invoice or gone.

Moving things later is also harder than starting in the right place. Apple lists many conditions before an app can move between accounts.

Some items don't move at all. On Apple, the app's Apple Pay merchant ID stays behind. On Google Play, past sales reports stay with the old account.

The code: what the contract has to say

A paid invoice doesn't settle who owns the code. That depends on your country and on who wrote it.

In the US, software written by an outside contractor is usually not a "work made for hire". You own it only through a written assignment, signed by the contractor.

In the UK, an employer owns what an employee writes in the course of the job. A contractor keeps the copyright until a signed written assignment moves it to you.

So the contract should assign the code, designs and documents to you. It should also cover anything written by the builder's own staff and subcontractors.

What about code an agent wrote?

Much code is now drafted by coding agents. The US Copyright Office said in January 2025 that purely AI⁠-⁠generated material can't be copyrighted.

Human work in it can still be protected, such as creative changes to the output. Writing the prompts alone isn't enough.

So keep the contract's assignment wide, and keep the code in your repository.

The repository also records who changed what and when. That history helps if ownership is ever questioned.

The accounts to hold in your name

The accounts to hold in your name
AccountIn your name meansAsk for
Code repositoryYour organisation on GitHub, GitLab or similar, with you as ownerAt least 2 owners on your side
Cloud accountYou opened it and pay the billThe main login on your company email, with 2⁠-⁠step sign⁠-⁠in
DomainYou are the registrant at the registrarThe registrar login, and renewal on your card
App storesEnrolled as your companyYou as account holder, the builder added as a team member

GitHub advises at least 2 owners for an organisation. AWS advises against using the main login for daily work, so the builder gets their own user.

Apple shows the account's name as the seller on the App Store. A company account needs a legal entity and a D⁠-⁠U⁠-⁠N⁠-⁠S number, so start that early.

The same goes for smaller services, such as payments, email sending, error tracking and analytics.

When we'd say otherwise

A throwaway prototype can live in the builder's accounts. Move it before anyone relies on it.

A founder without a company yet can't enrol in Apple's programme as an organisation. Use a personal account for testing, and set up the company account before launch.

Sometimes you're buying a product the builder runs for many clients. Then the code stays theirs, and you own your data.

Make sure you can export all of it.

What to ask for at the end

When a build or contract ends, check these yourself:

  • Log in as owner to the repository, cloud account, domain registrar and app stores.
  • Remove the builder's access, or cut it down to what ongoing support needs.
  • Replace any key or password the builder created or saw.
  • Get a short note on how it's deployed, where secrets live and how to restore a backup.
  • Get a list of outside services, with who pays for each.
  • Get a list of open⁠-⁠source licences the code uses.
  • Have the signed assignment cover everything delivered, including work by subcontractors.

This isn't legal advice, and the rules vary by country. Check your contract with a lawyer for your case.

Have a product in mind?

A first version usually takes 6⁠–⁠10 weeks, in your repository from day one.

Sources

  1. U.S. Copyright Office, "Circular 30: Works Made for Hire", copyright.gov (accessed 5 November 2026)
  2. U.S. Code, 17 U.S.C. § 101 (definition of "work made for hire") and § 204(a) (transfers must be in writing and signed), law.cornell.edu and law.cornell.edu (accessed 5 November 2026)
  3. UK Copyright, Designs and Patents Act 1988, section 11 (first ownership), legislation.gov.uk (accessed 5 November 2026)
  4. UK Copyright, Designs and Patents Act 1988, section 90 (assignment must be in writing, signed), legislation.gov.uk (accessed 5 November 2026)
  5. U.S. Copyright Office, "Copyright and Artificial Intelligence, Part 2: Copyrightability" (January 2025), NewsNet 1060, copyright.gov (accessed 5 November 2026)
  6. Apple, "Overview of app transfer", App Store Connect Help, developer.apple.com (accessed 5 November 2026)
  7. Google, "Transfer apps to a different developer account", Play Console Help, support.google.com (accessed 5 November 2026)
  8. Apple, "Enrollment", Apple Developer Program, developer.apple.com (accessed 5 November 2026)
  9. GitHub Docs, "Roles in an organization", docs.github.com (accessed 5 November 2026)
  10. AWS, "AWS account root user", IAM User Guide, docs.aws.amazon.com (accessed 5 November 2026)
  11. ICANN, "Registrant Benefits and Responsibilities", icann.org (accessed 5 November 2026)

Tell us the job

Bring a job to build or a role to fill. We reply within one working day, with questions or a next step.