Who owns the code? Intellectual property, licences, accounts and handover
TL;DR
Difficulty: Intermediate
In Ireland the person who writes the code owns it unless a signed document assigns it to you. Paying is not enough.
- Ask for an assignment of the bespoke work, transferring on payment of each invoice, signed before the work starts.
- Accept a licence for the supplier's own tools, but make it perpetual, royalty free, open to changes by another developer and transferable.
- Get a list of open source components and their licences, and no copyleft code without your agreement.
- Open every account (domain, hosting, repository, payments, app stores) in your company's name, with your recovery details.
- Make documentation, tests and a tested handover named deliverables. Escrow is only worth it for code you cannot hold yourself.
"I paid for it, so it's mine." In Ireland, that is usually wrong. This chapter explains who owns commissioned code by default, the clause that moves ownership to you, why a licence for the supplier's own tools is normal, what open source licences ask of you, and how to make sure the accounts, the code and the knowledge are in your hands on the day you need them.
The question to ask before you sign, not after
"I paid for it, so it's mine." Almost every owner who commissions software for the first time believes this, and in Ireland it is usually wrong. Paying for software gets you software. Owning it, changing it, and taking it to someone else are three separate things, and each one has to be written down.
There are four things you need when a project ends, whether it ends happily or not:
- The rights: the legal permission to use, change and pass on the code.
- The code itself: the source code, the human readable version, with its history, somewhere you control.
- The keys: the accounts that run it (domain, hosting, code repository, payment provider, app stores), in your company's name.
- The knowledge: enough documentation and tests that another developer can pick it up without starting again.
This chapter takes them in that order. It assumes you have read the proposal chapter, where "everything in their accounts" and "we own the code" first showed up as red flags. Here is what to do about them.
One plain warning, once: this is general information about how the law works, not legal advice for your contract. Have a solicitor read the final wording. What this chapter gives you is the knowledge to brief that solicitor well and to spot what is missing.
Example: the clinic that did not own its booking system
Lee Valley Physio runs three physiotherapy clinics in Cork (an invented business, used throughout this series). Orla, the owner, is commissioning an online booking system with a patient portal, card payments for self pay patients, reminders by email and text, and an export for the accountant. She has picked a supplier, Shandon Software (also invented), and the price is €44,000.
The draft contract describes the features, the milestones and the payment schedule in detail. It says nothing about who owns the code, where it is stored, or whose name is on the domain and the hosting account.
Now fast forward 18 months. Shandon has been bought by a larger company that wants to stop supporting small clients. Orla wants another developer to add online video appointments. She asks Shandon for the code. They say the code is theirs, they will licence it to her for €450 a month, and the new developer can have read only access. The domain leevalleyphysio.example was registered by Shandon's project manager, who has since left.
Nothing illegal happened. The contract was silent, and the law filled the silence in Shandon's favour. The rest of this chapter is how Orla avoids that.
Paying for code does not make you its owner
Under the Copyright and Related Rights Act 2000, software is protected as a literary work, the same category as a book. The Intellectual Property Office of Ireland puts it simply: "Literary works can also include computer programs"1. The author is "the person who creates a work"2, and the author is the first owner of the copyright3.
The Act then lists the exceptions, and the one that matters here is employment: when a work "is made by an employee in the course of employment", the employer is the first owner, subject to any agreement to the contrary3. Commissioning is not on the list. There is no rule that hands commissioned software to the client who paid for it.
A supplier is not your employee. So when Shandon Software's developers write Lee Valley Physio's booking system, the copyright starts with Shandon (as their employer), not with the clinic. Whatever the clinic ends up with depends on what the contract says, and a silent contract leaves you arguing about what was implied.
To move ownership to you, the law asks for one thing: an assignment of copyright, "whether in whole or in part, is not effective unless it is in writing and signed by or on behalf of the assignor"4. The IPO of Ireland's booklet says the same in plain words: a transfer must be made "through a written agreement signed by the copyright owner"1. A handshake, an email saying "sure it's yours", or a line on the invoice do not do it. A signed contract clause does.
Example: what Orla has with a silent contract, and with a clause
Take the Shandon contract as drafted, with nothing about ownership. Here is where Orla stands on the questions that matter, compared with the same contract plus a signed assignment clause.
| Question | Silent contract | Signed assignment to Lee Valley Physio |
|---|---|---|
| Who owns the copyright in the booking system? | Shandon | Lee Valley Physio |
| Can Orla keep using it to take bookings? | Probably, if a licence for that purpose is implied | Yes, it is hers |
| Can another developer change it? | Unclear: changing the code is more than the purpose it was bought for | Yes |
| Can Shandon sell the same system to a clinic in Limerick? | Yes, nothing in the contract stops them | No, not the bespoke part |
| Can Orla sell the clinics with the system included? | Unclear, and a buyer's lawyer will ask | Yes, it is an asset of the business |
| Can Shandon demand a monthly fee for continued use? | They can try, and the argument costs money | No |
Every "unclear" in the middle column is a dispute waiting for a bad day. The right column costs one paragraph, written before the work starts.
Assignment or licence: two ways to get the rights
There are two legal tools, and it helps to know what each does before you read a supplier's draft.
An assignment moves ownership. After it, you are the copyright owner, as if you had written the code yourself. It must be in writing and signed by the supplier4. You can sign it before the code exists: the Act lets a signed agreement assign "future copyright", which then belongs to you automatically the moment the code is written5. That is why a good clause sits in the contract from day one, rather than in a handover letter at the end that nobody remembers to sign.
A licence is permission. The supplier keeps ownership and lets you do certain things. Licences come in two strengths:
- Non exclusive: you may use the code, and so may anyone else the owner allows.
- Exclusive: only you may use it, to the exclusion of everyone, including the owner. In Irish law an exclusive licence has to be in writing and signed by the owner to count as one6.
A licence also has a scope: what you may do (use, copy, change, let others change), for how long, where, and whether you can pass it on if you sell the business. A licence that says "use" but not "modify" is a polite way of making sure only the original supplier can ever work on your system.
For the bespoke part of a system, the part written only for you, an assignment is the normal ask and the cleanest answer. For anything the supplier brings with them, a licence is normal, and the next section explains why.
Example: the assignment clause Orla asks for
Orla does not need to draft legal prose. She needs to tell her solicitor and Shandon what the clause must achieve. Her note reads:
- What is assigned: all copyright and other intellectual property in the bespoke deliverables, meaning the source code, designs, database structure, documentation and tests written for Lee Valley Physio.
- When: each part transfers when the invoice for it is paid in full, so ownership follows payment milestone by milestone, not only at the very end.
- Future work: the assignment covers work not yet written, so nothing depends on a later signature.
- Exclusions: the supplier's own pre existing tools and any open source components are excluded and dealt with by a licence (see the next two sections).
- Help with paperwork: the supplier will sign anything further needed to confirm the transfer.
Shandon's solicitor turns that into legal wording. Orla checks that all five points survive the drafting. If point 2 has quietly become "on completion of the project", she pushes back: a project that stops at milestone three would otherwise leave her owning nothing she has paid for.
The supplier's own toolbox, and why a licence for it is normal
No sensible developer writes everything from scratch for each client. They bring a toolbox: their own libraries, templates, deployment scripts, a login module they have refined over ten projects. That toolbox is part of why they can quote a sensible price and deliver faster.
They cannot assign the toolbox to you, because they need it for the next client. If a supplier offers to assign "everything", either they have not thought about it or they are about to charge you for exclusive rights to tools that took them years. What you need for the toolbox is a licence that is good enough to never get in your way:
- Perpetual and irrevocable: it does not end when the contract ends or if you fall out.
- Royalty free: no ongoing fee for code already paid for.
- Broad enough: to use, copy, change and maintain the system, including by another developer you hire later.
- Transferable with the business: if you sell the clinics, the buyer gets the licence too.
My own terms for development work are one example of how this split looks in practice. Until the work is paid for in full, the intellectual property stays with me. Bespoke code and design that have been paid for in full become the client's intellectual property immediately on payment. Open source frameworks such as Ruby on Rails and Solidus, and third party hosting, remain under their own licences and terms, and my own libraries, internal frameworks and tools can be reused across projects unless the client has explicitly bought exclusive rights. You can read the exact wording in my software and eCommerce development terms. Whatever supplier you choose, ask them to point to their equivalent paragraph. If there is none, that tells you a good deal.
Example: Lee Valley Physio's system in three piles
Orla asks Shandon to sort every part of the booking system into one of three piles, with what she gets for each. Their answer:
| Part of the system | Pile | What Lee Valley Physio gets |
|---|---|---|
| Booking screens, patient portal, reminder rules, accounts export | Bespoke, written for Lee Valley Physio | Ownership, by assignment on payment |
| Database design and the tests for the booking flow | Bespoke | Ownership, by assignment on payment |
| Shandon's calendar sync module, used in other client projects | Supplier's pre existing code | Perpetual, royalty free licence to use and modify, transferable |
| The web framework the system is built on | Open source | The rights the open source licence gives everyone |
| The card payment and text message services | Third party services | The provider's terms, under Lee Valley Physio's own account |
The table takes Shandon ten minutes and turns a vague word ("ownership") into five clear answers. It also shows Orla the one piece she would need a licence for if she changed supplier: the calendar sync module. She checks that the licence lets another developer modify it. It does.
Open source in plain words: permissive and copyleft
Almost every modern system stands on open source software: code published under a licence that lets anyone use, study, change and share it. The Open Source Initiative keeps the standard definition, which among other things requires that the licence allows modifications and does not discriminate against any person, group or field of use7.
Open source is not "no rules". Every component has a licence, and the licences fall into two broad families.
Permissive licences let you do almost anything, including using the code inside a closed, commercial product, as long as you keep the copyright notice. The MIT licence is the best known: it grants the right "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies", on the condition that the copyright notice and permission notice are included in all copies or substantial portions8. Ruby on Rails is published under the MIT licence9, Solidus under the three clause BSD licence, another permissive one10, and Next.js under MIT11.
Copyleft licences let you do the same, but require that modified versions you pass on stay free under the same terms. The Free Software Foundation describes copyleft as "requiring all modified and extended versions" to be "free as well"12. The GNU General Public License (GPL) is the classic case. Its obligations are triggered when you "convey" the software to others, and the GPL version 3 states that "mere interaction with a user through a computer network, with no transfer of a copy, is not conveying"13. Its sibling, the GNU Affero General Public License (AGPL), closes that gap: if you modify AGPL code, your version must offer its source code to "all users interacting with it remotely through a computer network"14.
Why does this matter to a clinic owner? Three reasons:
- Nobody can assign open source to you. The open source parts stay under their licence forever. Your clause should say so, rather than pretend otherwise.
- Copyleft can reach your own code. An AGPL component, changed and built into a patient portal that patients use over the internet, can oblige you to offer the source code of your version. That might be acceptable. It should be a decision, not a surprise.
- Licences need housekeeping. Notices must be kept, and a buyer of your business, or their lawyer, may ask for a list.
So ask your supplier for a list of open source components and their licences, and a promise not to add any copyleft component without your written agreement.
Example: the licence list Orla asks for
Shandon sends a list of the main components (the names below are invented for the example). Orla reads it with one question per line: does this licence ask anything of Lee Valley Physio?
| Component | Licence | What it asks of Lee Valley Physio |
|---|---|---|
| The web framework | MIT | Keep the copyright notice. Nothing else. |
| A date and time library | MIT | Keep the notice. |
| A PDF builder for invoices | BSD three clause | Keep the notice, and do not use the authors' names to promote your product without permission10. |
| A calendar widget, version 2 | AGPL 3.0 | If modified and used by patients over the internet, offer the source of the modified version. |
| A text message client library | MIT | Keep the notice. |
The fourth line is the one that matters. Orla asks Shandon whether they will modify the widget. They had planned to. She asks for an alternative under a permissive licence, which costs a day of work and removes the question for good. Five minutes of reading, one decision made on purpose, and the question is grand from then on.
Accounts and keys: the part that hurts first
In practice, ownership disputes rarely start with copyright. They start with a login. The domain renews to the supplier's card. The hosting account is in the supplier's name. The code sits in the supplier's repository. The app is listed under the supplier's developer account. On the day you part ways, you discover that you own the rights to code you cannot reach, running on servers you cannot log in to, under a domain you do not control.
The rule is simple: every account is opened in your company's name, with your company's email address, and the supplier gets a user with the access they need. Not the other way round.
The accounts that matter for a system like Lee Valley Physio's:
- Domain name: you should be the registrant. For generic endings such as .com, ICANN's registrant rules put "sole responsibility for the registration and use" of the domain on the registrant15, so make sure that is you.
- DNS (the settings that point the domain at the servers), often with the domain registrar or a separate provider.
- Hosting and cloud accounts, including backups.
- Code repository: the place the source code and its full history live. Moving a repository between accounts is possible, but GitHub's documentation, for example, describes it as an action taken by someone with admin rights on the repository16. If that is only the supplier, you are asking a favour.
- App stores, if you have a mobile app. Apple's process for moving an app between developer accounts has to be started by the current account holder, accepted by the receiving one, and the app must meet Apple's transfer criteria17. Easier to publish under your own developer account from the start.
- Payment provider: the account that receives patients' card payments must be yours, because the money flows to whoever holds it.
- Email and text message providers, analytics, error monitoring, and any other service with a monthly bill.
Two details catch people out. First, the recovery email and phone number: an account in your company's name whose password reset goes to the supplier's inbox is not really yours. Second, two factor authentication: if the second factor is on the developer's phone, you cannot get in without them. Your company holds the master login and the recovery details. The supplier gets their own user, which you can switch off.
If any of these accounts holds patient data, the supplier with access is processing personal data for you, and that needs its own contract. The article on vetting data processors covers that side.
Example: Orla's account register
Orla keeps a one page register, reviewed when the project starts and every six months after. The first version:
| Account | Registered to | Login owner | Recovery email | Supplier access |
|---|---|---|---|---|
| Domain leevalleyphysio.example | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | None needed |
| DNS | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | Edit records |
| Hosting and backups | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | Admin user, own login |
| Code repository | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | Write access |
| Card payments | Lee Valley Physio Ltd | Orla | finance@leevalleyphysio.example | Developer keys only |
| Text messages | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | Developer keys only |
| Error monitoring | Lee Valley Physio Ltd | Orla | it@leevalleyphysio.example | Member |
The register shows Orla that she can remove Shandon's access to everything in one afternoon, and give a new supplier the same access just as fast. A good supplier prefers this arrangement, because nobody can ever accuse them of holding a client hostage.
Escrow: insurance for code you only license
Sometimes you cannot own the code. You might be licensing a supplier's platform that runs many clinics at once, or a specialist component they will never assign. Then the risk is that the supplier disappears (goes bust, gets bought, stops maintaining it) and you are left with software nobody can fix.
Source code escrow is the classic answer. The supplier deposits the source code with a neutral third party, and the agreement lists "release events" that hand it to you, such as the supplier's insolvency or a serious failure to meet maintenance obligations18. Two practical warnings from the same guide: the deposited code must be kept up to date, and someone must check that deposits are actually made18. A deposit can also be tested, from a simple check that files arrived up to a full build of the code by an independent party, and the level of testing should match the business risk18.
Is escrow worth paying for? A small expected value calculation helps. The expected loss is the chance of the bad event multiplied by what it would cost:
Here is the expected loss per year, is the probability of a release event in a year (the supplier failing or stopping support), and is the cost to your business if it happens and you have no usable code. If the yearly escrow fee is larger than , escrow costs more than the risk it covers. More on the idea in Foundations: expected value.
Example: does the Cork clinic need escrow?
All numbers in this example are invented for illustration. An escrow agent quotes Orla €1,700 a year. She estimates a 3% chance a year that Shandon fails or stops supporting the system, so .
Case one: the code sits only with Shandon. Without it, Orla would have to rebuild the system, about €70,000 including weeks of phone bookings. So :
With and , the expected loss of €2,100 a year is more than the €1,700 fee, so escrow would pay its way.
Case two: the bespoke code is assigned to Lee Valley Physio and lives in Lee Valley Physio's own repository, with documentation and tests. If Shandon disappears, a new developer needs about two weeks to get going, roughly €9,000. So :
With and , the expected loss falls to €270 a year, far below the fee. Escrow is now money spent on a risk Orla has already removed.
Orla takes the second route. Owning the bespoke code and holding the repository does the job of escrow every single day, at no extra cost. Escrow stays on her list only for the calendar sync module, and she decides that one module is not worth €1,700 a year either, because a developer could replace it in a week.
The handover: what "you can have the code" should mean
"Of course you can have the code" can mean anything from a tidy repository with instructions to a zip file of last spring's version. Code alone is not a working system. Another developer also needs to know how to build it, how to run it, how it connects to the outside world, and how to tell whether a change broke something.
A complete handover contains:
- Source code with its full history, in your repository, matching what is running in production.
- Build and deployment instructions that a developer who has never seen the project can follow.
- A list of settings and secrets the system needs (names and purpose, not the secrets themselves in a document), plus where the real values are kept.
- The database structure, a recent backup, and proof that the backup restores. A backup that has never been restored is a hope, not a backup.
- Architecture notes: the main parts, and every outside service the system talks to (payments, text messages, the accounts export).
- The automated tests and how to run them. Tests are the written memory of how the system is supposed to behave. Without them, the next developer changes things blind. The test first series explains why.
- The release history: what changed, when, and why. The article on release registers shows what a good one looks like.
- The open source licence list from the previous section.
- Known issues: the honest list of what does not work yet.
- Access handed back and rotated: the supplier's users removed, passwords and keys they knew changed.
- A paid handover session: a few hours with the next developer, agreed in the contract at a known day rate.
I work test first, and every release I make goes through a test gate and into a release register, so the tests and the release history exist from the first week rather than being reconstructed at the end. Ask any supplier where theirs will be on day one.
Example: Lee Valley Physio's handover, tested by a stranger
Orla writes the handover into the contract as a deliverable with its own acceptance test: an independent developer, who has never seen the project, gets half a day to build and run the system from the documentation alone. She budgets €700 for that half day (an invented figure). The checklist, as it stood when Shandon delivered milestone three:
| Item | Status | How Orla checked |
|---|---|---|
| Source code with history in Lee Valley Physio's repository | Done | Latest change matches the version live on the site |
| Build and deploy instructions | Done | Independent developer built it on a clean laptop in two hours |
| Settings list, secrets in the company password manager | Done | Every setting named in the list exists in the manager |
| Database backup restored to a test server | Done | Bookings from yesterday visible on the restored copy |
| Architecture notes with all outside services | Partly | Accounts export missing, added in a week |
| Automated tests run and pass | Done | Independent developer ran them, all passing |
| Release history | Done | Every release since launch, with notes |
| Open source licence list | Done | Matches the earlier table, no new copyleft |
| Known issues list | Done | Four items, none on the booking flow |
| Supplier access removal plan | Ready | Steps listed for each account in the register |
| Handover session | Agreed | Four hours at the contract day rate, on request |
The "partly" is the point of the exercise. It was found while Shandon was still engaged and happy to fix it, not two years later by a stranger under pressure.
What goes in the contract: the clause checklist
Everything above comes down to a short list of clauses. Take it to your solicitor and to every supplier on your shortlist, and compare their answers alongside the price. The proposal chapter has a comparison table this slots into.
- Assignment of bespoke work to your company, signed, covering future work, transferring on payment of each invoice.
- Licence for the supplier's pre existing code: perpetual, irrevocable, royalty free, allows modification by others, transferable with the business.
- Open source: a list of components and licences, kept up to date, and no copyleft component added without your written agreement.
- Source code delivery: into your repository, continuously or at least at every milestone, not only at the end.
- Accounts: all opened in your company's name, recovery details yours, supplier access by named users.
- Documentation and tests as named deliverables.
- Handover duties on termination for any reason, including a set number of hours of help at an agreed rate.
- Escrow, only if you license something critical you cannot hold yourself.
Example: three suppliers, one checklist
Orla sends the eight points to her three shortlisted suppliers (all invented) and records their answers.
| Clause | Shandon Software | Supplier B | Supplier C |
|---|---|---|---|
| Assignment on payment | Yes, per milestone | Only at project end | No, licence only |
| Licence for own tools | Perpetual, transferable | Perpetual, not transferable | Annual, renews with support contract |
| Open source list | Yes | On request | "Not relevant" |
| Code in client repository | From day one | At handover | Read only access |
| Accounts in client name | Yes | Yes, except hosting | Their accounts, "simpler for you" |
| Docs and tests as deliverables | Yes | Docs yes, tests no | No |
| Handover help on termination | Ten hours at day rate | At their discretion | Not offered |
| Escrow | Not needed | Not needed | Offered at €2,800 a year |
Supplier C is €7,000 less expensive on the headline price. Orla works out what the licence model would cost her over five years and what leaving would cost, and the gap closes long before year five. The true cost of outsourcing article walks through that kind of total cost in detail. She goes with Shandon, and the contract now says what she had assumed it said.
Red flags, and the questions that expose them
Some answers tell you more than the price ever will. Watch for these, and use the question next to each to find out whether there is a good reason behind it.
- "We retain the intellectual property, you get a licence." Sometimes fair, for a genuine product shared by many clients. Ask: "Which parts are bespoke to us, and why are those not assigned on payment?"
- The domain or hosting is registered by the supplier "to save you the hassle". Ask: "Can the accounts be opened in our name with you as a user, from day one?"
- Code only delivered at the end. Ask: "Can the code sit in our own repository from the first week, with the full history?"
- No mention of open source. Ask: "Can you send a list of the main components and their licences, and confirm no copyleft code without our agreement?"
- Handover "at our standard rates" with no scope. Ask: "What exactly does a handover include, and how many hours do you commit to?"
- Tests not mentioned anywhere. Ask: "How will the next developer know whether a change broke the booking flow?"
Example: Orla's email to Supplier C
Before ruling them out, Orla gives Supplier C a fair chance. She writes:
Thanks for the proposal. Before we decide, could you answer four questions? 1) Which parts of the system would be written only for us, and could those be assigned to Lee Valley Physio on payment? 2) Could the domain, hosting and code repository be in our company's name, with your team as users? 3) Could you send a list of the main open source components and their licences? 4) If we parted ways, what would a handover include, and how many hours would you commit to?
Supplier C replies that their platform is shared by 40 clinics, nothing is bespoke, and the accounts stay with them. That is an honest answer and a reasonable model for some businesses. It is not the deal Orla wants for a system she will build her clinics around, and now she knows it before signing rather than after.
Conclusion: own what you pay for, and hold what you own
In Ireland, the person who writes the code owns it unless a signed document says otherwise. So write it down: an assignment of the bespoke work on payment, a solid licence for the supplier's own tools, an honest list of open source. Then make the paperwork real: code in your repository from the first week, every account in your company's name, documentation and tests as deliverables, and a handover you have tested with a stranger. None of it is hostile to a good supplier. It is the arrangement good suppliers prefer, because it means you stay with them by choice. And if a project does go wrong, the rescue chapter starts from exactly this point: secure the access first. Before that, the next chapter, on acceptance and what counts as done, covers how you sign off what you now own.