Who Owns the Code When You Hire an AI Developer?
The AI developer has delivered a working system, but the repository, API key and prompts are all under their accounts. If you're asking who owns the AI code, you're really asking two questions: who holds the legal rights, and who can keep the system running.
Those answers can differ. A contract can transfer copyright while the developer still controls the cloud account; a client-owned account doesn't transfer copyright by itself. Set out the rights, accounts and data terms separately, before the handoff turns into a negotiation.
Copyright starts with the author, not the invoice
Copyright is the set of legal rights that controls how a creative work can be copied, changed, distributed or used. In the United States, copyright initially belongs to the author. For work made by an independent contractor, the creator is generally the initial author unless a valid work-made-for-hire rule or rights transfer applies, according to U.S. Copyright Office Circular 30.
That distinction matters when you hire an AI developer to write software. Paying the invoice, receiving a working application or calling the project "custom" doesn't settle who owns the copyright. Your agreement needs to say which rights transfer, which deliverables the transfer covers and when it takes effect.
Work made for hire is a specific copyright category, not a general synonym for "the client paid for this." Work created by an employee within the scope of their job can qualify. For an independent creator, specially commissioned work qualifies only if it fits one of the statutory categories and both parties expressly agree in a signed writing. Circular 30 describes the rule for works created on or after January 1, 1978.
“If a work fails to satisfy any of these requirements, it is not a work made for hire.”
A clause with the right label can still fail to make contractor software a work made for hire if it doesn't meet the legal requirements in the U.S. Copyright Office's Circular 30.
Circular 30 lists nine commissioned-work categories: contributions to collective works, audiovisual works, translations, supplementary works, compilations, instructional texts, tests, test answers and atlases. Software isn't listed separately, so don't rely on "work made for hire" as your only way to secure ownership from a contractor.
Ask for both parts: a work-made-for-hire provision to the extent the law allows it, and a signed assignment of rights in defined project deliverables as a fallback. A copyright transfer must be in a writing signed by the owner of the rights being transferred, according to Circular 30.
This is a commercial drafting overview, not legal advice. A lawyer who handles US intellectual property agreements can adapt the terms to your project and situation.
A present assignment is stronger than a promise to assign later
An assignment transfers rights from one party to another. A present assignment says the transfer happens under the agreement; a promise to assign later leaves it dependent on a future signature or other action.
That difference can matter when a project ends. If the contract says the developer "will assign" the rights but nobody signs a separate assignment, you may have a claim that the developer broke the contract without actually owning the rights. Willcox Savage discusses this risk and decisions that distinguish a future promise from a present assignment in its analysis of software-development ownership clauses.
“The key phrase to transfer ownership is a present grant of assignment.”
Ask your lawyer to make the agreement transfer the rights now, rather than leaving a second piece of paperwork for everyone to remember after launch. That's the practical drafting point in Willcox Savage's analysis.
Define "project deliverables" in enough detail that you and the developer would list the same items. For an AI system, that list can include:
- Source code and the repository containing it.
- Prompts, system instructions and prompt templates.
- Configuration, scripts and deployment files.
- Tests and project documentation.
- Project-specific data artifacts and other agreed deliverables.
- Rights in project-specific material created during the work.
Treat these as examples to discuss with your lawyer, not a statutory checklist. The agreement should say which items are assigned, which are licensed, and when and how the handoff happens. A vague promise that you own "the product" can leave prompts or deployment files outside the agreement.
The source code isn't the whole product. An AI system may also rely on instructions, configuration and access to model-provider services. If the contract names only "software," you and the developer may mean different things by it.
Separate new work from the developer's background IP
Background IP is material the developer already owned or had the right to use before your project. It could be a reusable component or tool used across more than one engagement. Have the contract identify that material instead of quietly folding it into the new deliverables.
Ask the developer to list any background IP they expect to include, then set out the rights your company gets in each item. A perpetual license is one option in Willcox Savage's discussion of software-development agreements. Your lawyer can set the license terms, including the uses your business needs.
Without that list, "the client owns the code" can sound clear while leaving out a key exception. The developer may own a reusable component, while you own the new project-specific work but lack enough rights to maintain or modify the component it depends on.
| Contract item | What to identify | What to settle in writing |
|---|---|---|
| Project-specific deliverables | Code, prompts, system instructions, configuration, tests and documentation | Which rights transfer, and when |
| Background IP | Pre-existing tools or components included in the build | What license lets you use, maintain and modify them |
| Third-party material | Open-source software, provider services or other material the developer doesn't own | Applicable terms, restrictions and any required notices |
| AI-generated output | Generated text or code used in the project | Rights the developer can actually grant and your permitted uses |
| Handoff | Repository, files, documentation and credentials | Transfer timing, access and post-termination arrangements |
Use this schedule to prepare for a conversation with counsel, not as a guarantee that every component can be transferred exclusively. A party can assign only the rights it owns or has authority to grant, as BCLP explains in its analysis of AI contract rights.
“a party can assign only rights it owns and grant licenses only within the scope of its ownership or authority.”
That principle limits what a developer can promise about AI-generated or third-party material. Your contract can set out what the developer must deliver and what rights they grant, but it can't give them rights they don't have.
AI-generated code and outputs need their own terms
AI-generated code, prompts and other outputs don't all have the same copyright status. The US Copyright Office says material without sufficient human authorship may not qualify for copyright protection. Human selection, arrangement or modification can matter to whether a work is protectable, and the analysis is case-specific, according to its AI registration guidance.
A contract can transfer rights only if those rights exist and the developer owns or controls them. That matters if an AI tool produced code without copyright protection, or if an output includes third-party material. BCLP's 2026 analysis says customers should specify rights to reproduce, distribute, modify and commercially exploit outputs, while accounting for limits on third-party rights.
The provider's terms matter too. Under the OpenAI Services Agreement effective January 1, 2026, the customer retains ownership of input and owns output as between OpenAI and the customer, to the extent permitted by law. OpenAI assigns any rights it may have in output to the customer, but the agreement also says output may not be unique and other users may receive similar content.
Provider terms don't replace your agreement with the developer. They govern your relationship with the provider; your developer contract still needs to cover who supplies prompts, who can reuse them, what the developer hands over and what happens to project material when the work ends.
| Material | Ownership question | Contract question |
|---|---|---|
| Human-written code | Who authored it, and was there a valid transfer? | Does a signed present assignment cover the code? |
| AI-generated code | Is there copyrightable human authorship, and who has rights to assign? | What must the developer deliver, and what rights can they grant? |
| Prompts and system instructions | Who created them, and are they project-specific or reusable? | Are they confidential, assigned, licensed or available for reuse? |
| Provider output | What do the provider's terms say, and could output be similar for other users? | What uses are permitted, and what limits apply to exclusivity? |
| Third-party components | Does the developer own or have authority to grant rights? | What license and restrictions apply to each component? |
Treat prompts as business material, not just text in a developer's notes. A prompt may contain sensitive plans, pricing, draft work or proprietary data, and your agreements can cover confidentiality, training use and reuse permissions. BCLP's discussion of AI contracts describes these as contract issues.
Write down whether the developer can reuse general techniques, project-specific prompts or client content in other work. Distinguish customer content from operational usage data if the agreement or provider's terms treat them differently. If your business needs exclusive use of a particular prompt or output, ask a lawyer to define exactly what "exclusive" covers.
For more context on what goes into the development relationship before work starts, see what to ask in an AI development proposal. Make sure the proposal and contract agree on scope and ownership.
Keep accounts and API keys under your control
An API key is a credential that lets software connect to a service, such as a model provider. Keep the cloud, source-control, model-provider and billing accounts in your company's name, then invite the developer with the access needed for the work. This is a continuity safeguard, not a copyright rule; Willcox Savage's contract analysis discusses account control as a practical risk-management measure.
Account control and IP ownership solve different problems. A client-owned repository doesn't prove the client received a signed copyright assignment. A signed assignment doesn't give the client working access to an account controlled by the developer.
Clients often take one of two approaches at the end of a project. Some ask for everything: the code, the prompts, all the data and every credential. Others prefer to leave the accounts and hosting with the developer, who continues supporting the system. Either can work; agree on the arrangement before the project ends so nobody is surprised.
Make that choice before the final handoff, not after the developer has finished. If the developer will keep the accounts and hosting, document who can access them, what happens if the relationship ends and how you'll receive the code, prompts, data and credentials needed to move. If the accounts will belong to your company, say when the developer transfers access and how you'll remove their access at the end.
Use separate accounts for the project where you can, and give the developer only the permissions needed for the work. Your contract can specify who controls billing, who rotates or revokes credentials, and who keeps access after termination. Don't send secret keys in a shared document or treat a message containing a password as a handoff process.
Before launch, check that your business can reach the repository, hosting, provider account, billing settings and deployment configuration. The contract should say what documentation and credentials arrive at handoff and whether any service stays under the developer's account. If you expect ongoing support, spell out what the developer will keep managing; account custody and support aren't the same thing.
Provider retention depends on the product and its settings
A no-training promise and a no-retention promise aren't the same. A provider can agree not to use your API content to train models while still retaining logs or application state for safety, service operation or legal reasons.
For the OpenAI API, data isn't used for model training by default unless the customer opts in. Abuse-monitoring logs may contain prompts and responses and are retained for up to 30 days by default, subject to legal and safety exceptions. Eligible customers may request approved Zero Data Retention or Modified Abuse Monitoring controls, according to OpenAI's API data-controls page, accessed November 22, 2026. Some API features can separately store application state, so a Zero Data Retention arrangement doesn't automatically mean every feature stores nothing.
Anthropic says commercial and API inputs and outputs aren't used to train its models by default unless the customer explicitly provides feedback or otherwise allows data use. Its standard commercial API retention period is deletion of inputs and outputs within 30 days, with exceptions for features that retain data longer, separate agreements such as Zero Data Retention, policy enforcement and legal obligations. Anthropic describes these terms in its model-training policy, dated August 18, 2026 and retention policy, dated July 1, 2026.
Google's Gemini API terms distinguish unpaid from paid service. Under the Additional Terms effective March 23, 2026, unpaid submissions and generated responses may be used to improve and develop Google products and may be reviewed by people; Google says not to submit sensitive, confidential or personal information to unpaid services. Paid-service prompts and responses aren't used to improve products, but may be logged for a limited period for safety, policy and legal purposes.
Google's feature-level storage settings matter too. Its Gemini Developer API retention guidance, accessed November 22, 2026, says Gemini API Search and Maps grounding store prompts, context and output for 30 days. Interactions API state is stored by default unless store=false; File API uploads remain stored until deleted or expired; and Live API session state can be retained up to 24 hours if a session handle is generated.
| Provider and service | Training position | Retention point to check |
|---|---|---|
| OpenAI API | No model training by default unless you opt in | Abuse-monitoring logs may retain prompts and responses for up to 30 days by default, with exceptions |
| Anthropic commercial/API | No training by default unless you allow data use or provide feedback | Standard commercial API inputs and outputs are deleted within 30 days, with stated exceptions |
| Google Gemini unpaid API | Submissions and outputs may be used to improve products and may be reviewed by people | Google says not to submit sensitive, confidential or personal information |
| Google Gemini paid API | Prompts and responses aren't used to improve products | Limited-period logging may occur for safety, policy and legal purposes |
Google directs businesses seeking guaranteed zero retention or an enterprise data-processing agreement to Vertex AI. The developer API's zero-retention approach requires avoiding or changing particular features and settings, as described in Google's Gemini retention documentation.
Don't stop at "the provider doesn't train on our data." Check the service, account type, settings, enabled features, retention terms and whether a separate agreement applies. Then ask your lawyer or compliance officer to confirm what applies to your business and the data you plan to send.
Put the handoff, data and ownership terms in the agreement
A good AI software development contract does more than say you own the work. It spells out which work, what rights transfer, what remains the developer's, where the data goes and what happens when the relationship ends.
Use this checklist with your lawyer before signing:
- Define the deliverables. List source code, prompts, system instructions, configuration, tests, documentation and project-specific data artifacts. State the repository and handoff format.
- Assign the project-specific rights. Ask for work made for hire where legally eligible and a signed present assignment of the defined deliverables as a fallback. Don't rely only on payment or a promise to assign later.
- Schedule background IP. Have the developer identify pre-existing components and set out the license your business receives to use, maintain and modify them.
- Identify third-party material. Require a list of relevant open-source and provider components, the terms that apply and any limits on what the developer can assign.
- Set AI-use terms. Cover prompts, system instructions, input data, output, confidentiality, reuse and whether customer content can be used for training or other purposes.
- Choose account ownership. Name who controls hosting, source control, model-provider access and billing. Specify developer permissions and how access changes at handoff or termination.
- Write down retention and deletion duties. Identify the providers and enabled features, the applicable settings and what the developer must delete or return when the work ends.
- Set handoff and continuing support. State when the repository, credentials, documentation and other agreed materials transfer, and whether the developer will keep operating or supporting the system.
Use this list to prepare a draft, but don't treat it as legal advice. Match the IP assignment to the actual deliverables, and match the provider and data terms to the services the developer will configure.
If you're comparing a developer, agency or in-house hire, the differences between those hiring routes can help you decide who should build and support the system. A contract can't make every route equivalent, but it can make ownership and handoff expectations explicit.
WebDaddy's working arrangement is one option when the build itself is still being scoped: the studio says code, accounts and data belong to the client from day one, and it can stay on to keep the system running after launch. Its AI services page lists fixed-price packages, while bigger or different systems are scoped separately. That describes WebDaddy's stated process; have your own contract reviewed too.
Watch for clauses and handoffs that leave gaps
A label isn't a transfer. A work-made-for-hire clause can fail to cover contractor software if the work doesn't fit one of the statutory categories. The words "work made for hire" don't, on their own, make the developer transfer rights. Copyright Office Circular 30 sets out the rule and categories.
A future promise can leave ownership unresolved too. If the developer "will assign" rights but never signs the later document, you may have a contract dispute without the transfer you expected. Ask your lawyer to check whether the assignment takes effect when the agreement is signed.
A broad claim that "the client owns all AI output" may promise more than the developer can deliver. The developer might not own the output's copyright, and third-party rights can limit what they're authorized to grant. Specify permitted uses and ask for appropriate warranties and remedies, keeping those limits in view, as discussed in BCLP's AI contract analysis.
Account custody can fail even when the copyright clause is sound. If the repository, API key or billing account sits with the developer, your business may lack practical access when the engagement ends. Agree before work starts whether you'll receive credentials and account control or the developer will keep hosting and supporting the system.
Retention language can be too broad for the product setup. A no-training default doesn't settle whether a particular feature retains prompts, stores state or uses a different service. Compare the provider terms with the features the developer plans to enable, then put the agreed data handling and deletion duties in the contract.
Before signing, compare the proposal's promised deliverables with the contract's definitions, assignment clause, background-IP schedule, provider list, account plan and handoff terms. If one says "all code" and the other names only "software," resolve the mismatch in writing. Decide who controls prompts, credentials and post-project support before the project ends.
Want this done for your business?
An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step
Questions people ask
Who owns the code when I hire an independent AI developer in the US?
The developer is generally the initial copyright owner unless a valid work-made-for-hire rule or a signed rights transfer applies. Use a signed present assignment that identifies the project deliverables.
Does a work-for-hire clause automatically give me ownership of custom software?
No. Contractor work qualifies as made for hire only if it fits a statutory category and the parties agree in a signed writing. Software isn't separately listed among the nine commissioned-work categories in Copyright Office Circular 30.
Should my AI developer use API keys and cloud accounts in my company's name?
Yes. Keep cloud, source-control, model-provider and billing accounts under your company's control, then grant the developer scoped access. Put account transfer, access removal and handoff duties in the contract too.
Do OpenAI, Anthropic, or Google retain prompts sent through their APIs?
Retention varies by provider, plan, feature and settings. For example, OpenAI API abuse-monitoring logs may contain prompts and responses and are retained for up to 30 days by default, subject to exceptions.
Who owns prompts, system instructions, and AI-generated output after a project ends?
The contract should name prompts and system instructions as deliverables and assign rights in them. AI output ownership can be limited by copyrightability and third-party rights, so also specify permitted uses and any provider terms.
What happens if an AI-generated code component has no copyright protection?
A contract cannot create copyright ownership in material that isn't copyrightable. It can still set duties around delivery, confidentiality, permitted use, source-code access and rights in the human-authored parts.
Sources
- Circular 30: Works Made For Hire
- Copyright Registration Guidance: Works Containing Material Generated by Artificial Intelligence
- Use the Magic Words: Ownership of Code developed under a Software Development Agreement
- AI contracts: whose prompts, whose outputs, whose rights?
- OpenAI Services Agreement
- Data controls in the OpenAI platform
- Is my data used for model training?
- How long do you store my organization's data?
- Gemini API Additional Terms of Service
- Zero data retention in the Gemini Developer API