United Arab Emirates

How do I migrate away from a vendor that holds my source code or AI model?

Start by formally demanding a complete handover of all source code, AI model weights, training data, and documentation under your contract — if the vendor refuses, that itself is a legal lever. Audit what you receive against what was built, identify gaps, then engage a development partner who can replicate or refactor missing components. Structuring your next engagement with full IP ownership and escrow from the start prevents the same problem recurring.

Why This Happens — and Why It's Especially Relevant in the UAE

In the UAE, many businesses commission software or AI models through freelance aggregators, offshore agencies, or regional system integrators without a clear IP assignment clause. Under UAE Federal Decree-Law No. 38 of 2021 on copyright, the creator of a work retains IP rights unless a written agreement explicitly transfers them. If your contract is silent on this, the vendor may have a legitimate claim — or simply hold the code as informal leverage.

Step-by-Step: How to Migrate

  1. Review your contract first. Look for IP assignment, source code escrow, and data ownership clauses. If the agreement was verbal or informal, document all communications (WhatsApp, email) — UAE courts accept digital evidence.
  2. Send a formal written handover request. Reference the deliverables list in your contract. If the vendor is DIFC- or ADGM-registered, those courts have clear IP enforcement. For mainland vendors, the Ministry of Economy's IP department is the starting point.
  3. Conduct a technical audit. Once you receive a code dump, have a qualified engineer verify it compiles, runs, and matches the production system. For AI models, confirm you have the weights, fine-tuning scripts, and training data — not just an API wrapper someone built on top of a third-party model.
  4. Identify what's missing or unrecoverable. Sometimes a vendor has genuinely built on proprietary infrastructure you cannot legally copy. In that case, a clean-room rebuild — where new developers write equivalent functionality from scratch without looking at the original code — is the safest path.
  5. Migrate data independently. Export all business data (databases, model training sets, user records) in open formats (CSV, JSON, Parquet). Do not leave live data inside a vendor's cloud environment longer than necessary.
  6. Establish continuity before you cut access. Run the new system in parallel for a defined period before decommissioning the old one.

AI Models: A Specific Complication

If your vendor fine-tuned a foundation model (e.g., GPT, LLaMA) on your proprietary data, the base model weights belong to the original licensor. What you should own is the fine-tuning layer, the training dataset, and the inference pipeline. Make sure your handover request is specific about each of these components.

Structuring Your Next Engagement

Whatever partner you move to — whether a UAE-based firm, an Indian dev shop, or a US agency — insist on three things in writing: full IP assignment upon payment, source code in a client-owned repository from day one, and an NDA covering your business data. CodeNicely works on this model — clients own 100% of IP with no vendor lock-in — but any reputable partner should offer the same terms. If they won't, treat that as a red flag.

Honest Tradeoffs

  • A clean-room rebuild costs time and money but gives you clean, well-documented code you fully control.
  • Negotiating with the incumbent vendor can be faster but often results in partial handovers.
  • Legal action through DIFC, ADGM, or mainland UAE courts is a valid option but rarely the fastest one.

Related questions

Does UAE law automatically give me ownership of software built for my business?

No. Under UAE Federal Decree-Law No. 38 of 2021, copyright defaults to the creator unless a written agreement transfers it to you. Always include an explicit IP assignment clause in any development contract before work begins.

What is a source code escrow and should I use one?

A source code escrow is a legal arrangement where a neutral third party holds the latest code and releases it to you if the vendor ceases operations or breaches the contract. It is a standard risk-mitigation tool for UAE enterprises commissioning bespoke software, particularly for critical systems.

What if the vendor built our AI model on a third-party API — do we own that?

If the vendor built a wrapper around a commercial API (such as OpenAI or Google Vertex), you likely own the wrapper code and your data pipelines, but not the underlying model. You can migrate by pointing those pipelines at the same or an alternative API — the key asset to recover is your data and business logic, not the model weights.

How long does a clean-room rebuild typically take?

It depends entirely on the scope and complexity of the original system. A focused MVP of a core module can be ready in weeks; a full enterprise platform rebuild takes considerably longer. Contact a development partner with a detailed requirements brief to get a scoped estimate.

Want a direct answer for your project?

CodeNicely builds AI products, MVPs, and custom software for founders and teams worldwide. Tell us what you're building.

Talk to our team