Who Owns the Source Code When You Hire a Developer? (India)
← Back to Blog

Who Owns the Source Code When You Hire a Developer?

Published 24 November 2026 9 min read Software Development By Abhinav Kumar, Co-Founder & Solutions Architect · Updated 24 Nov 2026
Quick answer

By default, the developer who writes the code owns it, unless they are your employee or they have signed a written assignment transferring it to you. Under Section 17 of India's Copyright Act, 1957, the author is the first owner of copyright, and an employer becomes the owner automatically only for work made under a contract of service. If you hire a freelancer or an agency, paying the invoice does not by itself transfer ownership: you need a written, signed IP assignment in your contract.

Most founders assume that if they paid for the app, they own the app. By default, that is not how copyright works in India, and broadly not in the UK or the US either. So who owns the source code when you hire a developer? This guide explains the default position under Indian law, what a proper ownership clause looks like, the red flags to spot in a developer's contract, and a checklist to use before you sign. It is general information, not legal advice.

Who owns the source code by default under Indian law?

Software is protected in India as a literary work: Section 2(o) of the Copyright Act, 1957 includes computer programmes in its definition of "literary work". The starting point for ownership is Section 17, which says that, subject to the Act, "the author of a work shall be the first owner of the copyright therein." The author of code is the person who writes it.

Section 17(c) carves out employees. For a work made in the course of the author's employment under a contract of service or apprenticeship, the employer is the first owner, "in the absence of any agreement to the contrary".

The key distinction is between:

Whether someone is really an employee is a question of fact. Indian courts look at tests such as how much control you have over how the work is done and whether the person is part of your organisation. In Exegesis Infotech v. Medimanage Insurance Broking (Bombay High Court, 2015, an interim order), the court relied on a memorandum of understanding that gave the commissioning company complete ownership of the software. It left the question of whether the developer was effectively an employee for trial. The takeaway: a clear written agreement settled what the employment argument could not.

Does paying the developer mean you own the code?

No. Payment and ownership are separate questions. Section 19 of the Act says no assignment of copyright is valid unless it is in writing and signed by the person assigning it. A WhatsApp message saying "the code is yours" or an invoice marked "paid" is a weak substitute.

Without a written assignment, you may at most have an implied right to use the software for the purpose you paid for. That is a much weaker position. It can leave you unable to show clear ownership to investors during due diligence, uncertain about whether you can license or sell the product, and exposed if the developer reuses large parts of your product for a competitor.

This matters most at the worst moment: when a relationship ends badly. If your developer has stopped responding, read our step-by-step guide on what to do when your app developer disappears.

What must a valid copyright assignment contain in India?

Section 19 sets out requirements that many contracts copied from foreign templates miss:

Two default rules catch people out. If the period is not stated, the assignment is deemed to be five years from its date (Section 19(5)). If the territory is not specified, it is presumed to extend within India only (Section 19(6)). In the Pine Labs v. Gemalto dispute, a Division Bench of the Delhi High Court applied both defaults to a software development agreement that was silent on duration and territory, limiting the assignment to five years and to India. So an assignment clause should say it is for the full term of copyright and worldwide.

Section 19(4) adds that if the assignee does not exercise the assigned rights within one year, the assignment can be deemed to lapse, unless the assignment says otherwise. A well-drafted clause deals with this expressly. Section 18 also allows copyright in a future work to be assigned, which is how a contract signed before coding starts can cover code that is written later.

What should a source code ownership agreement include?

Ask your lawyer to make sure the contract covers at least these points:

  1. IP assignment: all rights in the code, designs, database schema and documentation created for you are assigned to your company, worldwide, for the full term of copyright, with the consideration stated.
  2. Definition of deliverables: full source code for every app and the backend, build and deployment scripts, infrastructure configuration, design files and technical documentation, not just compiled apps.
  3. Repository access from day one: code is committed to a repository owned by your organisation throughout the project.
  4. Accounts in your name: domain, cloud, app stores, payment gateway and third-party services.
  5. Pre-existing tools: agencies often reuse their own libraries. That is fine if you receive a perpetual, royalty-free licence to use and modify them as part of your product.
  6. Third-party and open-source licences: a list of components used and their licences.
  7. Subcontractors: anyone the developer brings in must assign their rights too, so ownership flows through to you.
  8. Handover on termination: if the engagement ends early, the developer hands over the code and credentials for the work paid for.
  9. Confidentiality and non-infringement: the developer confirms the code is original or properly licensed.

Indian law also gives authors moral rights under Section 57, such as the right to claim authorship. Contracts often deal with these too; ask your lawyer how to handle them. If you are still choosing a developer, raise ownership early along with the other questions to ask before hiring an app developer. Non-technical founders can also read how to build an app without a technical co-founder.

What about open-source and third-party code in your app?

Almost every modern app uses open-source libraries. You will never own those; you use them under their licences. Permissive licences such as MIT and Apache 2.0 are generally easy to live with. Copyleft licences such as the GPL can require you to release your own source code in some situations, which matters if your code is your competitive edge. Ask your developer for a list of the main dependencies and their licences, and make sure any paid components, fonts or APIs are licensed to your company, not to the developer.

What are the red flags in a developer contract?

Not every one of these is a deal-breaker. If the developer wants ownership to pass only once you pay, ask for it to pass milestone by milestone rather than at the very end; that is fair to both sides. Each item deserves a question before you sign.

What is a quick checklist before you sign?

The short version: when you hire a developer, the source code belongs to whoever wrote it until a signed document says otherwise. Get that document right before the first line of code.

How does Appzur handle source code ownership?

At Appzur, ownership and IP terms are agreed in writing in each client's contract before work starts, and the full source code is handed over at delivery. Domain and payment-gateway accounts are always registered in the client's name; other accounts (hosting, app stores, cloud) are set up as agreed in the contract. We sign NDAs. We are an AI-native software company in Delhi, and a senior engineer reviews every change on every project, whether that is custom software, a mobile app or an MVP. If you are already stuck with code someone else wrote, our project rescue service starts by auditing what you have and what you actually own.

Want ownership agreed in writing before any code is written?

Tell us what you are building. We will explain how ownership, repository access and handover work before any code is written.

Talk to our engineers →

Already stuck with code you may not own? See project rescue.

Frequently asked questions

Do I own the code if I paid the freelancer in full?

Not automatically. Under Section 17 of the Copyright Act, 1957 the author is the first owner of copyright, and Section 19 requires an assignment to be in writing and signed. Payment alone usually gives you, at most, an implied right to use the software. Get a written IP assignment signed.

Does a company own code written by its employees in India?

Generally yes. Section 17(c) makes the employer the first owner of a work made in the course of employment under a contract of service, unless there is an agreement to the contrary. Many companies still include an express IP clause in employment contracts to remove doubt.

What happens if the assignment does not say how long it lasts?

Under Section 19(5), if the period of assignment is not stated, it is deemed to be five years from the date of assignment. If the territory is not specified, Section 19(6) presumes it extends within India only. A software assignment should say worldwide and for the full term of copyright.

Does an NDA give me ownership of the code?

No. A non-disclosure agreement stops the developer from sharing your confidential information, but it does not transfer copyright. You need a separate, signed IP assignment clause that covers the code, designs and documentation.

Can a developer reuse my app's code for other clients?

If they still own the copyright, they may be able to. If the code has been assigned to you, reusing it without permission would infringe your rights. Agencies can legitimately reuse their own general tools, so the contract should separate those from the code written specifically for you.

What is source code escrow, and do I need it?

Source code escrow means a neutral third party holds a copy of the source code and releases it to you if certain events happen, such as the vendor shutting down. It is useful when you license software rather than own it. If the code is assigned to you and sits in your own repository, you usually do not need escrow.

Can I own the open-source libraries used in my app?

No. Open-source components remain owned by their authors and are used under their licences. You own the code written for you, and you must follow the licences of the libraries you use. Copyleft licences such as the GPL carry more obligations than permissive ones such as MIT.

Does Appzur give clients ownership of the source code?

Code ownership and IP terms are set out in each client's contract, and the full source code is handed over at delivery or on final payment. Domain and payment-gateway accounts are always registered in the client's name, and you can stop after any milestone and keep the work completed so far.

Sources

This article is general information and is not legal advice. Laws and their interpretation change; have a lawyer qualified in Indian IP law review your contract.

You might also read
Related read
App Developer Disappeared? What to Do, Step by Step
Related read
Food Delivery App Development Cost
Related read
Uber Clone Script vs Custom Taxi App
Project rescue
Inherited code you are not sure you own?
See project rescue →