Building products with AI
Who owns the code when you build an AI product
When you hire someone to build an AI tool, make sure you own the code, data, and models so you're not trapped later.
· 5 min read · Product strategy · Vendor relationships · AI ownership · Contract basics
When you hire a team to build an AI product, you need to own three things: the code they write, the data you feed it, and any custom models they train. Without ownership, you end up renting your own product.
This is not paranoia. It happens regularly. A marketing agency in Toronto built a lead-scoring tool for a client, then kept the code. The client had to pay licensing fees to use their own product. A property manager in Surrey hired a contractor to build a document classifier, only to discover the contractor owned the trained model and wouldn't share it. When the contractor raised prices, the property manager had no choice but to pay.
Ownership questions often don't come up until it's too late. By then, you've spent months and thousands of dollars, and you're stuck.
What you actually need to own
Start with the code. This is the set of instructions the tool runs on. If you don't own the code, you can't modify it, audit it, or move it to another vendor without starting over. A dental clinic in Kelowna wanted to add a new feature to their appointment reminder system. They couldn't, because the vendor owned the code and charged $8,000 to make a change that took two hours.
Own your data. This is the information you put into the system: customer records, invoices, past interactions, anything specific to your business. Your data is yours already, legally. But make sure the contract says the builder can't use it to train models for other clients, and that you can export it at any time in a format you can read. A distributor in Calgary discovered their competitor was getting better results from the same AI tool. Turns out, the vendor was using anonymised versions of their data to improve the model for everyone.
Own custom models. If the builder trains a model specifically on your data and your business processes, that model is part of your product. You need to own it, or at least have a license that lets you use it without ongoing payments. Standard, off-the-shelf models (like the large language models many tools use) are different. You won't own those, and you don't need to. But anything trained on your data or your specific problem should be yours.
The conversation to have
Before you sign anything, ask these three questions:
Who owns the code. The answer should be "you do" or "we both do, and you can use it however you want." Anything else is a red flag. If they say "we own it but you have a license," ask: Can you modify it. Can you use it with another vendor's tools. Can you export it. If the answer to any of these is no, you don't really own it.
Who owns the data. The answer should be "you do, completely." Ask: Can I export it whenever I want. In what format. Can you use it to train models for other clients. The builder should say no to the last one.
Who owns trained models. If the builder is training a custom model on your data, you should own it. If they're using a standard model (like OpenAI's GPT-4), you won't own that, but you should own any fine-tuning or customisation done to it. Ask: If I want to switch vendors, can I take this model with me. If they say no, ask why.
A good builder will answer these clearly and put the answers in writing. They won't get defensive. They'll explain the difference between what you own and what you don't, and why it matters.
What you're really buying
Here's the candid part: you're not buying the code or the model. You're buying the builder's expertise in solving your specific problem. The code and model are just the proof that they know how to do it.
A good builder is happy for you to own these things, because they know their real value is in understanding your business and building something that fits. A builder who insists on owning the code is telling you they're more interested in locking you in than in solving your problem.
This matters most when you're building something that's unique to your business. A plumber in Richmond hired a team to build a tool that estimates job costs based on photos and past jobs. That tool only works because it's trained on their data and their pricing logic. They need to own it, or they're renting their competitive advantage.
If you're building something generic—a chatbot that answers FAQs, a form that validates data—ownership is less critical. You could switch vendors more easily anyway. But even then, you should own the code and data. It costs the builder nothing to let you, and it protects you.
Where to start
- Write down what you're building. Before you talk to any builder, list the three or four things your product needs to do. Be specific: "Read invoices and file them by vendor" beats "automate accounting." This clarity will help you ask ownership questions that actually matter to your business.
- Ask three builders the three questions. Contact three teams and ask them directly: Who owns the code, the data, and any custom models. Don't accept vague answers. If they won't answer in writing, keep looking.
- Get it in the contract. Once you've chosen a builder, work with a lawyer to write ownership into your agreement before work starts. This costs $500 to $2,000 and saves you thousands later. Make sure the contract covers code, data, and models separately, because they're different things.