Skip to content

Guides · updated 25 Nov 2026

// GUIDES · WHO TO HIRE

Who owns the code when you hire a developer? What must be in your name

Who owns the code when you hire a developer is not settled by paying the invoice. It comes down to two things decided before work starts: what the contract says about the rights, and whose name is on the accounts where the product lives. This guide covers both, with the law in view and a checklist for handover day.

By Alejandro García, developer at SaasIn7 · published on · 12 min read

The short answer.

  • Paying does not make you the owner. In Spain, if the person writing the code is not your employee, the rights stay with them until they assign them to you in writing.
  • The accounts matter as much as the contract. Repository, database, hosting, domain and Stripe must be in your name; the developer joins as a guest.
  • A licence to use is not ownership. If the contract only lets you "use" the software, the supplier can reuse it and you cannot pass it on.

This guide summarises Spain's Intellectual Property Act and the official documentation of GitHub, Supabase, Vercel and Stripe. It is general information, not legal advice: for a specific contract, talk to a lawyer. If you or your developer are outside Spain, local law applies and may differ.

Why paying is not enough: what the law says

Title VII of Spain's Intellectual Property Act (Royal Legislative Decree 1/1996, articles 96 to 104) covers computer programs. These are the rules that matter when you commission a SaaS:

  • What is protected (art. 96). The program in any form, plus its preparatory material, technical documentation and user manuals. Protection extends to later versions and derived programs. Ideas and underlying principles are not protected: you do not "own" your business idea through the code.
  • Who the author is (art. 97). The person or group of people who created it. There is only one exception in your favour: when an employee creates it in the course of their duties or following your instructions, the exploitation rights over both source and object code belong to the employer, unless agreed otherwise (art. 97.4). A freelancer or an agency is not your employee.
  • Which rights are at stake (art. 99). Reproducing the program (including loading and running it), transforming it and distributing it. Whoever holds those rights decides who may copy, modify or sell the software.
  • The licence trap (art. 99). Unless shown otherwise, a grant of the right to use is presumed to be non-exclusive and non-transferable, and only for the user's own needs. If your contract just mentions a "licence" or a "right to use", the supplier can sell the same code to another client.
  • What you can do without an assignment (art. 100). A lawful user may fix errors where needed to use the program, unless the contract says otherwise, and no contract can stop them making a backup copy. That is the minimum to keep running, not ownership.
  • How long the rights last (art. 98). If the author is a legal person, seventy years from 1 January after the program is disclosed; if it is a natural person, the general rule of the Act applies (the author's life plus seventy years).
  • Registration is optional (art. 101). Rights in a program can be recorded in the Intellectual Property Register. It helps as evidence but does not replace an assignment.

For an assignment to work, the Act also requires it to be in writing (art. 45). If the term is not stated, it is limited to five years; if the territory is not stated, to the country where it is signed; and if the forms of exploitation are not specified, it covers only what is essential to the purpose of the contract (art. 43.2). A loose "the code belongs to the client" in a quote falls short.

Moral rights, such as being credited as the author, cannot be assigned (art. 14). They do not stop you exploiting the product; they just explain why contracts talk about "exploitation rights" rather than "all rights".

Working with a US developer? There, a commissioned work only counts as a work made for hire within nine specific categories, so ask for an explicit assignment too: a transfer of ownership needs a signed written document.

What must be in your name

A SaaS is not just a repository. It lives across several accounts, and whoever owns each one controls that piece, whatever the contract says. The simple route is to create them in your name from day one and add the developer as a member or guest. If they are already in the supplier's name, all of them can be transferred, with conditions:

Which accounts must be in your name and how to transfer them
PieceWhy it mattersHow it is transferred
Repository (GitHub) The code and its history. Without it you cannot switch developers. Someone with admin access transfers it and you accept (for personal accounts, the invitation expires after a day). Issues, pull requests and the wiki move with it, and old URLs redirect.
Database (Supabase) Your customers' data. Whoever controls it can read, export or delete it. An owner of the source organisation transfers it to yours, where they must be a member. The project keeps its data, URL and API keys; there is no undo.
Hosting (Vercel) Where the product is served. If the account is closed or unpaid, the SaaS goes down. An owner of the source team who is a member of yours transfers it with no downtime. Deployments, environment variables and domains move; integrations and logs do not.
Domain Your address and your email. Whoever is the registrant can let it lapse or take it. The registrant should be your company, with your email and access to the registrar. If the supplier bought it, change the registrant or transfer it to your account.
Payments (Stripe) It receives your customers' money and holds your tax details and bank account. Open it yourself. Each account has a single owner, and only the owner can transfer ownership. Giving the developer the Developer role is enough: it cannot invite users or change the owner.
Other services Transactional email, analytics, storage, third-party APIs: each with its own keys. Accounts in your name and keys generated there. If a key was created in the supplier's account, replace it with one of yours.

Procedures based on the official GitHub, Supabase, Vercel and Stripe documentation, checked on 25 November 2026. Other providers have similar steps; check theirs.

The clauses your contract needs

Given the above, the rights assignment clause should cover at least these points. Have a lawyer review it before signing; here it only tells you what to look for:

  1. Exclusive assignment of the exploitation rights: reproduction, transformation and distribution (art. 99), plus communication to the public if the software is offered online.
  2. Explicit term and territory: for the full term of protection and worldwide (art. 43.2).
  3. What is included: source and object code, technical and preparatory documentation, designs, and the versions and derived works made during the engagement (art. 96).
  4. Right to assign onwards, so you can sell the product or the company, or hire someone else to maintain it.
  5. When the assignment happens: on delivery or on payment of each milestone. It is reasonable for the supplier to tie it to payment; it is not reasonable to leave it undated.
  6. Originality warranty and, if subcontractors are involved, a guarantee that they assigned their rights to the supplier first.
  7. Third-party components: a list of libraries and their licences. Open source follows its own licence and nobody can assign it to you exclusively; what to avoid are licences that stop you selling the product.
  8. Supplier's existing code: if they reuse their own pieces, a perpetual, irrevocable and transferable licence so your product does not depend on their permission.
  9. Handover of access: which accounts, keys and documentation you receive and when, including if the contract ends halfway.

Lock-in: how you end up tied to a supplier

Lock-in means depending on the supplier to keep running your product. It is not always bad faith; often it is just convenient at the start. These are the usual forms and how to avoid them:

  • Accounts in their name. The most common case: everything works until there is a disagreement or the supplier disappears. Avoid it by opening the accounts yourself.
  • Only a licence to use. You can use the product but not pass it on, and the supplier can resell it. Avoid it with an exclusive assignment.
  • The supplier's own tool or framework. The code only runs with a piece of theirs that you do not own. Ask which parts are non-standard and on what terms you can use them if you leave.
  • Hosting on their servers with a mandatory fee. Stop paying and it goes down, with no way to move it. Insist on being able to deploy it to an account of yours.
  • No documentation or environment variables. You have the code but nobody else knows how to start it. Ask for setup instructions and the list of required variables.
  • Data you cannot export. With no-code tools, check what can be exported and in what format before you build on top.

If you are comparing suppliers, agency or freelancer to build a SaaS has ten questions to ask before signing and the red flags in a quote.

Handover day checklist

Go through it with the supplier, before the final payment:

  • The repository is in your GitHub account or organisation, with full history, and you can clone it.
  • The project installs and starts by following the README, on a machine that is not the developer's.
  • You have the list of environment variables and know which account each key comes from.
  • The database is in your organisation, and you have made and downloaded a backup.
  • The hosting project is in your team and the latest deployment comes from your repository.
  • The domain is in your company's name, with your email, and you have DNS access.
  • You own the Stripe account, and live mode and webhooks point to your product.
  • Third-party services (email, analytics, storage) are accounts of yours.
  • You have reviewed access: the developer only has what support requires, and you know how to remove it.
  • You have the signed rights assignment and the list of third-party components with their licences.
  • You know what support is included, for how long, and what anything outside it costs.

If you already signed without an assignment

It is common and it can be fixed. Ask the supplier for a written assignment addendum with the points above, and for the transfer of any accounts in their name; on good terms, it is a formality. Meanwhile, back up the code and data you can access. If the supplier does not respond or wants to charge for assigning what you already paid for, talk to a lawyer before you change anything.

How SaasIn7 handles it

Since this is exactly the kind of work we sell, we are an interested party. What our home page states is that the code is 100% yours, with no lock-in: the GitHub repository, the database and the deployments belong to the client, with no licence on the code. The stack is standard (Next.js, Supabase, Stripe and Vercel), so any developer can pick it up.

Even so, apply this guide to us too: ask for the assignment and the list of accounts in writing before work starts. Pricing, guarantee and process are on the home page.

Frequently asked questions

Who owns the code if I hire a freelance developer?

Unless the contract says otherwise, the exploitation rights stay with whoever wrote it. Under Spanish law, the rule that gives them to the company (art. 97.4 of the Intellectual Property Act) only applies to employees. For them to be yours you need a written assignment. This is general information, not legal advice.

What must be in my name when a SaaS is handed over?

The code repository, the database, the hosting project, the domain, the Stripe account and the accounts for every other service, with their keys. The developer can have access as a member or guest, but the owner must be you or your company.

Which clauses does the contract need for the code to be mine?

An exclusive written assignment of the reproduction, transformation and distribution rights, for the full term of the rights and worldwide, covering source and object code, documentation and later versions, with the right to assign onwards and a guarantee that subcontractors assigned their rights.

Is a licence to use the same as owning the code?

No. Under article 99 of Spain's Intellectual Property Act, unless shown otherwise, a grant of the right to use is presumed non-exclusive, non-transferable and only for the user's needs. You can use the program, but not pass it on or stop the supplier reusing it.

What is lock-in with a development supplier?

It means depending on the supplier to keep running your product: accounts in their name, code that only works with a tool of theirs, servers only they control or a contract that only gives you a licence to use. Switching supplier becomes expensive or impossible.

Sources

  • Spain's Intellectual Property Act (Royal Legislative Decree 1/1996), Title VII, arts. 96 to 104, and arts. 14, 43 and 45, BOE, consolidated text last updated on 30 March 2022: boe.es, checked on 25 November 2026.
  • U.S. Copyright Office, Circular 30, "Works Made for Hire": copyright.gov/circs/circ30.pdf, and Copyright Act, section 204: copyright.gov/title17, checked on 25 November 2026.
  • GitHub Docs, "Transferring a repository": docs.github.com, checked on 25 November 2026.
  • Supabase Docs, "Project transfer": supabase.com/docs, checked on 25 November 2026.
  • Vercel Docs, "Transferring a project" (updated 8 September 2026): vercel.com/docs, checked on 25 November 2026.
  • Stripe Docs, "User roles": docs.stripe.com, checked on 25 November 2026.
  • SaasIn7's terms on code ownership: SaasIn7 home page.

Guide published on . This is general information, not legal advice. If a law or procedure has changed, the original source prevails.

← Back to the guides

Want a SaaS that is yours from day one?

Tell me about the idea using the form and I will tell you which plan fits. Fixed price, delivery in 7 days and the repository, database and deployments in your name.

Go to the contact form

Pricing, guarantee and process are on the home page.