I build apps using ChatGPT and Claude Code. I come up with the idea, while AI writes the code. So who owns the copyright in that program?
Lately, I've been taking part in AI hackathons and building web apps of my own.
The tools I often use include ChatGPT, Claude Code, and Codex.
I decide what I want to make and explain it to AI. Then I look at the result, request changes, check it again, and ask for more changes. That back-and-forth is how I get an app working.
It's what's often called vibe coding.
But one day, a question occurred to me.
If AI actually writes the code, who owns the copyright?
The person who came up with the idea? The person who prompted the AI? Someone who edited the generated code? Or does the AI-generated code have no copyright at all?
I decided to investigate, using Japanese copyright law and materials published by Japan's Agency for Cultural Affairs.
First, can AI be an author?
Under Japanese copyright law, a copyrightable work is a creative expression of human thoughts or feelings. A program can be protected when its specific expression is sufficiently creative.
But can the AI itself be an author?
A document published by Japan's Agency for Cultural Affairs on March 15, 2024, General Understanding on AI and Copyright in Japan, explains the view that output generated autonomously by AI is not a copyrightable work.
On the other hand, when a person uses AI as a tool to express their own thoughts or feelings creatively, the resulting work may qualify for copyright protection, with the user recognized as its author.
So the answer doesn't depend simply on whether AI was involved.
What matters is the human's creative contribution.
The agency's document offers a nonbinding interpretation, not a new law or a court ruling deciding a particular case. Actual outcomes depend on the circumstances.
What if I only say, “Build me an app”?
Imagine that I give an AI this instruction:
“Build a web app for a to-do list.”
AI produces everything from the interface to the source code, and I haven't written a single line.
I requested the app, but that alone doesn't necessarily make me the author of its code. Wanting a to-do-list app describes an idea or function. Copyright protects creative expression, not ideas as such.
If AI autonomously determines the particular code and I make no recognizable creative contribution, the generated portion may not qualify as a copyrightable work.
Having the idea for an app doesn't automatically make me the author of the code.
That distinction was worth remembering.
What if I write very detailed prompts?
This is the part I was especially curious about.
With vibe coding, my first prompt rarely produces a finished app. I might say:
“Show three cards on this screen.”
“Change the display depending on what the user selects.”
“Arrange these elements this way.”
“Fix this particular process.”
And I might keep refining the result for a long time. Isn't all of that a creative contribution?
According to the Agency for Cultural Affairs, instructions that specifically convey creative expression may help establish a human creative contribution.
But there is an important qualification.
A long prompt is not automatically a creative contribution.
Even a lengthy prompt might only describe ideas or functionality rather than the expression of those ideas. Nor does running the generation process 100 times automatically create copyright.
What matters isn't just the amount of work or the number of attempts. It is what, if anything, the person creatively expressed during the process.
That seems especially relevant to anyone building things with AI.
What if I choose one of several AI-generated versions?
Suppose AI gives me three code options: A, B, and C. I choose B because it looks best or works properly.
Does the act of choosing make me the author?
The agency's explanation suggests that merely selecting one output from several would not ordinarily establish creative contribution by itself.
Of course, a genuinely creative selection or arrangement may need to be assessed differently.
But simply saying “I like this one” or “This version works” doesn't necessarily make me the author of all its code.
What if I edit the code myself?
Now suppose I change the AI-generated code.
If my additions or revisions amount to original creative expression, copyright may arise in those creative portions.
A typo fix or a completely routine change, however, may not have the required creativity.
And there's another distinction: holding copyright in my creative edits is not the same as holding copyright in every line originally generated by AI.
A single source file can contain both human-authored creative expression and autonomously generated material. Real apps may be even more complicated.
So what about the way I actually vibe-code?
I decide what the app should do and who will use it. I consider what the screen should look like, describe the behavior I want, inspect what AI creates, and give further instructions.
Sometimes I use several different AI tools during development.
This raised a question for me: Is leading an entire development project the same as creatively authoring its source code?
Not necessarily.
Planning the app, choosing features, testing it, and managing the schedule are all important work. Yet those activities do not automatically amount to copyrightable expression in its program code.
At the same time, original text, illustrations, and other creative elements of an app may each have their own copyright protection.
So asking “Whose app is it?” doesn't always produce one straightforward answer. Different parts of one app can involve different rights and relationships.
Three hypothetical examples
Here's how I think about it after reading the guidance.
| Development scenario | Possible copyright implications |
|---|---|
| A: AI generates an app from a short, functional request | If there is no human creative contribution, the autonomously generated portion may not be copyrightable. |
| B: A person provides instructions specifying creative expression and refines the output | The facts and the person's actual creative role may support copyright in relevant expression. |
| C: A person adds independently creative code to AI-generated code | The person's creative additions may be protected, even if not every AI-generated portion is. |
This isn't a legal checklist or an automatic classification system. Scenario A doesn't guarantee an absence of copyright in every part of an app, and scenario B doesn't guarantee protection.
You still have to ask what specific creative expression was contributed by a person.
What if the AI service's terms say the output is “yours”?
This is another easy point to confuse.
Some AI services say in their terms that users may use generated outputs or that the provider assigns whatever rights it has in those outputs to the user.
That might sound like everything automatically becomes the user's copyrighted work.
But contractual permission or assignment is different from whether copyright exists under Japanese law in the first place.
A contract cannot create a copyright in material that doesn't legally qualify for copyright protection.
Equally, a lack of copyright protection doesn't automatically mean I cannot use the code commercially. I still need to consider the terms of the service, relevant licenses, and third-party rights.
“Am I allowed to use it?” and “Do I own copyright in it?” are two different questions.
Even if I own copyright, could I infringe someone else's rights?
Yes, potentially. My own contribution to AI-generated code doesn't eliminate the possibility that some output resembles protected expression from an existing program.
The Agency for Cultural Affairs treats two questions separately: whether an AI-generated work qualifies for copyright protection, and whether generating or using it may infringe an earlier work.
When open-source libraries or other public code are used, I also need to check the applicable licenses.
Publicly visible code isn't necessarily free to copy and use in any way I want.
For example, GitHub Copilot offers a code-referencing feature that can show matching public code and detected license information in certain circumstances. It doesn't guarantee that every relevant match will be found.
That is a practical reminder that where generated code comes from, and what conditions apply to its use, can matter.
What if the app was built by a hackathon team?
Now this leads directly to AI hackathons.
One teammate comes up with the idea. Someone else writes prompts to have AI generate code. Another person designs the interface. A fourth edits the output until the app works.
Who is the author?
The copyright relationships in a team project can be complicated even without AI.
Being the team lead doesn't mean someone owns every copyright. Managing the GitHub repository doesn't, by itself, make someone the author. And entering a prompt doesn't automatically make someone the author of all the resulting code.
The relevant questions include each person's creative contribution, whether particular material qualifies as a joint work, and what the teammates agreed to.
These questions become especially important when a hackathon project turns into a product or business.
Who can keep developing it? Who can use the code commercially? What happens if someone leaves the team?
Those are things worth discussing before misunderstandings arise.
What records are worth keeping while developing with AI?
I came away thinking that development records can be useful.
- Ideas and design notes: What the app is for, and why the features and interface were designed that way.
- Important prompts and revisions: What I instructed AI to do, and what I changed afterward.
- Git history: How the code changed over time.
- Libraries and licenses: What third-party components are included and under which terms.
- Team agreements: Who contributed what and what uses of the finished project everyone agreed on.
But keeping lots of records doesn't create copyright by itself. Nor does the person with the most commits automatically become the author.
Records are helpful because they can show how the work developed and what people actually contributed.
I started using GitHub mainly to save code and manage changes. Now I can see another reason to value that history: it can help everyone remember how a project came together.
So who owns an app built with AI?
Back to the question I started with: Who owns copyright in AI-generated code?
There isn't just one answer.
Autonomously generated material may lack copyright protection. Human creative contributions can sometimes be protected. And separate from copyright, there are AI-service terms, third-party licenses, and agreements between teammates.
Vibe coding amazed me because I could build working apps without writing every line of code myself.
But doing that also introduced questions I hadn't thought about before.
None of this means I should stop using AI. Quite the opposite: AI lets me attempt things that used to feel out of reach.
That's why I want to understand what I ask AI to do, what I creatively contribute, and what I can do with the finished project.
Making an app work isn't the only part of developing it.
And this article has focused on Japanese law. As I collaborate with people from other countries, I'm also curious about how copyright differs internationally. That's a subject I want to investigate next.
I'll keep learning as I build.
References
- Agency for Cultural Affairs (Japan): AI and Copyright
- Agency for Cultural Affairs: General Understanding on AI and Copyright in Japan (March 15, 2024; Japanese PDF)
- Agency for Cultural Affairs: Summary of General Understanding on AI and Copyright (April 2024; Japanese PDF)
- Agency for Cultural Affairs: Frequently Asked Questions (Japanese)
- Japanese Copyright Act (e-Gov)
- GitHub Docs: Code Referencing
- GitHub Docs: Finding Public Code That Matches Copilot Suggestions
This article provides general information based on Japanese law and public resources available as of October 2026. It is not legal advice for any particular situation.