Dataset licenses: open, commercial and AI training terms

CC BY, ODC-By, ODbL, CDLA and custom commercial licenses, what each allows, and how to choose one for a dataset you want paid for.

8 cited sources

Every dataset that changes hands comes with a license, written down or not. The license says who may use the data, for what, and on what conditions. In AI it is often missing or wrong: an audit of popular training datasets by the Data Provenance Initiative found licenses missing more than 70% of the time on widely used hosting sites, with error rates above 50% (Longpre et al., arXiv, October 2023).

If you plan to license your company's data, the choice is mostly between publishing it under an open license, which lets anyone use it, and keeping it under a commercial license with a specific buyer. This guide covers both.

The short version. Open licenses (CC BY, ODC-By, ODbL, CDLA) are for data you want widely used, and once published they can't be taken back. Data you want paid for goes under a custom commercial license that names the buyer, limits the use to training and sets the term, price and deletion.

Open dataset licenses

LicenseStewardWhat it allows
CC BY 4.0Creative CommonsAny use, including commercial, with credit to the creator. Covers database rights as well as copyright. (Creative Commons)
ODC-By 1.0Open Data CommonsAny use of the database with attribution. Written specifically for databases. (Open Data Commons)
ODbL 1.0Open Data CommonsAny use with attribution, but derivative databases that are used publicly must be shared under the same license. (Open Data Commons)
CDLA-Permissive-2.0Linux FoundationAny use and sharing, as long as the license text goes with the data. Places no restrictions on results, such as trained models. (Linux Foundation)

Non-commercial licenses such as CC BY-NC add a ban on commercial use. They are common on research datasets and a frequent source of trouble, because whether a particular AI project counts as commercial is often unclear.

Open licenses also have a limit that matters for AI. Creative Commons notes that its licenses can't prohibit a use that copyright exceptions already permit, and that training AI on copyrighted works may be protected by those exceptions in many cases (Creative Commons, August 18, 2023). An open license grants permission; it doesn't add restrictions the law wouldn't otherwise impose.

Why open licenses rarely fit data you want paid for

An open license is permanent and available to everyone. Once a dataset is published under CC BY, anyone who gets a copy can use it and pass it on, so there's little left to sell. Open licenses also assume the data is safe to publish, and company records almost never are, even after cleanup. For internal records, open licensing is mostly useful as a way to understand the terms buyers have grown used to.

Commercial dataset licenses

A commercial license is written for one deal. The terms that matter most:

  • The licensee. A named company, and whether its affiliates or customers are included.
  • Permitted use. Training and evaluating the licensee's own models, nothing broader.
  • Sublicensing and resale. Whether the licensee may pass the data to a lab it supplies or to anyone else.
  • Exclusivity. None by default; if granted, limited by use or time and priced separately.
  • Term and territory. How long the rights last and where they apply.
  • Outputs. No reproduction of your records and no naming your company as the source.
  • Deletion. What happens to every copy when the license ends.

Our guide to data licensing agreements goes through each clause.

Licenses on dataset platforms

If a buyer or a marketplace hosts data on a platform like Hugging Face, the dataset card carries a license field. It can name a standard license or say "other" and point to custom terms (Hugging Face). A custom commercial license should be attached in full; a label alone is how licenses end up omitted or wrong.

How to choose

Your situationLicense to use
Selling internal records to one AI buyerA custom commercial license, reviewed by your lawyer
Selling the same dataset to several buyersA standard non-exclusive commercial license, with a schedule per buyer
Publishing a dataset to build your reputationCC BY 4.0 or CDLA-Permissive-2.0
Publishing, but requiring improvements to be shared backODbL
Publishing a dataset that contains personal dataDon't. Anonymize it first or keep it private

Data and code you didn't create

Company datasets often contain material from somewhere else: vendor documentation, customer files, open-source code. Each keeps its own license, and you can't grant more rights than you hold. Public code datasets show the care this takes; The Stack was built only from permissively licensed code and published with a governance plan (Kocetkov et al., arXiv, November 2022). Leave third-party material out, or list it separately so the buyer knows which parts you're licensing. If you're licensing code, our guide to selling source code covers open-source components.

Common questions

Does a CC BY license allow AI training?

CC BY allows reuse for any purpose, including commercial use, as long as the creator is credited. Creative Commons also points out that its licenses can't forbid a use that copyright exceptions already allow, and that training AI may be such a use in many cases.

Can we charge for a dataset that's under an open license?

You can charge for delivering a copy, but anyone who receives it under an open license may pass it on, often for free. If you want to be paid for access, keep the data under a commercial license instead of publishing it openly.

What license should we use for a dataset we're selling to an AI company?

A custom commercial license, usually the buyer's draft reviewed by your lawyer. It should limit use to training and evaluating the buyer's own models, say whether the buyer may pass the data on, and set the term, payment and deletion terms.

Does the license cover the model trained on the data?

Only if it says so. Some open licenses, like CDLA-Permissive-2.0, explicitly put no restrictions on results. A commercial license can restrict how the model is used and what it may reproduce, but it can't make the buyer remove the data from a model that has already been trained.

Sources

  1. Longpre et al., arXiv, October 2023: The Data Provenance Initiative: a large scale audit of dataset licensing and attribution in AI
  2. Creative Commons: Attribution 4.0 International (CC BY 4.0)
  3. Open Data Commons: Open Data Commons Attribution License (ODC-By) v1.0
  4. Open Data Commons: Open Database License (ODbL) v1.0
  5. Linux Foundation: Community Data License Agreement - Permissive, Version 2.0
  6. Creative Commons, August 18, 2023: Understanding CC licenses and generative AI
  7. Hugging Face: Licenses for models and datasets on the Hub
  8. Kocetkov et al., arXiv, November 2022: The Stack: 3 TB of permissively licensed source code