To take over a codebase from a software agency, check your contract for code ownership and transition terms first, move every account and asset into your company's name before you give notice, agree a written knowledge-transfer plan with a paid overlap period, and prove that a new team can build and deploy the software from scratch before you sign off. Here is how to run each step so nothing is lost.
Changing software vendors, or bringing development in-house, is a normal business decision. Contracts end, priorities shift, a company grows past what its first agency can support, or a new owner wants the work closer to home. The risk is not the decision itself. The risk is discovering, after the relationship has ended, that the agency held the keys to something you cannot run your business without: the hosting account, the domain, the app store listing, or the only working copy of how the system is deployed.
This guide is written for business owners, CEOs and operators of PE-backed companies, not for engineers. You do not need to read code to protect yourself. You need to know what to ask for, what to hold in your own name, and how to tell whether a handover is real. Where it helps, a senior technology leader working on your side, such as an interim CTO, can run the process for you.
Step 1: Check the Contract Before Anything Else
Before you tell the agency you are leaving, read the agreement you signed with them. It decides what you own, what they must hand over, and how much notice you owe. Do this quietly and early, because it shapes everything else.
Clauses to find and read:
Intellectual property assignment: does the contract assign the code, designs and other work product to your company, and does that transfer happen on creation or only after final payment?
Source code ownership and delivery: are they obliged to deliver the full source code, including configuration and build scripts, not just a running application?
Excluded or pre-existing materials: agencies often keep ownership of their own reusable tools and frameworks. Check whether you receive a licence to keep using them after you leave.
Termination and transition assistance: is the agency required to help with a handover, for how long, and at what rate?
Notice periods and payment terms: how much notice you must give, what is owed on exit, and whether any unpaid invoice lets them hold back deliverables.
Third-party and open-source components: whether they have disclosed the outside software your product depends on and the terms it comes with.
This is not legal advice. Contract wording varies, and the details of ownership and licensing matter. Have a lawyer review the agreement before you give notice, especially if anything is unclear or the contract is silent on ownership. If the terms are weak, it is usually easier to fix them while the relationship is still friendly, for example by agreeing a short handover addendum, than after you have announced you are leaving.
Step 2: Hold Every Account and Asset in Your Own Name
The most common and most painful problem in vendor transitions is not the code. It is the accounts around the code. Agencies often set things up under their own logins for convenience, and years later nobody remembers. Your goal is simple: every account your software depends on should belong to your company, with an administrator from your company, and billing that you control.
Work through this list with the agency before you give notice, or immediately after if you already have. For each item, confirm who the owner is, who has administrator access, and whose payment method is on file.
The access and asset checklist:
Source code repositories
Every repository, including the website, mobile apps, back end, scripts and infrastructure code, in an organisation account your company owns. A copy on a laptop is not the same as owning the account.
Cloud hosting accounts and billing
The account where the software runs and where the data lives. Your company should be the account owner and the billing party, not a sub-user inside the agency's account.
Domain registrar and DNS
Your domain names and the settings that point them at your servers. Losing control here can take your website and email offline.
App store developer accounts
Apple and Google developer accounts that publish your mobile apps. If the app was published under the agency's account, moving it takes planning, so start early.
Third-party API keys and SaaS accounts
Payments, maps, messaging, analytics, search, AI services and anything else the software calls. List them all and move each one to a company-owned login.
CI/CD and deployment tools
The automated pipeline that builds and releases your software. Check where it runs and whose account it belongs to.
Monitoring, logging and error tracking
The tools that tell you when something breaks. If alerts go only to the agency, you will not know when your product is down.
Email sending services
The service that sends password resets, receipts and notifications. These often sit on a separate account nobody thinks about until it stops.
Password manager and secrets
Passwords, keys and certificates should live in a vault your company controls, shared with the agency, rather than the other way round.
Design files and brand assets
Source design files, not just exported images, so future changes do not mean redrawing screens from scratch.
Documentation and project history
Requirements, architecture notes, the issue tracker, the bug backlog and any wiki. Export what you can and keep a copy.
Rotate credentials after the agency exits
Once the handover is complete, change every password, key and access token the agency could see, and remove their users from every account. This is not a sign of distrust. It is basic hygiene for any departing supplier, and it means you know exactly who can reach your systems. Plan the rotation carefully, because changing a key the software depends on without updating it in the right place can cause an outage. Your next team, or a technology leader on your side, should run this step.
Step 3: Agree a Written Knowledge-Transfer Plan
Owning the code is not the same as understanding it. The people who built your software carry knowledge that is not written down anywhere: why things were built a certain way, which parts are fragile, and the manual steps someone does every release. A knowledge-transfer plan turns that knowledge into something your next team can use.
Put the plan in writing, with named deliverables, and agree it with the agency before the notice period runs. Vague promises to "help with the transition" are hard to hold anyone to.
Recorded walkthroughs
Screen-recorded sessions where the agency's developers walk through the system, the code structure and the most important features. Recordings outlast any meeting and can be rewatched by every new hire.
An architecture document
A plain description of the main parts of the system, how they connect, where the data lives and which outside services are involved. A simple diagram is often more useful than pages of text.
A deployment runbook
Step-by-step instructions for building, testing and releasing the software, and for rolling back a bad release. Every manual step belongs here.
The open bugs and known issues list
What is broken, what is half-built, what customers have complained about and what the agency was planning to fix next.
An overlap period with paid hours
A defined window where the old agency remains available, on agreed and paid hours, to answer questions while the new team takes over. Paying for this time keeps the incentives clear on both sides.
Treat the agency as a partner in this phase. A handover goes far better when the outgoing team is respected and paid for its time than when it feels pushed out. Most agencies want to leave a clean record, and a clear plan makes that easy for them.
Step 4: Verify the Handover Is Real
This is the step most businesses skip, and it is the one that matters most. A folder of documents and a repository link do not prove anything. The only reliable test is practical: can someone who has never touched the system set it up, build it and deploy it, using only what you now own?
A real handover passes these tests:
A new developer can download the code from your repository and get it running using only the documentation.
The software builds on a fresh machine or in your own pipeline, not only on the agency's computers.
The new team can deploy a change to a test environment, and then to production, without asking the agency for anything.
Every account in the checklist shows your company as owner and administrator, with your billing on file.
Your new team has fixed at least one real bug end to end during the overlap period.
Run these tests while the overlap period is still active, so the agency can fill any gap you find. Tie the final payment or sign-off to passing them where the contract allows. If you want an independent view of the code itself at this point, an engineering audit can tell you how healthy the system is and where the risks sit, which is useful context for whoever takes it on next.
Step 5: Choose the Next Team
Many businesses choose the next team before they have finished understanding what they are taking over. It is usually better to stabilise the handover first, then decide, because the state of the system affects which option fits.
A new agency
A new vendor can start quickly and brings a ready-made team. It suits software that changes at a steady, modest pace and is not the main thing your business competes on. If you go this way, apply everything in this guide from day one: accounts in your name, documentation as a deliverable, and a contract with clear ownership and transition terms. That way the next change of vendor, if it ever comes, is easy.
An in-house team
Hiring your own developers suits software that is core to your product and changes constantly. It gives you more control and keeps knowledge inside the company, but hiring takes time and someone needs to lead the team. A business without technical leadership often finds that the first in-house hire is the hardest to get right, because nobody on the inside can judge the candidates.
A mix of both
Some companies keep a small internal core that owns the architecture and priorities, and use an outside team for extra capacity. This works well when the internal side genuinely owns the decisions and the accounts, rather than becoming a messenger for the vendor.
Whichever route you choose, someone senior on your side should own the technical decisions. A fractional CTO can provide that ongoing leadership part time, while an interim CTO suits a heavier transition where the work needs close to full-time attention for a period.
The First 30 Days After Takeover
The first month is about stability, not new features. Resist the urge to start a big rebuild or a long list of changes. Your new team needs to learn the system before they reshape it.
Week 1: Secure and observe
Confirm ownership of every account, finish rotating credentials, and make sure monitoring alerts reach your team. Check that backups exist and that someone has actually restored one to prove it works.
Weeks 2 and 3: Learn by doing
Have the new team ship small, low-risk fixes from the open bugs list. Each release tests the deployment process and builds their confidence with the code. Update the runbook every time they find a step that was missing.
Week 4: Assess and plan
Ask for a plain-language assessment: what is solid, what is fragile, what is costly to run, and what should be fixed first. Use it to set priorities for the next quarter and a realistic budget. If you are preparing for a sale or investment, our technical due diligence checklist shows what a buyer is likely to ask about, so you can start closing gaps now.
Common Traps in an Agency Handover
These problems come up again and again. None of them are hard to prevent if you look for them early, and all of them are painful to discover late.
Watch for these:
Agency-owned cloud account: your software and customer data sit inside the agency's hosting account, so moving them becomes a migration project instead of a transfer of ownership.
Code that only builds on their machines: the software depends on tools, settings or files that exist only on the agency's computers and were never put in the repository.
Hard-coded secrets: passwords and keys written directly into the code, which means anyone with a copy of the code has access and rotating them requires code changes.
Undocumented manual steps: a release that only works because one developer remembers to run a certain command or change a certain setting by hand.
Domain or app listing in the agency's name: the public face of your product is registered to someone else.
Unpaid invoices used as leverage: a payment dispute that leads the agency to hold back code or access. Settle what is owed, or get legal advice, before it reaches that point.
Giving notice before securing access: once the relationship turns, everything in the checklist gets harder to obtain.
Why Have a Technology Leader on Your Side
Most owners and CEOs going through a vendor change do not have a technical executive to run it. That leaves the outgoing agency, who has every reason to keep things simple for themselves, and the incoming team, who wants to start fresh, as the only experts in the room. Neither one is responsible for protecting your interests across the whole transition.
A senior technology leader working for you closes that gap. They know which questions to ask the agency, what a complete handover looks like, and how to test it. They can sit in the knowledge-transfer sessions, check the accounts and documentation, run the rebuild-and-deploy test, and help you decide between a new vendor and an in-house team based on what the system actually needs. When the transition is done, they can stay on to lead the next team or help you hire a permanent leader.
CTO on Demand provides that leadership as an interim CTO for intensive transitions or a fractional CTO for ongoing part-time ownership. If you are planning to change developers, or are already partway through and worried about what you might lose, talk to us before you give notice. The cheapest time to fix a handover is before it starts.
