What to check first
Your contract should assign the code to you in writing. Then check who employs the engineers, and how their access ends.
The rules below are Vietnam's. Your own country's law may also apply, depending on the contract.
Who owns code written in Vietnam
Vietnam protects software as a literary work, in source or object code. The rule is in the Law on Intellectual Property (No. 50/2005/QH11, Article 22), which has been amended several times since.
Under Article 39, an organisation that assigns an employee to create a work owns its economic rights. It also holds the right to publish it, unless the parties agree otherwise.
The same applies to anyone who contracts an author to create a work (Article 39.2). Practitioners advise naming the task clearly, in the labour contract or the company's rules.
What the engineer keeps
The author keeps moral rights, such as being named and protecting the work from distortion. Since the 2022 amendments (Law No. 07/2022/QH15), the right to name a work can be transferred.
Whether the other moral rights can be waived hasn't been tested in court. Lawyers still advise asking for a waiver in the contract.
How ownership reaches you
When you hire through a provider, the engineers are its employees. Their work belongs to the provider first, under Article 39.
So your contract with the provider must pass it on to you. Under Article 46, a copyright assignment must be in writing.
It must name both parties and the basis for the assignment. It must also set the price, each side's duties and the liability for breach.
Recording the assignment with Vietnam's Copyright Office is optional. The signed contract is valid without it.
Code written with coding agents
Vietnam's amended IP Law (No. 131/2025/QH15) has applied since 1 April 2026. It left the rules on AI-assisted work to the Government.
Those rules came in Decree 134/2026/ND-CP, in force since 9 April 2026. A work made with AI is protected only where a person led the creative work.
Work created entirely by AI isn't protected. If asked, the creator must prove their part, and prompt history and drafts count as evidence.
So keep a record of who directed and reviewed each change. Your repository's history and reviews already do most of this.
Clauses to read before you sign
- Ownership. Is the work assigned to you as it's created, or only once it's paid for? Know which, and what happens to work in progress.
- Existing code. The provider may reuse its own libraries. You need a lasting licence to use them, at no extra cost.
- Open-source code. Ask for a list of the licences used. Check none of them would oblige you to publish your own code.
- Where the work lives. Your repositories and accounts, under your company's name, with access you can remove in one step.
- Confidentiality. Vietnam's Labour Code (No. 45/2019/QH14, Article 21) lets employers agree secrecy terms with staff. Ask whether the engineers on your work have signed one.
- Personal data. If the team sees customer data, you need a data-processing clause. Vietnam's Law on Personal Data Protection (No. 91/2025/QH15) took effect on 1 January 2026.
- Term and notice. The minimum term, the notice to stop or change, and what you receive on the last day.
- Replacements. Who pays to replace someone who leaves, and how soon.
- Hiring the provider's staff. Many contracts stop you hiring the provider's engineers directly. Check how long that lasts.
- Law and disputes. Which country's law applies, and where a dispute would be heard.
Notice works on two levels
Your notice to the provider is set in your contract. The engineer's notice to the provider follows the Labour Code.
On an open-ended contract, an engineer who resigns gives at least 45 days' notice (Article 35). A fixed-term contract of 12 to 36 months needs at least 30 days.
So a provider often knows weeks ahead that someone is leaving, and can plan the handover.
What to do this week
- Find the ownership clause in each contract you have with a provider abroad.
- Check that your repositories, cloud accounts and domains are in your company's name.
- Ask each provider how its labour contracts give it the rights it passes on to you.
- List everyone with access, and how you would remove it.
This is general information about the law. For your own contract, check with a lawyer in each country involved.
