Who Owns the Code When You Hire a Software Agency?
Who owns the code when you hire a software development company? Learn why a signed assignment matters and the handover checklist to demand.

Who owns the code when you hire a software development company? It depends on what your contract says, and by default it may not be you. In the United States, software written by an independent contractor generally belongs to the contractor unless there is a signed written agreement that assigns it to you. Paying the invoices does not transfer ownership on its own.
This guide explains the default rule, the difference between work made for hire and an assignment, what a good IP clause covers, and the handover checklist to ask for. It is general information, not legal advice. Have a lawyer review any contract before you sign.
The default rule: the author owns it
Under US copyright law, the person who writes the code is its author and first owner. The exception is a work made for hire, which belongs to the hiring party. The Supreme Court explained the two ways that can happen in Community for Creative Non-Violence v. Reid:
- The author is your employee under general agency law, not just someone you direct closely.
- The work is specially commissioned, falls into one of nine categories listed in the statute, and both sides signed a written agreement saying it is a work made for hire.
An agency is an independent contractor, not your employee. And custom software does not fit neatly into the nine categories. That is why careful contracts do not rely on work for hire alone. They add an explicit assignment of the intellectual property.
Work made for hire vs assignment
| Work made for hire | Assignment of IP | |
|---|---|---|
| How it works | The law treats you as the author from the start | The agency is the author and transfers ownership to you in writing |
| Does it fit custom software? | Often not, because of the nine-category limit | Yes, it works for any deliverable |
| What to look for | Signed written agreement naming the work | A clause that says the agency assigns all right, title and interest |
| Common safeguard | Pair it with an assignment as a backup | State when the transfer happens, such as on payment |
If your contract says only that you receive a license to use the software, you do not own it. A license can be limited, revoked or non-transferable. Ask for an assignment.
What a good IP clause covers
- Assignment of deliverables. All code, designs, documentation and data produced for you transfer to you, with a clear definition of what counts as a deliverable.
- Timing. Many contracts transfer ownership on final payment. That is reasonable, but check that it covers work in progress and does not depend on unrelated invoices, such as optional maintenance.
- Pre-existing and reusable code. Agencies often reuse internal libraries. Ask for a perpetual, irrevocable license to anything reusable that ends up inside your product.
- Third-party and open-source components. The agency should list them and their licenses.
- No reuse of your confidential logic. The agency should not hand your custom business logic to another client.
- Originality. The agency states that it has the right to assign what it delivers.
Code you will never fully own: third-party and open source
Most products are mostly other people's code. Frameworks and libraries come with licenses. Permissive licenses such as MIT and Apache 2.0 are easy to live with. Some licenses, such as the GPL family, can impose obligations if the code is distributed. Cloud services and APIs come with terms of service that you do not control.
Ask for a simple list of dependencies and their licenses at handover. It takes the agency an hour and can save you a painful review during a fundraise or acquisition.
Does AI-written code change anything?
It can. In January 2025 the US Copyright Office published the second part of its report on AI and copyright. Its conclusion, summarized: prompts alone are not enough to make an AI output protectable, but works that include AI-generated material can still be protected when a human contributes enough original expression, for example by selecting, arranging or modifying it. You can read the Copyright Office summary.
For you, the practical question is what your agency does with AI tools. Ask whether they use them, what review happens before code ships, and whether the contract still assigns everything the team delivers. If you are building with AI tools yourself, our vibe code rescue guide covers what to check before you scale.
Ownership is not control: the handover checklist
You can own code you cannot reach. The most common ownership dispute is not about law. It is about who holds the keys. Before the project starts, make sure these live in your name or in a shared account you control:
- ☐ The source code repository (GitHub, GitLab or Bitbucket), with you as owner
- ☐ Cloud hosting accounts (AWS, Google Cloud, Vercel or similar)
- ☐ Domain names and DNS
- ☐ Apple Developer and Google Play accounts
- ☐ Third-party service accounts and API keys
- ☐ CI/CD pipelines and deployment scripts
- ☐ Documentation: architecture, setup steps and environment variables
- ☐ A dependency and license list
- ☐ Design files and brand assets
- ☐ A written handover session with whoever takes over
Red flags in agency contracts
- You get a license, not an assignment.
- The code lives only in the agency's repository or cloud account.
- Ownership depends on paying for services you did not order.
- The product runs on an agency-owned framework or platform, and you get no license to it.
- There is no documentation requirement.
- The agency refuses to name third-party components.
No-code platforms add a twist. You may own your app's logic and data but not the platform that runs it, and exporting can be limited. If that is a concern, read about when to move from no-code to custom development.
FAQ
If I paid for the software, do I own the code?
Not automatically. Payment shows a commercial deal, but ownership of copyright usually needs a written assignment or a valid work-for-hire arrangement. Check the contract.
Can an agency reuse my code for another client?
Only if the contract allows it. Generic libraries are often reusable. Your custom business logic should be off limits.
Who owns apps built with Lovable, Bubble or other no-code tools?
Usually you own your content and your configuration, while the platform owns the engine. Review the terms for export options and what happens if you leave.
Do I need a lawyer?
For anything beyond a small project, yes. A short review of the IP and confidentiality clauses is inexpensive compared with a dispute over a product you depend on.
Planning a build? Ask these questions first
Ownership and handover are easier to settle before the first line of code. Book a free call to get a free assessment within 48 hours, and ask us how we handle assignment, accounts and documentation.
Related articles
Related Articles

Brazil vs Mexico vs Colombia: Where to Hire Developers
Compare Brazil, Mexico, Colombia and Argentina for hiring developers: rates, time zones, talent, English and risks for US companies.

How to Deploy a Bolt App to Production the Right Way
Take your Bolt.new app from prototype to production: hosting, environment variables, database, domain, monitoring and a launch checklist.