Who owns the code? IP ownership when outsourcing software development

How to make sure you own the code when outsourcing: assignment clauses, Indian copyright rules, pre-existing IP, open source and AI-generated code.

INDI TECHNOLOGYUpdated 3 min read

Investors, acquirers and enterprise customers all ask the same question in due diligence: do you own your software? If the answer depends on a vague clause in an old outsourcing contract, deals slow down or fall apart. Getting IP right costs nothing at the start and a lot to fix later.

Practical guidance, not legal advice. Have a lawyer review your agreements.

Why it isn't automatic

In many countries, including India, the author of software (or the author's employer) owns the copyright unless there's a written assignment. The US concept of "work made for hire" doesn't automatically apply to independent contractors, and certainly not to a foreign company.

The chain usually looks like this:

  1. an engineer writes code as an employee of the partner, so the partner owns it under the employment relationship (backed by the employee's IP agreement)
  2. the partner assigns it to you under your contract

Both links need to be in writing.

What a good IP clause covers

  • Assignment of all rights in deliverables (code, designs, documentation, data models, tests) to you, worldwide
  • Timing: on creation, or on payment for that work. Avoid language where nothing transfers until every invoice ever is paid
  • Moral rights waived or not asserted, to the extent the law allows
  • Further assurance: the partner signs any documents needed to register or enforce your rights
  • Employee and subcontractor agreements: the partner confirms everyone working on your project has assigned IP to the partner
  • Under Indian copyright law, assignments should state the rights, territory and duration clearly. If they're silent, Indian law can limit territory to India and duration to five years. Your contract should say worldwide and for the full term of copyright.

Pre-existing IP and partner tools

Partners often reuse their own libraries, templates or frameworks. That's fine, and often efficient, as long as:

  • pre-existing IP is listed
  • you get a perpetual, irrevocable, royalty-free licence to use, modify and distribute it as part of your product
  • nothing critical depends on a proprietary component you can't maintain without the partner

Open source

  • require the partner to track dependencies and licences (an SBOM)
  • set rules for copyleft licences (GPL, AGPL), which can create obligations to release your source code if used in certain ways
  • run licence scanning in CI

AI-generated code

Many developers use AI coding assistants. Consider:

  • policy: which tools are allowed, with settings that don't retain or train on your code
  • ownership: in several jurisdictions, purely AI-generated material may not be protected by copyright; code edited and integrated by engineers usually is part of a protectable work, but the law is still developing
  • licence risk: assistants can occasionally reproduce code from public repositories; use tools with filters for matching public code, and keep licence scanning on
  • disclosure: ask the partner to state its AI tool policy in the contract

Practical safeguards

  • repositories, cloud accounts, domains and app store accounts in your name from day one. This matters more than any clause
  • partner engineers get access through your SSO, removed at the end
  • regular commits to your repositories, never "we'll hand over the code at the end"
  • documentation and architecture notes in your wiki
  • for critical software you license from a vendor (rather than own), consider source code escrow

Data and confidential information

Your data, including customer data, analytics and models trained on your data, should be yours, used only for your project, and returned or deleted at the end. Cover this in the confidentiality and data protection terms.

Summary

Own your software by combining a clear assignment clause (worldwide, full term, with employee agreements behind it), licences for pre-existing IP, open-source and AI-tool rules, and most importantly accounts and repositories in your name from the first day.

At INDI TECHNOLOGY, clients own their code, accounts and repositories from the first commit, on product engineering and staff augmentation engagements. Talk to us.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call