Start a project

Who owns the code of your software.

When you hire a developer or an agency, the code they write belongs to them by default in most countries, Morocco and France included, until a written contract transfers the rights to you. Paying the invoice is not enough: ask for a written transfer of rights, the source code, and every account in your name.

4 min read

The Simunara clinical cases page: a patient in a hospital bed in a 3D room, beside the title on cases by specialty.
Simunara, designed and built by our team.

By default, the author owns it.

Code is protected by copyright, like a book or a photograph. In Morocco, in France and in most countries that follow the same tradition, the rights belong at first to whoever wrote it. Hiring someone to write it does not change that on its own.

So unless a contract says otherwise, the freelancer or the agency you paid keeps the rights to the code, and you hold, at best, a permission to use it. Many business owners only find this out the day they want to change provider.

An employee is not an agency.

There is one common exception. In many countries, France among them, software written by an employee as part of the job belongs to the employer. A freelancer or an agency is not your employee, so that exception does not cover them.

In the United States, the idea of work made for hire goes further for employees, but code ordered from an outside contractor still usually needs a signed assignment to become yours. Wherever you are, the safe answer is the same: put it in writing.

Paying is not owning.

A licence lets you use the software. An assignment makes you the owner. The difference shows the day you want another team to improve it, sell the business, or raise money: a buyer or an investor will ask who owns the code, and a licence is not the answer they want.

Read the quote and the terms for one of these two words. If neither appears, assume you are getting a licence.

Put the transfer in writing.

The transfer of rights belongs in a written contract, signed before the work starts. Moroccan and French law both expect it to name the rights it covers, such as copying, changing, adapting and distributing the code, with their scope, territory and duration. A vague line saying the client owns everything protects you less than you think.

Say when the transfer happens, too: on each payment, at the end, or from the first day. And say that it covers the designs, the documentation and the tests, not only the code.

Ask for the source and the accounts.

Owning the rights is little use without the code itself. The contract should require the full source code, in a repository in your name, with the documentation another team needs to take it over.

Then the accounts: the domain, the hosting, the app store listings, the databases and every paid service the software runs on. Each one should be opened in your name, with the developer invited in, never the other way round. An account in a provider’s name is the most common way clients lose control of what they paid for.

Laddaty, the AI nutrition app we design, build and run, shows how much sits around the code: an app on iPhone and Android, its listings in both stores, the servers behind it and the data of its users. When we build an app for a client, all of it lives in the client’s own accounts from the first day.

Read the case study: Laddaty

What no one can give you.

Almost every piece of software is built on open source libraries and on paid components: frameworks, fonts, images, themes, plug-ins. You own the code written for you, not those pieces. Each keeps its own licence, and you must respect it.

Ask for a list of the libraries and paid components with their licences, and make sure every paid licence is in your name, so nothing stops working when the project ends.

When the code stays with them.

Sometimes the provider keeps the rights, because you are buying a product they sell to others too. That can be a fair deal. Protect yourself with escrow: the source code is deposited with an independent third party and released to you if the provider closes or stops maintaining the software.

Escrow only helps if the deposit is kept up to date. Ask how often a new version of the code is deposited, and who checks that it can really be built.

Check before you sign.

Before you sign, ask four things: who owns the code, and from when; where the source code will live; whose name the domain, hosting and other accounts are in; and how a handover to another team works. Clear answers in writing are a good sign. Hesitation is a warning.

This article explains general principles, not legal advice. Laws differ from one country to another, and a lawyer should confirm your contract before you sign it.

Our answers, on our custom software page

Your questions, answered.

Who owns the code when you hire a developer?

By default, the developer or agency who wrote it, in Morocco, France and most countries. It becomes yours only through a written transfer of rights in the contract.

Does paying for software mean I own the code?

No. Paying gives you at least the right to use it, but ownership passes only through a written assignment. Without one, you usually hold a licence.

What should a software development contract say about ownership?

That the rights to the code, designs and documentation are assigned to you, that you receive the full source code in your own repository, and that the domain, hosting and other accounts are in your name.

Who owns the code ALJonWeb writes?

You do, from the first day, with the repositories and accounts in your name. Everything is documented, so your team or another one can take it over, and we help with the handover.

Ready when you are.

Tell us about your business and what you want to build. We reply within one business day.

Start a project