Who owns the source code when you pay a developer or agency?

Updated · 5 min read

Copyright starts with the author, and the contract moves it

Copyright in code usually starts with the person or company that wrote it. Payment does not transfer it by itself. The contract decides who ends up holding the rights, and in what form. Rules differ between countries, including how work written by employees and by outside contractors is treated, so check the position in each country that matters to your business with a lawyer.

Two forms of transfer matter most. An assignment moves ownership to you. A licence gives you permission to use the work on agreed terms while the author keeps ownership.

  • Assignment: you own the code, and you can change, sell or license it as you wish.
  • Exclusive licence: you alone may use the code in agreed ways, but the author still holds the title.
  • Non-exclusive licence: you may use the code, and the developer may license the same code to others.
  • For custom work, ask for an assignment on payment, or an exclusive licence with a clearly defined scope.

Third-party and open-source components

Most modern software includes libraries, frameworks and software development kits that other people own. Open-source licences set how you may use, change and distribute those components. Some require attribution, some require you to share changes you make to the open-source code, and some restrict certain kinds of use. Your contract should not hide these obligations behind the word custom.

AI coding tools raise the same question. Code produced with help from a tool may contain patterns you need to check, so the contract should say how the team records and reviews what it has added.

  • Keep a list of every dependency and the licence that governs it.
  • Scan the dependencies with a software composition tool before each release.
  • Keep the attribution notices that the licences require, inside the product or its documentation.
  • Avoid pasting code from unknown sources into the project.

Repositories, accounts and keys

Ownership on paper means little if the developer holds the only login. Make your company the owner of the code repository, the cloud account, the domain name, the database and the app store developer accounts. Check the current account rules at Apple and Google, because the type of account and who may hold it can change.

  • Create the accounts in your company's name, and give the developer a role rather than ownership.
  • Store passwords and secrets in a shared password manager that more than one person controls.
  • Rotate keys and passwords at handover, so the outgoing developer can no longer reach production.
  • Keep a written access list, and review it each month while the project is live.

Source code escrow and what it protects against

Source code escrow means a neutral third party holds a copy of the code, and releases it to the customer if the supplier stops trading or fails to support the software. Escrow is more common in large enterprise and public contracts than in small custom software deals.

An escrow deposit is only useful if it is kept up to date and can be built. Agree what is deposited, how often it is refreshed, what triggers a release and who pays for the service. Ask for a test build from the deposit before you rely on it.

What to put in the contract

A short, specific contract protects you better than a long generic one. Ask a lawyer to draft or review these points for your jurisdiction.

  • The legal names of both parties, and the company that signs.
  • A clause that assigns the code and deliverables to you, or licenses them on named terms, and says when that takes effect.
  • A schedule of third-party and open-source components, with their licences.
  • A requirement that the code lives in your repository from the first day.
  • The governing law, and the place where disputes would be heard.
  • Confidentiality and data handling terms, including who may see your customer data.
  • Handover steps, and a short written support period after launch.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei. We build mobile apps, web apps, internal tools and AI agents, and we work in English, Traditional Chinese and Simplified Chinese, so ownership terms can be agreed and reviewed in the language your legal team reads. We recommend putting the scope in writing before you sign, so ownership is part of the contract from the start.

Our first step is a scope of about one week at a fixed price. It ends in a written plan, a clickable prototype and a firm quote, which gives you a clear scope to write into the contract. The build runs in two to four weeks of weekly releases, and a monthly run plan keeps the software running and up to date afterwards.

Questions

If I pay for custom software, do I automatically own the code?
Not automatically. Payment and ownership are separate questions. Your contract should say who owns the code, whether that ownership passes to you on payment, and whether the developer keeps any right to reuse parts of it. Without that wording, you may have the right to use the software without owning the code itself.
What is the difference between an assignment and a licence?
An assignment transfers ownership of the work to you, so you can change, sell or license it. A licence gives you permission to use the work on agreed terms while the author keeps ownership. An exclusive licence can feel close to ownership in practice, but the author still holds the title. Choose the form you need and have a lawyer draft the exact words.
Do open-source libraries stop me from selling my software?
Not in every case. Open-source licences differ. Some allow commercial use with attribution, some require you to share changes to the open-source code, and a few restrict certain uses. Scan your dependencies, record each licence and have someone with legal knowledge review any strong copyleft requirement before you ship.
What should happen to the code when the project ends?
The developer should hand over the repository, the documentation, a list of accounts and a record of keys to rotate, and then remove their own access. Agree these handover steps in the contract, and test them: a new person should be able to build and deploy the software from the handover alone.
Do I need source code escrow for a software project?
Often not for a small project, but it is worth discussing for a larger or business-critical one. An escrow deposit helps only if it is kept current and tested, so ask what is deposited, how often it is refreshed and what triggers a release. Your contract should say who pays for the service.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutWho owns the source code when you pay a developer or agency?