Who owns the source code? IP clauses to check in your software contract
When you hire an outside company to build software, you do not automatically own the source code just because you paid for it. Under India's Copyright Act, 1957, the author is the first owner unless an exception applies, so your contract needs a written, signed assignment of the code and designs to you, clear terms for any pre-existing or open-source parts, and a handover list.
This guide explains the clauses that decide source code ownership, the questions to ask before you sign and a checklist for handover. It is general information, not legal advice. Have a lawyer review your contract.
What the law starts from
The Copyright Act treats software as a literary work: its definition of "literary work" includes computer programmes. Section 17 then says that, subject to the Act, the author of a work shall be the first owner of the copyright in it. There are exceptions. The one that matters most here is section 17(c): 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.
That exception covers your own employees. An outside development company is usually not your employee, so the starting point is that the code its team writes does not belong to you until it is assigned. That is why the contract matters.
Section 19 sets out how an assignment must be made. In summary:
- It is not valid unless it is in writing, signed by the assignor or their authorised agent.
- It must identify the work and specify the rights assigned, and the duration and territorial extent of the assignment.
- If the period is not stated, it is deemed to be five years from the date of assignment.
- If the territory is not specified, it is presumed to extend within India.
- If the assignee does not exercise the rights within one year, the assignment of those rights is deemed to lapse, unless the assignment says otherwise.
Those last three points are why a vague clause like "all IP belongs to the client" may not be enough. Ask your lawyer to check the clause covers each of them.
Assignment vs licence
| Assignment | Licence | |
|---|---|---|
| What you get | Ownership of the copyright | Permission to use, on stated terms |
| Can you hire another firm to change the code? | Yes | Only if the licence allows it |
| Can the vendor reuse or resell it? | Not without your permission | Often yes, unless the licence is exclusive |
| Typical use | Code written specifically for your project | Vendor's pre-existing tools, third-party products |
| Watch for | Duration, territory and the rights listed | Whether it is perpetual, transferable and survives the contract ending |
Most fair contracts use both: an assignment for the code written for you, and a licence for anything the vendor brings with it.
Pre-existing code and the vendor's tools
Development firms often reuse their own libraries, templates or internal frameworks. It is reasonable for them to keep owning those, because they built them before your project and use them for everyone. What you need is:
- A list of the pre-existing components used in your software.
- A licence to use, modify and keep running them as part of your product, that is perpetual, does not need extra fees, and continues if you change vendors.
- No hidden dependency, such as a component that only works on the vendor's server or with their paid subscription, unless you agreed to that in writing.
Open-source and third-party components
Almost all modern software uses open-source packages. That is normal and good, but those parts stay under their own licences, not your assignment. Two examples of what licences can require:
- Permissive licences like MIT require that the copyright notice and permission notice are included in all copies or substantial portions of the software.
- Copyleft licences like the GPL are stricter. The GNU project's FAQ explains that if you distribute a program that includes GPL code, the whole combined program has to be released under the GPL. Using a modified version privately inside your organisation does not require you to release it. The AGPL goes further and requires modified versions to offer the source to users who interact with them over a network.
Ask the vendor for a list of third-party and open-source components with their licences, and a written confirmation that none of them would force you to publish your own code unless you have agreed to that. Paid third-party services, such as maps, payments or messaging, need their own accounts and terms, ideally in your company's name.
Clauses to look for in the contract
- Assignment of deliverables to you, in writing, covering source code, designs, documentation and content created for the project, worldwide and for the full term of copyright.
- Timing: whether ownership passes on signing, on each milestone payment or on final payment. Tying it to payment is common and fair; just make sure it is clear.
- Pre-existing IP licence, as described above.
- Open-source disclosure and a promise not to use licences you have not approved.
- Employees and subcontractors: the vendor confirms it holds the rights from everyone who worked on the code, so it can actually assign them to you.
- Handover obligations at the end of the project and if the contract ends early.
- Confidentiality of your business data and the code.
- Portfolio use: whether the vendor may show the work publicly, and what it may not show.
If you are still comparing vendors, our guide on fixed price vs time and materials contracts covers the pricing side, and our project brief guide helps you set scope.
Handover checklist
Ownership on paper means little if you cannot get at the code. Ask for these, and check each one yourself:
| Item | What good looks like |
|---|---|
| Source code repositories | In a company account you own, with full history, not a zip file |
| Domain and DNS | Registered in your company's name and login |
| Hosting and cloud accounts | Billed to you, with you as the owner and the vendor added as a user |
| App store accounts | Google Play and Apple developer accounts in your company's name |
| Third-party services | Payment, maps, email, SMS and messaging accounts in your name |
| Credentials and keys | Handed over securely, then changed after handover |
| Databases and backups | You can access them and restore a backup |
| Documentation | Setup steps, architecture notes, environment settings and how to deploy |
| Design files | Source design files, fonts and icon licences |
| Component list | Open-source and third-party components with their licences |
Keeping these in your name also makes ongoing maintenance easier, whoever does it.
What to do if you already signed
If your current contract is silent on ownership, ask the vendor for a short written assignment of the work delivered so far, plus the handover items above. Most professional firms will agree once payments are up to date. If they will not, take legal advice before you change vendors or rebuild. If you are planning a new build and want these points covered from the start, talk to us.
This article is general information about the Copyright Act, 1957 as amended in 2012, not legal advice. Laws change, so have a lawyer confirm the current position for your contract.
Frequently asked questions
If I paid for the software, don't I own it?
Not automatically. For work by an outside company, the starting point under the Copyright Act is that the author owns it, so you need a written, signed assignment in the contract.
Who owns code written by my own employees?
Section 17(c) of the Copyright Act makes the employer the first owner of work made in the course of employment under a contract of service, unless there is an agreement to the contrary. Employment contracts often confirm this in writing.
Can the vendor reuse my code for other clients?
Not the parts assigned to you, unless you allow it. They can usually reuse their own pre-existing tools, which is why the contract should separate the two.
Do I need a lawyer?
For anything beyond a small project, yes. This guide helps you know what to ask for, but it is not legal advice.
Sources
Want this built for your business?
UC Tech builds software, apps, websites and WhatsApp automation.