The code of your app or system is yours when the contract says so explicitly, and the domain, the repository and the accounts are only really under your control when they are registered in your company's name. Do not rely on assumptions: ask for a written assignment and confirm, with real access, that you can log in to each account without depending on whoever built it.

This text explains, in general terms, what Brazilian law says about computer programs, and turns that into a practical checklist: what to ask for in the contract, which accounts to open in the company's name and how to test whether everything is really with you. It is not legal advice; for high-value contracts or disputes, consult a lawyer.

What the law says, in general terms

Law No. 9.609/1998 (Brazil's Software Law) deals with the protection of computer programs. In the version published on planalto.gov.br, which we consulted for this post, article 2 says that the intellectual property protection regime for a computer program is the one granted to literary works, under copyright legislation. In practice, this means the code has a rights holder, and the person who wrote it does not automatically lose those rights just because someone paid.

Article 4 deals with who keeps the rights when the program is developed within a contract. In short, the text provides that, unless stipulated to the contrary, the rights belong to the contracting party when the program is developed during a contract expressly aimed at research and development, or when the contractor's activity is foreseen or follows from the nature of the assignment. The key point is the expression "unless stipulated to the contrary": the contract decides. Article 9, in turn, says that the use of a computer program in the country will be subject to a license agreement.

Since how each article applies depends on the specific case (type of contract, scope, use of third-party libraries), the safe recommendation is not to rely on interpretation: write in the contract who the holder is, what is assigned and when the assignment takes place. The post software development contract lists the other clauses that come with this one.

Code, domain, accounts: they are different things

ItemWhat it isWhere it usually isWhat to ask for
Source codeThe files that make up the systemRepository (for example, GitHub, GitLab)Repository under your company's organization, or a complete copy delivered
DomainThe website addressDomain registration serviceYour company as holder, with the company's contact email
Hosting and cloudWhere the system runsAccount with a cloud or hosting providerAccount opened in the company's name, with your card or the card of someone you indicate
App storesPublishing on the App Store and Google PlayApple and Google developer accountsDeveloper account in your company's name
Third-party servicesEmail, notifications, maps, payment, AIDashboard of each serviceAccounts and keys in the company's name
Design and textScreens, brand, imagesDesign filesEditable files and usage licenses in writing

The most expensive mistake usually lies in the accounts, not in the code. It is common for the domain to be registered under the CPF (Brazil's individual taxpayer ID) of the developer, or for the store account to belong to whoever published the app. In these cases, even with a contract, getting access back requires negotiation.

What to ask for in the contract

  • Ownership: a clause stating that the rights over the code developed for you are assigned to your company, and from when (for example, after the final payment).
  • Scope of the assignment: what is included (code, documentation, design files, deployment scripts).
  • Third-party components: libraries and third-party services have their own licenses; ask for the list of what was used.
  • Reuse: whether the developer may reuse generic parts in other projects and what is forbidden (your business data and rules).
  • Repository delivery: format, timing and verification that the copy runs.
  • Account transfer: deadline and way of passing on access if the contract ends.
  • Confidentiality: your data and business rules may not be shared.

How to test whether everything is really with you

  1. Ask to log in to the repository with your account and check whether you appear as owner or administrator.
  2. Look up the domain holder and check that it is your company.
  3. Log in to the cloud, store and service dashboards with a login that does not depend on the developer.
  4. Ask for a copy of the code and the instructions, and check whether another person could put the system online with them.
  5. Keep passwords and recovery codes in a company location, not only on one person's phone.

If you plan to change suppliers or build an in-house team in the future, this test is what lets you make the change without stopping the system. The post freelancer, software company or in-house team covers that decision.

Who pays and who receives the notices

Having the account in the company's name is only half the job. The other half is looking after who receives the billing, renewal and security emails. If the registered email is the developer's, a domain expiry notice can go unnoticed and the site goes offline. Use a company email, preferably a shared address (such as a contact or IT address) rather than someone's personal inbox.

The same goes for payment: a company card, with a defined limit and person in charge. When the supplier pays for hosting and passes on the cost, agree in writing what happens if the partnership ends, so the accounts can be transferred without interruption. Also record where each access is stored and who in the company can recover it. Note this information in a simple document and update it when something changes; that document is what saves the day when someone leaves or changes role.

Delicate cases

System built on a ready-made platform: on tools such as website or app builders, the code may not be exportable. Ask before hiring what can be taken with you. For stores and platforms, see online store: ready-made platform or custom-built.

Open source and libraries: most systems use third-party components with their own licenses. This is normal; what matters is knowing which ones they are and whether the license allows commercial use.

Old contracts without a clause: if a system already exists without a clear contract, the safest path is to formalize it now, in writing, and seek legal guidance before any dispute.

Common mistakes

  • Assuming paying is enough: without an assignment clause, ownership can be disputed.
  • Leaving the domain in the supplier's name: it is the most frequent reason sites go offline when a partner changes.
  • Publishing the app on the developer's account: changing accounts later requires a process and can cost reviews and history.
  • Accepting delivery without testing: a compressed file that nobody managed to run is not a delivery.
  • Keeping passwords in just one place: if the person leaves, the company loses access.
  • Forgetting third-party services: keys and accounts for email, payment and maps must also be in your name.

How Luna does it

Luna's recommendation is that the domain, store accounts, cloud and services always stay in the name of the contracting company, and that code ownership is agreed in writing in the contract. If you want to talk about your project, ask for a quote and ask about the delivery of the repository and the accounts.

Frequently asked questions

If I paid for the system, is the code mine?

Not automatically. Brazil's Software Law (Law 9.609/1998) provides, in its article 4, that the contract may provide otherwise ("unless stipulated to the contrary"). That is why ownership and assignment must be written in the contract.

What does Law 9.609/1998 cover?

It covers the intellectual property protection of computer programs and the software license agreement. This post summarizes parts of it in general terms; for specific cases, consult a lawyer.

Where should the domain be registered?

In your company's name, with the company's contact email. It is the point that causes the most problems when changing suppliers.

Can the app store account stay with the developer?

It is better that it does not. Opening the developer account in your company's name avoids transfer processes and disputes later.

How do I test whether I really have control?

Log in to the repository, the domain registry, the cloud and the stores with logins that do not depend on the developer, and ask for a copy of the code with instructions to put it online.

Do ready-made platforms let me take the code with me?

Not always. Ask before hiring what can be exported, because on many website builders the code does not leave the platform.