# Who owns the code? If ChatGPT’s AI helps write your app, does it still belong to you?
1. Ownership of code generated by AI remains complex and uncertain in terms of legal implications.
2. From a contractual standpoint, most companies consider AI-generated code as their property, including OpenAI, the company behind ChatGPT.
3. Different countries have different approaches to code ownership. In the UK, the developer of the AI-generated work may be considered the author and first owner of any copyright in it.
## Supplemental Information ℹ️
The article explores the ownership and copyright implications of using ChatGPT, an AI language model, to write code for applications. Legal experts suggest that the ownership of AI-generated code is still unsettled, and there are different perspectives on who owns the resulting code. Companies like OpenAI generally consider the generated code as their property. Different countries have different legal approaches to code ownership, and more case law is needed to establish clearer guidelines.
### ELI5 💁
If ChatGPT helps write code for your app, it’s not clear who actually owns that code. Some companies treat the AI-generated code as their own property, while others like OpenAI assign ownership to the user. Different countries have different laws on this matter. We need more court cases to decide who should own the code written by AI.