This is the trap that costs founders the most, and it's entirely avoidable. If your agency holds the only root SSH keys to your production server, they own your business continuity — not you. Dispute an invoice and your application can go dark. That's not a hypothetical; it's a hostage situation, and we've seen it happen.
The fix is structural, and it happens before the build starts. You register the cloud accounts in your company's name. You grant the agency limited IAM roles — enough to deploy, nothing more. The code lives in your GitHub from day one, and the infrastructure is yours. That's our rule on every engagement, and we recommend you demand it from any vendor.
There's a second layer people miss: documentation. Even with the code and the servers in your hands, migrating away from a hostile agency is brutal without it — reverse-engineering a database schema from scratch can take quarters. A transparent agency ships up-to-date OpenAPI or Swagger specs alongside the code, so any competent team can pick it up. A raw SQL dump without documentation isn't ownership. Code, infrastructure, and docs — all three, in your hands, from the start.