Source Code Ownership: The Contract Clause That Decides Who Really Owns Your App

By Published 6 min read

Short answer: Paying for software does not by itself make you the owner of its source code in India. Under the Copyright Act, 1957, the author is generally the first owner, and ownership moves to you only through a written, signed assignment that identifies the work, the rights, the duration and the territory. Back the clause with practical control: code in your own repository, production accounts in your company's name, and a clear exit list.

A common story: a business owner needs someone to take over an app whose original developer has stopped responding. Often the business paid in full. But the code sits in the developer's account, the server is billed to the developer's card, the app store listing is under the developer's name, and the contract says nothing useful about ownership. Recovering control can take weeks, and sometimes the only option is a rebuild.

All of this is preventable with one well-written clause and a few practical habits. This guide explains both.

Who owns the code by default in India?

The Copyright Act, 1957 defines "literary work" to include computer programmes, so your source code is protected as a literary work. Section 17 sets the default: the author of a work is its first owner. There is an important exception for employees: when a work is 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.

An outside agency or freelancer is not your employee. Their developers are employed by them, not by you. So without a written transfer, the starting position is that the copyright in the code they write does not belong to you, even though you paid for it. At most you may have an implied right to use it, which is a weak position if you later want to modify it, move it or sell your company.

What makes an assignment valid?

Section 18 allows the owner of copyright in an existing work, or the prospective owner in a future work, to assign it wholly or partly. Section 19 sets out how:

  • An assignment is valid only if it is in writing and signed by the assignor or their authorised agent.
  • It must identify the work and specify the rights assigned, the duration and the territorial extent.
  • If the period is not stated, it is deemed to be five years from the date of assignment.
  • If the territory is not stated, it is presumed to be India.

Those last two defaults are a quiet trap. A proposal that says only "the client will own the software" may leave you with rights limited to five years and to India. If you plan to sell abroad, raise investment or sell the company, that is a problem in due diligence. Have a lawyer draft or review the clause; the points below are what to ask for, not legal advice.

What should the ownership clause cover?

  1. Assignment of all rights in the deliverables, including source code, object code, designs, documentation, database schemas and content created for you, for the full term of copyright and worldwide.
  2. Timing: rights assigned as the work is created or on each milestone payment, not only "on final payment" (which leaves you with nothing if the project stops at 80%).
  3. The vendor's existing tools: agencies reuse their own libraries and frameworks. These are usually licensed, not assigned. Insist on a perpetual, irrevocable, royalty-free licence to use and modify them as part of your product.
  4. Third-party and open-source components: a list of everything included, with licences. Some open-source licences place obligations on how you distribute your product; you need to know.
  5. Developers' rights: the vendor confirms it has the rights from its own employees and subcontractors to assign to you, and will sign further documents if needed.
  6. Moral rights: a waiver or undertaking not to object to modifications, to the extent the law permits.
  7. Confidentiality: the vendor may not reuse your business logic, data or designs for other clients.

Ownership on paper is not enough: control the accounts

A perfect clause does not help at 2 a.m. when the app is down and only the vendor has the password. Practical control matters as much as legal title.

AssetWho should own the accountVendor's role
Code repository (GitHub, GitLab, Bitbucket)Your company organisationMember with write access, removable
Cloud account (AWS, Azure, GCP, VPS)Your company, your billingUser with scoped permissions
Domain and DNSYour companyDelegated DNS access if needed
Google Play and App Store developer accountsYour companyInvited team member
Payment gateway, SMS, WhatsApp, email servicesYour companyAPI keys stored in your secrets manager
Analytics, Search Console, ad accountsYour companyAdded user

If a vendor has already set things up in its own name, transfer is usually possible. On GitHub, for example, a repository transfer moves its issues, pull requests, wiki, stars and watchers, and redirects links from the old location, but the person transferring needs admin access to the repository. That is why access should be settled while the relationship is good.

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

Escrow means depositing source code with an independent third party, to be released to the customer if agreed events happen, typically if the supplier goes bankrupt or fails to maintain the software as promised. Release conditions should be written as plainly as possible so release is quick.

Escrow makes sense when you license software you will never own outright, such as a vendor's packaged product that runs a critical process. For custom software built for you, escrow is usually a weaker substitute for the simpler answer: own the repository from day one. If you do use escrow, require regular deposits and a verification that the deposit actually builds, because an outdated or incomplete deposit is worthless.

Red flags in proposals and contracts

  • "Source code will be handed over on full and final payment."
  • "Hosting included on our server" with no mention of migration.
  • Ownership language that names no duration or territory.
  • Annual "licence fees" for software you are paying to have built.
  • The vendor's framework is required to run your app, but no licence to it is granted.
  • No exit clause or handover obligations.
  • Refusal to give you read access to the repository during development.

Your exit checklist

Attach this to the contract as the list of what you receive at the end of the engagement, or if it ends early:

  • Complete source code with full version history, in your repository.
  • Build and deployment scripts, and instructions to run them.
  • Environment configuration (without secrets in the code) and a list of all secrets to rotate.
  • Database schema, migrations and a current backup.
  • Admin access to every production account, and removal of the vendor's access on request.
  • Documentation of architecture, integrations and known issues.
  • A handover session with the developers who built it.

How to fix an existing lock-in

  1. List every asset and who controls it today.
  2. Ask the vendor, in writing, to add your company as owner or admin on each, starting with the repository and domain.
  3. Sign a short written assignment covering the work already delivered, if the original contract did not.
  4. Rotate all passwords and keys after access is transferred.
  5. Have an independent engineer confirm the code builds and deploys from your copy.

If the vendor refuses, take legal advice early. Meanwhile, an independent review tells you whether recovery or a rebuild is cheaper. A second-opinion consultation is a quick way to get that view.

How Cehpoint can help

Cehpoint's engagements are built on two commitments: you see a working demo before you commit, and you own the result, including code, infrastructure and IP. Read how that works on our demo-first delivery page. If you are stuck with a project you do not control, our application modernization team can assess the code and migrate it to infrastructure you own.

Frequently asked questions

Do I own the source code if I paid a developer to build my app?

Not automatically in India. Under the Copyright Act, 1957, the author is generally the first owner, and the employer rule applies only to your own employees. An agency or freelancer keeps the copyright unless there is a written, signed assignment to you that identifies the work and states the rights, duration and territory. Get that assignment, and keep the code in your own repository.

What happens if the assignment does not mention duration or territory?

Section 19 of the Copyright Act fills the gaps with defaults. If the period is not stated, the assignment is deemed to last five years from the date of assignment. If the territory is not stated, it is presumed to extend only within India. Both can cause problems when you raise funding, sell abroad or sell the company, so state worldwide rights for the full term.

What is source code escrow and is it useful?

Escrow means a vendor deposits source code with an independent third party, to be released to you if agreed events happen, such as bankruptcy or failure to maintain the software. It is useful when you license a critical product you will never own. For custom software built for you, owning the repository from day one is simpler and stronger than escrow.

How do I get my code back from a developer who has stopped responding?

List every asset and who controls it: repository, cloud, domain, app store and payment accounts. Ask in writing for admin access and a written assignment for the delivered work. Rotate credentials once you have access. If the developer refuses or cannot be reached, take legal advice early and get an independent engineer to judge whether recovery or a rebuild is cheaper.

Need help with this?

Tell us what you are dealing with. We reply with a plain plan, and where it makes sense, a working demo before you commit.