Build vs Buy · 2026-11-20 · 8 min read
Who Owns the AI an Agency Builds for You? A 2027 Guide
AI IP ownership in 2027: what a business should own when an agency builds its AI, from code and prompts to evals and outputs, and what to ask first.

Who owns the AI an agency builds for you?
An agency contract usually hands the client the custom code, and at least one major model provider's business terms leave outputs with the customer. The gaps in AI IP ownership sit in the layers around the code: the prompts, the eval set, the tool definitions, the data and logs, and the accounts the system runs in. Ownership only counts if another team could run and change the system without the agency.
This is a guide to the questions worth asking in 2027. It is not legal advice, and a lawyer should read the actual contract.
Buyers are clearly asking. AE Studio answers it on its own AI agent page, in an FAQ titled "Who owns the IP?": "You do. You own all the IP and code AE Studio produces for you." (ae.studio/agentic-automations, checked November 20, 2026). That is the right answer to put in public, and credit to them for doing it. Our point is about what the word "code" leaves out when the thing being built is an AI system.
What does "you own the code" leave out?
A traditional software handover is a repository and a deploy. An agent is more than that. The application code is often the smallest and least interesting part, and most of what makes the agent behave lives in files and accounts a statement of work never lists.
Here are the layers we would name in any contract for custom software for AI workflows.
| Layer | Why it matters | The question to ask |
|---|---|---|
| Application code | It runs the product | Is it assigned to us, in our repository, from day one? |
| Prompts and system instructions | They decide how the model behaves | Are they in the repo as files we own, or in someone's dashboard? |
| Eval sets and test cases | They are the proof the system works | Do we get every case, the expected answers and the scoring scripts? |
| Tool and integration definitions | They connect the model to our systems, including any MCP servers | Who owns them, and can a new team read them? |
| Fine-tunes and model configuration | They hold tuned behavior and settings | Whose provider account holds them, and can they be moved? |
| Data, logs and traces | They record what the system did with our customers' data | Where do they live, who can read them, what happens to them at the end? |
| Cloud and model-provider accounts | Whoever holds the account holds the switch | Are they in our name, with the agency as a guest? |
The eval set is the one buyers forget. It is a set of real examples with the answers a good system should give, plus the script that scores a run. When you change a prompt or swap a model, the eval set tells you whether the system got better or worse. That matters most when the vendor picks the date, as we cover in AI vendor lock-in in 2027.
Without it, the next team inherits code they cannot safely touch. They can read every line and still have no way to know whether a change broke the invoice parser on the eleven edge cases someone learned about the hard way. If you own one thing besides the code, own that.
Prompts deserve the same care. A prompt that took three weeks of testing to get right is work product, the same as a function. If it lives in a vendor console under the agency's login, you do not have it.
Who owns the outputs of the model itself?
This part is more settled than most buyers expect, at least in the provider terms we read for this post.
Anthropic's Commercial Terms of Service, shown as effective June 17, 2025 and checked November 20, 2026, say: "Anthropic agrees that Customer (a) retains all rights to its Inputs, and (b) owns its Outputs." The same section says: "Anthropic may not train models on Customer Content from Services."
Two cautions go with that quote.
First, we are quoting one provider. We pick across Anthropic, Google and OpenAI depending on the problem, and each publishes its own terms. Read the same clause for whichever provider your agency picks, on the provider's own page, dated the day you read it. Do not take a summary, including ours, as the contract.
Second, check who the "Customer" is. The promise we quoted is made to the customer under those terms. If the API account belongs to the agency, ask how those rights reach you in your own contract with the agency.
One more distinction matters. Owning an output under a contract is a separate question from whether copyright protects that output. The U.S. Copyright Office addressed the copyrightability of outputs created using generative AI in Part 2 of its Copyright and Artificial Intelligence report, published January 29, 2025 (copyright.gov/ai, checked November 20, 2026). If your business plans to license or sell what the system produces, that report is the place to start, with counsel.
Whose accounts does it run in?
This is the practical ownership test, and it takes five minutes to check. List where the system lives: the cloud project, the model API keys, the code repository, the observability or tracing tool, the vector store if there is one. Then ask whose name is on each account and whose card pays for it.
The arrangement we would want as a buyer is simple. Every account is in the client's name. The agency is invited in as a collaborator, and the client can remove that access in an afternoon.
When the system runs in the agency's accounts instead, three problems show up later.
- Migration. Moving a live system between cloud projects and API accounts is a project of its own, and it lands at the moment the relationship is ending.
- Data access. Your customers' data and the logs of what the model did with it sit somewhere you cannot open without asking.
- The bill. You pay a monthly number and cannot see the model usage underneath it, so you cannot tell a price increase from a traffic increase.
The account question also carries compliance weight. Smile PreVue, one of our own products, runs on Google Vertex AI under a business associate agreement. An agreement like that is tied to the account running the workload, which is one reason we care whose account it is. We compared the options for where a system can run in building on the Claude API versus a hosted AI tool.
What should the agency keep?
A fair contract cuts both ways. An agency shows up with its own general tooling: deployment templates, an eval harness, logging helpers, ways of working it built before it met you. It will use those again with the next client, and it should. That reuse is part of why the work goes faster.
The clean way to handle it is to name it. A good contract lists what is pre-existing, says the agency keeps it, and licenses it to the client for as long as the system runs, including the right for another team to maintain it. What you want to avoid is a system that only works while a proprietary agency framework is licensed month to month.
Then draw the line on the other side. Your data, your prompts, your eval cases and anything built from your business rules are yours, and the agency should not carry them to another client.
Our position as a studio is this: the build lives in a repository and accounts the client owns, and the handover includes the documents a new team would need. It is the same thinking behind how we figure it out, build it and ship it.
What should you ask before you sign in 2027?
Take these into the contract conversation. A good agency will have answers ready. We covered the wider selection process in how to choose an AI development studio in 2027.
- Who owns the prompts, system instructions and tool definitions, and where are they stored?
- Do we receive the full eval set and the scripts that score it?
- Whose name is on the cloud project, the model API account, the repository and the tracing tool?
- Which parts are your pre-existing tools, and what license do we get to them after the engagement ends?
- What happens to our data, logs and traces when the contract ends, and by what date?
- Can we change model providers without you? What would that take?
- What exactly is in the handover, and could another team run the system from it?
- If we later evaluate a platform instead, can our eval set be used to test it? It should be. That is what makes running a bake-off before you buy an AI platform possible.
FAQ
Do I own the prompts an agency writes for my AI agent? Only if the contract says so. Many contracts assign "code" or "deliverables" and never mention prompts. Ask for prompts, system instructions and tool definitions to be named as deliverables and kept in your repository.
Does the model provider own what my AI system produces? Read your provider's terms. Anthropic's Commercial Terms, checked November 20, 2026, say the customer "owns its Outputs". Then confirm which party holds the account.
Can an AI agency reuse what it built for me with another client? Its general tools and know-how, usually yes, and that is reasonable. Your data, prompts, eval cases and business logic, no, unless you agreed to it. The contract should list which is which.
What should a handover include? The repository, the prompts, the eval set with scoring scripts, the tool definitions, access to every account, and a runbook that explains how to deploy, monitor and roll back. The test is whether a team that has never met the agency could run it.
Ask before the build starts
The cheapest time to settle ownership is before anyone writes a prompt. If you are scoping a build, ask us what you would own at the end of it. If you would rather learn to work with Claude yourself first, our 1:1 training is the other door.
Liked this?
Want this built for your team, or want to learn it yourself? Either way, start here.
Next read →
AI Agent Production Readiness Checklist for 2027
