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?
- 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.
- 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%).
- 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.
- 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.
- 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.
- Moral rights: a waiver or undertaking not to object to modifications, to the extent the law permits.
- 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.
| Asset | Who should own the account | Vendor's role |
|---|---|---|
| Code repository (GitHub, GitLab, Bitbucket) | Your company organisation | Member with write access, removable |
| Cloud account (AWS, Azure, GCP, VPS) | Your company, your billing | User with scoped permissions |
| Domain and DNS | Your company | Delegated DNS access if needed |
| Google Play and App Store developer accounts | Your company | Invited team member |
| Payment gateway, SMS, WhatsApp, email services | Your company | API keys stored in your secrets manager |
| Analytics, Search Console, ad accounts | Your company | Added 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
- List every asset and who controls it today.
- Ask the vendor, in writing, to add your company as owner or admin on each, starting with the repository and domain.
- Sign a short written assignment covering the work already delivered, if the original contract did not.
- Rotate all passwords and keys after access is transferred.
- 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.