Resources / Code generation
Who owns AI-generated code? Copyright, licenses and practical steps
A plain-language overview of ownership and copyright for AI-generated code, open-source license risks, and practical steps teams take. Not legal advice.
This is a general overview, not legal advice. The law here is new and differs by country — check with a lawyer for decisions that matter.
Teams shipping AI-written code usually ask three questions: do we own it, can anyone else claim it, and could it carry someone else's license?
Do you own the output?
Most major AI providers' terms state that, as between you and the provider, you own the output you generate (subject to their usage policies). Read the terms of the tools you actually use — consumer and business plans can differ.
Is it protected by copyright?
Copyright generally protects works of human authorship. In the United States, the Copyright Office has said that material generated entirely by AI isn't copyrightable on its own, while human contributions — selecting, arranging, modifying, and writing parts yourself — can be. Other countries take different views.
In practice, most production code is a mix: a person describes the requirements, reviews, edits and combines the output with existing code. Keep that human contribution visible — in commits, reviews and design docs.
Can it contain someone else's code?
Models learn from public code, and occasionally reproduce recognisable snippets — sometimes from projects under licenses like GPL that carry obligations. Ways to reduce the risk:
- Prefer tools with duplicate detection or code-reference filters that flag or block output matching public code.
- Scan your codebase with a license or snippet scanner, the same way you'd scan dependencies.
- Be suspicious of long, specific blocks — a complete algorithm with unusual comments is more likely to be copied than ten lines of glue code.
- Track dependencies' licenses: AI tools add packages readily, and each brings its own license.
Practical steps for teams
- Use AI tools under business terms that assign output to you and don't train on your code.
- Record which code was AI-assisted (commit messages or PR labels are enough).
- Review and edit generated code like any other contribution.
- Run license and dependency scans in CI.
- Keep secrets and personal data out of prompts.
On Wisp
Code Wisp writes for you is yours — see our Terms of Use. Every endpoint is ordinary source you can read, edit, download with the CLI or sync to GitHub, and every version is kept, so the history of who changed what stays clear.
Build it with Wisp — describe an API, get it live.