How to switch software development agencies without losing your code

Changing vendors mid-build is common and survivable. Here is what to secure before you tell them, how to run the handover and what the new team needs on day one.

You can switch agencies mid-build without losing work if you own the accounts and the code before you announce the change. Most painful handovers come from one missing piece: a repository in the agency's name, a cloud account on their card or an app listing under their developer account. Secure those first, then talk.

When is it time to switch?

  • Dates keep moving without a written reason. A plan that slips every week with no explanation is not a plan.
  • You can't see working software. If you have not seen a demo in two weeks, you do not know where the build stands.
  • Every change becomes a negotiation. Costs appear after the work instead of before it.
  • The same bugs come back. Fixes that do not stick usually mean nobody is testing.

One bad week is not a pattern. Three of these together for a month usually is.

What should you secure before you tell them?

  • The code repository. It should live in a GitHub, GitLab or Bitbucket organization you own, with the agency as invited members. If it sits in their account, ask for a transfer now, while the relationship is friendly.
  • Cloud and database accounts. AWS, Google Cloud, Supabase, Vercel or Firebase. Billing should be on your card, and you should hold owner access.
  • Domains and DNS. Your registrar account, in your company's name.
  • App store accounts. Apple and Google developer accounts should be registered to your company. Moving a published app between accounts is possible, but it takes time.
  • Third-party services. Stripe, email, analytics and error tracking. List every login.
  • Designs and documents. Figma files, specs and the password vault.

Do you own the code you paid for?

Not automatically. Under US copyright law, the creator of a work owns it unless it is a "work made for hire" or the rights are transferred in writing. The US Copyright Office's Circular 30 explains that work made for hire covers employees and only a short list of commissioned works with a signed agreement. Software from an outside firm rarely fits that list, so contracts use an assignment clause instead.

Check your contract for that clause and when it takes effect. Many tie it to payment. Our guide on who owns the code goes deeper. This is general information, not legal advice, so ask a lawyer about your contract.

Talk to a senior engineer about your codebase

30 minutes on what you have, what is risky and what to do next.

Book a call

How do you run the handover?

  • Settle what was delivered, in writing. Pay the current milestone against what you received, so nothing is held back.
  • Ask for a handover pack. Repository access, environment variables in a shared vault, a list of services and logins, deployment steps, known bugs and open work.
  • Rotate every secret after they leave. API keys, database passwords and admin accounts. Remove their access from every service on the same day.
  • Pay for a short overlap if you can. A week of paid questions is cheap compared with rediscovering how deployment works.

What does the new team need on day one?

  • Access to the repository and a staging environment.
  • An honest list of what works and what does not.
  • Time to review before promising dates. A good team reads the code before quoting the rest of the build. Expect a written assessment within one to two weeks.

Inherited code is often better than founders fear. Sometimes it is not, and a short review tells you whether to fix it or rebuild parts of it. That is what our Scale work does, however the app was built.

How do you avoid this next time?

  • Own every account from day one. The agency joins your accounts, not the other way round.
  • Ask for working software every week. A recorded demo is enough.
  • Agree how changes are priced before work starts. Our guide to fixed-price vs hourly development explains the options.

Questions

Can I switch development agencies in the middle of a project?

Yes. Secure the code repository, cloud accounts, domains and app store accounts in your name first, settle the current milestone, then ask for a handover pack.

What if the agency won't give me the code?

Check your contract for an assignment clause and its payment terms. If you have paid for delivered work and the contract assigns it to you, ask in writing, and involve a lawyer if needed.

How long does an agency handover take?

Access and documents can move in a few days. A new team usually needs one to two weeks to review the code before committing to dates.

Should I rebuild from scratch with the new agency?

Not by default. Ask for a written code review first. Many projects keep most of the code and fix the weak parts.

What should I change after the old agency leaves?

Rotate every key and password they could see, remove their access from every service and confirm you hold owner access everywhere.

Have an idea? See what it would take to build it.

The Idea Lab turns a two-sentence idea into a build plan: why it could work, what to get right first, the first version worth building and its price. Two minutes, from our published rates.

Open the Idea Lab

Next: Is your AI-built app secure? 8 checks before you launch

Tell us what you're building.

Thirty minutes with a senior engineer. You leave with a plan and a price, whether or not you work with us.

Book a callGet your price