Skip to content

Decisions6 min read

Who owns the code? The IP and source-code clauses to read in an app development contract

By Published

Short answerBefore you sign, find the clause that says whether the code is assigned to you or only licensed, and when that happens relative to payment. Then check what the developer keeps from earlier work, which open-source licences the app will carry, and whose account the repository lives in. Turn each point into a written question for the developer, and have a lawyer read the answers before you sign.

Assigned to you, or licensed to you

This is the first clause I would look for. Everything else depends on it.

An assignment means the rights in the code move to your company. A licence means the developer keeps them and gives you permission to use the code, on terms the contract sets. Both are common, and a licence is not automatically bad. But a licence that is limited to one app, one country or one company, or that cannot be passed on, can bite years later when you sell the business, hire a new developer or want to reuse the backend for a second product.

I am not a lawyer and this is not legal advice. What I can give you is the list of questions I would want answered in writing, from the side of someone who writes and hands over code. Take the answers to a lawyer who knows the law where your company is registered.

When ownership moves relative to payment

Many contracts say the rights pass on full payment. That sounds fair, and it can be. The question is what you hold if the project stops halfway.

If rights only move at the end, a dispute over the last invoice can leave you with a half-built app you are not allowed to change. I prefer wording where the rights in each milestone's work pass when that milestone is paid. My post on payment milestones covers how to split the money. This clause is the other half: what each payment buys you, legally, not just what it buys you on screen.

  • Do rights pass on final payment, or milestone by milestone?
  • If the project ends early, what do you own in the work already paid for?
  • Do the rights cover the designs, the backend and the admin dashboard, or only the mobile app?
  • Is source code a named deliverable, or only the published app?

The developer's own code that goes into your app

Most developers reuse things. A login module, a base project, a set of internal tools. Contracts usually call this pre-existing or background material, and it is often kept by the developer even when the rest is assigned to you.

That is reasonable. What matters is the licence you get to it. I would want it to be permanent, to survive the end of the contract, to allow another developer to change it, and to pass to a buyer if you sell the company. If the reused part is small, a sentence covers it. If the whole app sits on the developer's private framework, ask to see a list of what is reused before you sign, because that framework decides who can maintain your app later.

Open-source parts and the licence each one brings

Few apps are written from scratch. A Flutter app pulls in packages, and each one carries its own licence. The Open Source Initiative's definition says an open source licence must allow modifications and derived works, and must not stop anyone from selling or giving the software away. So open source does not mean ownerless. It means you use it on the licence's conditions, and those conditions differ.

The table uses the summaries on choosealicense.com. It is a quick reference, not an opinion on your app.

LicenceMain conditions listedWhat I would ask
MITKeep the copyright and licence noticeAre the notices shown somewhere, such as a licences screen?
Apache 2.0Keep notices and state changes; includes an express patent grantWere any Apache files modified, and is that recorded?
MPL 2.0Share source of the licensed files you change, under the same licenceWere any MPL files changed?
LGPLv3Share source of the library under the same licence; a larger work using it through its interfaces may use other termsIs the library used as-is, through its interfaces?
GPLv3Strong copyleft: if you distribute it, complete source must be available under the same licenceWhy is it in the app, and has a lawyer looked at what it means for you?
AGPLv3As GPLv3, plus network use counts as distributionIs it in the backend, where users reach it over the network?

The repository, the accounts and whether you need escrow

A clause that says you own the code is worth less if the code sits in someone else's account. I would put the repository in the client's own Git organisation from the first commit, so ownership on paper and control in practice match.

If your code already lives in a developer's GitHub account, it can be moved. GitHub's docs say a transfer takes the issues, pull requests, wiki, stars and watchers with it, and links to the old location redirect to the new one. The person transferring needs admin access, and to move it into an organisation they need permission to create repositories there. My app handover checklist covers the store accounts, signing keys and hosting that should be yours too.

Escrow means a third party holds a copy of the source and releases it to you if certain events happen. It is built for software you license but never see. For a custom app whose repository is already in your account, I do not think it adds much. It is worth asking about when you license a vendor's platform and only hold a login.

Questions to send before you sign

Send these with the scope. Ask for the answers in the contract, not in a chat thread.

  • Is the code assigned to my company, or licensed? If licensed, on what terms?
  • When do the rights pass, and what do I hold if the project stops?
  • Which parts are your pre-existing code, and what licence do I get to them?
  • Can another developer change and maintain all of it after you?
  • Will you give me a list of open-source packages and their licences at handover?
  • Will you tell me before adding anything under GPL or AGPL?
  • Is the repository in my company's account from day one?
  • Do the same terms cover designs, the backend, the admin dashboard and documentation?
  • Can I pass the rights to a buyer if I sell the company?

How I handle this on my own projects

Ownership belongs in the same written scope as the features. For an app, that scope sits under one of three fixed prices: Launch at $999, Growth at $1,699 or Scale at $2,500. Custom software, such as an ERP or an internal business system, is a fixed quote after a written scope. In both cases, ask me for the ownership clause alongside the scope, check it against the questions above, and have your lawyer read it before you sign.

I would rather open the repository and accounts in your company's name from the start, so the code is already in your hands as each milestone is paid. Third-party fees, hosting and ongoing maintenance are not included in any package.

Questions

If I paid for the app, do I automatically own the code?
Do not assume so. Ownership depends on what the contract says and on the law that applies to it. Read the clause on assignment or licence, and have a lawyer confirm what it means before you sign.
Can I use open-source packages in a commercial app?
The licences summarised on choosealicense.com, from MIT to AGPLv3, all list commercial use as permitted. Each one sets conditions, such as keeping notices or sharing source, so ask your developer for the list of packages and their licences.
Should the developer keep any rights at all?
Often they keep rights in tools they built before your project. That is normal if you get a permanent licence to use and change those parts, and if it passes to a buyer of your company.

Sources

Platform rules and fees in this article were checked against these official pages on 11 November 2026. They change, so confirm before you rely on them.

Sannan Malik is a software architect and product builder with 8+ years in software, CEO of Alpha Notic FZE and a Certified Scrum Product Owner. He builds mobile apps and business software for companies in the UAE, the wider Gulf, the UK, the US, Canada and Australia.

Let's build it

Got an idea? Let's talk.

The fastest way to reach me is WhatsApp. Tell me what you're building and I'll reply with how I'd approach it, which package fits, or what a custom scope would look like.

Message me on WhatsApp