Guides

Who owns the code when you outsource development?

By the Bytes2Pro team · Updated · 8 min read

By default, in the US, the UK and India, the developer who writes the code usually owns it until the copyright is assigned to you in writing. You also need the repository, cloud, domain, store and payment accounts in your name, or owning the code on paper won't let you run the product. Bytes2Pro's policy is that clients own all code and accounts from day one.

Who owns the code by default when you outsource?

The person or company that writes it, until it's assigned to you in writing. That surprises a lot of founders, who assume that paying for software means owning it. This guide is general information, not legal advice; a lawyer in your country should read your contract.

In the US, the Copyright Office's guidance on works made for hire says an employee's work within their job belongs to the employer. Commissioned work belongs to the client only if it falls into one of nine listed categories, such as a contribution to a collective work or a translation, and the parties agree in a signed document that it's a work made for hire. Software built by an outside developer generally doesn't fit those categories, so the safe route is a written assignment.

In the UK, government guidance says a freelancer or contractor usually keeps the copyright in what they make, and the person who commissioned it can end up with only a limited license to use it unless the contract says otherwise. In India, the Copyright Act requires an assignment to be in writing and signed by the assignor. If it doesn't state its period it's deemed to last five years, and if it doesn't state its territory it's presumed to cover India only. An assignment from an Indian vendor should therefore say worldwide and for the full term of copyright.

What should the IP clause in your contract say?

It should assign everything made for you, now, worldwide and for the full term. Vague wording such as “all deliverables upon completion” leaves room to argue about what was delivered and when. These are the points to check, whichever team you hire, us included:

  • A present assignment of all rights in the work, written as assigning now, not as a promise to assign later
  • Everything made for the project, including source code, designs, documentation, tests, infrastructure code and data models
  • Worldwide, and for the full term of copyright; this matters most with Indian vendors, because of the default limits in India's Copyright Act
  • The same assignment from any subcontractor or freelancer the vendor uses
  • A license to anything the vendor brings in that it made before your project, such as its own libraries, that is permanent and lets you keep using and changing them
  • A list of the open-source packages used, with their licenses
  • Signed by both sides

Why do the accounts matter as much as the code?

Because owning the code on paper doesn't let you run the product. If the repository, the cloud account, the domain or the App Store listing is in the vendor's name, you need their cooperation to change anything, and leaving them means a migration. Bytes2Pro creates every account in the client's name, or works inside the client's existing accounts, for exactly this reason.

Payment accounts are the hardest to move later. A Stripe account is verified to a legal business and holds your customers' payment details, and an App Store listing carries the app's reviews and revenue history. Starting in your name avoids moving them at all.

AccountWhy it mattersShould be in
Code repository (GitHub or similar)The code and its historyYour organization, with the team invited
Cloud and hosting (AWS, Google Cloud, Vercel)Where the product runs, and the billsYour company's account
Domain and DNSYour address on the web and your emailYour registrar account
App Store Connect and Google Play ConsoleThe apps, their reviews and their revenueYour developer accounts
Payments (Stripe, Paddle, RevenueCat)Your customers' payments and payoutsYour business, verified in your name
Email delivery, analytics and errors (Resend, PostHog, Sentry)Your sending reputation and your dataYour accounts
Third-party API keys (Gmail, Outlook, Salesforce, Twilio)The integrations the product depends onYour accounts, stored as secrets

Does it matter if AI tools wrote part of the code?

It can, so the contract should cover it. In its 2025 report on copyrightability, the US Copyright Office concluded that material generated purely by AI from prompts isn't protected by copyright, while human contributions, such as creative selection, arrangement and changes to the output, can be. Most professional code today is written by engineers who use AI tools along the way, and the line between the two is decided case by case.

For a buyer, the practical answer is the same clause as always: an assignment of everything made for the project, plus a promise from the vendor that the work doesn't copy anyone else's code. Bytes2Pro's engineers write and commit the code that goes into a client's repository, and the client owns all of it from day one.

What about open source and the vendor's own tools?

Almost every modern product is built on open-source packages, and that's fine, as long as you know which ones and under what terms. Permissive licenses such as MIT and Apache 2.0 let you use the code in a commercial product with few conditions. Copyleft licenses such as the GPL can require you to release your own source code in some circumstances, which matters if you plan to sell or distribute the software. Ask for the list, and have it checked if anything copyleft is in it.

Vendors also reuse their own code between projects, which saves you money. The contract should give you a permanent license to anything reused, so you can keep running and changing the product without the vendor. Bytes2Pro builds on standard, widely used stacks, such as Next.js, React Native, SwiftUI, Postgres and Supabase, so the product never depends on something only we can maintain.

What does a proper handover include?

A proper handover lets a new team run, change and deploy the product without calling the old one. The test is simple: could an engineer who has never met the old team ship a fix from what you hold today?

When the accounts were yours from the start, handover is mostly a check against this list. When they weren't, the same list is the order of work for getting them back. Bytes2Pro works toward this list from the first commit, so most of it is already done whenever a client decides to change teams:

  • The repository in your organization, with the full history, every branch you need and nothing left on someone's laptop
  • A README that explains how to run the product locally, test it and deploy it
  • Infrastructure defined in code, so the environments can be rebuilt; TradeSpace runs on AWS defined with AWS CDK
  • Every environment variable and secret listed, with where it lives and what it's for
  • Every account in your name, with the old team's access removed and keys rotated
  • The build and release setup for the apps: signing certificates, store accounts, and the release pipeline, such as EAS or Fastlane
  • Database access, backups and a note of how to restore them
  • Monitoring and alerts pointed at your team: Sentry for errors, PostHog for analytics
  • A list of open work, known bugs and the decisions behind the odd-looking parts of the code

Should ownership start on day one or on final payment?

Day one, if you can get it. Many vendors assign the code only after the last invoice is paid, which protects them against a client who doesn't pay, and it's a common clause. The risk for you is the gap: if the relationship breaks down mid-build, you're left with code you've paid for and don't own. If a vendor insists on it, ask at least for assignment of each part as it's paid for.

Bytes2Pro's policy is the other way round. Clients own all code and accounts from day one. We write and commit the code; the repository, the cloud, the store listings and the payment accounts are in the client's name. Nothing waits for a final invoice or a handover meeting.

It also changes how the relationship works: a client who can leave at any time stays because the work is good, which is the only reason we want anyone to stay. Our work shows what that looks like in practice. For Felix CRM, we moved the hosting onto infrastructure the client owns. For TradeSpace, we moved the whole platform from Railway onto AWS with every piece defined in code, so the environment can be rebuilt by any team with access. And the documentation comes with the code on every project, so a client can bring in their own engineers, or another team, whenever they choose.

What if your current developer holds the keys?

Ask for the transfer in writing, then secure everything the moment you have it. A written list makes the request easy to act on and hard to forget. Request, in this order:

  • Ownership of the domain and DNS, since your email depends on them
  • Transfer of the code repository to your organization
  • Transfer of the cloud, database and hosting accounts, or a migration into yours
  • Transfer of the app store listings and payment accounts, which each platform handles through its own process
  • Credentials for every third-party service, followed by rotating every key

What happens to the code after the handover?

Someone has to read it before they change it. When Bytes2Pro takes over a codebase, we read it first, put out the fires, then ship what it's missing. TradeSpace came to us as a buggy beta with paying traders on it, and we still keep it running: debugging, upkeep and new features.

If the previous developer won't hand over, talk to a lawyer before anything else, since the contract decides what you can demand. Once you have the code and the accounts, an engineer's first read tells you whether to keep it, fix it or rebuild parts of it.

What should you ask before you sign?

Ask about ownership before you talk about price, because the answers tell you how the team expects the relationship to end. Ask any team these, Bytes2Pro included:

QuestionA good answerA red flag
When does the IP become mine?From day one, assigned in writingAfter the final payment, or not stated
Whose name are the accounts in?Yours, with the team invitedThe vendor's, transferred at the end
Where does the code live during the build?In your repository, committed as the work happensOn the vendor's servers until delivery
Do you use subcontractors?No, or yes with the same assignmentUnclear
What will I need from you to change teams?Nothing: the code, accounts and docs are already yoursA handover project

Sources

Got a napkin? Send it over.

A sentence is enough to start. We reply with questions, then a plan.

Book a call