"Who owns the code?" sounds like a legal question. In practice it's an operational one, and most organizations don't ask it until the day they need the answer.
That day usually arrives when something has gone wrong. The developer has stopped responding, the hosting company won't release the site, or a new vendor asks for repository access and nobody knows where the repository is. As one client told us about another company, "they got us."
This post covers what to put in writing so you are never in that position. A quick note first: this is practical guidance from a software shop, not legal advice. Have your own attorney review any agreement before you sign it.
Ownership Is More Than the Code
When people say "own the code," they usually mean the source files. That's only one of several things you need to control to actually run and move your system.
- The code. The source files, and the legal rights to use, change and hand them to someone else.
- The repository. The account where the code and its history live. Owning the code without owning the repository means asking permission to get your own files.
- The data. Your records, in a form you can export and use elsewhere.
- The hosting and infrastructure accounts. Servers, cloud accounts and databases, ideally in your organization's name.
- The domain and DNS. If someone else controls these, they control whether your site is reachable.
- Third-party licenses. Paid plugins, APIs and services the system depends on, registered to you.
- The credentials. Admin logins and API keys, stored somewhere you can reach them.
- The documentation. Enough for another competent developer to pick up the work.
Our clients own all of it: the code, the data, the repository and the licenses. That should be the baseline you ask any developer for.
The Terms Worth Putting in Writing
Assignment of the Work
The agreement should say clearly that the code written for you belongs to you. Ask your attorney how that's worded and at what point it takes effect. The important thing is that it's stated, not assumed.
Pre-Existing and Open-Source Components
Almost every project uses code the developer didn't write for you: open-source libraries, frameworks, and sometimes the developer's own reusable tools. That's normal and good. The agreement should say you have the right to keep using those components as part of your system, including if you part ways with the developer.
Where the Repository Lives
State that the code lives in a repository your organization owns, or is transferred to one on a defined schedule. The simplest version: create the account yourself and give the developer access to it.
On one project, a plugin's author had stopped maintaining it, so we moved a copy into the client's own repository.
Data Access and Export
Your data should be yours, exportable in a usable format, at any time and at the end of the relationship. One client asked us, "Who's in control of the database, is that your company?" It's a good question to ask. On the same call, Joe told them, "Of course, it's your data."
No Hosting Tie-In
Some vendors make hosting with them a condition of working with them. It's worth saying in writing that you can move the system to any host at any time, with the developer's reasonable help.
We don't tie clients to our hosting. Some choose to host with us anyway, and that's the right way round: they stay because it works, not because leaving is hard.
Licenses in Your Name
Paid licenses for plugins, themes and services should be registered to your organization, even if the developer buys them on your behalf.
How Work Is Estimated and Approved
The agreement or statement of work should describe how new work gets approved. For us, each piece is a fixed estimate you approve before work starts. Whatever the model, it should be written down, along with how feedback rounds and changes are handled. That's covered in more detail in a separate post on change requests.
Handover on Exit
Describe what happens if the relationship ends: transfer of any remaining credentials, a final export of the data, the current documentation, and a reasonable handover period. Nobody likes writing the breakup clause at the start. It's much easier to write then than later.
Confidentiality and Data Handling
If the developer will see member records, donor data or anything sensitive, the agreement should cover how that data is handled, who can access it, and what happens to copies when the work ends.
Questions to Ask Before You Sign
Put these to any developer, in writing if you can.
- Whose account will the repository be in on day one?
- Whose name will the hosting, domain and licenses be registered in?
- If we part ways, what do we receive, and how quickly?
- Is any of the code you'll use yours rather than ours? What rights do we have to it?
- Can we host this anywhere we like?
- How do we export our data, and in what format?
- Where will credentials be kept, and who will have them?
A developer who answers all seven plainly and quickly is one you can work with. One who hesitates on the first two is telling you something.
If You Don't Own It Today
Many organizations reading this will realize they don't currently control some of these. That's common and fixable.
Start with an inventory: list each item above and note who controls it now. Then ask your current developer, in writing, to move each one into your organization's name. A good developer will help without fuss. If the answer is resistance, that's a stronger reason to fix it now, while the relationship is still working.
If the relationship has already ended badly, the same inventory is the first step in hiring the next developer, which we covered earlier this month in a post on being burned by your last one.
A Simple Rule of Thumb
If you couldn't hand your system to a different developer next week, you don't fully own it.
Everything in this post is about making that handover possible, whether or not you ever need it.
Final Thoughts
Ownership isn't about distrust. Most developer relationships end well, or don't end at all. But the terms that protect you cost nothing to write down at the start and a great deal to negotiate at the end. Put the code, the repository, the data and the licenses in your name from day one, and the question of who owns the code has a one-word answer.
If you'd like to talk through ownership on a system you run today, or on a build you're planning, we're happy to help. See how we approach custom software, or book a short consult.