---
title: "Licensing source code to AI buyers"
description: "Source code with its full history is a record AI buyers ask for. What to check on ownership and secrets, what is removed and how code is extracted."
canonical: https://plety-desk.vercel.app/about/records/source-code
last-updated: 2026-11-25
---

# Licensing source code to AI buyers

By Plety. Updated 2026-11-25.

Source code with its history shows how software is built and changed over time, commit by commit. AI developers license code like this, and some buyers take code only, which can suit smaller teams. Before licensing, the company confirms it owns the code and removes secrets such as passwords and keys. Personal data in the commit history is dealt with inside its own systems.

## Does the company own its code?

Check this first. Code written for clients may belong to them under the contract. Code from contractors depends on what their agreements assign, and open-source components keep their own licence terms.

Data a company holds for its clients, including client code in its repositories, is always left out.

## What is removed from a code archive?

Secrets come out first: passwords, API keys, tokens and private certificates, which can sit in old commits as well as current files. Then personal data: commit author names and email addresses, names in comments and any customer data in test files. Commit details that identify a developer are personal data under Article 4(1) of the UK GDPR.

## What makes a code archive more useful?

Complete history over several years, with reviews and the reasons for changes kept alongside the code. Most buyers of whole record sets ask for a team of about 20 or more, but some take code only.

## How is code extracted?

From the company's own repositories, inside its environment, by its processor or by the buyer's tool under a written contract with the company (Article 28). Secrets and personal data are removed from the full history before the records go straight to the buyer.

The ICO's AI security guidance says de-identification may be needed before training data is extracted from its source, depending on the risk.

## Questions

### Are commit messages personal data?

Often. Author names and email addresses identify developers, and messages sometimes mention colleagues. They are removed or masked inside the company's systems before export.

### Can we license code we no longer use?

Yes, if the company owns it. Old projects and retired products can be included, and the licence lists exactly which repositories and years are covered.

## Sources

- [UK GDPR, Article 4 (definitions)](https://www.legislation.gov.uk/eur/2016/679/article/4)
- [UK GDPR, Article 28 (processor)](https://www.legislation.gov.uk/eur/2016/679/article/28)
- [ICO, AI and data protection: how should we assess security and data minimisation in AI?](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/artificial-intelligence/guidance-on-ai-and-data-protection/how-should-we-assess-security-and-data-minimisation-in-ai/)

## Read next

- [Licensing project management data to AI buyers](https://plety-desk.vercel.app/about/records/project-management-data.md)
- [What happens to client data when a software company closes?](https://plety-desk.vercel.app/about/questions/what-happens-to-client-data-when-a-saas-company-closes.md)
- [What do AI companies use business records for?](https://plety-desk.vercel.app/about/questions/what-do-ai-companies-use-business-records-for.md)
- [What AI data buyers look for in company records](https://plety-desk.vercel.app/about/guides/what-ai-buyers-look-for-in-company-records.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: herman.plety.official@gmail.com. Book a call: https://plety-desk.vercel.app/book.

General information, not legal advice.
